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.

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