You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
285 lines
6.1 KiB
285 lines
6.1 KiB
/*
|
|
* # Semantic Table - Flat
|
|
* http://github.com/quirkyinc/semantic
|
|
*
|
|
*
|
|
* Copyright 2013 Contributors
|
|
* Released under the MIT license
|
|
* http://opensource.org/licenses/MIT
|
|
*
|
|
* Released: April 24 2013
|
|
*/
|
|
/*******************************
|
|
Table
|
|
*******************************/
|
|
/* Prototype */
|
|
.ui.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.ui.table thead {
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
.ui.table tr,
|
|
.ui.table td {
|
|
border-collapse: collapse;
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
-ms-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
-webkit-transition: all 0.1s ease-out;
|
|
-moz-transition: all 0.1s ease-out;
|
|
-o-transition: all 0.1s ease-out;
|
|
-ms-transition: all 0.1s ease-out;
|
|
transition: all 0.1s ease-out;
|
|
}
|
|
.ui.table th {
|
|
cursor: auto;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
padding: 0.5em 0.7em;
|
|
vertical-align: middle;
|
|
}
|
|
.ui.table tfoot th {
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
.ui.table td {
|
|
padding: 0.40em 0.7em;
|
|
vertical-align: middle;
|
|
}
|
|
.ui.table tfoot {
|
|
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
/* Table Striping */
|
|
.ui.table tbody tr:nth-child(2n) {
|
|
background-color: rgba(0, 0, 0, 0.03);
|
|
}
|
|
/* Icons */
|
|
.ui.table > .icon {
|
|
vertical-align: baseline;
|
|
}
|
|
.ui.table > .icon:only-child {
|
|
margin: 0em;
|
|
}
|
|
/* table segment */
|
|
.ui.table.segment:after {
|
|
display: none;
|
|
}
|
|
.ui.table.segment.stacked:after {
|
|
display: block;
|
|
}
|
|
/*******************************
|
|
States
|
|
*******************************/
|
|
/*--------------
|
|
Hover
|
|
---------------*/
|
|
/* Celled */
|
|
.ui.celled.table tr:hover td {
|
|
background-color: rgba(0, 0, 0, 0.02);
|
|
color: #000000;
|
|
}
|
|
/* Sortable */
|
|
.ui.sortable.table thead th:hover {
|
|
background-image: none;
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
color: #333333;
|
|
}
|
|
.ui.sortable.table th.disabled:hover {
|
|
cursor: auto;
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
text-align: left;
|
|
font-weight: bold;
|
|
color: #333333;
|
|
color: rgba(0, 0, 0, 0.8);
|
|
}
|
|
/*--------------
|
|
Positive
|
|
---------------*/
|
|
.ui.table tr.positive td,
|
|
.ui.table td.positive {
|
|
background-color: #F2F8F0 !important;
|
|
color: #119000;
|
|
-moz-box-shadow: 0px 0px 1px 0px #3FF63B inset;
|
|
-webkit-box-shadow: 0px 0px 1px 0px #3FF63B inset;
|
|
box-shadow: 0px 0px 1px 0px #3FF63B inset;
|
|
/* border-color: #2FCB05 !important; */
|
|
|
|
}
|
|
.ui.celled.table tr.positive:hover td,
|
|
.ui.celled.table tr:hover td.positive,
|
|
.ui.table tr.positive:hover td,
|
|
.ui.table td:hover.positive,
|
|
.ui.table th:hover.positive {
|
|
background-color: #ECF5E9 !important;
|
|
color: #119000;
|
|
}
|
|
/*--------------
|
|
Negative
|
|
---------------*/
|
|
.ui.table tr.negative td,
|
|
.ui.table td.negative {
|
|
background-color: #F9F4F4;
|
|
color: #CD2929;
|
|
}
|
|
.ui.celled.table tr.negative:hover td,
|
|
.ui.celled.table tr:hover td.negative,
|
|
.ui.table tr.negative:hover td,
|
|
.ui.table td:hover.negative,
|
|
.ui.table th:hover.negative {
|
|
background-color: #F2E8E8 !important;
|
|
color: #CD2929;
|
|
}
|
|
/*--------------
|
|
Error
|
|
---------------*/
|
|
.ui.table tr.error td,
|
|
.ui.table td.error,
|
|
.ui.table th.error {
|
|
background-color: #F9F4F4 !important;
|
|
color: #CD2929;
|
|
-moz-box-shadow: 0px 0px 1px 0px #F3A2A2 inset;
|
|
-webkit-box-shadow: 0px 0px 1px 0px #F3A2A2 inset;
|
|
box-shadow: 0px 0px 1px 0px #F3A2A2 inset;
|
|
}
|
|
.ui.celled.table tr.error:hover td,
|
|
.ui.celled.table tr:hover td.error,
|
|
.ui.table tr.error:hover td,
|
|
.ui.table td:hover.error,
|
|
.ui.table th:hover.error {
|
|
background-color: #F2E8E8 !important;
|
|
color: #CD2929;
|
|
}
|
|
/*--------------
|
|
Warning
|
|
---------------*/
|
|
.ui.table tr.warning td,
|
|
.ui.table td.warning,
|
|
.ui.table th.warning {
|
|
background-color: #FBF6E9;
|
|
/* border-color: #CBB105 !important; */
|
|
|
|
color: #7D6C00;
|
|
-moz-box-shadow: 0px 0px 1px 0px #FFE569 inset;
|
|
-webkit-box-shadow: 0px 0px 1px 0px #FFE569 inset;
|
|
box-shadow: 0px 0px 1px 0px #FFE569 inset;
|
|
}
|
|
.ui.celled.table tr.warning:hover td,
|
|
.ui.celled.table tr:hover td.warning,
|
|
.ui.table tr.warning:hover td,
|
|
.ui.table td:hover.warning,
|
|
.ui.table th:hover.warning {
|
|
background-color: #F3EDDC !important;
|
|
color: #7D6C00;
|
|
}
|
|
/*--------------
|
|
Active
|
|
---------------*/
|
|
.ui.table tr.active td,
|
|
.ui.table tr td.active {
|
|
background-color: #F0F0F0 !important;
|
|
color: rgba(50, 50, 50, 0.9);
|
|
/* border-color: rgba(0, 0, 0, 0.15) !important; */
|
|
|
|
}
|
|
/*--------------
|
|
Disabled
|
|
---------------*/
|
|
.ui.table tr.disabled td,
|
|
.ui.table tr td.disabled,
|
|
.ui.table tr.disabled:hover td,
|
|
.ui.table tr:hover td.disabled {
|
|
color: rgba(150, 150, 150, 0.3);
|
|
}
|
|
/*******************************
|
|
Variations
|
|
*******************************/
|
|
/*--------------
|
|
Celled
|
|
---------------*/
|
|
.ui.celled.table {
|
|
color: rgba(25, 25, 25, 0.9);
|
|
}
|
|
.ui.celled.table tbody tr,
|
|
.ui.celled.table tfoot tr {
|
|
border: none;
|
|
}
|
|
.ui.celled.table th {
|
|
border: 1px solid #E0E0E0;
|
|
}
|
|
.ui.celled.table tbody td {
|
|
border: 1px solid #E0E0E0;
|
|
}
|
|
/* Sortable Table */
|
|
.ui.sortable.table thead th {
|
|
cursor: pointer;
|
|
color: #555555;
|
|
vertical-align: top;
|
|
}
|
|
.ui.sortable.table thead th.sorted,
|
|
.ui.sortable.table thead th.sorted:hover {
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
color: #EEEEEE;
|
|
}
|
|
.ui.sortable.table thead th:after {
|
|
display: inline-block;
|
|
content: '';
|
|
width: 1em;
|
|
opacity: 0.5;
|
|
margin: 0px 0px 0px 8px;
|
|
font-size: 18px;
|
|
line-height: 12px;
|
|
font-family: 'Icons';
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
text-decoration: inherit;
|
|
vertical-align: middle;
|
|
vertical-align: calc();
|
|
}
|
|
.ui.sortable.table thead th.ascending:after {
|
|
content: '\25b4';
|
|
}
|
|
.ui.sortable.table thead th.descending:after {
|
|
content: '\25be';
|
|
}
|
|
/*--------------
|
|
Inverted
|
|
---------------*/
|
|
.ui.inverted.table tbody tr:nth-child(2n) {
|
|
background-color: rgba(255, 255, 255, 0.06);
|
|
}
|
|
/*--------------
|
|
Collapsing
|
|
---------------*/
|
|
.ui.collapsing.table {
|
|
width: auto;
|
|
}
|
|
/*--------------
|
|
Padded
|
|
---------------*/
|
|
.ui.padded.table th,
|
|
.ui.padded.table td {
|
|
padding: 0.8em 1em;
|
|
}
|
|
.ui.compact.table th {
|
|
padding: 0.3em 0.5em;
|
|
}
|
|
.ui.compact.table td {
|
|
padding: 0.2em 0.5em;
|
|
}
|
|
/*--------------
|
|
Sizes
|
|
---------------*/
|
|
/* Small */
|
|
.ui.small.table {
|
|
font-size: 14px;
|
|
}
|
|
/* Standard */
|
|
.ui.table {
|
|
font-size: 16px;
|
|
}
|
|
/* Large */
|
|
.ui.large.table {
|
|
font-size: 18px;
|
|
}
|