|
|
/* * # 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 th, .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; background-color: rgba(0, 0, 0, 0.05); text-align: left; color: rgba(0, 0, 0, 0.5); 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, 50, 0.02); } /* 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 ---------------*/ /* 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; } .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; } .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; } .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 *******************************/ /*-------------- Column Count ---------------*/ .ui.two.column.table td { width: 50%; } .ui.three.column.table td { width: 33.3333%; } .ui.four.column.table td { width: 25%; } .ui.five.column.table td { width: 20%; } .ui.six.column.table td { width: 16.66667%; } .ui.seven.column.table td { width: 14.2857%; } .ui.eight.column.table td { width: 12.5%; } .ui.nine.column.table td { width: 11.1111%; } .ui.ten.column.table td { width: 10%; } .ui.eleven.column.table td { width: 9.0909%; } .ui.twelve.column.table td { width: 8.3333%; } .ui.thirteen.column.table td { width: 7.6923%; } .ui.fourteen.column.table td { width: 7.1428%; } .ui.fifteen.column.table td { width: 6.6666%; } .ui.sixteen.column.table td { width: 6.25%; } /*-------------- Celled ---------------*/ .ui.celled.table { color: rgba(0, 0, 0, 0.8); } .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; white-space: nowrap; } .ui.sortable.table thead th.sorted, .ui.sortable.table thead th.sorted:hover { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-color: rgba(0, 0, 0, 0.05); } .ui.sortable.table thead th:after { display: inline-block; content: ''; width: 1em; opacity: 0.8; margin: 0em 0em 0em 0.5em; font-family: 'Icons'; font-style: normal; font-weight: normal; text-decoration: inherit; vertical-align: text-top; } .ui.sortable.table thead th.ascending:after { content: '\25b4'; } .ui.sortable.table thead th.descending:after { content: '\25be'; } /*-------------- Inverted ---------------*/ .ui.inverted.table th { background-color: rgba(0, 0, 0, 0.15); color: rgba(255, 255, 255, 0.9); } .ui.inverted.table tbody tr:nth-child(2n) { background-color: rgba(255, 255, 255, 0.06); } /*-------------- Collapsing ---------------*/ .ui.collapsing.table { width: auto; } /*-------------- Basic ---------------*/ .ui.basic.table th { background-color: transparent; padding: 0.5em; font-weight: normal; } .ui.basic.table tbody tr { border-bottom: 1px solid rgba(0, 0, 0, 0.05); } .ui.basic.table td { padding: 0.8em 0.5em; } /*-------------- 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: 0.875em; } /* Standard */ .ui.table { font-size: 1em; } /* Large */ .ui.large.table { font-size: 1.1em; }
|