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.

873 lines
18 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Table
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'collection';
  15. @element : 'table';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Table
  19. *******************************/
  20. /* Prototype */
  21. .ui.table {
  22. width: 100%;
  23. background: @background;
  24. margin: @margin;
  25. border: @border;
  26. box-shadow: @boxShadow;
  27. border-radius: @borderRadius;
  28. color: @color;
  29. border-collapse: @borderCollapse;
  30. border-spacing: @borderSpacing;
  31. }
  32. .ui.table:first-child {
  33. margin-top: 0em;
  34. }
  35. .ui.table:last-child {
  36. margin-bottom: 0em;
  37. }
  38. /*******************************
  39. Parts
  40. *******************************/
  41. /* Table Content */
  42. .ui.table th,
  43. .ui.table td {
  44. transition: @transition;
  45. }
  46. /* Headers */
  47. .ui.table thead {
  48. box-shadow: @headerBoxShadow;
  49. }
  50. .ui.table thead th {
  51. cursor: auto;
  52. background: @headerBackground;
  53. text-align: @headerAlign;
  54. color: @headerColor;
  55. padding: @headerVerticalPadding @headerHorizontalPadding;
  56. vertical-align: @headerVerticalAlign;
  57. font-style: @headerFontStyle;
  58. font-weight: @headerFontWeight;
  59. text-transform: @headerTextTransform;
  60. border-bottom: @headerBorder;
  61. border-left: @headerDivider;
  62. }
  63. .ui.table thead th:first-child {
  64. border-radius: @borderRadius 0em 0em 0em;
  65. border-left: none;
  66. }
  67. .ui.table thead th:last-child {
  68. border-radius: 0em @borderRadius 0em 0em;
  69. }
  70. .ui.table thead th:only-child {
  71. border-radius: @borderRadius @borderRadius 0em 0em;
  72. }
  73. /* Footer */
  74. .ui.table tfoot {
  75. box-shadow: @footerBoxShadow;
  76. }
  77. .ui.table tfoot th {
  78. cursor: auto;
  79. border-top: @footerBorder;
  80. background: @footerBackground;
  81. text-align: @footerAlign;
  82. color: @footerColor;
  83. padding: @footerVerticalPadding @footerHorizontalPadding;
  84. vertical-align: @footerVerticalAlign;
  85. font-style: @footerFontStyle;
  86. font-weight: @footerFontWeight;
  87. text-transform: @footerTextTransform;
  88. }
  89. .ui.table tfoot th:first-child {
  90. border-radius: 0em 0em 0em @borderRadius;
  91. }
  92. .ui.table tfoot th:last-child {
  93. border-radius: 0em 0em @borderRadius 0em;
  94. }
  95. .ui.table tfoot th:only-child {
  96. border-radius: 0em 0em @borderRadius @borderRadius;
  97. }
  98. /* Table Row */
  99. .ui.table tr td {
  100. border-top: @rowBorder;
  101. }
  102. .ui.table tr:first-child td {
  103. border-top: none;
  104. }
  105. /* Table Cells */
  106. .ui.table td {
  107. padding: @cellVerticalPadding @cellHorizontalPadding;
  108. vertical-align: @cellVerticalAlign;
  109. }
  110. /* Icons */
  111. .ui.table > .icon {
  112. vertical-align: @iconVerticalAlign;
  113. }
  114. .ui.table > .icon:only-child {
  115. margin: 0em;
  116. }
  117. /* Table Segment */
  118. .ui.table.segment {
  119. padding: 0em;
  120. }
  121. .ui.table.segment:after {
  122. display: none;
  123. }
  124. .ui.table.segment.stacked:after {
  125. display: block;
  126. }
  127. /* Responsive */
  128. @media only screen and (max-width : 768px) {
  129. .ui.table {
  130. display: block;
  131. padding: 0em;
  132. }
  133. .ui.table thead {
  134. display: @responsiveHeaderDisplay;
  135. }
  136. .ui.table tfoot {
  137. display: @responsiveFooterDisplay;
  138. }
  139. .ui.table tbody {
  140. display: block;
  141. }
  142. .ui.table tr {
  143. display: block;
  144. }
  145. .ui.table tr > th,
  146. .ui.table tr > td {
  147. background: none;
  148. width: 100% !important;
  149. display: block;
  150. border: none !important;
  151. padding: @responsiveCellVerticalPadding @responsiveCellHorizontalPadding;
  152. box-shadow: @responsiveCellBoxShadow;
  153. }
  154. .ui.table th:first-child,
  155. .ui.table td:first-child {
  156. font-weight: bold;
  157. padding-top: @responsiveRowVerticalPadding;
  158. }
  159. .ui.table th:last-child,
  160. .ui.table td:last-child {
  161. box-shadow: @responsiveRowBoxShadow;
  162. padding-bottom: @responsiveRowVerticalPadding;
  163. }
  164. /* Clear BG Colors */
  165. .ui.table tr > td.warning,
  166. .ui.table tr > td.error,
  167. .ui.table tr > td.active,
  168. .ui.table tr > td.positive,
  169. .ui.table tr > td.negative {
  170. background-color: @responsiveStatusColor !important;
  171. }
  172. }
  173. /*******************************
  174. Types
  175. *******************************/
  176. /*--------------
  177. Definition
  178. ---------------*/
  179. .ui.definition.table thead:not(.full-width) th:first-child {
  180. pointer-events: none;
  181. background: @definitionHeaderBackground;
  182. font-weight: @definitionHeaderFontWeight;
  183. color: @definitionHeaderColor;
  184. box-shadow: -@borderWidth -@borderWidth 0px @borderWidth @definitionPageBackground;
  185. }
  186. .ui.definition.table tfoot:not(.full-width) th:first-child {
  187. pointer-events: none;
  188. background: @definitionFooterBackground;
  189. font-weight: @definitionFooterColor;
  190. color: @definitionFooterFontWeight;
  191. box-shadow: @borderWidth @borderWidth 0px @borderWidth @definitionPageBackground;
  192. }
  193. /* Remove Border */
  194. .ui.celled.definition.table thead:not(.full-width) th:first-child {
  195. box-shadow: 0px -@borderWidth 0px @borderWidth @definitionPageBackground;
  196. }
  197. .ui.celled.definition.table tfoot:not(.full-width) th:first-child {
  198. box-shadow: 0px @borderWidth 0px @borderWidth @definitionPageBackground;
  199. }
  200. /* Highlight Defining Column */
  201. .ui.definition.table tr td:first-child {
  202. background: @definitionColumnBackground;
  203. font-weight: @definitionColumnFontWeight;
  204. color: @definitionColumnColor;
  205. }
  206. /* Fix 2nd Column */
  207. .ui.definition.table thead:not(.full-width) th:nth-child(2) {
  208. border-left: @borderWidth solid @borderColor;
  209. }
  210. .ui.definition.table tfoot:not(.full-width) th:nth-child(2) {
  211. border-left: @borderWidth solid @borderColor;
  212. }
  213. .ui.definition.table td:nth-child(2) {
  214. border-left: @borderWidth solid @borderColor;
  215. }
  216. /*******************************
  217. States
  218. *******************************/
  219. /*--------------
  220. Positive
  221. ---------------*/
  222. .ui.table tr.positive,
  223. .ui.table td.positive {
  224. box-shadow: @positiveBoxShadow;
  225. }
  226. .ui.table tr.positive td,
  227. .ui.table td.positive {
  228. background: @positiveBackgroundColor !important;
  229. color: @positiveColor !important;
  230. }
  231. .ui.celled.table tr.positive:hover td,
  232. .ui.celled.table tr:hover td.positive,
  233. .ui.table tr.positive:hover td,
  234. .ui.table td:hover.positive,
  235. .ui.table th:hover.positive {
  236. background: @positiveBackgroundHover !important;
  237. color: @positiveColorHover !important;
  238. }
  239. /*--------------
  240. Negative
  241. ---------------*/
  242. .ui.table tr.negative,
  243. .ui.table td.negative {
  244. box-shadow: @negativeBoxShadow;
  245. }
  246. .ui.table tr.negative td,
  247. .ui.table td.negative {
  248. background: @negativeBackgroundColor !important;
  249. color: @negativeColor !important;
  250. }
  251. .ui.celled.table tr.negative:hover td,
  252. .ui.celled.table tr:hover td.negative {
  253. background: @negativeBackgroundHover !important;
  254. color: @negativeColorHover !important;
  255. }
  256. /*--------------
  257. Error
  258. ---------------*/
  259. .ui.table tr.error,
  260. .ui.table td.error {
  261. box-shadow: @errorBoxShadow;
  262. }
  263. .ui.table tr.error td,
  264. .ui.table td.error {
  265. background: @errorBackgroundColor !important;
  266. color: @errorColor !important;
  267. }
  268. .ui.celled.table tr.error:hover td,
  269. .ui.celled.table tr:hover td.error {
  270. background: @errorBackgroundHover !important;
  271. color: @errorColorHover !important;
  272. }
  273. /*--------------
  274. Warning
  275. ---------------*/
  276. .ui.table tr.warning,
  277. .ui.table td.warning {
  278. box-shadow: @warningBoxShadow;
  279. }
  280. .ui.table tr.warning td,
  281. .ui.table td.warning {
  282. background: @warningBackgroundColor !important;
  283. color: @warningColor !important;
  284. }
  285. .ui.celled.table tr.warning:hover td,
  286. .ui.celled.table tr:hover td.warning {
  287. background: @warningBackgroundHover !important;
  288. color: @warningColorHover !important;
  289. }
  290. /*--------------
  291. Active
  292. ---------------*/
  293. .ui.table tr.active,
  294. .ui.table td.active {
  295. box-shadow: @activeBoxShadow;
  296. }
  297. .ui.table tr.active td,
  298. .ui.table td.active {
  299. background: @activeBackgroundColor !important;
  300. color: @activeColor !important;
  301. }
  302. .ui.celled.table tr.active:hover td,
  303. .ui.celled.table tr:hover td.active {
  304. background: @activeBackgroundColor !important;
  305. color: @activeColor !important;
  306. }
  307. /*--------------
  308. Disabled
  309. ---------------*/
  310. .ui.table tr.disabled td,
  311. .ui.table tr td.disabled,
  312. .ui.table tr.disabled:hover td,
  313. .ui.table tr:hover td.disabled {
  314. pointer-events: none;
  315. color: @disabledTextColor;
  316. }
  317. /*******************************
  318. Variations
  319. *******************************/
  320. /*--------------
  321. Aligned
  322. ---------------*/
  323. .ui.table[class*="left aligned"],
  324. .ui.table [class*="left aligned"] {
  325. text-align: left;
  326. }
  327. .ui.table[class*="center aligned"],
  328. .ui.table [class*="center aligned"] {
  329. text-align: center;
  330. }
  331. .ui.table[class*="right aligned"],
  332. .ui.table [class*="right aligned"] {
  333. text-align: right;
  334. }
  335. /*--------------
  336. Collapsing
  337. ---------------*/
  338. .ui.table th.collapsing,
  339. .ui.table td.collapsing {
  340. width: 1px;
  341. white-space: nowrap;
  342. }
  343. /*--------------
  344. Attached
  345. ---------------*/
  346. /* All */
  347. .ui.attached.table {
  348. width: @attachedTableWidth;
  349. margin: 0em @attachedHorizontalOffset;
  350. border-radius: 0px;
  351. box-shadow: @attachedBoxShadow;
  352. }
  353. /* Top */
  354. .ui[class*="top attached"].table {
  355. margin-top: @margin;
  356. border-radius: @borderRadius @borderRadius 0em 0em;
  357. }
  358. .ui.table[class*="top attached"]:first-child {
  359. margin-top: 0em;
  360. }
  361. /* Bottom */
  362. .ui.table[class*="bottom attached"] {
  363. margin-top: 0em;
  364. margin-bottom: @margin;
  365. border-radius: 0em 0em @borderRadius @borderRadius;
  366. }
  367. .ui.table[class*="bottom attached"]:last-child {
  368. margin-bottom: 0em;
  369. }
  370. /*--------------
  371. Striped
  372. ---------------*/
  373. /* Table Striping */
  374. .ui.striped.table > tr:nth-child(2n),
  375. .ui.striped.table tbody tr:nth-child(2n) {
  376. background-color: @stripedBackground;
  377. }
  378. /* Stripes */
  379. .ui.inverted.striped.table > tr:nth-child(2n),
  380. .ui.inverted.striped.table tbody tr:nth-child(2n) {
  381. background-color: @invertedStripedBackground;
  382. }
  383. /*-------------------
  384. Colors
  385. --------------------*/
  386. .ui.black.table {
  387. border-top: @coloredBorderSize solid @black;
  388. }
  389. .ui.blue.table {
  390. border-top: @coloredBorderSize solid @blue;
  391. }
  392. .ui.green.table {
  393. border-top: @coloredBorderSize solid @green;
  394. }
  395. .ui.orange.table {
  396. border-top: @coloredBorderSize solid @orange;
  397. }
  398. .ui.pink.table {
  399. border-top: @coloredBorderSize solid @pink;
  400. }
  401. .ui.purple.table {
  402. border-top: @coloredBorderSize solid @purple;
  403. }
  404. .ui.red.table {
  405. border-top: @coloredBorderSize solid @red;
  406. }
  407. .ui.teal.table {
  408. border-top: @coloredBorderSize solid @teal;
  409. }
  410. .ui.yellow.table {
  411. border-top: @coloredBorderSize solid @yellow;
  412. }
  413. /*-------------------
  414. Inverted Colors
  415. --------------------*/
  416. .ui.inverted.table,
  417. .ui.inverted.black.table {
  418. background-color: @black !important;
  419. color: @white !important;
  420. }
  421. .ui.inverted.blue.table {
  422. background-color: @blue !important;
  423. color: @white !important;
  424. }
  425. .ui.inverted.green.table {
  426. background-color: @green !important;
  427. color: @white !important;
  428. }
  429. .ui.inverted.orange.table {
  430. background-color: @orange !important;
  431. color: @white !important;
  432. }
  433. .ui.inverted.pink.table {
  434. background-color: @pink !important;
  435. color: @white !important;
  436. }
  437. .ui.inverted.purple.table {
  438. background-color: @purple !important;
  439. color: @white !important;
  440. }
  441. .ui.inverted.red.table {
  442. background-color: @red !important;
  443. color: @white !important;
  444. }
  445. .ui.inverted.teal.table {
  446. background-color: @teal !important;
  447. color: @white !important;
  448. }
  449. .ui.inverted.yellow.table {
  450. background-color: @yellow !important;
  451. color: @white !important;
  452. }
  453. /*--------------
  454. Column Count
  455. ---------------*/
  456. /* Grid Based */
  457. .ui.one.column.table td {
  458. width: @oneColumn;
  459. }
  460. .ui.two.column.table td {
  461. width: @twoColumn;
  462. }
  463. .ui.three.column.table td {
  464. width: @threeColumn;
  465. }
  466. .ui.four.column.table td {
  467. width: @fourColumn;
  468. }
  469. .ui.five.column.table td {
  470. width: @fiveColumn;
  471. }
  472. .ui.six.column.table td {
  473. width: @sixColumn;
  474. }
  475. .ui.seven.column.table td {
  476. width: @sevenColumn;
  477. }
  478. .ui.eight.column.table td {
  479. width: @eightColumn;
  480. }
  481. .ui.nine.column.table td {
  482. width: @nineColumn;
  483. }
  484. .ui.ten.column.table td {
  485. width: @tenColumn;
  486. }
  487. .ui.eleven.column.table td {
  488. width: @elevenColumn;
  489. }
  490. .ui.twelve.column.table td {
  491. width: @twelveColumn;
  492. }
  493. .ui.thirteen.column.table td {
  494. width: @thirteenColumn;
  495. }
  496. .ui.fourteen.column.table td {
  497. width: @fourteenColumn;
  498. }
  499. .ui.fifteen.column.table td {
  500. width: @fifteenColumn;
  501. }
  502. .ui.sixteen.column.table td {
  503. width: @sixteenColumn;
  504. }
  505. /* Column Width */
  506. .ui.table th.one.wide,
  507. .ui.table td.one.wide {
  508. width: @oneWide;
  509. }
  510. .ui.table th.two.wide,
  511. .ui.table td.two.wide {
  512. width: @twoWide;
  513. }
  514. .ui.table th.three.wide,
  515. .ui.table td.three.wide {
  516. width: @threeWide;
  517. }
  518. .ui.table th.four.wide,
  519. .ui.table td.four.wide {
  520. width: @fourWide;
  521. }
  522. .ui.table th.five.wide,
  523. .ui.table td.five.wide {
  524. width: @fiveWide;
  525. }
  526. .ui.table th.six.wide,
  527. .ui.table td.six.wide {
  528. width: @sixWide;
  529. }
  530. .ui.table th.seven.wide,
  531. .ui.table td.seven.wide {
  532. width: @sevenWide;
  533. }
  534. .ui.table th.eight.wide,
  535. .ui.table td.eight.wide {
  536. width: @eightWide;
  537. }
  538. .ui.table th.nine.wide,
  539. .ui.table td.nine.wide {
  540. width: @nineWide;
  541. }
  542. .ui.table th.ten.wide,
  543. .ui.table td.ten.wide {
  544. width: @tenWide;
  545. }
  546. .ui.table th.eleven.wide,
  547. .ui.table td.eleven.wide {
  548. width: @elevenWide;
  549. }
  550. .ui.table th.twelve.wide,
  551. .ui.table td.twelve.wide {
  552. width: @twelveWide;
  553. }
  554. .ui.table th.thirteen.wide,
  555. .ui.table td.thirteen.wide {
  556. width: @thirteenWide;
  557. }
  558. .ui.table th.fourteen.wide,
  559. .ui.table td.fourteen.wide {
  560. width: @fourteenWide;
  561. }
  562. .ui.table th.fifteen.wide,
  563. .ui.table td.fifteen.wide {
  564. width: @fifteenWide;
  565. }
  566. .ui.table th.sixteen.wide,
  567. .ui.table td.sixteen.wide {
  568. width: @sixteenWide;
  569. }
  570. /*--------------
  571. Sortable
  572. ---------------*/
  573. .ui.sortable.table thead th {
  574. cursor: pointer;
  575. white-space: nowrap;
  576. border-left: @sortableBorder;
  577. color: @sortableColor;
  578. }
  579. .ui.sortable.table thead th:first-child {
  580. border-left: none;
  581. }
  582. .ui.sortable.table thead th.sorted,
  583. .ui.sortable.table thead th.sorted:hover {
  584. user-select: none;
  585. }
  586. .ui.sortable.table thead th:after {
  587. display: inline-block;
  588. content: '';
  589. width: @sortableIconWidth;
  590. height: 1em;
  591. opacity: @sortableIconOpacity;
  592. margin: 0em 0em 0em @sortableIconDistance;
  593. font-family: @sortableIconFont;
  594. font-style: normal;
  595. font-weight: normal;
  596. text-decoration: inherit;
  597. }
  598. .ui.sortable.table thead th.ascending:after {
  599. content: @sortableIconAscending;
  600. }
  601. .ui.sortable.table thead th.descending:after {
  602. content: @sortableIconDescending;
  603. }
  604. /* Hover */
  605. .ui.sortable.table th.disabled:hover {
  606. cursor: auto;
  607. color: @sortableDisabledColor;
  608. }
  609. .ui.sortable.table thead th:hover {
  610. background: @sortableHoverBackground;
  611. color: @sortableHoverColor;
  612. }
  613. /* Sorted */
  614. .ui.sortable.table thead th.sorted {
  615. background: @sortableActiveBackground;
  616. color: @sortableActiveColor;
  617. }
  618. /* Sorted Hover */
  619. .ui.sortable.table thead th.sorted:hover {
  620. background: @sortableActiveHoverBackground;
  621. color: @sortableActiveHoverColor;
  622. }
  623. /* Inverted */
  624. .ui.inverted.sortable.table thead th.sorted {
  625. background: @sortableInvertedActiveBackground;
  626. color: @sortableInvertedActiveColor;
  627. }
  628. .ui.inverted.sortable.table thead th:hover {
  629. background: @sortableInvertedHoverBackground;
  630. color: @sortableInvertedHoverColor;
  631. }
  632. .ui.inverted.sortable.table thead th {
  633. border-left-color: @sortableInvertedBorderColor;
  634. }
  635. /*--------------
  636. Inverted
  637. ---------------*/
  638. /* Text Color */
  639. .ui.inverted.table {
  640. background: @invertedBackground;
  641. color: @invertedCellColor;
  642. border: @invertedBorder;
  643. }
  644. .ui.inverted.table th {
  645. background-color: @invertedHeaderBackground;
  646. border-color: @invertedCellBorderColor !important;
  647. color: @invertedHeaderColor;
  648. }
  649. .ui.inverted.table tr td {
  650. border-color: @invertedCellBorderColor !important;
  651. }
  652. .ui.inverted.table tr.disabled td,
  653. .ui.inverted.table tr td.disabled,
  654. .ui.inverted.table tr.disabled:hover td,
  655. .ui.inverted.table tr:hover td.disabled {
  656. pointer-events: none;
  657. color: @invertedDisabledTextColor;
  658. }
  659. /* Definition */
  660. .ui.inverted.definition.table tfoot:not(.full-width) th:first-child,
  661. .ui.inverted.definition.table thead:not(.full-width) th:first-child {
  662. background: @definitionPageBackground;
  663. }
  664. .ui.inverted.definition.table tr td:first-child {
  665. background: @invertedDefinitionColumnBackground;
  666. color: @invertedDefinitionColumnColor;
  667. }
  668. /*--------------
  669. Collapsing
  670. ---------------*/
  671. .ui.collapsing.table {
  672. width: auto;
  673. }
  674. /*--------------
  675. Basic
  676. ---------------*/
  677. .ui.basic.table {
  678. background: @basicTableBackground;
  679. border: @basicTableBorder;
  680. box-shadow: @basicBoxShadow;
  681. }
  682. .ui.basic.table thead,
  683. .ui.basic.table tfoot {
  684. box-shadow: none;
  685. }
  686. .ui.basic.table th {
  687. background: @basicTableHeaderBackground;
  688. border-left: @basicTableHeaderDivider;
  689. }
  690. .ui.basic.table tbody tr {
  691. border-bottom: @basicTableCellBorder;
  692. }
  693. .ui.basic.table td {
  694. background: @basicTableCellBackground;
  695. }
  696. .ui.basic.striped.table tbody tr:nth-child(2n) {
  697. background-color: @basicTableStripedBackground !important;
  698. }
  699. /* Very Basic */
  700. .ui[class*="very basic"].table {
  701. border: none;
  702. }
  703. .ui[class*="very basic"].table:not(.sortable):not(.striped) th,
  704. .ui[class*="very basic"].table:not(.sortable):not(.striped) td {
  705. padding: @basicTableCellVerticalPadding @basicTableCellHorizontalPadding;
  706. }
  707. .ui[class*="very basic"].table:not(.sortable):not(.striped) thead th {
  708. padding-top: 0em;
  709. }
  710. .ui[class*="very basic"].table:not(.sortable):not(.striped) tbody tr:last-child td {
  711. padding-bottom: 0em;
  712. }
  713. /*--------------
  714. Celled
  715. ---------------*/
  716. .ui.celled.table th,
  717. .ui.celled.table td {
  718. border-left: @cellBorder;
  719. }
  720. .ui.celled.table th:first-child,
  721. .ui.celled.table td:first-child {
  722. border-left: none;
  723. }
  724. /*--------------
  725. Padded
  726. ---------------*/
  727. .ui.padded.table th {
  728. padding-left: @paddedHorizontalPadding;
  729. padding-right: @paddedHorizontalPadding;
  730. }
  731. .ui.padded.table th,
  732. .ui.padded.table td {
  733. padding: @paddedVerticalPadding @paddedHorizontalPadding;
  734. }
  735. /* Very */
  736. .ui[class*="very padded"].table th {
  737. padding-left: @veryPaddedHorizontalPadding;
  738. padding-right: @veryPaddedHorizontalPadding;
  739. }
  740. .ui[class*="very padded"].table td {
  741. padding: @veryPaddedVerticalPadding @veryPaddedHorizontalPadding;
  742. }
  743. /*--------------
  744. Compact
  745. ---------------*/
  746. .ui.compact.table th {
  747. padding-left: @compactHorizontalPadding;
  748. padding-right: @compactHorizontalPadding;
  749. }
  750. .ui.compact.table td {
  751. padding: @compactVerticalPadding @compactHorizontalPadding;
  752. }
  753. /* Very */
  754. .ui[class*="very compact"].table th {
  755. padding-left: @veryCompactHorizontalPadding;
  756. padding-right: @veryCompactHorizontalPadding;
  757. }
  758. .ui[class*="very compact"].table td {
  759. padding: @veryCompactVerticalPadding @veryCompactHorizontalPadding;
  760. }
  761. /*--------------
  762. Sizes
  763. ---------------*/
  764. /* Small */
  765. .ui.small.table {
  766. font-size: @small;
  767. }
  768. /* Standard */
  769. .ui.table {
  770. font-size: @medium;
  771. }
  772. /* Large */
  773. .ui.large.table {
  774. font-size: @large;
  775. }
  776. .loadUIOverrides();