projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-theme-material: Decrease font and spacing
[project/luci.git]
/
themes
/
luci-theme-material
/
htdocs
/
luci-static
/
material
/
css
/
style.css
diff --git
a/themes/luci-theme-material/htdocs/luci-static/material/css/style.css
b/themes/luci-theme-material/htdocs/luci-static/material/css/style.css
index
066a86a
..
545c5fb
100755
(executable)
--- a/
themes/luci-theme-material/htdocs/luci-static/material/css/style.css
+++ b/
themes/luci-theme-material/htdocs/luci-static/material/css/style.css
@@
-57,7
+57,7
@@
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
font-family: inherit;
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
font-family: inherit;
- font-weight:
5
00;
+ font-weight:
4
00;
line-height: 1.1;
color: inherit;
}
line-height: 1.1;
color: inherit;
}
@@
-67,16
+67,16
@@
html {
-ms-text-size-adjust: 100%;
}
-ms-text-size-adjust: 100%;
}
+body {
+ font-size: 0.8rem;
+ background-color: #EEE;
+}
+
html, body {
margin: 0px;
padding: 0px;
height: 100%;
html, body {
margin: 0px;
padding: 0px;
height: 100%;
- font-family: "Helvetica Neue", Helvetica, Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
- font-size: 62.5%; /* font-size 1rem = 10px on default browser settings */
-}
-
-body {
- font-size: 1.3rem; /* 1.3rem = 13px */
+ font-family: Microsoft Yahei, WenQuanYi Micro Hei, sans-serif, "Helvetica Neue", Helvetica, Hiragino Sans GB;
}
select {
}
select {
@@
-92,23
+92,19
@@
input {
background-color: transparent;
color: rgba(0, 0, 0, .87);
border: none;
background-color: transparent;
color: rgba(0, 0, 0, .87);
border: none;
- border-bottom:
1
px solid rgba(0, 0, 0, .26);
+ border-bottom:
2
px solid rgba(0, 0, 0, .26);
outline: 0;
padding: 0;
box-shadow: none;
border-radius: 0;
background-image: none;
outline: 0;
padding: 0;
box-shadow: none;
border-radius: 0;
background-image: none;
- height:
2
rem;
- font-size:
1.1
rem;
+ height:
1.8
rem;
+ font-size:
0.8
rem;
}
select:not([multiple="multiple"]):focus,
input:focus {
}
select:not([multiple="multiple"]):focus,
input:focus {
- height: 2rem;
- height: calc(2rem + 1px);
- margin-bottom: -1px;
border-color: #0099CC;
border-color: #0099CC;
- border-width: 2px;
}
select[multiple="multiple"] {
}
select[multiple="multiple"] {
@@
-125,7
+121,7
@@
abbr {
cursor: help;
}
cursor: help;
}
-hr{
+hr
{
margin: 1rem 0;
border-color: #EEE;
opacity: 0.1;
margin: 1rem 0;
border-color: #EEE;
opacity: 0.1;
@@
-181,7
+177,7
@@
footer > a {
text-align: center;
margin-top: 2rem;
color: #888;
text-align: center;
margin-top: 2rem;
color: #888;
- font-size: 1.
3
rem;
+ font-size: 1.
2
rem;
}
.main > .loading > span > .loading-img:before {
}
.main > .loading > span > .loading-img:before {
@@
-211,18
+207,17
@@
footer > a {
float: left;
top: 4rem;
width: 15%;
float: left;
top: 4rem;
width: 15%;
- width: calc(0% + 1
7
rem);
+ width: calc(0% + 1
5
rem);
height: 100%;
height: calc(100% - 4rem);
background-color: white;
height: 100%;
height: calc(100% - 4rem);
background-color: white;
-
overflow-x: auto;
position: fixed;
}
.main-right {
width: 85%;
overflow-x: auto;
position: fixed;
}
.main-right {
width: 85%;
- width: calc(100% - 1
7
rem);
+ width: calc(100% - 1
5
rem);
float: right;
height: 100%;
background-color: #EEE;
float: right;
height: 100%;
background-color: #EEE;
@@
-251,7
+246,7
@@
header > .container {
}
header > .container > .brand {
}
header > .container > .brand {
- font-size: 1.
5
rem;
+ font-size: 1.
4
rem;
color: white;
text-decoration: none;
cursor: default;
color: white;
text-decoration: none;
cursor: default;
@@
-308,7
+303,7
@@
header > .container > .brand {
background-image: none;
min-width: 6rem;
padding: 0.5rem 1rem;
background-image: none;
min-width: 6rem;
padding: 0.5rem 1rem;
- font-size:
1.1
rem;
+ font-size:
0.9
rem;
line-height: 1.42857143;
color: #fff;
background-color: #5bc0de;
line-height: 1.42857143;
color: #fff;
background-color: #5bc0de;
@@
-349,7
+344,7
@@
header > .container > .brand {
padding: 0.5rem 1rem;
text-decoration: none;
cursor: default;
padding: 0.5rem 1rem;
text-decoration: none;
cursor: default;
- font-size: 1.
2
rem;
+ font-size: 1.
15
rem;
}
.main > .main-left > .nav > li:hover,
}
.main > .main-left > .nav > li:hover,
@@
-396,21
+391,21
@@
li {
}
h1 {
}
h1 {
- font-size:
4
rem;
+ font-size:
2
rem;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
h2 {
margin: 2rem 0 0 0;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
h2 {
margin: 2rem 0 0 0;
- font-size:
2.5
rem;
+ font-size:
1.8
rem;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
h3 {
margin: 2rem 0 0 0;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
h3 {
margin: 2rem 0 0 0;
- font-size:
2
rem;
+ font-size:
1.4
rem;
padding-bottom: 10px;
}
padding-bottom: 10px;
}
@@
-438,6
+433,10
@@
fieldset {
-webkit-overflow-scrolling: touch;
}
-webkit-overflow-scrolling: touch;
}
+.cbi-map-descr + fieldset {
+ margin-top: 1rem;
+}
+
fieldset > legend {
display: none !important;
}
fieldset > legend {
display: none !important;
}
@@
-454,8
+453,8
@@
fieldset > fieldset {
display: block;
line-height: 1;
color: #404040;
display: block;
line-height: 1;
color: #404040;
- font-size: 1.
9
rem;
- padding-bottom:
2
rem;
+ font-size: 1.
4
rem;
+ padding-bottom:
1
rem;
border-bottom: 1px solid #eee;
}
border-bottom: 1px solid #eee;
}
@@
-467,10
+466,8
@@
table {
}
table > tbody > tr > td, table > tbody > tr > th, table > tfoot > tr > td, table > tfoot > tr > th, table > thead > tr > td, table > thead > tr > th {
}
table > tbody > tr > td, table > tbody > tr > th, table > tfoot > tr > td, table > tfoot > tr > th, table > thead > tr > td, table > thead > tr > th {
- padding: 8px;
- line-height: 1.42857143;
+ padding: .5rem;
border-top: 1px solid #ddd;
border-top: 1px solid #ddd;
-
white-space: nowrap;
}
white-space: nowrap;
}
@@
-482,7
+479,7
@@
table > tbody > tr > td, table > tbody > tr > th, table > tfoot > tr > td, table
text-align: center;
}
text-align: center;
}
-fieldset > table > tbody > tr:nth-of-type(
odd
) {
+fieldset > table > tbody > tr:nth-of-type(
2n
) {
background-color: #f9f9f9;
}
background-color: #f9f9f9;
}
@@
-494,7
+491,7
@@
fieldset > table > tbody > tr:nth-of-type(odd) {
#conns > div,
#memtotal > div {
width: 100% !important;
#conns > div,
#memtotal > div {
width: 100% !important;
- height: 1.
4
rem !important;
+ height: 1.
2
rem !important;
}
#swaptotal > div > div,
}
#swaptotal > div > div,
@@
-503,7
+500,7
@@
fieldset > table > tbody > tr:nth-of-type(odd) {
#membuff > div > div,
#conns > div > div,
#memtotal > div > div {
#membuff > div > div,
#conns > div > div,
#memtotal > div > div {
- height: 1
.4rem
!important;
+ height: 1
00%
!important;
background-color: #0099CC !important;
}
background-color: #0099CC !important;
}
@@
-534,7
+531,7
@@
td > table > tbody > tr > td {
background-color: #F0F0F0;
transition: all 0.2s ease-in-out;
display: inline-block;
background-color: #F0F0F0;
transition: all 0.2s ease-in-out;
display: inline-block;
- padding: 0
.5rem 1
rem;
+ padding: 0
0.8
rem;
border: none;
border-radius: 0.2rem;
cursor: pointer;
border: none;
border-radius: 0.2rem;
cursor: pointer;
@@
-548,7
+545,7
@@
td > table > tbody > tr > td {
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
- font-size:
1
rem;
+ font-size:
0.8
rem;
width: auto !important;
}
width: auto !important;
}
@@
-610,6
+607,7
@@
form.inline + form.inline,
}
.cbi-input-reset,
}
.cbi-input-reset,
+.cbi-section-remove > .cbi-button,
.cbi-button-remove {
color: #fff !important;
background-color: #d9534f !important;
.cbi-button-remove {
color: #fff !important;
background-color: #d9534f !important;
@@
-631,14
+629,14
@@
form.inline + form.inline,
.cbi-tabmenu > li,
.tabs > li {
display: inline-block;
.cbi-tabmenu > li,
.tabs > li {
display: inline-block;
- padding: 0.
9
rem 0rem;
+ padding: 0.
6
rem 0rem;
}
.cbi-tabmenu > li > a,
.tabs > li > a {
text-decoration: none;
color: #404040;
}
.cbi-tabmenu > li > a,
.tabs > li > a {
text-decoration: none;
color: #404040;
- padding: 0.
9rem 1.5
rem;
+ padding: 0.
5rem 0.8
rem;
}
.tabs > li[class~="active"],
}
.tabs > li[class~="active"],
@@
-675,6
+673,11
@@
form.inline + form.inline,
background-color: #D4D4D4;
}
background-color: #D4D4D4;
}
+.cbi-section-remove:nth-of-type(2n),
+.cbi-section-node:nth-of-type(2n){
+ background-color: #f9f9f9;
+}
+
.cbi-section-node-tabbed {
padding: 0;
margin-top: 0;
.cbi-section-node-tabbed {
padding: 0;
margin-top: 0;
@@
-690,6
+693,7
@@
form.inline + form.inline,
.cbi-value-field,
.cbi-value-description {
display: table-cell;
.cbi-value-field,
.cbi-value-description {
display: table-cell;
+ line-height: 1.25;
}
.cbi-value-helpicon > img {
}
.cbi-value-helpicon > img {
@@
-717,7
+721,7
@@
form.inline + form.inline,
}
.cbi-value {
}
.cbi-value {
- padding: 1rem;
+ padding:
0.3rem
1rem;
display: inline-block;
width: 100%;
}
display: inline-block;
width: 100%;
}
@@
-732,7
+736,7
@@
form.inline + form.inline,
}
.cbi-rowstyle-2 .cbi-button-up,
}
.cbi-rowstyle-2 .cbi-button-up,
-.cbi-rowstyle-2 .cbi-button-down{
+.cbi-rowstyle-2 .cbi-button-down
{
background-color: #FFF !important;
}
background-color: #FFF !important;
}
@@
-768,7
+772,7
@@
form.inline + form.inline,
.cbi-page-actions {
border-top: 1px solid #eee;
.cbi-page-actions {
border-top: 1px solid #eee;
- padding-top:
2
rem;
+ padding-top:
1
rem;
text-align: right;
}
text-align: right;
}
@@
-792,18
+796,23
@@
form.inline + form.inline,
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
+td > .ifacebadge {
+ background-color: #F0F0F0;
+ font-size: 0.9rem;
+}
+
.ifacebadge > img {
float: right;
.ifacebadge > img {
float: right;
- margin
-left:
0.3rem;
+ margin
: 0
0.3rem;
}
/*textarea*/
.cbi-input-textarea {
width: 100%;
}
/*textarea*/
.cbi-input-textarea {
width: 100%;
- min-height: 1
6
rem;
- padding:
1
rem;
- font-size: 0.
9
rem;
+ min-height: 1
4
rem;
+ padding:
0.8
rem;
+ font-size: 0.
8
rem;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: black;
}
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: black;
}
@@
-933,7
+942,26
@@
form.inline + form.inline,
.cbi-value-field .cbi-input-checkbox,
.cbi-value-field .cbi-input-radio {
.cbi-value-field .cbi-input-checkbox,
.cbi-value-field .cbi-input-radio {
- margin-top: 0.3rem;
+ margin-top: 0.5rem;
+ height: 1rem;
+}
+
+.cbi-value-field > input + .cbi-value-description {
+ padding: 0;
+}
+
+.cbi-value-field > ul > li {
+ display: flex;
+}
+
+.cbi-value-field > ul > li > label {
+ margin-top: 0.5rem;
+}
+
+.cbi-value-field > ul > li .ifacebadge {
+ background-color: #eee;
+ margin-left: 0.4rem;
+ margin-top: -0.5rem;
}
.cbi-section-table-row > .cbi-value-field .cbi-input-select {
}
.cbi-section-table-row > .cbi-value-field .cbi-input-select {
@@
-944,14
+972,19
@@
form.inline + form.inline,
margin: 0.5rem;
}
margin: 0.5rem;
}
+.cbi-section-remove {
+ padding: 0.5rem;
+}
+
div.cbi-value var, td.cbi-value-field var {
font-style: italic;
color: #0069D6;
}
small {
div.cbi-value var, td.cbi-value-field var {
font-style: italic;
color: #0069D6;
}
small {
- font-size:
small
;
+ font-size:
90%
;
white-space: normal;
white-space: normal;
+ line-height: 1.42857143;
}
.cbi-button-up,
}
.cbi-button-up,
@@
-959,7
+992,7
@@
small {
display: inline-block;
min-width: 0;
padding: 0.2rem 0.3rem;
display: inline-block;
min-width: 0;
padding: 0.2rem 0.3rem;
- font-size: 1.
3
rem;
+ font-size: 1.
2
rem;
}
.cbi-optionals {
}
.cbi-optionals {
@@
-976,7
+1009,7
@@
small {
-moz-border-radius: 3px;
white-space: pre-wrap;
word-wrap: break-word;
-moz-border-radius: 3px;
white-space: pre-wrap;
word-wrap: break-word;
- font-size: 1.
5
rem;
+ font-size: 1.
4
rem;
color: #404040;
}
color: #404040;
}
@@
-998,7
+1031,7
@@
header > .container > .pull-right > * {
.label {
padding: 0.3rem 0.8rem;
.label {
padding: 0.3rem 0.8rem;
- font-size:
1
rem;
+ font-size:
0.8
rem;
font-weight: bold;
color: #ffffff !important;
text-transform: uppercase;
font-weight: bold;
color: #ffffff !important;
text-transform: uppercase;
@@
-1115,6
+1148,7
@@
header > .container > .pull-right > * {
/* fix Services Network Shares*/
.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
margin-bottom: 1rem;
/* fix Services Network Shares*/
.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
margin-bottom: 1rem;
+ width: auto;
}
.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
}
.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
@@
-1137,7
+1171,7
@@
header > .container > .pull-right > * {
}
.node-system-packages > .main .cbi-tabmenu > li > a, .tabs > li > a {
}
.node-system-packages > .main .cbi-tabmenu > li > a, .tabs > li > a {
- padding: 0.5rem
1
rem;
+ padding: 0.5rem
0.8
rem;
}
.node-system-packages > .main .cbi-value > pre {
}
.node-system-packages > .main .cbi-value > pre {
@@
-1168,25
+1202,28
@@
header > .container > .pull-right > * {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
}
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
}
+.node-system-flashops form.inline + form.inline {
+ margin-left: 0;
+}
+
#cbi-firewall-redirect table *,
#cbi-network-switch_vlan table *,
#cbi-firewall-redirect table *,
#cbi-network-switch_vlan table *,
-#cbi-firewall-zone table *{
+#cbi-firewall-zone table *
{
font-size: small;
}
#cbi-firewall-redirect table input[type="text"],
#cbi-network-switch_vlan table input[type="text"],
font-size: small;
}
#cbi-firewall-redirect table input[type="text"],
#cbi-network-switch_vlan table input[type="text"],
-#cbi-firewall-zone table input[type="text"]{
+#cbi-firewall-zone table input[type="text"]
{
width: 5rem;
}
#cbi-firewall-redirect table select,
#cbi-network-switch_vlan table select,
width: 5rem;
}
#cbi-firewall-redirect table select,
#cbi-network-switch_vlan table select,
-#cbi-firewall-zone table select{
+#cbi-firewall-zone table select
{
min-width: 3.5rem;
}
min-width: 3.5rem;
}
-
/* language fix */
body.lang_pl.node-main-login .cbi-value-title {
width: 12rem;
/* language fix */
body.lang_pl.node-main-login .cbi-value-title {
width: 12rem;
@@
-1194,17
+1231,16
@@
body.lang_pl.node-main-login .cbi-value-title {
@media screen and (max-width: 1600px) {
.main-left {
@media screen and (max-width: 1600px) {
.main-left {
- width: calc(0% + 1
5
rem);
+ width: calc(0% + 1
3
rem);
}
.main-right {
}
.main-right {
- width: calc(100% - 1
5
rem);
+ width: calc(100% - 1
3
rem);
}
.cbi-button {
padding: 0.3rem 0.6rem;
}
.cbi-button {
padding: 0.3rem 0.6rem;
- font-size: 1rem;
- line-height: 1.5;
+ font-size: 0.8rem;
}
header > .container > .pull-right > * {
}
header > .container > .pull-right > * {
@@
-1262,23
+1298,23
@@
body.lang_pl.node-main-login .cbi-value-title {
}
.panel-title {
}
.panel-title {
- font-size: 1.
3
rem;
+ font-size: 1.
1
rem;
padding-bottom: 1rem;
}
table {
padding-bottom: 1rem;
}
table {
- font-size: 0.
8
rem !important;
+ font-size: 0.
7
rem !important;
width: 100% !important;
}
.main > .main-left > .nav > li,
.main > .main-left > .nav > li a,
.main > .main-left > .nav > .slide > .menu {
width: 100% !important;
}
.main > .main-left > .nav > li,
.main > .main-left > .nav > li a,
.main > .main-left > .nav > .slide > .menu {
- font-size:
1.1
rem;
+ font-size:
0.9
rem;
}
.main > .main-left > .nav > .slide > .slide-menu > li > a {
}
.main > .main-left > .nav > .slide > .slide-menu > li > a {
- font-size: 0.
9
rem;
+ font-size: 0.
7
rem;
}
}
}
}
@@
-1335,7
+1371,7
@@
body.lang_pl.node-main-login .cbi-value-title {
}
#diag-rc-output > pre {
}
#diag-rc-output > pre {
- font-size: 1
.2
rem;
+ font-size: 1rem;
}
.node-main-login > .main .cbi-value-title {
}
.node-main-login > .main .cbi-value-title {
@@
-1344,6
+1380,10
@@
body.lang_pl.node-main-login .cbi-value-title {
}
@media screen and (max-width: 480px) {
}
@media screen and (max-width: 480px) {
+ body {
+ font-size: 1rem;
+ }
+
fieldset {
padding: 1rem;
margin: 1rem 0 0 0;
fieldset {
padding: 1rem;
margin: 1rem 0 0 0;
@@
-1465,12
+1505,12
@@
body.lang_pl.node-main-login .cbi-value-title {
-webkit-overflow-scrolling: touch;
}
-webkit-overflow-scrolling: touch;
}
- .node-status-iptables > .main div > .cbi-map > form input[type="submit"]{
+ .node-status-iptables > .main div > .cbi-map > form input[type="submit"]
{
width: 100% !important;
margin: 0;
}
width: 100% !important;
margin: 0;
}
- .node-status-iptables > .main div > .cbi-map > form input[type="submit"] + input[type="submit"]{
+ .node-status-iptables > .main div > .cbi-map > form input[type="submit"] + input[type="submit"]
{
margin-top: 1rem;
}
}
margin-top: 1rem;
}
}
@@
-1506,4
+1546,4
@@
body.lang_pl.node-main-login .cbi-value-title {
.cbi-value-field .cbi-input-select {
min-width: 25rem;
}
.cbi-value-field .cbi-input-select {
min-width: 25rem;
}
-}
+}
\ No newline at end of file