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.

1101 lines
31 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
  1. /*
  2. * # Semantic - Grid
  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 : 'grid';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Standard
  19. *******************************/
  20. .ui.grid {
  21. display: block;
  22. text-align: left;
  23. font-size: 0em;
  24. padding: 0em;
  25. }
  26. .ui.grid:after,
  27. .ui.grid > .row:after {
  28. content: '';
  29. display: block;
  30. height: 0px;
  31. clear: both;
  32. visibility: hidden;
  33. }
  34. /*----------------------
  35. Remove Gutters
  36. -----------------------*/
  37. .ui.grid {
  38. margin-top: -(@rowSpacing / 2);
  39. margin-bottom: -(@rowSpacing / 2);
  40. margin-left: -(@gutterWidth / 2);
  41. margin-right: -(@gutterWidth / 2);
  42. }
  43. .ui.relaxed.grid {
  44. margin-left: -(@relaxedGutterWidth / 2);
  45. margin-right: -(@relaxedGutterWidth / 2);
  46. }
  47. .ui[class*="very relaxed"].grid {
  48. margin-left: -(@veryRelaxedGutterWidth / 2);
  49. margin-right: -(@veryRelaxedGutterWidth / 2);
  50. }
  51. /* Collapse Margins on Consecutive Grids */
  52. .ui.grid + .grid {
  53. margin-top: (@rowSpacing / 2);
  54. }
  55. /*-------------------
  56. Columns
  57. --------------------*/
  58. /* Standard 16 column */
  59. .ui.grid > .column:not(.row),
  60. .ui.grid > .row > .column {
  61. display: inline-block;
  62. text-align: left;
  63. font-size: 1rem;
  64. width: @oneWide;
  65. padding-left: (@gutterWidth / 2);
  66. padding-right: (@gutterWidth / 2);
  67. vertical-align: top;
  68. }
  69. .ui.grid > * {
  70. padding-left: (@gutterWidth / 2);
  71. padding-right: (@gutterWidth / 2);
  72. }
  73. /*-------------------
  74. Rows
  75. --------------------*/
  76. .ui.grid > .row {
  77. display: block;
  78. width: auto !important;
  79. padding: 0rem;
  80. font-size: 0rem;
  81. padding-top: (@rowSpacing / 2);
  82. padding-bottom: (@rowSpacing / 2);
  83. }
  84. /*-------------------
  85. Columns
  86. --------------------*/
  87. /* Vertical padding when no rows */
  88. .ui.grid > .column:not(.row) {
  89. padding-top: (@rowSpacing / 2);
  90. padding-bottom: (@rowSpacing / 2);
  91. }
  92. .ui.grid > .row > .column {
  93. margin-top: 0em;
  94. margin-bottom: 0em;
  95. }
  96. /*-------------------
  97. Content
  98. --------------------*/
  99. .ui.grid > .row > img,
  100. .ui.grid > .row > .column > img {
  101. max-width: @columnMaxImageWidth;
  102. }
  103. /*-------------------
  104. Loose Coupling
  105. --------------------*/
  106. .ui.grid .row + .ui.divider {
  107. margin: (@rowSpacing / 2) (@gutterWidth / 2);
  108. }
  109. /* remove Border on last horizontal segment */
  110. .ui.grid > .row > .column:last-child > .horizontal.segment,
  111. .ui.grid > .column:last-child > .horizontal.segment {
  112. box-shadow: none;
  113. }
  114. /*******************************
  115. Variations
  116. *******************************/
  117. /*-----------------------
  118. Page Grid
  119. -------------------------*/
  120. .ui.page.grid {
  121. padding-left: @computerGutter;
  122. padding-right: @computerGutter;
  123. width: @computerWidth;
  124. }
  125. /* Collapse Margin */
  126. .ui.grid > .ui.grid:first-child {
  127. margin-top: 0em;
  128. }
  129. .ui.grid > .ui.grid:last-child {
  130. margin-bottom: 0em;
  131. }
  132. @media only screen and (max-width: (@largestMobileScreen)) {
  133. .ui.page.grid {
  134. width: @mobileWidth;
  135. padding-left: @mobileGutter;
  136. padding-right: @mobileGutter;
  137. }
  138. }
  139. @media only screen and (min-width: @tabletBreakpoint) {
  140. .ui.page.grid {
  141. width: @tabletWidth;
  142. padding-left: @tabletGutter;
  143. padding-right: @tabletGutter;
  144. }
  145. }
  146. @media only screen and (min-width: @computerBreakpoint) {
  147. .ui.page.grid {
  148. width: @computerWidth;
  149. padding-left: @computerGutter;
  150. padding-right: @computerGutter;
  151. }
  152. }
  153. @media only screen and (min-width: @largeMonitorBreakpoint) {
  154. .ui.page.grid {
  155. width: @largeMonitorWidth;
  156. padding-left: @largeMonitorGutter;
  157. padding-right: @largeMonitorGutter;
  158. }
  159. }
  160. @media only screen and (min-width: @widescreenMonitorBreakpoint) {
  161. .ui.page.grid {
  162. width: @widescreenMonitorWidth;
  163. padding-left: @widescreenMonitorGutter;
  164. padding-right: @widescreenMonitorGutter;
  165. }
  166. }
  167. /*-------------------
  168. Column Count
  169. --------------------*/
  170. /* Grid Based */
  171. .ui[class*="one column"].grid > .row > .column,
  172. .ui[class*="one column"].grid > .column {
  173. width: @oneColumn;
  174. }
  175. .ui[class*="two column"].grid > .row > .column,
  176. .ui[class*="two column"].grid > .column {
  177. width: @twoColumn;
  178. }
  179. .ui[class*="three column"].grid > .row > .column,
  180. .ui[class*="three column"].grid > .column {
  181. width: @threeColumn;
  182. }
  183. .ui[class*="four column"].grid > .row > .column,
  184. .ui[class*="four column"].grid > .column {
  185. width: @fourColumn;
  186. }
  187. .ui[class*="five column"].grid > .row > .column,
  188. .ui[class*="five column"].grid > .column {
  189. width: @fiveColumn;
  190. }
  191. .ui[class*="six column"].grid > .row > .column,
  192. .ui[class*="six column"].grid > .column {
  193. width: @sixColumn;
  194. }
  195. .ui[class*="seven column"].grid > .row > .column,
  196. .ui[class*="seven column"].grid > .column {
  197. width: @sevenColumn;
  198. }
  199. .ui[class*="eight column"].grid > .row > .column,
  200. .ui[class*="eight column"].grid > .column {
  201. width: @eightColumn;
  202. }
  203. .ui[class*="nine column"].grid > .row > .column,
  204. .ui[class*="nine column"].grid > .column {
  205. width: @nineColumn;
  206. }
  207. .ui[class*="ten column"].grid > .row > .column,
  208. .ui[class*="ten column"].grid > .column {
  209. width: @tenColumn;
  210. }
  211. .ui[class*="eleven column"].grid > .row > .column,
  212. .ui[class*="eleven column"].grid > .column {
  213. width: @elevenColumn;
  214. }
  215. .ui[class*="twelve column"].grid > .row > .column,
  216. .ui[class*="twelve column"].grid > .column {
  217. width: @twelveColumn;
  218. }
  219. .ui[class*="thirteen column"].grid > .row > .column,
  220. .ui[class*="thirteen column"].grid > .column {
  221. width: @thirteenColumn;
  222. }
  223. .ui[class*="fourteen column"].grid > .row > .column,
  224. .ui[class*="fourteen column"].grid > .column {
  225. width: @fourteenColumn;
  226. }
  227. .ui[class*="fifteen column"].grid > .row > .column,
  228. .ui[class*="fifteen column"].grid > .column {
  229. width: @fifteenColumn;
  230. }
  231. .ui[class*="sixteen column"].grid > .row > .column,
  232. .ui[class*="sixteen column"].grid > .column {
  233. width: @sixteenColumn;
  234. }
  235. /* Row Based Overrides */
  236. .ui.grid > [class*="one column"].row > .column {
  237. width: @oneColumn !important;
  238. }
  239. .ui.grid > [class*="two column"].row > .column {
  240. width: @twoColumn !important;
  241. }
  242. .ui.grid > [class*="three column"].row > .column {
  243. width: @threeColumn !important;
  244. }
  245. .ui.grid > [class*="four column"].row > .column {
  246. width: @fourColumn !important;
  247. }
  248. .ui.grid > [class*="five column"].row > .column {
  249. width: @fiveColumn !important;
  250. }
  251. .ui.grid > [class*="six column"].row > .column {
  252. width: @sixColumn !important;
  253. }
  254. .ui.grid > [class*="seven column"].row > .column {
  255. width: @sevenColumn !important;
  256. }
  257. .ui.grid > [class*="eight column"].row > .column {
  258. width: @eightColumn !important;
  259. }
  260. .ui.grid > [class*="nine column"].row > .column {
  261. width: @nineColumn !important;
  262. }
  263. .ui.grid > [class*="ten column"].row > .column {
  264. width: @tenColumn !important;
  265. }
  266. .ui.grid > [class*="eleven column"].row > .column {
  267. width: @elevenColumn !important;
  268. }
  269. .ui.grid > [class*="twelve column"].row > .column {
  270. width: @twelveColumn !important;
  271. }
  272. .ui.grid > [class*="thirteen column"].row > .column {
  273. width: @thirteenColumn !important;
  274. }
  275. .ui.grid > [class*="fourteen column"].row > .column {
  276. width: @fourteenColumn !important;
  277. }
  278. .ui.grid > [class*="fifteen column"].row > .column {
  279. width: @fifteenColumn !important;
  280. }
  281. .ui.grid > [class*="sixteen column"].row > .column {
  282. width: @sixteenColumn !important;
  283. }
  284. /* Assume full width with one column */
  285. .ui.grid > .column:only-child,
  286. .ui.grid > .row > .column:only-child {
  287. width: @oneColumn;
  288. }
  289. /*-------------------
  290. Column Width
  291. --------------------*/
  292. /* Sizing Combinations */
  293. .ui.grid > .row > [class*="one wide"].column,
  294. .ui.grid > .column.row > [class*="one wide"].column,
  295. .ui.grid > [class*="one wide"].column,
  296. .ui.column.grid > [class*="one wide"].column {
  297. width: @oneWide !important;
  298. }
  299. .ui.grid > .row > [class*="two wide"].column,
  300. .ui.grid > .column.row > [class*="two wide"].column,
  301. .ui.grid > [class*="two wide"].column,
  302. .ui.column.grid > [class*="two wide"].column {
  303. width: @twoWide !important;
  304. }
  305. .ui.grid > .row > [class*="three wide"].column,
  306. .ui.grid > .column.row > [class*="three wide"].column,
  307. .ui.grid > [class*="three wide"].column,
  308. .ui.column.grid > [class*="three wide"].column {
  309. width: @threeWide !important;
  310. }
  311. .ui.grid > .row > [class*="four wide"].column,
  312. .ui.grid > .column.row > [class*="four wide"].column,
  313. .ui.grid > [class*="four wide"].column,
  314. .ui.column.grid > [class*="four wide"].column {
  315. width: @fourWide !important;
  316. }
  317. .ui.grid > .row > [class*="five wide"].column,
  318. .ui.grid > .column.row > [class*="five wide"].column,
  319. .ui.grid > [class*="five wide"].column,
  320. .ui.column.grid > [class*="five wide"].column {
  321. width: @fiveWide !important;
  322. }
  323. .ui.grid > .row > [class*="six wide"].column,
  324. .ui.grid > .column.row > [class*="six wide"].column,
  325. .ui.grid > [class*="six wide"].column,
  326. .ui.column.grid > [class*="six wide"].column {
  327. width: @sixWide !important;
  328. }
  329. .ui.grid > .row > [class*="seven wide"].column,
  330. .ui.grid > .column.row > [class*="seven wide"].column,
  331. .ui.grid > [class*="seven wide"].column,
  332. .ui.column.grid > [class*="seven wide"].column {
  333. width: @sevenWide !important;
  334. }
  335. .ui.grid > .row > [class*="eight wide"].column,
  336. .ui.grid > .column.row > [class*="eight wide"].column,
  337. .ui.grid > [class*="eight wide"].column,
  338. .ui.column.grid > [class*="eight wide"].column {
  339. width: @eightWide !important;
  340. }
  341. .ui.grid > .row > [class*="nine wide"].column,
  342. .ui.grid > .column.row > [class*="nine wide"].column,
  343. .ui.grid > [class*="nine wide"].column,
  344. .ui.column.grid > [class*="nine wide"].column {
  345. width: @nineWide !important;
  346. }
  347. .ui.grid > .row > [class*="ten wide"].column,
  348. .ui.grid > .column.row > [class*="ten wide"].column,
  349. .ui.grid > [class*="ten wide"].column,
  350. .ui.column.grid > [class*="ten wide"].column {
  351. width: @tenWide !important;
  352. }
  353. .ui.grid > .row > [class*="eleven wide"].column,
  354. .ui.grid > .column.row > [class*="eleven wide"].column,
  355. .ui.grid > [class*="eleven wide"].column,
  356. .ui.column.grid > [class*="eleven wide"].column {
  357. width: @elevenWide !important;
  358. }
  359. .ui.grid > .row > [class*="twelve wide"].column,
  360. .ui.grid > .column.row > [class*="twelve wide"].column,
  361. .ui.grid > [class*="twelve wide"].column,
  362. .ui.column.grid > [class*="twelve wide"].column {
  363. width: @twelveWide !important;
  364. }
  365. .ui.grid > .row > [class*="thirteen wide"].column,
  366. .ui.grid > .column.row > [class*="thirteen wide"].column,
  367. .ui.grid > [class*="thirteen wide"].column,
  368. .ui.column.grid > [class*="thirteen wide"].column {
  369. width: @thirteenWide !important;
  370. }
  371. .ui.grid > .row > [class*="fourteen wide"].column,
  372. .ui.grid > .column.row > [class*="fourteen wide"].column,
  373. .ui.grid > [class*="fourteen wide"].column,
  374. .ui.column.grid > [class*="fourteen wide"].column {
  375. width: @fourteenWide !important;
  376. }
  377. .ui.grid > .row > [class*="fifteen wide"].column,
  378. .ui.grid > .column.row > [class*="fifteen wide"].column,
  379. .ui.grid > [class*="fifteen wide"].column,
  380. .ui.column.grid > [class*="fifteen wide"].column {
  381. width: @fifteenWide !important;
  382. }
  383. .ui.grid > .row > [class*="sixteen wide"].column,
  384. .ui.grid > .column.row > [class*="sixteen wide"].column,
  385. .ui.grid > [class*="sixteen wide"].column,
  386. .ui.column.grid > [class*="sixteen wide"].column {
  387. width: @sixteenWide !important;
  388. }
  389. /*----------------------
  390. Centered
  391. -----------------------*/
  392. .ui.centered.grid,
  393. .ui.centered.grid > .row,
  394. .ui.grid .centered.row {
  395. text-align: center;
  396. }
  397. .ui.centered.grid > .column:not(.aligned),
  398. .ui.centered.grid > .row > .column:not(.aligned),
  399. .ui.grid .centered.row > .column:not(.aligned) {
  400. text-align: left;
  401. }
  402. /*----------------------
  403. Relaxed
  404. -----------------------*/
  405. .ui.relaxed.grid > .column:not(.row),
  406. .ui.relaxed.grid > .row > .column,
  407. .ui.grid > .relaxed.row > .column {
  408. padding-left: (@relaxedGutterWidth / 2);
  409. padding-right: (@relaxedGutterWidth / 2);
  410. }
  411. .ui[class*="very relaxed"].grid > .column:not(.row),
  412. .ui[class*="very relaxed"].grid > .row > .column,
  413. .ui.grid > [class*="very relaxed"].row > .column {
  414. padding-left: (@veryRelaxedGutterWidth / 2);
  415. padding-right: (@veryRelaxedGutterWidth / 2);
  416. }
  417. /* Coupling with UI Divider */
  418. .ui.relaxed.grid .row + .ui.divider,
  419. .ui.grid .relaxed.row + .ui.divider {
  420. margin-left: (@relaxedGutterWidth / 2);
  421. margin-right: (@relaxedGutterWidth / 2);
  422. }
  423. .ui[class*="very relaxed"].grid .row + .ui.divider,
  424. .ui.grid [class*="very relaxed"].row + .ui.divider {
  425. margin-left: (@veryRelaxedGutterWidth / 2);
  426. margin-right: (@veryRelaxedGutterWidth / 2);
  427. }
  428. /*----------------------
  429. Padded
  430. -----------------------*/
  431. .ui.padded.grid:not(.vertically):not(.horizontally) {
  432. margin: 0em !important;
  433. }
  434. [class*="horizontally padded"].ui.grid {
  435. margin-left: 0em !important;
  436. margin-right: 0em !important;
  437. }
  438. [class*="vertically padded"].ui.grid {
  439. margin-top: 0em !important;
  440. margin-bottom: 0em !important;
  441. }
  442. /*----------------------
  443. "Floated"
  444. -----------------------*/
  445. .ui.grid [class*="left floated"].column {
  446. float: left;
  447. }
  448. .ui.grid [class*="right floated"].column {
  449. float: right;
  450. }
  451. /*----------------------
  452. Divided
  453. -----------------------*/
  454. .ui.divided.grid:not(.vertically) > .column:not(.row),
  455. .ui.divided.grid:not(.vertically) > .row > .column {
  456. box-shadow: @dividedBorder;
  457. }
  458. /* Swap from padding to margin on columns to have dividers align */
  459. .ui.divided.grid:not(.vertically) > .column:not(.row),
  460. .ui.divided.grid:not(.vertically) > .row > .column {
  461. margin-top: (@rowSpacing / 2);
  462. margin-bottom: (@rowSpacing / 2);
  463. padding-top: 0rem;
  464. padding-bottom: 0rem;
  465. }
  466. .ui.divided.grid:not(.vertically) > .row {
  467. margin-top: 0em;
  468. margin-bottom: 0em;
  469. }
  470. /* No divider on first column on row */
  471. .ui.divided.grid:not(.vertically) > .column:first-child,
  472. .ui.divided.grid:not(.vertically) > .row > .column:first-child {
  473. box-shadow: none;
  474. }
  475. /* Divided Row */
  476. .ui.grid > .divided.row > .column {
  477. box-shadow: @dividedBorder;
  478. }
  479. .ui.grid > .divided.row > .column:first-child {
  480. box-shadow: none;
  481. }
  482. /* Vertically Divided */
  483. .ui[class*="vertically divided"].grid > .row {
  484. position: relative;
  485. }
  486. .ui[class*="vertically divided"].grid > .row:before {
  487. position: absolute;
  488. content: "";
  489. top: 0em;
  490. left: 0px;
  491. width: ~"calc(100% - "@gutterWidth~")";
  492. height: 1px;
  493. margin: 0% (@gutterWidth / 2);
  494. box-shadow: @verticallyDividedBorder;
  495. }
  496. .ui[class*="vertically divided"].grid > .row:first-child:before {
  497. box-shadow: none;
  498. }
  499. /* Inverted Divided */
  500. .ui.inverted.divided.grid:not(.vertical) > .column,
  501. .ui.inverted.divided.grid:not(.vertical) > .row > .column {
  502. box-shadow: @dividedInvertedBorder;
  503. }
  504. .ui.inverted.divided.grid:not(.vertical) > .column:first-child,
  505. .ui.inverted.divided.grid:not(.vertical) > .row > .column:first-child {
  506. box-shadow: none;
  507. }
  508. .ui.inverted[class*="vertically divided"].grid > .row {
  509. box-shadow: @verticallyDividedInvertedBorder;
  510. }
  511. /* Relaxed */
  512. .ui.relaxed[class*="vertically divided"].grid > .row:before {
  513. margin-left: (@relaxedGutterWidth / 2);
  514. margin-right: (@relaxedGutterWidth / 2);
  515. width: ~"calc(100% - "@relaxedGutterWidth~")";
  516. }
  517. .ui[class*="very relaxed"][class*="vertically divided"].grid > .row:before {
  518. margin-left: @veryRelaxedGutterWidth;
  519. margin-right: @veryRelaxedGutterWidth;
  520. width: ~"calc(100% - "@veryRelaxedGutterWidth~")";
  521. }
  522. /*----------------------
  523. Celled
  524. -----------------------*/
  525. .ui.celled.grid {
  526. display: table;
  527. table-layout: fixed;
  528. width: @tableWidth;
  529. margin: @celledMargin;
  530. box-shadow: 0px 0px 0px @celledWidth @celledBorderColor;
  531. }
  532. .ui.celled.grid > .row,
  533. .ui.celled.grid > .column.row,
  534. .ui.celled.grid > .column.row:first-child {
  535. display: table;
  536. table-layout: fixed;
  537. width: 100%;
  538. margin: 0em;
  539. padding: 0em;
  540. box-shadow: 0px (-@celledWidth) 0px 0px @celledBorderColor;
  541. }
  542. .ui.celled.grid > .column:not(.row),
  543. .ui.celled.grid > .row > .column {
  544. display: table-cell;
  545. padding: 0.75em;
  546. box-shadow: (-@celledWidth) 0px 0px 0px @celledBorderColor;
  547. }
  548. .ui.celled.grid > .column:first-child,
  549. .ui.celled.grid > .row > .column:first-child {
  550. box-shadow: none;
  551. }
  552. .ui.celled.page.grid {
  553. box-shadow: none;
  554. }
  555. /*----------------------
  556. Horizontally Centered
  557. -----------------------*/
  558. /* Vertical Centered */
  559. .ui[class*="left aligned"].grid,
  560. .ui[class*="left aligned"].grid > .row > .column,
  561. .ui[class*="left aligned"].grid > .column,
  562. .ui.grid [class*="left aligned"].column,
  563. .ui.grid > [class*="left aligned"].row > .column {
  564. text-align: left;
  565. }
  566. .ui[class*="center aligned"].grid,
  567. .ui[class*="center aligned"].grid > .row > .column,
  568. .ui[class*="center aligned"].grid > .column,
  569. .ui.grid [class*="center aligned"].column,
  570. .ui.grid > [class*="center aligned"].row > .column {
  571. text-align: center;
  572. }
  573. .ui[class*="right aligned"].grid,
  574. .ui[class*="right aligned"].grid > .row > .column,
  575. .ui[class*="right aligned"].grid > .column,
  576. .ui.grid [class*="right aligned"].column,
  577. .ui.grid > [class*="right aligned"].row > .column {
  578. text-align: right;
  579. }
  580. .ui.justified.grid,
  581. .ui.justified.grid > .row > .column,
  582. .ui.justified.grid > .column,
  583. .ui.grid .justified.column,
  584. .ui.grid > .justified.row > .column {
  585. text-align: justify;
  586. hyphens: auto;
  587. }
  588. /*----------------------
  589. Colored
  590. -----------------------*/
  591. .ui.grid > .white.row,
  592. .ui.grid .white.column {
  593. background-color: @white !important;
  594. color: @textColor;
  595. }
  596. .ui.grid > .row > .white.column {
  597. margin-top: -(@rowSpacing / 2);
  598. margin-bottom: -(@rowSpacing / 2);
  599. padding-top: (@rowSpacing / 2);
  600. padding-bottom: (@rowSpacing / 2);
  601. }
  602. .ui.grid > .black.row,
  603. .ui.grid .black.column {
  604. background-color: @black !important;
  605. color: @white;
  606. }
  607. .ui.grid > .row > .black.column {
  608. margin-top: -(@rowSpacing / 2);
  609. margin-bottom: -(@rowSpacing / 2);
  610. padding-top: (@rowSpacing / 2);
  611. padding-bottom: (@rowSpacing / 2);
  612. }
  613. .ui.grid > .blue.row,
  614. .ui.grid .blue.column {
  615. background-color: @blue !important;
  616. color: @white;
  617. }
  618. .ui.grid > .row > .blue.column {
  619. margin-top: -(@rowSpacing / 2);
  620. margin-bottom: -(@rowSpacing / 2);
  621. padding-top: (@rowSpacing / 2);
  622. padding-bottom: (@rowSpacing / 2);
  623. }
  624. .ui.grid > .green.row,
  625. .ui.grid .green.column {
  626. background-color: @green !important;
  627. color: @white;
  628. }
  629. .ui.grid > .row > .green.column {
  630. margin-top: -(@rowSpacing / 2);
  631. margin-bottom: -(@rowSpacing / 2);
  632. padding-top: (@rowSpacing / 2);
  633. padding-bottom: (@rowSpacing / 2);
  634. }
  635. .ui.grid > .orange.row,
  636. .ui.grid .orange.column {
  637. background-color: @orange !important;
  638. color: @white;
  639. }
  640. .ui.grid > .row > .orange.column {
  641. margin-top: -(@rowSpacing / 2);
  642. margin-bottom: -(@rowSpacing / 2);
  643. padding-top: (@rowSpacing / 2);
  644. padding-bottom: (@rowSpacing / 2);
  645. }
  646. .ui.grid > .pink.row,
  647. .ui.grid .pink.column {
  648. background-color: @pink !important;
  649. color: @white;
  650. }
  651. .ui.grid > .row > .pink.column {
  652. margin-top: -(@rowSpacing / 2);
  653. margin-bottom: -(@rowSpacing / 2);
  654. padding-top: (@rowSpacing / 2);
  655. padding-bottom: (@rowSpacing / 2);
  656. }
  657. .ui.grid > .purple.row,
  658. .ui.grid .purple.column {
  659. background-color: @purple !important;
  660. color: @white;
  661. }
  662. .ui.grid > .row > .purple.column {
  663. margin-top: -(@rowSpacing / 2);
  664. margin-bottom: -(@rowSpacing / 2);
  665. padding-top: (@rowSpacing / 2);
  666. padding-bottom: (@rowSpacing / 2);
  667. }
  668. .ui.grid > .red.row,
  669. .ui.grid .red.column {
  670. background-color: @red !important;
  671. color: @white;
  672. }
  673. .ui.grid > .row > .red.column {
  674. margin-top: -(@rowSpacing / 2);
  675. margin-bottom: -(@rowSpacing / 2);
  676. padding-top: (@rowSpacing / 2);
  677. padding-bottom: (@rowSpacing / 2);
  678. }
  679. .ui.grid > .teal.row,
  680. .ui.grid .teal.column {
  681. background-color: @teal !important;
  682. color: @white;
  683. }
  684. .ui.grid > .row > .teal.column {
  685. margin-top: -(@rowSpacing / 2);
  686. margin-bottom: -(@rowSpacing / 2);
  687. padding-top: (@rowSpacing / 2);
  688. padding-bottom: (@rowSpacing / 2);
  689. }
  690. .ui.grid > .yellow.row,
  691. .ui.grid .yellow.column {
  692. background-color: @yellow !important;
  693. color: @white;
  694. }
  695. .ui.grid > .row > .yellow.column {
  696. margin-top: -(@rowSpacing / 2);
  697. margin-bottom: -(@rowSpacing / 2);
  698. padding-top: (@rowSpacing / 2);
  699. padding-bottom: (@rowSpacing / 2);
  700. }
  701. /*----------------------
  702. Vertically Centered
  703. -----------------------*/
  704. /* Vertical Centered */
  705. .ui[class*="top aligned"]grid,
  706. .ui[class*="top aligned"]grid > .row > .column,
  707. .ui[class*="top aligned"]grid > .column,
  708. .ui.grid [class*="top aligned"]column,
  709. .ui.grid > [class*="top aligned"]row > .column {
  710. vertical-align: top;
  711. }
  712. .ui[class*="middle aligned"].grid,
  713. .ui[class*="middle aligned"].grid > .row > .column,
  714. .ui[class*="middle aligned"].grid > .column,
  715. .ui.grid [class*="middle aligned"].column,
  716. .ui.grid > [class*="middle aligned"].row > .column {
  717. vertical-align: middle;
  718. }
  719. .ui[class*="bottom aligned"].grid,
  720. .ui[class*="bottom aligned"].grid > .row > .column,
  721. .ui[class*="bottom aligned"].grid > .column,
  722. .ui.grid [class*="bottom aligned"].column,
  723. .ui.grid > [class*="bottom aligned"].row > .column {
  724. vertical-align: bottom;
  725. }
  726. /*----------------------
  727. Equal Height Columns
  728. -----------------------*/
  729. .ui[class*="equal height"].grid {
  730. display: table;
  731. table-layout: fixed;
  732. width: @tableWidth;
  733. }
  734. .ui[class*="equal height"].row {
  735. display: table;
  736. table-layout: fixed;
  737. width: 100%;
  738. }
  739. .ui[class*="equal height"].grid > .column,
  740. .ui[class*="equal height"].grid > .row > .column,
  741. .ui.grid > [class*="equal height"].row > .column {
  742. display: table-cell;
  743. }
  744. /*-------------------
  745. Doubling
  746. --------------------*/
  747. /* Mobily Only */
  748. @media only screen and (max-width: @largestMobileScreen) {
  749. .ui.grid > .doubling.row,
  750. .ui.doubling.grid > .row {
  751. margin: 0em;
  752. padding: 0em;
  753. }
  754. .ui.grid > .doubling.row > .column,
  755. .ui.doubling.grid > .row > .column {
  756. padding-top: (@rowSpacing / 2) !important;
  757. padding-bottom: (@rowSpacing / 2) !important;
  758. margin: 0em;
  759. }
  760. .ui[class*="two column"].doubling.grid > .row > .column,
  761. .ui[class*="two column"].doubling.grid > .column,
  762. .ui.grid > [class*="two column"].doubling.row > .column {
  763. width: @oneColumn !important;
  764. }
  765. .ui[class*="three column"].doubling.grid > .row > .column,
  766. .ui[class*="three column"].doubling.grid > .column,
  767. .ui.grid > [class*="three column"].doubling.row > .column {
  768. width: @twoColumn !important;
  769. }
  770. .ui[class*="four column"].doubling.grid > .row > .column,
  771. .ui[class*="four column"].doubling.grid > .column,
  772. .ui.grid > [class*="four column"].doubling.row > .column {
  773. width: @twoColumn !important;
  774. }
  775. .ui[class*="five column"].doubling.grid > .row > .column,
  776. .ui[class*="five column"].doubling.grid > .column,
  777. .ui.grid > [class*="five column"].doubling.row > .column {
  778. width: @twoColumn !important;
  779. }
  780. .ui[class*="six column"].doubling.grid > .row > .column,
  781. .ui[class*="six column"].doubling.grid > .column,
  782. .ui.grid > [class*="six column"].doubling.row > .column {
  783. width: @twoColumn !important;
  784. }
  785. .ui[class*="seven column"].doubling.grid > .row > .column,
  786. .ui[class*="seven column"].doubling.grid > .column,
  787. .ui.grid > [class*="seven column"].doubling.row > .column {
  788. width: @threeColumn !important;
  789. }
  790. .ui[class*="eight column"].doubling.grid > .row > .column,
  791. .ui[class*="eight column"].doubling.grid > .column,
  792. .ui.grid > [class*="eight column"].doubling.row > .column {
  793. width: @threeColumn !important;
  794. }
  795. .ui[class*="nine column"].doubling.grid > .row > .column,
  796. .ui[class*="nine column"].doubling.grid > .column,
  797. .ui.grid > [class*="nine column"].doubling.row > .column {
  798. width: @threeColumn !important;
  799. }
  800. .ui[class*="ten column"].doubling.grid > .row > .column,
  801. .ui[class*="ten column"].doubling.grid > .column,
  802. .ui.grid > [class*="ten column"].doubling.row > .column {
  803. width: @threeColumn !important;
  804. }
  805. .ui[class*="twelve column"].doubling.grid > .row > .column,
  806. .ui[class*="twelve column"].doubling.grid > .column,
  807. .ui.grid > [class*="twelve column"].doubling.row > .column {
  808. width: @fourColumn !important;
  809. }
  810. .ui[class*="fourteen column"].doubling.grid > .row > .column,
  811. .ui[class*="fourteen column"].doubling.grid > .column,
  812. .ui.grid > [class*="fourteen column"].doubling.row > .column {
  813. width: @fourColumn !important;
  814. }
  815. .ui[class*="sixteen column"].doubling.grid > .row > .column,
  816. .ui[class*="sixteen column"].doubling.grid > .column,
  817. .ui.grid > [class*="sixteen column"].doubling.row > .column {
  818. width: @fourColumn !important;
  819. }
  820. }
  821. /* Tablet Only */
  822. @media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
  823. .ui.grid > .doubling.row,
  824. .ui.doubling.grid > .row {
  825. margin: 0em;
  826. padding: 0em;
  827. }
  828. .ui.grid > .doubling.row > .column,
  829. .ui.doubling.grid > .row > .column {
  830. padding-top: (@rowSpacing / 2) !important;
  831. padding-bottom: (@rowSpacing / 2) !important;
  832. margin: 0em;
  833. }
  834. .ui[class*="two column"].doubling.grid > .row > .column,
  835. .ui[class*="two column"].doubling.grid > .column,
  836. .ui.grid > [class*="two column"].doubling.row > .column {
  837. width: @oneColumn !important;
  838. }
  839. .ui[class*="three column"].doubling.grid > .row > .column,
  840. .ui[class*="three column"].doubling.grid > .column,
  841. .ui.grid > [class*="three column"].doubling.row > .column {
  842. width: @twoColumn !important;
  843. }
  844. .ui[class*="four column"].doubling.grid > .row > .column,
  845. .ui[class*="four column"].doubling.grid > .column,
  846. .ui.grid > [class*="four column"].doubling.row > .column {
  847. width: @twoColumn !important;
  848. }
  849. .ui[class*="five column"].doubling.grid > .row > .column,
  850. .ui[class*="five column"].doubling.grid > .column,
  851. .ui.grid > [class*="five column"].doubling.row > .column {
  852. width: @threeColumn !important;
  853. }
  854. .ui[class*="six column"].doubling.grid > .row > .column,
  855. .ui[class*="six column"].doubling.grid > .column,
  856. .ui.grid > [class*="six column"].doubling.row > .column {
  857. width: @threeColumn !important;
  858. }
  859. .ui[class*="eight column"].doubling.grid > .row > .column,
  860. .ui[class*="eight column"].doubling.grid > .column,
  861. .ui.grid > [class*="eight column"].doubling.row > .column {
  862. width: @threeColumn !important;
  863. }
  864. .ui[class*="eight column"].doubling.grid > .row > .column,
  865. .ui[class*="eight column"].doubling.grid > .column,
  866. .ui.grid > [class*="eight column"].doubling.row > .column {
  867. width: @fourColumn !important;
  868. }
  869. .ui[class*="nine column"].doubling.grid > .row > .column,
  870. .ui[class*="nine column"].doubling.grid > .column,
  871. .ui.grid > [class*="nine column"].doubling.row > .column {
  872. width: @fourColumn !important;
  873. }
  874. .ui[class*="ten column"].doubling.grid > .row > .column,
  875. .ui[class*="ten column"].doubling.grid > .column,
  876. .ui.grid > [class*="ten column"].doubling.row > .column {
  877. width: @fiveColumn !important;
  878. }
  879. .ui[class*="twelve column"].doubling.grid > .row > .column,
  880. .ui[class*="twelve column"].doubling.grid > .column,
  881. .ui.grid > [class*="twelve column"].doubling.row > .column {
  882. width: @sixColumn !important;
  883. }
  884. .ui[class*="fourteen column"].doubling.grid > .row > .column,
  885. .ui[class*="fourteen column"].doubling.grid > .column,
  886. .ui.grid > [class*="fourteen column"].doubling.row > .column {
  887. width: @sevenColumn !important;
  888. }
  889. .ui[class*="sixteen column"].doubling.grid > .row > .column,
  890. .ui[class*="sixteen column"].doubling.grid > .column,
  891. .ui.grid > [class*="sixteen column"].doubling.row > .column {
  892. width: @eightColumn !important;
  893. }
  894. }
  895. /*-------------------
  896. Stackable
  897. --------------------*/
  898. @media only screen and (max-width: @largestMobileScreen) {
  899. .ui.stackable.grid {
  900. display: block !important;
  901. padding: 0em;
  902. margin: 0em !important;
  903. }
  904. .ui.stackable.grid > .row > .wide.column,
  905. .ui.stackable.grid > .wide.column,
  906. .ui.stackable.grid > .column.grid > .column,
  907. .ui.stackable.grid > .column.row > .column,
  908. .ui.stackable.grid > .row > .column,
  909. .ui.stackable.grid > .column {
  910. display: block !important;
  911. width: auto !important;
  912. margin: (@stackableRowSpacing / 2) 0em 0em !important;
  913. padding: (@stackableRowSpacing / 2) 0em 0em !important;
  914. box-shadow: none !important;
  915. }
  916. .ui.stackable.celled.grid > .column,
  917. .ui.stackable.celled.grid > .row > .column,
  918. .ui.stackable.divided.grid > .column,
  919. .ui.stackable.divided.grid > .row > .column {
  920. border-top: @stackableMobileBorder;
  921. }
  922. .ui.inverted.stackable.celled.grid > .column,
  923. .ui.inverted.stackable.celled.grid > .row > .column,
  924. .ui.inverted.stackable.divided.grid > .column,
  925. .ui.inverted.stackable.divided.grid > .row > .column {
  926. border-top: @stackableInvertedMobileBorder;
  927. }
  928. .ui.stackable.grid > .row:first-child > .column:first-child,
  929. .ui.stackable.grid > .column:first-child {
  930. margin-top: 0em !important;
  931. padding-top: 0em !important;
  932. }
  933. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  934. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  935. .ui.stackable.divided.grid > .column:first-child,
  936. .ui.stackable.celled.grid > .column:first-child {
  937. border-top: none !important;
  938. }
  939. .ui.stackable.page.grid > .row > .column,
  940. .ui.stackable.page.grid > .column {
  941. padding-left: @stackableGutterWidth !important;
  942. padding-right: @stackableGutterWidth !important;
  943. }
  944. /* Remove pointers from vertical menus */
  945. .ui.stackable.grid .vertical.pointing.menu .item:after {
  946. display: none;
  947. }
  948. }
  949. /*----------------------
  950. Only (Device)
  951. -----------------------*/
  952. /* These include arbitrary class repetitions for forced specificity */
  953. /* Mobile Only Hide */
  954. @media only screen and ( max-width: @largestMobileScreen ) {
  955. .ui.tablet:not(.mobile).only.grid.grid.grid,
  956. .ui.grid.grid.grid > [class*="tablet only"].row:not(.mobile),
  957. .ui.grid.grid.grid > [class*="tablet only"].column:not(.mobile),
  958. .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.mobile) {
  959. display: none !important;
  960. }
  961. .ui[class*="computer only"].grid.grid.grid:not(.mobile),
  962. .ui.grid.grid.grid > [class*="computer only"].row:not(.mobile),
  963. .ui.grid.grid.grid > [class*="computer only"].column:not(.mobile),
  964. .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.mobile) {
  965. display: none !important;
  966. }
  967. }
  968. /* Tablet Only Hide */
  969. @media only screen and (min-width: @tabletBreakpoint ) and (max-width: @largestTabletScreen) {
  970. .ui[class*="mobile only"].grid.grid.grid:not(.tablet),
  971. .ui.grid.grid.grid > [class*="mobile only"].row:not(.tablet),
  972. .ui.grid.grid.grid > [class*="mobile only"].column:not(.tablet),
  973. .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.tablet) {
  974. display: none !important;
  975. }
  976. .ui[class*="computer only"].grid.grid.grid:not(.tablet),
  977. .ui.grid.grid.grid > [class*="computer only"].row:not(.tablet),
  978. .ui.grid.grid.grid > [class*="computer only"].column:not(.tablet),
  979. .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.tablet) {
  980. display: none !important;
  981. }
  982. }
  983. /* Computer Only Hide */
  984. @media only screen and ( min-width: (@computerBreakpoint) ) {
  985. .ui[class*="mobile only"].grid.grid.grid:not(.computer),
  986. .ui.grid.grid.grid > [class*="mobile only"].row:not(.computer),
  987. .ui.grid.grid.grid > [class*="mobile only"].column:not(.computer),
  988. .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.computer) {
  989. display: none !important;
  990. }
  991. .ui[class*="tablet only"].grid.grid.grid:not(.computer),
  992. .ui.grid.grid.grid > [class*="tablet only"].row:not(.computer),
  993. .ui.grid.grid.grid > [class*="tablet only"].column:not(.computer),
  994. .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) {
  995. display: none !important;
  996. }
  997. }
  998. .loadUIOverrides();