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.

323 lines
6.3 KiB

  1. /*
  2. * # Semantic Table - Flat
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 24 2013
  11. */
  12. /*******************************
  13. Table
  14. *******************************/
  15. /* Prototype */
  16. .ui.table {
  17. width: 100%;
  18. background-color: #FFFFFF;
  19. border-collapse: collapse;
  20. color: #444444;
  21. color: rgba(0, 0, 0, 0.75);
  22. -webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
  23. -moz-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
  24. box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
  25. }
  26. .ui.table tr,
  27. .ui.table td {
  28. border-collapse: collapse;
  29. -webkit-box-sizing: border-box;
  30. -moz-box-sizing: border-box;
  31. -ms-box-sizing: border-box;
  32. box-sizing: border-box;
  33. -webkit-transition: background-color 0.3s ease-out;
  34. -moz-transition: background-color 0.3s ease-out;
  35. -o-transition: background-color 0.3s ease-out;
  36. -ms-transition: background-color 0.3s ease-out;
  37. transition: background-color 0.3s ease-out;
  38. }
  39. .ui.table thead {
  40. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  41. }
  42. .ui.table th {
  43. cursor: auto;
  44. text-align: left;
  45. font-weight: bold;
  46. background-color: rgba(0, 0, 0, 0.03);
  47. background-image: -webkit-linear-gradient(transparent 0%, rgba(0, 0, 0, 0.06) 100%);
  48. background-image: -moz-linear-gradient(transparent 0%, rgba(0, 0, 0, 0.06) 100%);
  49. background-image: -o-linear-gradient(transparent 0%, rgba(0, 0, 0, 0.06) 100%);
  50. background-image: -ms-linear-gradient(transparent 0%, rgba(0, 0, 0, 0.06) 100%);
  51. background-image: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.06) 100%);
  52. color: rgba(0, 0, 0, 0.8);
  53. padding: 0.5em 0.7em;
  54. vertical-align: middle;
  55. }
  56. .ui.table td {
  57. padding: 0.40em 0.7em;
  58. vertical-align: middle;
  59. }
  60. .ui.table tfoot th {
  61. background-color: #FFFFFF;
  62. }
  63. .ui.table tfoot {
  64. border-top: 1px dotted rgba(0, 0, 0, 0.1);
  65. }
  66. /* Table Striping */
  67. .ui.table tbody tr:nth-child(2n) {
  68. background-color: rgba(0, 0, 0, 0.03);
  69. }
  70. /* Icons */
  71. .ui.table i.icon {
  72. vertical-align: middle;
  73. margin: 0px;
  74. }
  75. /*******************************
  76. States
  77. *******************************/
  78. /*--------------
  79. Hover
  80. ---------------*/
  81. /* Grid */
  82. .ui.grid.table tr:hover td {
  83. background-color: rgba(0, 0, 0, 0.02);
  84. color: rgba(0, 0, 0, 1);
  85. }
  86. /* Sortable */
  87. .ui.sortable.table thead th:hover {
  88. background-image: none;
  89. background-color: rgba(0, 0, 0, 0.04);
  90. color: #333333;
  91. }
  92. .ui.sortable.table th.disabled:hover {
  93. cursor: auto;
  94. background-color: rgba(0, 0, 0, 0.1);
  95. text-align: left;
  96. font-weight: bold;
  97. color: #333333;
  98. color: rgba(0, 0, 0, 0.8);
  99. }
  100. /*--------------
  101. Positive
  102. ---------------*/
  103. .ui.table tr.positive td,
  104. .ui.table td.positive {
  105. background-color: #EEFFE9;
  106. color: #119000;
  107. /* border-color: #2FCB05 !important; */
  108. }
  109. .ui.grid.table tr.positive:hover td,
  110. .ui.grid.table tr:hover td.positive,
  111. .ui.table tr.positive:hover td,
  112. .ui.table td:hover.positive,
  113. .ui.table th:hover.positive {
  114. background-color: #DEF5D7 !important;
  115. color: #119000;
  116. }
  117. /*--------------
  118. Negative
  119. ---------------*/
  120. .ui.table tr.negative td,
  121. .ui.table td.negative {
  122. background-color: #F8EBEB;
  123. color: #AD0000;
  124. /* border-color: #B06C6C !important; */
  125. }
  126. .ui.grid.table tr.negative:hover td,
  127. .ui.grid.table tr:hover td.negative,
  128. .ui.table tr.negative:hover td,
  129. .ui.table td:hover.negative,
  130. .ui.table th:hover.negative {
  131. background-color: #F1DFDF !important;
  132. color: #AD0000;
  133. }
  134. /*--------------
  135. Error
  136. ---------------*/
  137. .ui.table tr.error td,
  138. .ui.table td.error,
  139. .ui.table th.error {
  140. background-color: #F8EBEB;
  141. color: #AD0000;
  142. /* border-color: #B06C6C !important; */
  143. }
  144. .ui.grid.table tr.error:hover td,
  145. .ui.grid.table tr:hover td.error,
  146. .ui.table tr.error:hover td,
  147. .ui.table td:hover.error,
  148. .ui.table th:hover.error {
  149. background-color: #F1DFDF !important;
  150. color: #AD0000;
  151. }
  152. /*--------------
  153. Warning
  154. ---------------*/
  155. .ui.table tr.warning td,
  156. .ui.table td.warning,
  157. .ui.table th.warning {
  158. background-color: #F6F3D5;
  159. /* border-color: #CBB105 !important; */
  160. color: #7D6C00;
  161. }
  162. .ui.grid.table tr.warning:hover td,
  163. .ui.grid.table tr:hover td.warning,
  164. .ui.table tr.warning:hover td,
  165. .ui.table td:hover.warning,
  166. .ui.table th:hover.warning {
  167. background-color: #F3EFC8 !important;
  168. color: #7D6C00;
  169. }
  170. /*--------------
  171. Active
  172. ---------------*/
  173. .ui.table tr.active td,
  174. .ui.table tr td.active {
  175. background-color: #E8E8E8 !important;
  176. font-weight: bold;
  177. color: #555555;
  178. /* border-color: rgba(0, 0, 0, 0.15) !important; */
  179. }
  180. /*******************************
  181. Variations
  182. *******************************/
  183. /*--------------
  184. Grid
  185. ---------------*/
  186. .ui.grid.table {
  187. color: rgba(0, 0, 0, 0.55);
  188. }
  189. .ui.grid.table tbody tr,
  190. .ui.grid.table tfoot tr {
  191. border: none;
  192. }
  193. .ui.grid.table th {
  194. border: 1px solid #E0E0E0;
  195. }
  196. .ui.grid.table tbody td {
  197. border: 1px solid #E0E0E0;
  198. -webkit-transition: color 0.5s ease-out;
  199. -moz-transition: color 0.5s ease-out;
  200. -o-transition: color 0.5s ease-out;
  201. -ms-transition: color 0.5s ease-out;
  202. transition: color 0.5s ease-out;
  203. }
  204. /* Sortable Table */
  205. .ui.sortable.table th {
  206. cursor: pointer;
  207. color: #555555;
  208. vertical-align: top;
  209. }
  210. .ui.sortable.table th.sorted,
  211. .ui.sortable.table th.sorted:hover {
  212. background-color: rgba(0, 0, 0, 0.1);
  213. border-left: 1px solid rgba(0, 0, 0, 0.1);
  214. border-right: 1px solid rgba(0, 0, 0, 0.1);
  215. color: #333333;
  216. }
  217. .ui.sortable.table th:after {
  218. display: inline-block;
  219. content: '';
  220. width: 1em;
  221. opacity: 0.5;
  222. margin: 0px 0px 0px 8px;
  223. font-size: 18px;
  224. line-height: 12px;
  225. font-family: 'Icons';
  226. font-style: normal;
  227. font-weight: normal;
  228. text-decoration: inherit;
  229. vertical-align: middle;
  230. vertical-align: calc();
  231. }
  232. .ui.sortable.table th.ascending:after {
  233. content: '\25b4';
  234. }
  235. .ui.sortable.table th.descending:after {
  236. content: '\25be';
  237. }
  238. /*--------------
  239. Collapsing
  240. ---------------*/
  241. .ui.collapsing.table {
  242. width: auto;
  243. }
  244. /*--------------
  245. Padded
  246. ---------------*/
  247. .ui.padded.table th,
  248. .ui.padded.table td {
  249. padding: 0.8em 1em;
  250. }
  251. .ui.compact.table th {
  252. padding: 0.3em 0.5em;
  253. }
  254. .ui.compact.table td {
  255. padding: 0.2em 0.5em;
  256. }
  257. /*--------------
  258. Sizes
  259. ---------------*/
  260. /* Small */
  261. .ui.small.table {
  262. font-size: 14px;
  263. }
  264. /* Standard */
  265. .ui.table {
  266. font-size: 16px;
  267. }
  268. /* Large */
  269. .ui.large.table {
  270. font-size: 18px;
  271. }