|
@@ -1137,20 +1137,33 @@
|
|
|
|
|
|
span.hud_title {
|
|
|
display: block;
|
|
|
+ width: 100%;
|
|
|
font-family: <?php echo ($_SESSION['theme']['dashboard_heading_text_font']['text'] != '') ? $_SESSION['theme']['dashboard_heading_text_font']['text'] : 'Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif'; ?>;
|
|
|
text-shadow: 0px 1px 2px <?php echo ($_SESSION['theme']['dashboard_heading_text_shadow_color']['text'] != '') ? $_SESSION['theme']['dashboard_heading_text_shadow_color']['text'] : '#000'; ?>;
|
|
|
letter-spacing: -0.02em;
|
|
|
- font-size: <?php echo ($_SESSION['theme']['dashboard_heading_text_size']['text'] != '') ? $_SESSION['theme']['dashboard_heading_text_size']['text'] : '12pt'; ?>;
|
|
|
color: <?php echo ($_SESSION['theme']['dashboard_heading_text_color']['text'] != '') ? $_SESSION['theme']['dashboard_heading_text_color']['text'] : '#fff'; ?>;
|
|
|
- width: 100%;
|
|
|
- height: 40px;
|
|
|
+ font-size: <?php echo ($_SESSION['theme']['dashboard_heading_text_size']['text'] != '') ? $_SESSION['theme']['dashboard_heading_text_size']['text'] : '12pt'; ?>;
|
|
|
+ <?php
|
|
|
+ //calculate line height based on font size
|
|
|
+ if ($_SESSION['theme']['dashboard_heading_text_size']['text'] != '') {
|
|
|
+ $font_size = strtolower($_SESSION['theme']['dashboard_heading_text_size']['text']);
|
|
|
+ $tmp = str_replace(' ', '', $font_size);
|
|
|
+ $tmp = str_replace('pt', '', $tmp);
|
|
|
+ $tmp = str_replace('px', '', $tmp);
|
|
|
+ $tmp = str_replace('em', '', $tmp);
|
|
|
+ $tmp = str_replace('%', '', $tmp);
|
|
|
+ $font_size_number = $tmp;
|
|
|
+ $line_height_number = (int) floor($font_size_number * 2.5);
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ line-height: <?php echo ($line_height_number > 0) ? str_replace($font_size_number, $line_height_number, $font_size) : '26.25pt'; ?>;
|
|
|
text-align: center;
|
|
|
- line-height: 40px;
|
|
|
background: <?php echo ($_SESSION['theme']['dashboard_heading_background_color']['text'] != '') ? $_SESSION['theme']['dashboard_heading_background_color']['text'] : '#8e96a5'; ?>;
|
|
|
-webkit-border-radius: 4px 4px 0 0;
|
|
|
-moz-border-radius: 4px 4px 0 0;
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
border-bottom: 1px solid <?php echo ($_SESSION['theme']['dashboard_heading_background_color']['text'] != '') ? color_adjust($_SESSION['theme']['dashboard_heading_background_color']['text'], 0.2) : '#737983'; ?>;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
span.hud_title:hover {
|
|
@@ -1166,7 +1179,6 @@
|
|
|
text-align: center;
|
|
|
text-shadow: 0px 2px 2px <?php echo ($_SESSION['theme']['dashboard_number_text_shadow_color']['text'] != '') ? $_SESSION['theme']['dashboard_number_text_shadow_color']['text'] : '#737983'; ?>;
|
|
|
width: 100%;
|
|
|
- height: 100px;
|
|
|
color: <?php echo ($_SESSION['theme']['dashboard_number_text_color']['text'] != '') ? $_SESSION['theme']['dashboard_number_text_color']['text'] : '#fff'; ?>;
|
|
|
font-family: <?php echo ($_SESSION['theme']['dashboard_number_text_font']['text'] != '') ? $_SESSION['theme']['dashboard_number_text_font']['text'] : 'Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif'; ?>;
|
|
|
font-size: <?php echo ($_SESSION['theme']['dashboard_number_text_size']['text'] != '') ? $_SESSION['theme']['dashboard_number_text_size']['text'] : '60pt'; ?>;
|
|
@@ -1187,6 +1199,7 @@
|
|
|
font-weight: normal;
|
|
|
background: <?php echo ($_SESSION['theme']['dashboard_number_background_color']['text'] != '') ? $_SESSION['theme']['dashboard_number_background_color']['text'] : '#a4aebf'; ?>;
|
|
|
border-top: 1px solid <?php echo ($_SESSION['theme']['dashboard_number_background_color']['text'] != '') ? color_adjust($_SESSION['theme']['dashboard_number_background_color']['text'], 0.2) : '#c5d1e5'; ?>;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
span.hud_stat:hover {
|
|
@@ -1207,11 +1220,14 @@
|
|
|
color: <?php echo ($_SESSION['theme']['dashboard_number_title_text_color']['text'] != '') ? $_SESSION['theme']['dashboard_number_title_text_color']['text'] : '#fff'; ?>;
|
|
|
font-size: <?php echo ($_SESSION['theme']['dashboard_number_title_text_size']['text'] != '') ? $_SESSION['theme']['dashboard_number_title_text_size']['text'] : '14px'; ?>;
|
|
|
padding-top: 4px;
|
|
|
+ white-space: nowrap;
|
|
|
+ letter-spacing: -0.02em;
|
|
|
font-weight: normal;
|
|
|
font-family: <?php echo ($_SESSION['theme']['dashboard_number_title_text_font']['text'] != '') ? $_SESSION['theme']['dashboard_number_title_text_font']['text'] : 'Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif'; ?>;
|
|
|
background: <?php echo ($_SESSION['theme']['dashboard_number_background_color']['text'] != '') ? $_SESSION['theme']['dashboard_number_background_color']['text'] : '#a4aebf'; ?>;
|
|
|
border-bottom: 1px solid <?php echo ($_SESSION['theme']['dashboard_number_background_color']['text'] != '') ? color_adjust($_SESSION['theme']['dashboard_number_background_color']['text'], -0.2) : '#909aa8'; ?>;
|
|
|
margin: 0;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
span.hud_stat:hover + span.hud_stat_title {
|