tallow multiline toasts - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
(HTM) git clone git://src.adamsgaard.dk/cosmo
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1e40a5081d2d9bbb840806568608ccba18649584
(DIR) parent 86ebe69d56827f80f63d13724bd94efcc6ac4213
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 19 Aug 2015 14:50:21 +0200
allow multiline toasts
Diffstat:
M css/materialize.css | 12 ++++++++----
M index.php | 3 ++-
M pages/history.html | 13 +++++++++----
3 files changed, 19 insertions(+), 9 deletions(-)
---
(DIR) diff --git a/css/materialize.css b/css/materialize.css
t@@ -5647,11 +5647,15 @@ small {
clear: both;
margin-top: 10px;
position: relative;
- max-width: 100%;
- height: 48px;
- line-height: 48px;
+ /*max-width: 100%; by AD */
+ max-width: 50%;
+ /*height: 48px; by AD */
+ height: auto;
+ /*line-height: 48px; by AD */
+ line-height: 26px;
background-color: #323232;
- padding: 0 25px;
+ /*padding: 100 25px; by AD */
+ padding: 20px 25px;
font-size: 1.1rem;
font-weight: 300;
color: #fff;
(DIR) diff --git a/index.php b/index.php
t@@ -116,7 +116,8 @@
<!-- import jQuery before materialize.js (use materialize.min.js) -->
<script type="text/javascript"
src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
- <script type="text/javascript" src="js/materialize.min.js"></script>
+ <!--<script type="text/javascript" src="js/materialize.min.js"></script>-->
+ <script type="text/javascript" src="js/materialize.js"></script>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script type="text/javascript"
(DIR) diff --git a/pages/history.html b/pages/history.html
t@@ -13,7 +13,8 @@
<a onclick="Materialize.toast('Help will appear here', 5000)">
<i class="material-icons">info_outline</i>
</a>
- symbols for more information on the parameter and the input format.
+ symbols for more information on the parameters and their input
+ formats.
</p>
</div>
t@@ -75,11 +76,11 @@
<a class="prefix">
<i class="material-icons"
onclick="Materialize.toast(
- '<p>Latitude of sampling location. Used for ' +
+ 'Latitude of sampling location. Used for ' +
'anonymous statistical purposes. Format: ' +
'signed degrees format (DDD.ddd). South ' +
'latitudes must be preceded with a minus' +
- 'sign</p>.',
+ 'sign.',
5000)">info_outline</i></a>
<input id="lat" name="lat" type="text"
class="validate" required>
t@@ -90,7 +91,11 @@
<a class="prefix">
<i class="material-icons"
onclick="Materialize.toast(
- 'Longitude of sampling location. Used for anonymous statistical purposes. Format: signed degrees format (DDD.ddd). West longitudes must be preceded with a minus sign.',
+ 'Longitude of sampling location. Used for ' +
+ 'anonymous statistical purposes. Format: ' +
+ 'signed degrees format (DDD.ddd). West ' +
+ 'longitudes must be preceded with a minus ' +
+ 'sign.',
5000)">info_outline</i></a>
<input id="long" name="long" type="text"
class="validate" required>