move hardcoded color to CSS class - for themeability

This commit is contained in:
Morris Jobke 2014-08-29 17:50:59 +02:00
parent 95382e9945
commit 0aede0f413
2 changed files with 6 additions and 2 deletions

View File

@ -742,6 +742,10 @@ code { font-family:"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono
}
#quotatext {padding:.6em 1em;}
#quota div.quota-warning {
background-color: #fc4;
}
.pager { list-style:none; float:right; display:inline; margin:.7em 13em 0 0; }
.pager li { display:inline-block; }

View File

@ -34,8 +34,8 @@
<div id="quota" class="section">
<div style="width:<?php p($_['usage_relative']);?>%;
<?php if($_['usage_relative'] > 80): ?>background-color:#fc4;<?php endif; ?>">
<div style="width:<?php p($_['usage_relative']);?>%"
<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
<p id="quotatext">
<?php print_unescaped($l->t('You have used <strong>%s</strong> of the available <strong>%s</strong>',
array($_['usage'], $_['total_space'])));?>