Skip to content

Commit d5e855c

Browse files
committed
highlited active status
1 parent 44b6b01 commit d5e855c

File tree

3 files changed

+59
-14
lines changed

3 files changed

+59
-14
lines changed

web/templates/admin/list_rrd.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<tr>
33
<td style="padding: 2px 0 0 6px">
44
<div style="submenu-button-block">
5-
<a class="vst" <?php if ((empty($_GET['period'])) || ($_GET['period'] == 'daily')) echo "style='color: #174f82'" ?> href="?period=daily"><?php print _('Daily');?></a>
6-
<a class="vst" <?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'weekly')) echo "style='color: #174f82'" ?> href="?period=weekly"><?php print _('Weekly');?></a>
7-
<a class="vst" <?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'monthly')) echo "style='color: #174f82'" ?> href="?period=monthly"><?php print _('Monthly');?></a>
8-
<a class="vst" <?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'yearly')) echo "style='color: #174f82'" ?> href="?period=yearly"><?php print _('Yearly');?></a>
5+
<a class="vst<?php if ((empty($_GET['period'])) || ($_GET['period'] == 'daily')) echo "-selected" ?>" href="?period=daily"><?php print _('Daily');?></a>
6+
<a class="vst<?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'weekly')) echo "-selected" ?>" href="?period=weekly"><?php print _('Weekly');?></a>
7+
<a class="vst<?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'monthly')) echo "-selected" ?>" href="?period=monthly"><?php print _('Monthly');?></a>
8+
<a class="vst<?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'yearly')) echo "-selected" ?>" href="?period=yearly"><?php print _('Yearly');?></a>
99
</div>
1010
<div class="submenu-search-block">
1111
<form action="/search/" method="get">

web/templates/admin/list_stats.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<td style="padding: 2px 0 0 6px">
44
<div class="submenu-button-block">
55
<form action="/list/stats/" method="get" id="objects">
6-
<a class="vst" <?php if (empty($_GET['user'])) echo "style='color: #174f82'"; ?> href='/list/stats/'><?php print _('Overall Statistics');?></a>
6+
<a class="vst<?php if (empty($_GET['user'])) echo "-selected"; ?>" href='/list/stats/'><?php print _('Overall Statistics');?></a>
77
<div class="submenu-select-block">
88
<select class="submenu-select-dropdown" name="user">
99
<option value=""><?php print _('show per user');?></option>

web/templates/header.html

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
}
7171

7272
.top-link:active{
73-
color: #ccc;
74-
background: #999;
73+
color: #fff;
74+
background: #f79b44;
7575
}
7676

7777
.top-selected-link {
@@ -94,7 +94,12 @@
9494
}
9595

9696
.top-logout:hover {
97-
color: white;
97+
color: #;
98+
}
99+
100+
.top-logout:active {
101+
color: #fff;
102+
background-color: #f79b44;
98103
}
99104

100105
.nav-logo {
@@ -194,7 +199,7 @@
194199
}
195200

196201
.submenu-button {
197-
width: 120px;
202+
width: 130px;
198203
height: 24px;
199204
cursor: pointer;
200205
color: #333;
@@ -217,12 +222,14 @@
217222
}
218223

219224
.submenu-button:active {
220-
background-color: #e6e6e6;
225+
color: #fff;
226+
border: 1px solid #f79b44;
227+
background-color: #f79b44;
221228
}
222229

223230
.submenu-select-block {
224231
float:left;
225-
padding-left: 28px;
232+
padding-left: 18px;
226233
}
227234

228235
.submenu-select-link {
@@ -240,6 +247,12 @@
240247
text-decoration: underline;
241248
}
242249

250+
.submenu-select-link:active {
251+
color: #fff;
252+
background-color: #f79b44;
253+
text-decoration: underline;
254+
}
255+
243256
.submenu-select-dropdown {
244257
font-family:Arial, Helvetica, sans-serif;
245258
color: #333333;
@@ -300,7 +313,7 @@
300313
}
301314

302315
.vst {
303-
padding: 0 8px 0 0;
316+
padding: 0 4px 0 4px;
304317
margin: 0;
305318
text-decoration: none;
306319
color: #999;
@@ -313,7 +326,26 @@
313326
}
314327

315328
.vst:active {
329+
color: #fff;
330+
background-color: #f79b44;
331+
}
332+
333+
.vst-selected {
334+
padding: 0 4px 0 4px;
335+
margin: 0;
336+
text-decoration: none;
316337
color: #174f82;
338+
font-size: 12pt;
339+
float: left;
340+
}
341+
342+
.vst-selected:hover {
343+
text-decoration: underline;
344+
}
345+
346+
.vst-selected:active {
347+
color: #fff;
348+
background-color: #f79b44;
317349
}
318350

319351
.data {
@@ -656,13 +688,15 @@
656688
}
657689

658690
.button:active {
659-
background-color: #e6e6e6;
691+
color: #fff;
692+
border: 1px solid #f79b44;
693+
background-color: #f79b44;
660694
}
661695

662696
.genpass {
663697
color: #34536a;
664698
font-size: 8pt;
665-
padding: 0 5px 0 8px;
699+
padding: 0 5px;
666700
letter-spacing: 0.1em;
667701
text-decoration: underline;
668702
}
@@ -671,18 +705,29 @@
671705
color: #7fa1cb;
672706
}
673707

708+
.genpass:active {
709+
background-color: #f79b44;
710+
color: #fff;
711+
}
712+
674713
.vst-advanced {
675714
color: #34536a;
676715
font-size: 10pt;
677716
letter-spacing: 0.1em;
678717
text-decoration: none;
718+
padding: 0 2px;
679719
border-bottom: 1px solid #f79b44;
680720
}
681721

682722
.vst-advanced:hover {
683723
color: #7fa1cb;
684724
}
685725

726+
.vst-advanced:active {
727+
color: #fff;
728+
background-color: #f79b44;
729+
}
730+
686731
.fixed{
687732
position: fixed;
688733
border: none;

0 commit comments

Comments
 (0)