h1, h2, h3, h4, h5, h6, p, pre, a, abbr, acronym, code, del, em, img, q, s,
small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset,
-form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td {
+form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td,
+.table, .tbody, .tfoot, .thead, .tr, .th, .td {
margin: 0;
padding: 0;
border: 0;
.cbi-page-actions {
background: #f5f5f5;
margin-bottom: 18px;
- padding: 17px 20px 18px 150px;
+ padding: 17px 20px 18px 17px;
border-top: 1px solid #ddd;
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
* Tables.less
* Tables for, you guessed it, tabular data
* ---------------------------------------- */
-table {
+.tr { display: table-row; }
+.table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; }
+.table[width="100%"], .th[width="100%"], .td[width="100%"] { width: 100%; }
+
+.table {
+ display: table;
width: 100%;
margin-bottom: 18px;
padding: 0;
border-collapse: collapse;
}
-table th, table td {
+.table .th, .table .td {
+ display: table-cell;
+ vertical-align: middle; /* Fixme */
padding: 10px 10px 9px;
line-height: 18px;
text-align: left;
}
-table th {
+.table .th {
padding-top: 9px;
font-weight: bold;
vertical-align: middle;
}
-table td {
+.table .td {
vertical-align: top;
border-top: 1px solid #ddd;
}
-table tbody th {
+.table .tbody .th {
border-top: 1px solid #ddd;
vertical-align: top;
}
padding: 3px 9px 3px 27px;
}
-:root .alert-message, :root .btn {
- border-radius: 0 0;
-}
-
button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
padding: 0;
border: 0;
.right { text-align: right !important; }
+.center { text-align: center !important; }
+
.cbi-value-field { line-height: 1.5em; }
.cbi-value-field input[type=checkbox],
border: none;
}
-table.cbi-section-table input,
-table.cbi-section-table textarea,
-table.cbi-section-table select {
+.table.cbi-section-table input,
+.table.cbi-section-table textarea,
+.table.cbi-section-table select {
width: auto;
}
-table.cbi-section-table td.cbi-section-table-cell {
+.table.cbi-section-table .td.cbi-section-table-cell {
white-space: nowrap;
text-align: right;
}
-table.cbi-section-table td.cbi-section-table-cell select {
+.table.cbi-section-table .td.cbi-section-table-cell select {
width: inherit;
}
-table.valign-middle td {
+.table.valign-middle .td {
vertical-align: middle;
}
}
div.cbi-value var,
-td.cbi-value-field var {
+.td.cbi-value-field var {
font-style: italic;
color: #0069D6;
}
display: block;
font-style: normal;
padding: 2px;
+ line-height: 19px;
+ white-space: pre;
}
.uci-change-list var ins,
.uci-change-list var del {
- /*display: inline;*/
- border: none;
+ display: inline;
+ /*border: none;*/
white-space: pre;
font-style: normal;
padding: 0px;
font-style: normal;
}
+.table { display: table; }
+.tr { display: table-row; }
+.thead { display: table-header-group; }
+.tbody { display: table-row-group; }
+.tfoot { display: table-footer-group; }
+.td, .th {
+ vertical-align: middle;
+ text-align: center;
+ display: table-cell;
+ padding: .5em;
+}
+
+.th {
+ font-weight: bold;
+}
+
+.table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; }
+.table[width="100%"], .th[width="100%"], .td[width="100%"] { width: 100%; }
+
.cbi-button-up,
.cbi-button-down,
.cbi-value-helpicon,
border-bottom: 1px solid #eee;
}
-table {
+table,
+.table {
border-spacing: 0;
border-collapse: collapse;
width: 100%;
border: 1px solid #eee;
}
-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,
+.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: .5rem;
border-top: 1px solid #ddd;
white-space: nowrap;
text-align: center;
}
-fieldset > table > tbody > tr:nth-of-type(2n) {
+fieldset > table > tbody > tr:nth-of-type(2n),
+fieldset > .table > .tbody > .tr:nth-of-type(2n) {
+ background-color: #f9f9f9;
+}
+
+fieldset > table > tbody > tr:nth-of-type(2n),
+fieldset > .table > .tbody > .tr:nth-of-type(2n) {
background-color: #f9f9f9;
}
/* fix multiple table */
-table table {
+table table,
+.table .table {
border: none;
}
-.cbi-value-field table {
+.cbi-value-field table,
+.cbi-value-field .table {
border: none;
}
-td > table > tbody > tr > td {
+td > table > tbody > tr > td,
+.td > .table > .tbody > .tr > .td {
border: none;
}
-.cbi-value-field > table > tbody > tr > td {
+.cbi-value-field > table > tbody > tr > td,
+.cbi-value-field > .table > .tbody > .tr > .td {
border: none;
}
text-align: right !important;
}
+.center {
+ text-align: center !important;
+}
+
.inline {
display: inline;
}
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
-td > .ifacebadge {
+td > .ifacebadge,
+.td > .ifacebadge {
background-color: #F0F0F0;
font-size: 0.9rem;
}
padding: 0.5rem;
}
-div.cbi-value var, td.cbi-value-field var {
+div.cbi-value var, td.cbi-value-field var, .td.cbi-value-field var {
font-style: italic;
color: #0069D6;
}
/* fix status overview */
-.node-status-overview > .main fieldset:nth-child(4) td:nth-child(2) {
+.node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2) {
white-space: normal;
}
/* fix status processes */
-.node-status-processes > .main table tr td:nth-child(3) {
+.node-status-processes > .main .table .tr .td:nth-child(3) {
white-space: normal;
}
padding: 0;
}
+.table { display: table; }
+.tr { display: table-row; }
+.thead { display: table-header-group; }
+.tbody { display: table-row-group; }
+.tfoot { display: table-footer-group; }
+.td, .th { display: table-cell; }
+.th { font-weight: bold; }
+
+.table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; }
+.table[width="100%"], .th[width="100%"], .td[width="100%"] { width: 100%; }
+
a img {
border: none;
text-decoration: none;
width: 20em;
}
-td select,
-td input[type=text],
-td input[type=password] {
+.td select,
+.td input[type=text],
+.td input[type=password] {
width: 99%;
}
vertical-align: middle;
}
-input.cbi-button {
- background-color: #EEEEEE;
- background-repeat: no-repeat;
- background-position: 1px center;
- border: 1px solid #CCCCCC;
+.cbi-button {
+ padding: 2px;
border-radius: 3px;
+ border: 1px solid #aaa;
+ background: #eee 1px center no-repeat;
}
-input.cbi-button:hover {
- border-color: #4A6B7C;
- background-color: #FFFFFF;
+.cbi-button:hover {
+ border-color: #4a6b7c;
+ background-color: #fff;
}
-input.cbi-button[disabled] {
- color: #CCCCCC;
- border-color: #CCCCCC;
- background-color: #EEEEEE;
+.cbi-button[disabled],
+.cbi-button[disabled]:hover {
+ opacity: .6;
cursor: default;
+ border-color: inherit;
+ background-color: inherit;
}
input.cbi-input-user {
background-image: url(../resources/cbi/fieldadd.gif);
color: #000000;
padding-left: 17px;
- padding-right: 1px;
}
input.cbi-input-reset,
padding-right: 1px;
}
+/*
input.cbi-input-apply,
input.cbi-button-apply {
background-image: url('../resources/cbi/apply.gif');
padding-left: 17px;
padding-right: 1px;
}
+*/
+
+input.cbi-input-apply:before,
+input.cbi-button-apply:before {
+ background-image: url('../resources/cbi/apply.gif');
+ border: 2px solid red;
+ width: 100px;
+ height: 100px;
+ content: ".";
+ display: block;
+ position: absolute;
+}
input.cbi-input-link,
input.cbi-button-link {
margin-left: 0.5em;
}
-table td,
-table th {
+table td, table th {
color: #000000;
}
-table.smalltext {
+.table .td, .table .th {
+ color: #000000;
+ padding: .25em 0;
+ text-align: center;
+ vertical-align: middle;
+}
+
+.table.smalltext {
background: #f5f5f5;
color: #000000;
border-top: 1px solid #666666;
border-collapse: collapse;
}
-table.smalltext tr:hover td {
+.table.smalltext .tr:hover .td {
background-color: #bbddee;
color: #000000;
}
-table.smalltext tr th {
+.table.smalltext .tr .th {
padding: 0 0.25em;
border-left: 1px solid #666666;
text-align: left;
}
-table.smalltext tr td {
+.table.smalltext .tr .td {
padding: 0 0.25em;
border-top: 1px solid #666666;
border-left: 1px solid #666666;
}
-table.cbi-section-table .cbi-rowstyle-1 {
+.table.cbi-section-table .cbi-rowstyle-1 {
background-color: #eeeeff;
color: #000000;
}
-table.cbi-section-table .cbi-rowstyle-1:hover,
-table.cbi-section-table .cbi-rowstyle-2:hover {
+.table.cbi-section-table .cbi-rowstyle-1:hover,
+.table.cbi-section-table .cbi-rowstyle-2:hover {
background-color: #b2c8d4;
color: #000000;
}
-table.cbi-section-table .cbi-section-table-cell {
+.table.cbi-section-table .cbi-section-table-cell {
padding: 3px;
white-space: nowrap;
}
padding: 0.25em 0;
}
+div.td.cbi-value-field {
+ width: auto;
+ vertical-align: middle;
+}
+
div.cbi-value-description {
font-size: 90%;
display: inline;
border-bottom: none;
}
-.cbi-section-node table div {
+.cbi-section-node .table div {
padding-bottom: 0;
border-bottom: none;
}
margin: 0.25em;
}
-table.cbi-section-table {
+.table.cbi-section-table {
width: 100%;
font-size: 95%;
}
-table.cbi-section-table th,
-table.cbi-section-table td {
+.table.cbi-section-table .th,
+.table.cbi-section-table .td {
text-align: center;
}
-tr.cbi-section-table-descr th {
+.tr.cbi-section-table-descr .th {
font-weight: normal;
font-size: 90%;
vertical-align: top;
}
-td.cbi-section-table-optionals {
+.td.cbi-section-table-optionals {
text-align: left !important;
padding-top: 1em;
}
background-color: #ffffff;
}
-td.cbi-value-error {
+.td.cbi-value-error {
border-color: red;
}
text-align: right !important;
}
+.center {
+ text-align: center !important;
+}
+
.luci {
position: absolute;
bottom: 0;
}
-.ifacebox {
- background-color: #FFFFFF;
- border: 1px solid #CCCCCC;
- margin: 0 10px;
- text-align: center;
- white-space: nowrap;
-}
-
-.ifacebox .ifacebox-head {
- border-bottom: 1px solid #CCCCCC;
+.ifacebadge, .ifacebox {
+ display: inline-flex;
+ align-content: center;
+ border: 1px solid #ccc;
+ border-radius: 3px;
padding: 2px;
+ background: #fff;
+ margin: .25em .5em;
}
-.ifacebox .ifacebox-body {
- padding: 2px;
+.ifacebadge > img {
+ margin-right: 2px;
}
-
-.ifacebadge {
- background-color: #FFFFFF;
- border: 1px solid #CCCCCC;
- padding: 1px 2px;
- margin-left: 2px;
- display: inline-block;
- cursor: default;
- white-space: nowrap;
- font-size: 11px;
- border-radius: 3px;
+.ifacebadge-active {
+ border-color: #000000;
+ font-weight: bold;
}
-.ifacebadge img {
- width: 16px;
- height: 16px;
- vertical-align: middle;
+.ifacebox {
+ flex-direction: column;
+ margin: 0 10px;
+ padding: 0;
+ min-width: 70px;
}
-.ifacebadge-active {
- border-color: #000000;
- font-weight: bold;
+.ifacebox > * {
+ padding: 2px;
}