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.

1168 lines
33 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
  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. /* Assume full width with one column */
  171. .ui.grid > .column:only-child,
  172. .ui.grid > .row > .column:only-child {
  173. width: @oneColumn;
  174. }
  175. /* Grid Based */
  176. .ui[class*="one column"].grid > .row > .column,
  177. .ui[class*="one column"].grid > .column {
  178. width: @oneColumn;
  179. }
  180. .ui[class*="two column"].grid > .row > .column,
  181. .ui[class*="two column"].grid > .column {
  182. width: @twoColumn;
  183. }
  184. .ui[class*="three column"].grid > .row > .column,
  185. .ui[class*="three column"].grid > .column {
  186. width: @threeColumn;
  187. }
  188. .ui[class*="four column"].grid > .row > .column,
  189. .ui[class*="four column"].grid > .column {
  190. width: @fourColumn;
  191. }
  192. .ui[class*="five column"].grid > .row > .column,
  193. .ui[class*="five column"].grid > .column {
  194. width: @fiveColumn;
  195. }
  196. .ui[class*="six column"].grid > .row > .column,
  197. .ui[class*="six column"].grid > .column {
  198. width: @sixColumn;
  199. }
  200. .ui[class*="seven column"].grid > .row > .column,
  201. .ui[class*="seven column"].grid > .column {
  202. width: @sevenColumn;
  203. }
  204. .ui[class*="eight column"].grid > .row > .column,
  205. .ui[class*="eight column"].grid > .column {
  206. width: @eightColumn;
  207. }
  208. .ui[class*="nine column"].grid > .row > .column,
  209. .ui[class*="nine column"].grid > .column {
  210. width: @nineColumn;
  211. }
  212. .ui[class*="ten column"].grid > .row > .column,
  213. .ui[class*="ten column"].grid > .column {
  214. width: @tenColumn;
  215. }
  216. .ui[class*="eleven column"].grid > .row > .column,
  217. .ui[class*="eleven column"].grid > .column {
  218. width: @elevenColumn;
  219. }
  220. .ui[class*="twelve column"].grid > .row > .column,
  221. .ui[class*="twelve column"].grid > .column {
  222. width: @twelveColumn;
  223. }
  224. .ui[class*="thirteen column"].grid > .row > .column,
  225. .ui[class*="thirteen column"].grid > .column {
  226. width: @thirteenColumn;
  227. }
  228. .ui[class*="fourteen column"].grid > .row > .column,
  229. .ui[class*="fourteen column"].grid > .column {
  230. width: @fourteenColumn;
  231. }
  232. .ui[class*="fifteen column"].grid > .row > .column,
  233. .ui[class*="fifteen column"].grid > .column {
  234. width: @fifteenColumn;
  235. }
  236. .ui[class*="sixteen column"].grid > .row > .column,
  237. .ui[class*="sixteen column"].grid > .column {
  238. width: @sixteenColumn;
  239. }
  240. /* Row Based Overrides */
  241. .ui.grid > [class*="one column"].row > .column {
  242. width: @oneColumn !important;
  243. }
  244. .ui.grid > [class*="two column"].row > .column {
  245. width: @twoColumn !important;
  246. }
  247. .ui.grid > [class*="three column"].row > .column {
  248. width: @threeColumn !important;
  249. }
  250. .ui.grid > [class*="four column"].row > .column {
  251. width: @fourColumn !important;
  252. }
  253. .ui.grid > [class*="five column"].row > .column {
  254. width: @fiveColumn !important;
  255. }
  256. .ui.grid > [class*="six column"].row > .column {
  257. width: @sixColumn !important;
  258. }
  259. .ui.grid > [class*="seven column"].row > .column {
  260. width: @sevenColumn !important;
  261. }
  262. .ui.grid > [class*="eight column"].row > .column {
  263. width: @eightColumn !important;
  264. }
  265. .ui.grid > [class*="nine column"].row > .column {
  266. width: @nineColumn !important;
  267. }
  268. .ui.grid > [class*="ten column"].row > .column {
  269. width: @tenColumn !important;
  270. }
  271. .ui.grid > [class*="eleven column"].row > .column {
  272. width: @elevenColumn !important;
  273. }
  274. .ui.grid > [class*="twelve column"].row > .column {
  275. width: @twelveColumn !important;
  276. }
  277. .ui.grid > [class*="thirteen column"].row > .column {
  278. width: @thirteenColumn !important;
  279. }
  280. .ui.grid > [class*="fourteen column"].row > .column {
  281. width: @fourteenColumn !important;
  282. }
  283. .ui.grid > [class*="fifteen column"].row > .column {
  284. width: @fifteenColumn !important;
  285. }
  286. .ui.grid > [class*="sixteen column"].row > .column {
  287. width: @sixteenColumn !important;
  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. .ui.grid > .centered.column,
  403. .ui.grid > .row > .centered.column {
  404. display: block;
  405. margin-left: auto;
  406. margin-right: auto;
  407. }
  408. /*----------------------
  409. Relaxed
  410. -----------------------*/
  411. .ui.relaxed.grid > .column:not(.row),
  412. .ui.relaxed.grid > .row > .column,
  413. .ui.grid > .relaxed.row > .column {
  414. padding-left: (@relaxedGutterWidth / 2);
  415. padding-right: (@relaxedGutterWidth / 2);
  416. }
  417. .ui[class*="very relaxed"].grid > .column:not(.row),
  418. .ui[class*="very relaxed"].grid > .row > .column,
  419. .ui.grid > [class*="very relaxed"].row > .column {
  420. padding-left: (@veryRelaxedGutterWidth / 2);
  421. padding-right: (@veryRelaxedGutterWidth / 2);
  422. }
  423. /* Coupling with UI Divider */
  424. .ui.relaxed.grid .row + .ui.divider,
  425. .ui.grid .relaxed.row + .ui.divider {
  426. margin-left: (@relaxedGutterWidth / 2);
  427. margin-right: (@relaxedGutterWidth / 2);
  428. }
  429. .ui[class*="very relaxed"].grid .row + .ui.divider,
  430. .ui.grid [class*="very relaxed"].row + .ui.divider {
  431. margin-left: (@veryRelaxedGutterWidth / 2);
  432. margin-right: (@veryRelaxedGutterWidth / 2);
  433. }
  434. /*----------------------
  435. Padded
  436. -----------------------*/
  437. .ui.padded.grid:not(.vertically):not(.horizontally) {
  438. margin: 0em !important;
  439. }
  440. [class*="horizontally padded"].ui.grid {
  441. margin-left: 0em !important;
  442. margin-right: 0em !important;
  443. }
  444. [class*="vertically padded"].ui.grid {
  445. margin-top: 0em !important;
  446. margin-bottom: 0em !important;
  447. }
  448. /*----------------------
  449. "Floated"
  450. -----------------------*/
  451. .ui.grid [class*="left floated"].column {
  452. float: left;
  453. }
  454. .ui.grid [class*="right floated"].column {
  455. float: right;
  456. }
  457. /*----------------------
  458. Divided
  459. -----------------------*/
  460. .ui.divided.grid:not([class*="vertically divided"]) > .column:not(.row),
  461. .ui.divided.grid:not([class*="vertically divided"]) > .row > .column {
  462. box-shadow: @dividedBorder;
  463. }
  464. /* Swap from padding to margin on columns to have dividers align */
  465. .ui[class*="vertically divided"].grid > .column:not(.row),
  466. .ui[class*="vertically divided"].grid > .row > .column {
  467. margin-top: (@rowSpacing / 2);
  468. margin-bottom: (@rowSpacing / 2);
  469. padding-top: 0rem;
  470. padding-bottom: 0rem;
  471. }
  472. .ui[class*="vertically divided"].grid > .row {
  473. margin-top: 0em;
  474. margin-bottom: 0em;
  475. padding-top: 0em;
  476. padding-bottom: 0em;
  477. }
  478. /* No divider on first column on row */
  479. .ui.divided.grid:not([class*="vertically divided"]) > .column:first-child,
  480. .ui.divided.grid:not([class*="vertically divided"]) > .row > .column:first-child {
  481. box-shadow: none;
  482. }
  483. /* Divided Row */
  484. .ui.grid > .divided.row > .column {
  485. box-shadow: @dividedBorder;
  486. }
  487. .ui.grid > .divided.row > .column:first-child {
  488. box-shadow: none;
  489. }
  490. /* Vertically Divided */
  491. .ui[class*="vertically divided"].grid > .row {
  492. position: relative;
  493. }
  494. .ui[class*="vertically divided"].grid > .row:before {
  495. position: absolute;
  496. content: "";
  497. top: 0em;
  498. left: 0px;
  499. width: ~"calc(100% - "@gutterWidth~")";
  500. height: 1px;
  501. margin: 0% (@gutterWidth / 2);
  502. box-shadow: @verticallyDividedBorder;
  503. }
  504. /* Padded Horizontally Divided */
  505. [class*="horizontally padded"].ui.divided.grid,
  506. .ui.padded.divided.grid:not(.vertically):not(.horizontally) {
  507. width: 100%;
  508. }
  509. /* First Row Vertically Divided */
  510. .ui[class*="vertically divided"].grid > .row:first-child:before {
  511. box-shadow: none;
  512. }
  513. /* Inverted Divided */
  514. .ui.inverted.divided.grid:not([class*="vertically divided"]) > .column,
  515. .ui.inverted.divided.grid:not([class*="vertically divided"]) > .row > .column {
  516. box-shadow: @dividedInvertedBorder;
  517. }
  518. .ui.inverted.divided.grid:not([class*="vertically divided"]) > .column:first-child,
  519. .ui.inverted.divided.grid:not([class*="vertically divided"]) > .row > .column:first-child {
  520. box-shadow: none;
  521. }
  522. .ui.inverted[class*="vertically divided"].grid > .row {
  523. box-shadow: @verticallyDividedInvertedBorder;
  524. }
  525. /* Relaxed */
  526. .ui.relaxed[class*="vertically divided"].grid > .row:before {
  527. margin-left: (@relaxedGutterWidth / 2);
  528. margin-right: (@relaxedGutterWidth / 2);
  529. width: ~"calc(100% - "@relaxedGutterWidth~")";
  530. }
  531. .ui[class*="very relaxed"][class*="vertically divided"].grid > .row:before {
  532. margin-left: @veryRelaxedGutterWidth;
  533. margin-right: @veryRelaxedGutterWidth;
  534. width: ~"calc(100% - "@veryRelaxedGutterWidth~")";
  535. }
  536. /*----------------------
  537. Celled
  538. -----------------------*/
  539. .ui.celled.grid {
  540. display: table;
  541. table-layout: fixed;
  542. width: @tableWidth;
  543. margin: @celledMargin;
  544. box-shadow: 0px 0px 0px @celledWidth @celledBorderColor;
  545. }
  546. .ui.celled.grid > .row,
  547. .ui.celled.grid > .column.row,
  548. .ui.celled.grid > .column.row:first-child {
  549. display: table;
  550. table-layout: fixed;
  551. width: 100% !important;
  552. margin: 0em;
  553. padding: 0em;
  554. box-shadow: 0px (-@celledWidth) 0px 0px @celledBorderColor;
  555. }
  556. .ui.celled.grid > .column:not(.row),
  557. .ui.celled.grid > .row > .column {
  558. display: table-cell;
  559. padding: 0.75em;
  560. box-shadow: (-@celledWidth) 0px 0px 0px @celledBorderColor;
  561. }
  562. .ui.celled.grid > .column:first-child,
  563. .ui.celled.grid > .row > .column:first-child {
  564. box-shadow: none;
  565. }
  566. .ui.celled.page.grid {
  567. box-shadow: none;
  568. }
  569. /* Internally Celled */
  570. .ui[class*="internally celled"].grid {
  571. box-shadow: none;
  572. }
  573. .ui[class*="internally celled"].grid > .row:first-child {
  574. box-shadow: none;
  575. }
  576. .ui[class*="internally celled"].grid > .row > .column:first-child {
  577. box-shadow: none;
  578. }
  579. /*----------------------
  580. Horizontally Centered
  581. -----------------------*/
  582. /* Left Aligned */
  583. .ui[class*="left aligned"].grid,
  584. .ui[class*="left aligned"].grid > .row > .column,
  585. .ui[class*="left aligned"].grid > .column,
  586. .ui.grid [class*="left aligned"].column,
  587. .ui.grid > [class*="left aligned"].aligned.row > .column {
  588. text-align: left;
  589. }
  590. .ui.grid [class*="left aligned"].column{
  591. text-align: left !important;
  592. }
  593. /* Center Aligned */
  594. .ui[class*="center aligned"].grid,
  595. .ui[class*="center aligned"].grid > .row > .column,
  596. .ui[class*="center aligned"].grid > .column,
  597. .ui.grid > [class*="center aligned"].aligned.row > .column {
  598. text-align: center;
  599. }
  600. .ui.grid [class*="center aligned"].column{
  601. text-align: center !important;
  602. }
  603. /* Right Aligned */
  604. .ui[class*="right aligned"].grid,
  605. .ui[class*="right aligned"].grid > .row > .column,
  606. .ui[class*="right aligned"].grid > .column,
  607. .ui.grid > [class*="right aligned"].aligned.row > .column {
  608. text-align: right;
  609. }
  610. .ui.grid [class*="right aligned"].column{
  611. text-align: right !important;
  612. }
  613. /* Justified */
  614. .ui.justified.grid,
  615. .ui.justified.grid > .row > .column,
  616. .ui.justified.grid > .column,
  617. .ui.grid .justified.column,
  618. .ui.grid > .justified.row > .column {
  619. text-align: justify;
  620. hyphens: auto;
  621. }
  622. .ui.grid .justified.column {
  623. text-align: justify !important;
  624. hyphens: auto !important;
  625. }
  626. /*----------------------
  627. Vertically Aligned
  628. -----------------------*/
  629. /* Top Aligned */
  630. .ui[class*="top aligned"].grid,
  631. .ui[class*="top aligned"].grid > .row > .column,
  632. .ui[class*="top aligned"].grid > .column,
  633. .ui.grid [class*="top aligned"].column,
  634. .ui.grid > [class*="top aligned"].aligned.row > .column {
  635. vertical-align: top;
  636. }
  637. .ui.grid [class*="top aligned"].column{
  638. vertical-align: top !important;
  639. }
  640. /* Middle Aligned */
  641. .ui[class*="center aligned"].grid,
  642. .ui[class*="middle aligned"].grid > .row > .column,
  643. .ui[class*="middle aligned"].grid > .column,
  644. .ui.grid > [class*="middle aligned"].aligned.row > .column {
  645. vertical-align: middle;
  646. }
  647. .ui.grid [class*="middle aligned"].column{
  648. vertical-align: middle !important;
  649. }
  650. /* Bottom Aligned */
  651. .ui[class*="bottom aligned"].grid,
  652. .ui[class*="bottom aligned"].grid > .row > .column,
  653. .ui[class*="bottom aligned"].grid > .column,
  654. .ui.grid > [class*="bottom aligned"].aligned.row > .column {
  655. vertical-align: bottom;
  656. }
  657. .ui.grid [class*="bottom aligned"].column{
  658. vertical-align: bottom !important;
  659. }
  660. /*----------------------
  661. Colored
  662. -----------------------*/
  663. .ui.grid > .white.row,
  664. .ui.grid .white.column {
  665. background-color: @white !important;
  666. color: @textColor;
  667. }
  668. .ui.grid > .row > .white.column {
  669. margin-top: -(@rowSpacing / 2);
  670. margin-bottom: -(@rowSpacing / 2);
  671. padding-top: (@rowSpacing / 2);
  672. padding-bottom: (@rowSpacing / 2);
  673. }
  674. .ui.grid > .black.row,
  675. .ui.grid .black.column {
  676. background-color: @black !important;
  677. color: @white;
  678. }
  679. .ui.grid > .row > .black.column {
  680. margin-top: -(@rowSpacing / 2);
  681. margin-bottom: -(@rowSpacing / 2);
  682. padding-top: (@rowSpacing / 2);
  683. padding-bottom: (@rowSpacing / 2);
  684. }
  685. .ui.grid > .blue.row,
  686. .ui.grid .blue.column {
  687. background-color: @blue !important;
  688. color: @white;
  689. }
  690. .ui.grid > .row > .blue.column {
  691. margin-top: -(@rowSpacing / 2);
  692. margin-bottom: -(@rowSpacing / 2);
  693. padding-top: (@rowSpacing / 2);
  694. padding-bottom: (@rowSpacing / 2);
  695. }
  696. .ui.grid > .green.row,
  697. .ui.grid .green.column {
  698. background-color: @green !important;
  699. color: @white;
  700. }
  701. .ui.grid > .row > .green.column {
  702. margin-top: -(@rowSpacing / 2);
  703. margin-bottom: -(@rowSpacing / 2);
  704. padding-top: (@rowSpacing / 2);
  705. padding-bottom: (@rowSpacing / 2);
  706. }
  707. .ui.grid > .orange.row,
  708. .ui.grid .orange.column {
  709. background-color: @orange !important;
  710. color: @white;
  711. }
  712. .ui.grid > .row > .orange.column {
  713. margin-top: -(@rowSpacing / 2);
  714. margin-bottom: -(@rowSpacing / 2);
  715. padding-top: (@rowSpacing / 2);
  716. padding-bottom: (@rowSpacing / 2);
  717. }
  718. .ui.grid > .pink.row,
  719. .ui.grid .pink.column {
  720. background-color: @pink !important;
  721. color: @white;
  722. }
  723. .ui.grid > .row > .pink.column {
  724. margin-top: -(@rowSpacing / 2);
  725. margin-bottom: -(@rowSpacing / 2);
  726. padding-top: (@rowSpacing / 2);
  727. padding-bottom: (@rowSpacing / 2);
  728. }
  729. .ui.grid > .purple.row,
  730. .ui.grid .purple.column {
  731. background-color: @purple !important;
  732. color: @white;
  733. }
  734. .ui.grid > .row > .purple.column {
  735. margin-top: -(@rowSpacing / 2);
  736. margin-bottom: -(@rowSpacing / 2);
  737. padding-top: (@rowSpacing / 2);
  738. padding-bottom: (@rowSpacing / 2);
  739. }
  740. .ui.grid > .red.row,
  741. .ui.grid .red.column {
  742. background-color: @red !important;
  743. color: @white;
  744. }
  745. .ui.grid > .row > .red.column {
  746. margin-top: -(@rowSpacing / 2);
  747. margin-bottom: -(@rowSpacing / 2);
  748. padding-top: (@rowSpacing / 2);
  749. padding-bottom: (@rowSpacing / 2);
  750. }
  751. .ui.grid > .teal.row,
  752. .ui.grid .teal.column {
  753. background-color: @teal !important;
  754. color: @white;
  755. }
  756. .ui.grid > .row > .teal.column {
  757. margin-top: -(@rowSpacing / 2);
  758. margin-bottom: -(@rowSpacing / 2);
  759. padding-top: (@rowSpacing / 2);
  760. padding-bottom: (@rowSpacing / 2);
  761. }
  762. .ui.grid > .yellow.row,
  763. .ui.grid .yellow.column {
  764. background-color: @yellow !important;
  765. color: @white;
  766. }
  767. .ui.grid > .row > .yellow.column {
  768. margin-top: -(@rowSpacing / 2);
  769. margin-bottom: -(@rowSpacing / 2);
  770. padding-top: (@rowSpacing / 2);
  771. padding-bottom: (@rowSpacing / 2);
  772. }
  773. /*----------------------
  774. Equal Height Columns
  775. -----------------------*/
  776. .ui[class*="equal height"].grid {
  777. display: table;
  778. table-layout: fixed;
  779. width: @tableWidth;
  780. }
  781. .ui[class*="equal height"].grid > .row,
  782. .ui[class*="equal height"].row {
  783. display: table;
  784. table-layout: fixed;
  785. width: 100% !important;
  786. }
  787. .ui[class*="equal height"].grid > .column,
  788. .ui[class*="equal height"].grid > .row > .column,
  789. .ui.grid > [class*="equal height"].row > .column {
  790. display: table-cell;
  791. }
  792. /*-------------------
  793. Doubling
  794. --------------------*/
  795. /* Mobily Only */
  796. @media only screen and (max-width: @largestMobileScreen) {
  797. .ui.doubling.grid {
  798. width: 100% !important;
  799. }
  800. .ui.grid > .doubling.row,
  801. .ui.doubling.grid > .row {
  802. display: block !important;
  803. margin: 0em !important;
  804. padding: 0em !important;
  805. }
  806. .ui.grid > .doubling.row > .column,
  807. .ui.doubling.grid > .row > .column {
  808. display: inline-block !important;
  809. padding-top: (@rowSpacing / 2) !important;
  810. padding-bottom: (@rowSpacing / 2) !important;
  811. margin: 0em !important;
  812. }
  813. .ui[class*="two column"].doubling:not(.stackable).grid > .row > .column,
  814. .ui[class*="two column"].doubling:not(.stackable).grid > .column,
  815. .ui.grid > [class*="two column"].doubling:not(.stackable).row > .column {
  816. width: @oneColumn !important;
  817. }
  818. .ui[class*="three column"].doubling:not(.stackable).grid > .row > .column,
  819. .ui[class*="three column"].doubling:not(.stackable).grid > .column,
  820. .ui.grid > [class*="three column"].doubling:not(.stackable).row > .column {
  821. width: @twoColumn !important;
  822. }
  823. .ui[class*="four column"].doubling:not(.stackable).grid > .row > .column,
  824. .ui[class*="four column"].doubling:not(.stackable).grid > .column,
  825. .ui.grid > [class*="four column"].doubling:not(.stackable).row > .column {
  826. width: @twoColumn !important;
  827. }
  828. .ui[class*="five column"].doubling:not(.stackable).grid > .row > .column,
  829. .ui[class*="five column"].doubling:not(.stackable).grid > .column,
  830. .ui.grid > [class*="five column"].doubling:not(.stackable).row > .column {
  831. width: @twoColumn !important;
  832. }
  833. .ui[class*="six column"].doubling:not(.stackable).grid > .row > .column,
  834. .ui[class*="six column"].doubling:not(.stackable).grid > .column,
  835. .ui.grid > [class*="six column"].doubling:not(.stackable).row > .column {
  836. width: @twoColumn !important;
  837. }
  838. .ui[class*="seven column"].doubling:not(.stackable).grid > .row > .column,
  839. .ui[class*="seven column"].doubling:not(.stackable).grid > .column,
  840. .ui.grid > [class*="seven column"].doubling:not(.stackable).row > .column {
  841. width: @threeColumn !important;
  842. }
  843. .ui[class*="eight column"].doubling:not(.stackable).grid > .row > .column,
  844. .ui[class*="eight column"].doubling:not(.stackable).grid > .column,
  845. .ui.grid > [class*="eight column"].doubling:not(.stackable).row > .column {
  846. width: @threeColumn !important;
  847. }
  848. .ui[class*="nine column"].doubling:not(.stackable).grid > .row > .column,
  849. .ui[class*="nine column"].doubling:not(.stackable).grid > .column,
  850. .ui.grid > [class*="nine column"].doubling:not(.stackable).row > .column {
  851. width: @threeColumn !important;
  852. }
  853. .ui[class*="ten column"].doubling:not(.stackable).grid > .row > .column,
  854. .ui[class*="ten column"].doubling:not(.stackable).grid > .column,
  855. .ui.grid > [class*="ten column"].doubling:not(.stackable).row > .column {
  856. width: @threeColumn !important;
  857. }
  858. .ui[class*="twelve column"].doubling:not(.stackable).grid > .row > .column,
  859. .ui[class*="twelve column"].doubling:not(.stackable).grid > .column,
  860. .ui.grid > [class*="twelve column"].doubling:not(.stackable).row > .column {
  861. width: @fourColumn !important;
  862. }
  863. .ui[class*="fourteen column"].doubling:not(.stackable).grid > .row > .column,
  864. .ui[class*="fourteen column"].doubling:not(.stackable).grid > .column,
  865. .ui.grid > [class*="fourteen column"].doubling:not(.stackable).row > .column {
  866. width: @fourColumn !important;
  867. }
  868. .ui[class*="sixteen column"].doubling:not(.stackable).grid > .row > .column,
  869. .ui[class*="sixteen column"].doubling:not(.stackable).grid > .column,
  870. .ui.grid > [class*="sixteen column"].doubling:not(.stackable).row > .column {
  871. width: @fourColumn !important;
  872. }
  873. }
  874. /* Tablet Only */
  875. @media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
  876. .ui.doubling.grid {
  877. width: 100% !important;
  878. }
  879. .ui.grid > .doubling.row,
  880. .ui.doubling.grid > .row {
  881. margin: 0em !important;
  882. padding: 0em !important;
  883. }
  884. .ui.grid > .doubling.row > .column,
  885. .ui.doubling.grid > .row > .column {
  886. display: inline-block !important;
  887. padding-top: (@rowSpacing / 2) !important;
  888. padding-bottom: (@rowSpacing / 2) !important;
  889. margin: 0em;
  890. }
  891. .ui[class*="two column"].doubling.grid > .row > .column,
  892. .ui[class*="two column"].doubling.grid > .column,
  893. .ui.grid > [class*="two column"].doubling.row > .column {
  894. width: @oneColumn !important;
  895. }
  896. .ui[class*="three column"].doubling.grid > .row > .column,
  897. .ui[class*="three column"].doubling.grid > .column,
  898. .ui.grid > [class*="three column"].doubling.row > .column {
  899. width: @twoColumn !important;
  900. }
  901. .ui[class*="four column"].doubling.grid > .row > .column,
  902. .ui[class*="four column"].doubling.grid > .column,
  903. .ui.grid > [class*="four column"].doubling.row > .column {
  904. width: @twoColumn !important;
  905. }
  906. .ui[class*="five column"].doubling.grid > .row > .column,
  907. .ui[class*="five column"].doubling.grid > .column,
  908. .ui.grid > [class*="five column"].doubling.row > .column {
  909. width: @threeColumn !important;
  910. }
  911. .ui[class*="six column"].doubling.grid > .row > .column,
  912. .ui[class*="six column"].doubling.grid > .column,
  913. .ui.grid > [class*="six column"].doubling.row > .column {
  914. width: @threeColumn !important;
  915. }
  916. .ui[class*="eight column"].doubling.grid > .row > .column,
  917. .ui[class*="eight column"].doubling.grid > .column,
  918. .ui.grid > [class*="eight column"].doubling.row > .column {
  919. width: @threeColumn !important;
  920. }
  921. .ui[class*="eight column"].doubling.grid > .row > .column,
  922. .ui[class*="eight column"].doubling.grid > .column,
  923. .ui.grid > [class*="eight column"].doubling.row > .column {
  924. width: @fourColumn !important;
  925. }
  926. .ui[class*="nine column"].doubling.grid > .row > .column,
  927. .ui[class*="nine column"].doubling.grid > .column,
  928. .ui.grid > [class*="nine column"].doubling.row > .column {
  929. width: @fourColumn !important;
  930. }
  931. .ui[class*="ten column"].doubling.grid > .row > .column,
  932. .ui[class*="ten column"].doubling.grid > .column,
  933. .ui.grid > [class*="ten column"].doubling.row > .column {
  934. width: @fiveColumn !important;
  935. }
  936. .ui[class*="twelve column"].doubling.grid > .row > .column,
  937. .ui[class*="twelve column"].doubling.grid > .column,
  938. .ui.grid > [class*="twelve column"].doubling.row > .column {
  939. width: @sixColumn !important;
  940. }
  941. .ui[class*="fourteen column"].doubling.grid > .row > .column,
  942. .ui[class*="fourteen column"].doubling.grid > .column,
  943. .ui.grid > [class*="fourteen column"].doubling.row > .column {
  944. width: @sevenColumn !important;
  945. }
  946. .ui[class*="sixteen column"].doubling.grid > .row > .column,
  947. .ui[class*="sixteen column"].doubling.grid > .column,
  948. .ui.grid > [class*="sixteen column"].doubling.row > .column {
  949. width: @eightColumn !important;
  950. }
  951. }
  952. /*-------------------
  953. Stackable
  954. --------------------*/
  955. @media only screen and (max-width: @largestMobileScreen) {
  956. .ui.stackable.grid {
  957. display: block !important;
  958. width: 100%;
  959. padding: 0em;
  960. margin: 0em !important;
  961. }
  962. .ui.stackable.grid > .row > .wide.column,
  963. .ui.stackable.grid > .wide.column,
  964. .ui.stackable.grid > .column.grid > .column,
  965. .ui.stackable.grid > .column.row > .column,
  966. .ui.stackable.grid > .row > .column,
  967. .ui.stackable.grid > .column {
  968. display: block !important;
  969. width: auto !important;
  970. margin: (@stackableRowSpacing / 2) 0em 0em !important;
  971. padding: (@stackableRowSpacing / 2) 0em 0em !important;
  972. box-shadow: none !important;
  973. }
  974. .ui.stackable.celled.grid > .column,
  975. .ui.stackable.celled.grid > .row > .column,
  976. .ui.stackable.divided.grid > .column,
  977. .ui.stackable.divided.grid > .row > .column {
  978. border-top: @stackableMobileBorder;
  979. }
  980. .ui.inverted.stackable.celled.grid > .column,
  981. .ui.inverted.stackable.celled.grid > .row > .column,
  982. .ui.inverted.stackable.divided.grid > .column,
  983. .ui.inverted.stackable.divided.grid > .row > .column {
  984. border-top: @stackableInvertedMobileBorder;
  985. }
  986. .ui.stackable.grid > .row:first-child > .column:first-child,
  987. .ui.stackable.grid > .column:first-child {
  988. margin-top: 0em !important;
  989. padding-top: 0em !important;
  990. }
  991. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  992. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  993. .ui.stackable.divided.grid > .column:first-child,
  994. .ui.stackable.celled.grid > .column:first-child {
  995. border-top: none !important;
  996. }
  997. .ui.stackable.page.grid > .row > .column,
  998. .ui.stackable.page.grid > .column {
  999. padding-left: @stackableGutterWidth !important;
  1000. padding-right: @stackableGutterWidth !important;
  1001. }
  1002. .ui[class*="equal height"].stackable.page.grid {
  1003. display: block !important;
  1004. width: 100% !important;
  1005. }
  1006. /* Remove pointers from vertical menus */
  1007. .ui.stackable.grid .vertical.pointing.menu .item:after {
  1008. display: none;
  1009. }
  1010. }
  1011. /*----------------------
  1012. Only (Device)
  1013. -----------------------*/
  1014. /* These include arbitrary class repetitions for forced specificity */
  1015. /* Mobile Only Hide */
  1016. @media only screen and ( max-width: @largestMobileScreen ) {
  1017. .ui.tablet:not(.mobile).only.grid.grid.grid,
  1018. .ui.grid.grid.grid > [class*="tablet only"].row:not(.mobile),
  1019. .ui.grid.grid.grid > [class*="tablet only"].column:not(.mobile),
  1020. .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.mobile) {
  1021. display: none !important;
  1022. }
  1023. .ui[class*="computer only"].grid.grid.grid:not(.mobile),
  1024. .ui.grid.grid.grid > [class*="computer only"].row:not(.mobile),
  1025. .ui.grid.grid.grid > [class*="computer only"].column:not(.mobile),
  1026. .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.mobile) {
  1027. display: none !important;
  1028. }
  1029. }
  1030. /* Tablet Only Hide */
  1031. @media only screen and (min-width: @tabletBreakpoint ) and (max-width: @largestTabletScreen) {
  1032. .ui[class*="mobile only"].grid.grid.grid:not(.tablet),
  1033. .ui.grid.grid.grid > [class*="mobile only"].row:not(.tablet),
  1034. .ui.grid.grid.grid > [class*="mobile only"].column:not(.tablet),
  1035. .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.tablet) {
  1036. display: none !important;
  1037. }
  1038. .ui[class*="computer only"].grid.grid.grid:not(.tablet),
  1039. .ui.grid.grid.grid > [class*="computer only"].row:not(.tablet),
  1040. .ui.grid.grid.grid > [class*="computer only"].column:not(.tablet),
  1041. .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.tablet) {
  1042. display: none !important;
  1043. }
  1044. }
  1045. /* Computer Only Hide */
  1046. @media only screen and ( min-width: (@computerBreakpoint) ) {
  1047. .ui[class*="mobile only"].grid.grid.grid:not(.computer),
  1048. .ui.grid.grid.grid > [class*="mobile only"].row:not(.computer),
  1049. .ui.grid.grid.grid > [class*="mobile only"].column:not(.computer),
  1050. .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.computer) {
  1051. display: none !important;
  1052. }
  1053. .ui[class*="tablet only"].grid.grid.grid:not(.computer),
  1054. .ui.grid.grid.grid > [class*="tablet only"].row:not(.computer),
  1055. .ui.grid.grid.grid > [class*="tablet only"].column:not(.computer),
  1056. .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) {
  1057. display: none !important;
  1058. }
  1059. }
  1060. .loadUIOverrides();