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.

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