Revision ed80365b
Added by Stephen Beaver about 9 years ago
src/usr/local/www/css/Compact-RED.css | ||
---|---|---|
1 |
|
|
2 |
/* Compact-RED theme for pfSense by PiBa-NL */ |
|
3 |
|
|
4 |
@import url("/css/pfSense.css"); |
|
5 |
|
|
6 |
body { |
|
7 |
font-size: 12px; |
|
8 |
} |
|
9 |
|
|
10 |
.form-control { |
|
11 |
font-size: 12px; |
|
12 |
} |
|
13 |
|
|
14 |
.container.fixed { |
|
15 |
padding-top: 40px; |
|
16 |
} |
|
17 |
|
|
18 |
/* navigation */ |
|
19 |
.navbar { |
|
20 |
margin-bottom: 2px; |
|
21 |
min-height:30px; |
|
22 |
} |
|
23 |
|
|
24 |
.navbar-inverse { |
|
25 |
background-color: #600; |
|
26 |
} |
|
27 |
|
|
28 |
.navbar-brand > img { |
|
29 |
max-height: 26px; |
|
30 |
} |
|
31 |
|
|
32 |
.navbar-brand { |
|
33 |
padding: 2px 0 0 5px; |
|
34 |
height: 30px; |
|
35 |
} |
|
36 |
|
|
37 |
.navbar-inverse .navbar-nav >li>a { |
|
38 |
border-bottom: 5px solid #212121; |
|
39 |
color: #fff; |
|
40 |
} |
|
41 |
.navbar-inverse .navbar-nav >li>a:hover{ |
|
42 |
color: #ccc; |
|
43 |
} |
|
44 |
.text-muted { |
|
45 |
color: #BDBDBD; |
|
46 |
} |
|
47 |
.text-muted > a:hover { |
|
48 |
color: #ccc; |
|
49 |
} |
|
50 |
|
|
51 |
.nav>li>a { |
|
52 |
padding: 5px 19px 0px 19px; |
|
53 |
} |
|
54 |
.navbar-inverse .navbar-nav >li>a { |
|
55 |
border-bottom: 5px solid #600; |
|
56 |
} |
|
57 |
|
|
58 |
.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover { |
|
59 |
color: #fff; |
|
60 |
background-color: #600; |
|
61 |
} |
|
62 |
.nav-pills { |
|
63 |
margin-bottom: 0px; |
|
64 |
} |
|
65 |
|
|
66 |
.dropdown-menu>li>a { |
|
67 |
padding: 0px 20px; |
|
68 |
} |
|
69 |
|
|
70 |
.navbar-right>li>a { |
|
71 |
padding: 2px 15px 1px 15px; |
|
72 |
} |
|
73 |
|
|
74 |
.navbar-toggle { |
|
75 |
margin-top:0px; |
|
76 |
margin-bottom:0px; |
|
77 |
} |
|
78 |
.panel-default>.panel-heading { |
|
79 |
background-color: #900; |
|
80 |
} |
|
81 |
|
|
82 |
.form-control { |
|
83 |
margin-bottom: 2px; |
|
84 |
} |
|
85 |
|
|
86 |
.form-group { |
|
87 |
padding: 2px 5px 2px 5px; |
|
88 |
} |
|
89 |
.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th { |
|
90 |
padding:2px; |
|
91 |
} |
|
92 |
|
|
93 |
.header .context-links { |
|
94 |
top: 1px; |
|
95 |
} |
|
96 |
|
|
97 |
.breadcrumb { |
|
98 |
margin-bottom: 2px; |
|
99 |
padding: 0px 15px; |
|
100 |
font-size: 14px; |
|
101 |
} |
|
102 |
|
|
103 |
/** Page footer */ |
|
104 |
.footer { |
|
105 |
height: 40px; |
|
106 |
background-color: #600; |
|
107 |
} |
|
108 |
|
|
109 |
.btn |
|
110 |
{ |
|
111 |
padding: 2px 12px; |
|
112 |
} |
src/usr/local/www/system.php | ||
---|---|---|
490 | 490 |
$form->add($section); |
491 | 491 |
|
492 | 492 |
$csslist = array(); |
493 |
$css = glob("/usr/local/www/css/*.css"); |
|
494 |
foreach ($css as $file) { |
|
495 |
$file = basename($file); |
|
496 |
$csslist[$file] = pathinfo($file, PATHINFO_FILENAME); |
|
497 |
} |
|
498 | 493 |
|
499 |
asort($csslist); |
|
494 |
// List pfSense files, then any BETA files followed by any user-contributed files |
|
495 |
$cssfiles = glob("/usr/local/www/css/*.css"); |
|
496 |
|
|
497 |
if(is_array($cssfiles)) { |
|
498 |
arsort($cssfiles); |
|
499 |
$usrcss = $pfscss = $betacss = array(); |
|
500 |
|
|
501 |
foreach ($cssfiles as $css) { |
|
502 |
if (strpos($css, "BETA") != 0) { |
|
503 |
array_push($betacss, $css); |
|
504 |
} else if (strpos($css, "pfSense") != 0) { |
|
505 |
array_push($pfscss, $css); |
|
506 |
} else { |
|
507 |
array_push($usrcss, $css); |
|
508 |
} |
|
509 |
} |
|
510 |
|
|
511 |
$css = array_merge($pfscss, $betacss, $usrcss); |
|
512 |
|
|
513 |
foreach ($css as $file) { |
|
514 |
$file = basename($file); |
|
515 |
$csslist[$file] = pathinfo($file, PATHINFO_FILENAME); |
|
516 |
} |
|
517 |
} |
|
500 | 518 |
|
501 | 519 |
if (!isset($pconfig['webguicss']) || !isset($csslist[$pconfig['webguicss']])) { |
502 | 520 |
$pconfig['webguicss'] = "pfSense.css"; |
Also available in: Unified diff
Add Compact-RED theme and update system.php to sort available themes by pfSense, then BETA, then user supplied themes.
(cherry picked from commit 6a5c6661960e1cd39e3caf66a3caaeb2678d27b1)