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.

510 lines
10 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic - Table
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Table
  13. *******************************/
  14. /* Prototype */
  15. .ui.table {
  16. width: 100%;
  17. border-collapse: collapse;
  18. }
  19. /* Table Content */
  20. .ui.table th,
  21. .ui.table tr,
  22. .ui.table td {
  23. border-collapse: collapse;
  24. -webkit-box-sizing: border-box;
  25. -moz-box-sizing: border-box;
  26. -ms-box-sizing: border-box;
  27. box-sizing: border-box;
  28. -webkit-transition: all 0.1s ease-out;
  29. -moz-transition: all 0.1s ease-out;
  30. -o-transition: all 0.1s ease-out;
  31. -ms-transition: all 0.1s ease-out;
  32. transition: all 0.1s ease-out;
  33. }
  34. /* Headers */
  35. .ui.table thead {
  36. border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  37. }
  38. .ui.table tfoot th {
  39. background-color: rgba(0, 0, 0, 0.03);
  40. }
  41. .ui.table th {
  42. cursor: auto;
  43. background-color: rgba(0, 0, 0, 0.05);
  44. text-align: right;
  45. color: rgba(0, 0, 0, 0.8);
  46. padding: 0.5em 0.7em;
  47. vertical-align: middle;
  48. }
  49. .ui.table thead th:first-child {
  50. border-radius: 0px 5px 0px 0px;
  51. }
  52. .ui.table thead th:last-child {
  53. border-radius: 5px 0px 0px 0px;
  54. }
  55. .ui.table tfoot th:first-child {
  56. border-radius: 0px 0px 5px 0px;
  57. }
  58. .ui.table tfoot th:last-child {
  59. border-radius: 0px 0px 0px 5px;
  60. }
  61. /* Table Cells */
  62. .ui.table td {
  63. padding: 0.40em 0.7em;
  64. vertical-align: middle;
  65. }
  66. /* Footer */
  67. .ui.table tfoot {
  68. border-top: 1px solid rgba(0, 0, 0, 0.03);
  69. }
  70. .ui.table tfoot th {
  71. font-weight: normal;
  72. font-style: italic;
  73. }
  74. /* Table Striping */
  75. .ui.table tbody tr:nth-child(2n) {
  76. background-color: rgba(0, 0, 50, 0.02);
  77. }
  78. /* Icons */
  79. .ui.table > .icon {
  80. vertical-align: baseline;
  81. }
  82. .ui.table > .icon:only-child {
  83. margin: 0em;
  84. }
  85. /* Table Segment */
  86. .ui.table.segment:after {
  87. display: none;
  88. }
  89. .ui.table.segment.stacked:after {
  90. display: block;
  91. }
  92. /* Responsive */
  93. @media only screen and (max-width: 768px) {
  94. .ui.table {
  95. display: block;
  96. padding: 0em;
  97. }
  98. .ui.table thead,
  99. .ui.table tfoot {
  100. display: none;
  101. }
  102. .ui.table tbody {
  103. display: block;
  104. }
  105. .ui.table tr {
  106. display: block;
  107. }
  108. .ui.table tr > td {
  109. width: 100% !important;
  110. display: block;
  111. border: none !important;
  112. padding: 0.25em 0.75em;
  113. box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05) !important;
  114. }
  115. .ui.table td:first-child {
  116. font-weight: bold;
  117. padding-top: 1em;
  118. }
  119. .ui.table td:last-child {
  120. box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1) inset !important;
  121. padding-bottom: 1em;
  122. }
  123. /* Clear BG Colors */
  124. .ui.table tr > td.warning,
  125. .ui.table tr > td.error,
  126. .ui.table tr > td.active,
  127. .ui.table tr > td.positive,
  128. .ui.table tr > td.negative {
  129. background-color: transparent !important;
  130. }
  131. }
  132. /*******************************
  133. States
  134. *******************************/
  135. /*--------------
  136. Hover
  137. ---------------*/
  138. /* Sortable */
  139. .ui.sortable.table th.disabled:hover {
  140. cursor: auto;
  141. text-align: right;
  142. font-weight: bold;
  143. color: #333333;
  144. color: rgba(0, 0, 0, 0.8);
  145. }
  146. .ui.sortable.table thead th:hover {
  147. background-color: rgba(0, 0, 0, 0.13);
  148. color: rgba(0, 0, 0, 0.8);
  149. }
  150. /* Inverted Sortable */
  151. .ui.inverted.sortable.table thead th:hover {
  152. background-color: rgba(255, 255, 255, 0.13);
  153. color: #ffffff;
  154. }
  155. /*--------------
  156. Positive
  157. ---------------*/
  158. .ui.table tr.positive,
  159. .ui.table td.positive {
  160. -webkit-box-shadow: 2px 0px 0px #119000 inset;
  161. -moz-box-shadow: 2px 0px 0px #119000 inset;
  162. box-shadow: 2px 0px 0px #119000 inset;
  163. }
  164. .ui.table tr.positive td,
  165. .ui.table td.positive {
  166. background-color: #F2F8F0 !important;
  167. color: #119000 !important;
  168. }
  169. .ui.celled.table tr.positive:hover td,
  170. .ui.celled.table tr:hover td.positive,
  171. .ui.table tr.positive:hover td,
  172. .ui.table td:hover.positive,
  173. .ui.table th:hover.positive {
  174. background-color: #ECF5E9 !important;
  175. color: #119000 !important;
  176. }
  177. /*--------------
  178. Negative
  179. ---------------*/
  180. .ui.table tr.negative,
  181. .ui.table td.negative {
  182. -webkit-box-shadow: 2px 0px 0px #CD2929 inset;
  183. -moz-box-shadow: 2px 0px 0px #CD2929 inset;
  184. box-shadow: 2px 0px 0px #CD2929 inset;
  185. }
  186. .ui.table tr.negative td,
  187. .ui.table td.negative {
  188. background-color: #F9F4F4;
  189. color: #CD2929 !important;
  190. }
  191. .ui.celled.table tr.negative:hover td,
  192. .ui.celled.table tr:hover td.negative,
  193. .ui.table tr.negative:hover td,
  194. .ui.table td:hover.negative,
  195. .ui.table th:hover.negative {
  196. background-color: #F2E8E8;
  197. color: #CD2929;
  198. }
  199. /*--------------
  200. Error
  201. ---------------*/
  202. .ui.table tr.error,
  203. .ui.table td.error {
  204. -webkit-box-shadow: 2px 0px 0px #CD2929 inset;
  205. -moz-box-shadow: 2px 0px 0px #CD2929 inset;
  206. box-shadow: 2px 0px 0px #CD2929 inset;
  207. }
  208. .ui.table tr.error td,
  209. .ui.table td.error,
  210. .ui.table th.error {
  211. background-color: #F9F4F4;
  212. color: #CD2929;
  213. }
  214. .ui.celled.table tr.error:hover td,
  215. .ui.celled.table tr:hover td.error,
  216. .ui.table tr.error:hover td,
  217. .ui.table td:hover.error,
  218. .ui.table th:hover.error {
  219. background-color: #F2E8E8;
  220. color: #CD2929;
  221. }
  222. /*--------------
  223. Warning
  224. ---------------*/
  225. .ui.table tr.warning,
  226. .ui.table td.warning {
  227. -webkit-box-shadow: 2px 0px 0px #7D6C00 inset;
  228. -moz-box-shadow: 2px 0px 0px #7D6C00 inset;
  229. box-shadow: 2px 0px 0px #7D6C00 inset;
  230. }
  231. .ui.table tr.warning td,
  232. .ui.table td.warning,
  233. .ui.table th.warning {
  234. background-color: #FBF6E9;
  235. color: #7D6C00;
  236. }
  237. .ui.celled.table tr.warning:hover td,
  238. .ui.celled.table tr:hover td.warning,
  239. .ui.table tr.warning:hover td,
  240. .ui.table td:hover.warning,
  241. .ui.table th:hover.warning {
  242. background-color: #F3EDDC;
  243. color: #7D6C00;
  244. }
  245. /*--------------
  246. Active
  247. ---------------*/
  248. .ui.table tr.active,
  249. .ui.table td.active {
  250. -webkit-box-shadow: 2px 0px 0px rgba(50, 50, 50, 0.9) inset;
  251. -moz-box-shadow: 2px 0px 0px rgba(50, 50, 50, 0.9) inset;
  252. box-shadow: 2px 0px 0px rgba(50, 50, 50, 0.9) inset;
  253. }
  254. .ui.table tr.active td,
  255. .ui.table tr td.active {
  256. background-color: #E0E0E0;
  257. color: rgba(50, 50, 50, 0.9);
  258. /* border-color: rgba(0, 0, 0, 0.15) !important; */
  259. }
  260. /*--------------
  261. Disabled
  262. ---------------*/
  263. .ui.table tr.disabled td,
  264. .ui.table tr td.disabled,
  265. .ui.table tr.disabled:hover td,
  266. .ui.table tr:hover td.disabled {
  267. color: rgba(150, 150, 150, 0.3);
  268. }
  269. /*******************************
  270. Variations
  271. *******************************/
  272. /*--------------
  273. Column Count
  274. ---------------*/
  275. .ui.two.column.table td {
  276. width: 50%;
  277. }
  278. .ui.three.column.table td {
  279. width: 33.3333%;
  280. }
  281. .ui.four.column.table td {
  282. width: 25%;
  283. }
  284. .ui.five.column.table td {
  285. width: 20%;
  286. }
  287. .ui.six.column.table td {
  288. width: 16.66667%;
  289. }
  290. .ui.seven.column.table td {
  291. width: 14.2857%;
  292. }
  293. .ui.eight.column.table td {
  294. width: 12.5%;
  295. }
  296. .ui.nine.column.table td {
  297. width: 11.1111%;
  298. }
  299. .ui.ten.column.table td {
  300. width: 10%;
  301. }
  302. .ui.eleven.column.table td {
  303. width: 9.0909%;
  304. }
  305. .ui.twelve.column.table td {
  306. width: 8.3333%;
  307. }
  308. .ui.thirteen.column.table td {
  309. width: 7.6923%;
  310. }
  311. .ui.fourteen.column.table td {
  312. width: 7.1428%;
  313. }
  314. .ui.fifteen.column.table td {
  315. width: 6.6666%;
  316. }
  317. .ui.sixteen.column.table td {
  318. width: 6.25%;
  319. }
  320. /* Column Width */
  321. .ui.table th.one.wide,
  322. .ui.table td.one.wide {
  323. width: 6.25%;
  324. }
  325. .ui.table th.two.wide,
  326. .ui.table td.two.wide {
  327. width: 12.5%;
  328. }
  329. .ui.table th.three.wide,
  330. .ui.table td.three.wide {
  331. width: 18.75%;
  332. }
  333. .ui.table th.four.wide,
  334. .ui.table td.four.wide {
  335. width: 25%;
  336. }
  337. .ui.table th.five.wide,
  338. .ui.table td.five.wide {
  339. width: 31.25%;
  340. }
  341. .ui.table th.six.wide,
  342. .ui.table td.six.wide {
  343. width: 37.5%;
  344. }
  345. .ui.table th.seven.wide,
  346. .ui.table td.seven.wide {
  347. width: 43.75%;
  348. }
  349. .ui.table th.eight.wide,
  350. .ui.table td.eight.wide {
  351. width: 50%;
  352. }
  353. .ui.table th.nine.wide,
  354. .ui.table td.nine.wide {
  355. width: 56.25%;
  356. }
  357. .ui.table th.ten.wide,
  358. .ui.table td.ten.wide {
  359. width: 62.5%;
  360. }
  361. .ui.table th.eleven.wide,
  362. .ui.table td.eleven.wide {
  363. width: 68.75%;
  364. }
  365. .ui.table th.twelve.wide,
  366. .ui.table td.twelve.wide {
  367. width: 75%;
  368. }
  369. .ui.table th.thirteen.wide,
  370. .ui.table td.thirteen.wide {
  371. width: 81.25%;
  372. }
  373. .ui.table th.fourteen.wide,
  374. .ui.table td.fourteen.wide {
  375. width: 87.5%;
  376. }
  377. .ui.table th.fifteen.wide,
  378. .ui.table td.fifteen.wide {
  379. width: 93.75%;
  380. }
  381. .ui.table th.sixteen.wide,
  382. .ui.table td.sixteen.wide {
  383. width: 100%;
  384. }
  385. /*--------------
  386. Celled
  387. ---------------*/
  388. .ui.celled.table {
  389. color: rgba(0, 0, 0, 0.8);
  390. }
  391. .ui.celled.table tbody tr,
  392. .ui.celled.table tfoot tr {
  393. border: none;
  394. }
  395. .ui.celled.table th,
  396. .ui.celled.table td {
  397. border: 1px solid rgba(0, 0, 0, 0.1);
  398. }
  399. /* Coupling with segment */
  400. .ui.celled.table.segment th:first-child,
  401. .ui.celled.table.segment td:first-child {
  402. border-right: none;
  403. }
  404. .ui.celled.table.segment th:last-child,
  405. .ui.celled.table.segment td:last-child {
  406. border-left: none;
  407. }
  408. /*--------------
  409. Sortable
  410. ---------------*/
  411. .ui.sortable.table thead th {
  412. cursor: pointer;
  413. white-space: nowrap;
  414. }
  415. .ui.sortable.table thead th.sorted,
  416. .ui.sortable.table thead th.sorted:hover {
  417. -webkit-user-select: none;
  418. -moz-user-select: none;
  419. -ms-user-select: none;
  420. user-select: none;
  421. }
  422. .ui.sortable.table thead th:after {
  423. display: inline-block;
  424. content: '';
  425. width: 1em;
  426. opacity: 0.8;
  427. margin: 0em 0.5em 0em 0em;
  428. font-family: 'Icons';
  429. font-style: normal;
  430. font-weight: normal;
  431. text-decoration: inherit;
  432. }
  433. .ui.sortable.table thead th.ascending:after {
  434. content: '\25b4';
  435. }
  436. .ui.sortable.table thead th.descending:after {
  437. content: '\25be';
  438. }
  439. /*--------------
  440. Inverted
  441. ---------------*/
  442. /* Text Color */
  443. .ui.inverted.table td {
  444. color: rgba(255, 255, 255, 0.9);
  445. }
  446. .ui.inverted.table th {
  447. background-color: rgba(0, 0, 0, 0.15);
  448. color: rgba(255, 255, 255, 0.9);
  449. }
  450. /* Stripes */
  451. .ui.inverted.table tbody tr:nth-child(2n) {
  452. background-color: rgba(255, 255, 255, 0.06);
  453. }
  454. /*--------------
  455. Definition
  456. ---------------*/
  457. .ui.definition.table td:first-child {
  458. font-weight: bold;
  459. }
  460. /*--------------
  461. Collapsing
  462. ---------------*/
  463. .ui.collapsing.table {
  464. width: auto;
  465. }
  466. /*--------------
  467. Basic
  468. ---------------*/
  469. .ui.basic.table th {
  470. background-color: transparent;
  471. padding: 0.5em;
  472. }
  473. .ui.basic.table tbody tr {
  474. border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  475. }
  476. .ui.basic.table td {
  477. padding: 0.8em 0.5em;
  478. }
  479. .ui.basic.table tbody tr:nth-child(2n) {
  480. background-color: transparent !important;
  481. }
  482. /*--------------
  483. Padded
  484. ---------------*/
  485. .ui.padded.table th,
  486. .ui.padded.table td {
  487. padding: 0.8em 1em;
  488. }
  489. .ui.compact.table th {
  490. padding: 0.3em 0.5em;
  491. }
  492. .ui.compact.table td {
  493. padding: 0.2em 0.5em;
  494. }
  495. /*--------------
  496. Sizes
  497. ---------------*/
  498. /* Small */
  499. .ui.small.table {
  500. font-size: 0.875em;
  501. }
  502. /* Standard */
  503. .ui.table {
  504. font-size: 1em;
  505. }
  506. /* Large */
  507. .ui.large.table {
  508. font-size: 1.1em;
  509. }