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.

661 lines
15 KiB

  1. /*
  2. * # Semantic - Grid
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Grid
  13. *******************************/
  14. .ui.grid {
  15. display: block;
  16. text-align: left;
  17. font-size: 0em;
  18. margin: 0% -1.5%;
  19. padding: 0%;
  20. -webkit-box-sizing: border-box;
  21. -moz-box-sizing: border-box;
  22. -ms-box-sizing: border-box;
  23. box-sizing: border-box;
  24. }
  25. .ui.grid:after,
  26. .ui.row:after {
  27. content: ".";
  28. display: block;
  29. height: 0;
  30. clear: both;
  31. visibility: hidden;
  32. }
  33. /*-------------------
  34. Columns
  35. --------------------*/
  36. .ui.grid > .column,
  37. .ui.grid > .row > .column {
  38. display: inline-block;
  39. text-align: left;
  40. font-size: 1rem;
  41. padding-left: 1.5%;
  42. padding-right: 1.5%;
  43. -webkit-box-sizing: border-box;
  44. -moz-box-sizing: border-box;
  45. -ms-box-sizing: border-box;
  46. box-sizing: border-box;
  47. vertical-align: top;
  48. }
  49. /*-------------------
  50. Rows
  51. --------------------*/
  52. .ui.grid > .row {
  53. display: block;
  54. width: 100% !important;
  55. margin-top: 1.5%;
  56. padding: 1.5% 0% 0%;
  57. font-size: 0rem;
  58. }
  59. .ui.grid > .row:first-child {
  60. padding-top: 0rem;
  61. margin-top: 0rem;
  62. }
  63. /*-------------------
  64. Content
  65. --------------------*/
  66. .ui.grid > .row > img,
  67. .ui.grid > .row > .column > img {
  68. max-width: 100%;
  69. }
  70. .ui.grid .column > .ui.segment:only-child {
  71. margin: 0em;
  72. }
  73. /*******************************
  74. Variations
  75. *******************************/
  76. /*-------------------
  77. Page
  78. --------------------*/
  79. .ui.page.grid {
  80. margin: 0%;
  81. padding: 0% 2%;
  82. }
  83. /*-------------------
  84. Responsive
  85. --------------------*/
  86. .ui.responsive.grid {
  87. margin-left: 0% !important;
  88. margin-right: 0% !important;
  89. min-width: 320px;
  90. }
  91. @media only screen and (max-width : 1000px) {
  92. .ui.responsive.grid {
  93. padding: 0% 5.55%;
  94. }
  95. .ui.responsive.grid > .column,
  96. .ui.responsive.grid > .row > .column {
  97. }
  98. }
  99. @media only screen and (min-width : 1000px) {
  100. .ui.responsive.grid {
  101. padding: 0% 8%;
  102. }
  103. .ui.responsive.grid > .column,
  104. .ui.responsive.grid > .row > .column {
  105. }
  106. }
  107. @media only screen and (min-width : 1500px) {
  108. .ui.responsive.grid {
  109. padding: 0% 13%;
  110. }
  111. .ui.responsive.grid > .column,
  112. .ui.responsive.grid > .row > .column {
  113. }
  114. }
  115. @media only screen and (min-width : 1750px) {
  116. .ui.responsive.grid {
  117. padding: 0% 18%;
  118. }
  119. .ui.responsive.grid > .column,
  120. .ui.responsive.grid > .row > .column {
  121. }
  122. }
  123. @media only screen and (min-width : 2000px) {
  124. .ui.responsive.grid {
  125. padding: 0% 23%;
  126. }
  127. .ui.responsive.grid > .column,
  128. .ui.responsive.grid > .row > .column {
  129. }
  130. }
  131. /*-------------------
  132. Column Width
  133. --------------------*/
  134. /* Sizing Combinations */
  135. .ui.grid .one.wide.column {
  136. width: 6.25%;
  137. }
  138. .ui.grid .two.wide.column {
  139. width: 12.5%;
  140. }
  141. .ui.grid .three.wide.column {
  142. width: 18.75%;
  143. }
  144. .ui.grid .four.wide.column {
  145. width: 25%;
  146. }
  147. .ui.grid .five.wide.column {
  148. width: 31.25%;
  149. }
  150. .ui.grid .six.wide.column {
  151. width: 37.5%;
  152. }
  153. .ui.grid .seven.wide.column {
  154. width: 43.75%;
  155. }
  156. .ui.grid .eight.wide.column {
  157. width: 50%;
  158. }
  159. .ui.grid .nine.wide.column {
  160. width: 56.25%;
  161. }
  162. .ui.grid .ten.wide.column {
  163. width: 62.5%;
  164. }
  165. .ui.grid .eleven.wide.column {
  166. width: 68.75%;
  167. }
  168. .ui.grid .twelve.wide.column {
  169. width: 75%;
  170. }
  171. .ui.grid .thirteen.wide.column {
  172. width: 81.25%;
  173. }
  174. .ui.grid .fourteen.wide.column {
  175. width: 87.5%;
  176. }
  177. .ui.grid .fifteen.wide.column {
  178. width: 93.75%;
  179. }
  180. .ui.grid .sixteen.wide.column {
  181. width: 100%;
  182. }
  183. /*-------------------
  184. Column Count
  185. --------------------*/
  186. /* Standard */
  187. .ui.grid > .column,
  188. .ui.grid > .row > .column {
  189. width: 6.25%;
  190. }
  191. /* Assume full width with one column */
  192. .ui.one.column.grid > .row > .column,
  193. .ui.one.column.grid > .column,
  194. .ui.grid > .one.column.row > .column {
  195. width: 100%;
  196. }
  197. .ui.two.column.grid > .row > .column,
  198. .ui.two.column.grid > .column,
  199. .ui.grid > .two.column.row > .column {
  200. width: 50%;
  201. }
  202. .ui.three.column.grid > .row > .column,
  203. .ui.three.column.grid > .column,
  204. .ui.grid > .three.column.row > .column {
  205. width: 33.3333%;
  206. }
  207. .ui.four.column.grid > .row > .column,
  208. .ui.four.column.grid > .column,
  209. .ui.grid > .four.column.row > .column {
  210. width: 25%;
  211. }
  212. .ui.five.column.grid > .row > .column,
  213. .ui.five.column.grid > .column,
  214. .ui.grid > .five.column.row > .column {
  215. width: 20%;
  216. }
  217. .ui.six.column.grid > .row > .column,
  218. .ui.six.column.grid > .column,
  219. .ui.grid > .six.column.row > .column {
  220. width: 16.66667%;
  221. }
  222. .ui.seven.column.grid > .row > .column,
  223. .ui.seven.column.grid > .column,
  224. .ui.grid > .seven.column.row > .column {
  225. width: 14.2857%;
  226. }
  227. .ui.eight.column.grid > .row > .column,
  228. .ui.eight.column.grid > .column,
  229. .ui.grid > .eight.column.row > .column {
  230. width: 12.5%;
  231. }
  232. .ui.nine.column.grid > .row > .column,
  233. .ui.nine.column.grid > .column,
  234. .ui.grid > .nine.column.row > .column {
  235. width: 11.1111%;
  236. }
  237. .ui.ten.column.grid > .row > .column,
  238. .ui.ten.column.grid > .column,
  239. .ui.grid > .ten.column.row > .column {
  240. width: 10%;
  241. }
  242. .ui.eleven.column.grid > .row > .column,
  243. .ui.eleven.column.grid > .column,
  244. .ui.grid > .eleven.column.row > .column {
  245. width: 9.0909%;
  246. }
  247. .ui.twelve.column.grid > .row > .column,
  248. .ui.twelve.column.grid > .column,
  249. .ui.grid > .twelve.column.row > .column {
  250. width: 8.3333%;
  251. }
  252. .ui.thirteen.column.grid > .row > .column,
  253. .ui.thirteen.column.grid > .column,
  254. .ui.grid > .thirteen.column.row > .column {
  255. width: 7.6923%;
  256. }
  257. .ui.fourteen.column.grid > .row > .column,
  258. .ui.fourteen.column.grid > .column,
  259. .ui.grid > .fourteen.column.row > .column {
  260. width: 7.1428%;
  261. }
  262. .ui.fifteen.column.grid > .row > .column,
  263. .ui.fifteen.column.grid > .column,
  264. .ui.grid > .fifteen.column.row > .column {
  265. width: 6.6666%;
  266. }
  267. .ui.sixteen.column.grid > .row > .column,
  268. .ui.sixteen.column.grid > .column,
  269. .ui.grid > .sixteen.column.row > .column {
  270. width: 6.25%;
  271. }
  272. /* Assume full width with one column */
  273. .ui.grid > .column:only-child,
  274. .ui.grid > .row > .column:only-child {
  275. width: 100%;
  276. }
  277. /*----------------------
  278. Relaxed
  279. -----------------------*/
  280. .ui.relaxed.grid {
  281. margin: 0% -2.5%;
  282. }
  283. .ui.relaxed.grid > .column,
  284. .ui.relaxed.grid > .row > .column {
  285. padding-left: 2.5%;
  286. padding-right: 2.5%;
  287. }
  288. /*----------------------
  289. "Floated"
  290. -----------------------*/
  291. .ui.grid .left.floated.column {
  292. float: left;
  293. }
  294. .ui.grid .right.floated.column {
  295. float: right;
  296. }
  297. /*----------------------
  298. Divided
  299. -----------------------*/
  300. .ui.divided.grid,
  301. .ui.divided.grid > .row {
  302. display: table;
  303. width: 100%;
  304. margin-left: 0% !important;
  305. margin-right: 0% !important;
  306. }
  307. .ui.divided.grid > .column:not(.row),
  308. .ui.divided.grid > .row > .column {
  309. display: table-cell;
  310. -webkit-box-shadow:
  311. -1px 0px 0px 0px rgba(0, 0, 0, 0.1),
  312. -2px 0px 0px 0px rgba(255, 255, 255, 0.8)
  313. ;
  314. -moz-box-shadow:
  315. -1px 0px 0px 0px rgba(0, 0, 0, 0.1),
  316. -2px 0px 0px 0px rgba(255, 255, 255, 0.8)
  317. ;
  318. box-shadow:
  319. -1px 0px 0px 0px rgba(0, 0, 0, 0.1),
  320. -2px 0px 0px 0px rgba(255, 255, 255, 0.8)
  321. ;
  322. }
  323. .ui.divided.grid > .column.row {
  324. display: table;
  325. }
  326. .ui.divided.grid > .column:first-child,
  327. .ui.divided.grid > .row > .column:first-child {
  328. -webkit-box-shadow: none;
  329. -moz-box-shadow: none;
  330. box-shadow: none;
  331. }
  332. /* Vertically Divided */
  333. .ui.vertically.divided.grid > .row {
  334. -webkit-box-shadow:
  335. 0px -1px 0px 0px rgba(0, 0, 0, 0.1),
  336. 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important
  337. ;
  338. -moz-box-shadow:
  339. 0px -1px 0px 0px rgba(0, 0, 0, 0.1),
  340. 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important
  341. ;
  342. box-shadow:
  343. 0px -1px 0px 0px rgba(0, 0, 0, 0.1),
  344. 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important
  345. ;
  346. }
  347. .ui.vertically.divided.grid > .row > .column,
  348. .ui.vertically.divided.grid > .column:not(.row),
  349. .ui.vertically.divided.grid > .row:first-child {
  350. -webkit-box-shadow: none !important;
  351. -moz-box-shadow: none !important;
  352. box-shadow: none !important;
  353. }
  354. /*----------------------
  355. Celled
  356. -----------------------*/
  357. .ui.celled.grid {
  358. display: table;
  359. width: 100%;
  360. margin-left: 0% !important;
  361. margin-right: 0% !important;
  362. -webkit-box-shadow: 0px 0px 0px 1px #DFDFDF;
  363. -moz-box-shadow: 0px 0px 0px 1px #DFDFDF;
  364. box-shadow: 0px 0px 0px 1px #DFDFDF;
  365. }
  366. .ui.celled.grid > .row,
  367. .ui.celled.grid > .column.row,
  368. .ui.celled.grid > .column.row:first-child {
  369. display: table;
  370. width: 100%;
  371. margin-top: 0em;
  372. padding-top: 0em;
  373. -webkit-box-shadow: 0px -1px 0px 0px #DFDFDF;
  374. -moz-box-shadow: 0px -1px 0px 0px #DFDFDF;
  375. box-shadow: 0px -1px 0px 0px #DFDFDF;
  376. }
  377. .ui.celled.grid > .column:not(.row),
  378. .ui.celled.grid > .row > .column {
  379. display: table-cell;
  380. padding: 0.75em;
  381. -webkit-box-shadow: -1px 0px 0px 0px #DFDFDF;
  382. -moz-box-shadow: -1px 0px 0px 0px #DFDFDF;
  383. box-shadow: -1px 0px 0px 0px #DFDFDF;
  384. }
  385. .ui.celled.grid > .column:first-child,
  386. .ui.celled.grid > .row > .column:first-child {
  387. -webkit-box-shadow: none;
  388. -moz-box-shadow: none;
  389. box-shadow: none;
  390. }
  391. .ui.celled.responsive.grid {
  392. -webkit-box-shadow: none;
  393. -moz-box-shadow: none;
  394. box-shadow: none;
  395. }
  396. /*----------------------
  397. Horizontally Centered
  398. -----------------------*/
  399. /* Vertical Centered */
  400. .ui.left.aligned.grid,
  401. .ui.left.aligned.grid > .row > .column,
  402. .ui.left.aligned.grid > .column,
  403. .ui.grid .left.aligned.column,
  404. .ui.grid > .left.aligned.row > .column {
  405. text-align: left;
  406. }
  407. .ui.center.aligned.grid,
  408. .ui.center.aligned.grid > .row > .column,
  409. .ui.center.aligned.grid > .column,
  410. .ui.grid .center.aligned.column,
  411. .ui.grid > .center.aligned.row > .column {
  412. text-align: center;
  413. }
  414. .ui.right.aligned.grid,
  415. .ui.right.aligned.grid > .row > .column,
  416. .ui.right.aligned.grid > .column,
  417. .ui.grid .right.aligned.column,
  418. .ui.grid > .right.aligned.row > .column {
  419. text-align: right;
  420. }
  421. /*----------------------
  422. Vertically Centered
  423. -----------------------*/
  424. /* Vertical Centered */
  425. .ui.top.aligned.grid,
  426. .ui.top.aligned.grid > .row > .column,
  427. .ui.top.aligned.grid > .column,
  428. .ui.grid .top.aligned.column,
  429. .ui.grid > .top.aligned.row > .column {
  430. vertical-align: top;
  431. }
  432. .ui.middle.aligned.grid,
  433. .ui.middle.aligned.grid > .row > .column,
  434. .ui.middle.aligned.grid > .column,
  435. .ui.grid .middle.aligned.column,
  436. .ui.grid > .middle.aligned.row > .column {
  437. vertical-align: middle;
  438. }
  439. .ui.bottom.aligned.grid,
  440. .ui.bottom.aligned.grid > .row > .column,
  441. .ui.bottom.aligned.grid > .column,
  442. .ui.grid .bottom.aligned.column,
  443. .ui.grid > .bottom.aligned.row > .column {
  444. vertical-align: bottom;
  445. }
  446. /*----------------------
  447. Equal Height Columns
  448. -----------------------*/
  449. .ui.grid > .equal.height.row {
  450. display: table;
  451. width: 100%;
  452. }
  453. .ui.grid > .equal.height.row > .column {
  454. display: table-cell;
  455. }
  456. /*----------------------
  457. Only (Device)
  458. -----------------------*/
  459. /* Mobile Only */
  460. @media only screen and (max-width : 768px) {
  461. .ui.mobile.only.grid,
  462. .ui.grid > .mobile.only.row {
  463. display: block !important;
  464. }
  465. .ui.grid > .row > .mobile.only.column {
  466. display: inline-block !important;
  467. }
  468. .ui.divided.mobile.only.grid,
  469. .ui.celled.mobile.only.grid,
  470. .ui.divided.mobile.only.grid .row,
  471. .ui.celled.mobile.only.grid .row,
  472. .ui.divided.grid .mobile.only.row,
  473. .ui.celled.grid .mobile.only.row,
  474. .ui.grid .mobile.only.equal.height.row,
  475. .ui.mobile.only.grid .equal.height.row {
  476. display: table !important;
  477. }
  478. .ui.divided.grid > .row > .mobile.only.column,
  479. .ui.celled.grid > .row > .mobile.only.column,
  480. .ui.divided.mobile.only.grid > .row > .column,
  481. .ui.celled.mobile.only.grid > .row > .column,
  482. .ui.divided.mobile.only.grid > .column,
  483. .ui.celled.mobile.only.grid > .column {
  484. display: table-cell !important;
  485. }
  486. }
  487. @media only screen and (min-width : 768px) {
  488. .ui.mobile.only.grid,
  489. .ui.grid > .mobile.only.row,
  490. .ui.grid > .row > .mobile.only.column {
  491. display: none;
  492. }
  493. }
  494. /* Tablet Only */
  495. @media only screen and (min-width : 768px) and (max-width : 998px) {
  496. .ui.tablet.only.grid,
  497. .ui.grid > .tablet.only.row {
  498. display: block !important;
  499. }
  500. .ui.grid > .row > .tablet.only.column {
  501. display: inline-block !important;
  502. }
  503. .ui.divided.tablet.only.grid,
  504. .ui.celled.tablet.only.grid,
  505. .ui.divided.tablet.only.grid .row,
  506. .ui.celled.tablet.only.grid .row,
  507. .ui.divided.grid .tablet.only.row,
  508. .ui.celled.grid .tablet.only.row,
  509. .ui.grid .tablet.only.equal.height.row,
  510. .ui.tablet.only.grid .equal.height.row {
  511. display: table !important;
  512. }
  513. .ui.divided.grid > .row > .tablet.only.column,
  514. .ui.celled.grid > .row > .tablet.only.column,
  515. .ui.divided.tablet.only.grid > .row > .column,
  516. .ui.celled.tablet.only.grid > .row > .column,
  517. .ui.divided.tablet.only.grid > .column,
  518. .ui.celled.tablet.only.grid > .column {
  519. display: table-cell !important;
  520. }
  521. }
  522. @media only screen and (max-width : 768px), (min-width: 998px) {
  523. .ui.tablet.only.grid,
  524. .ui.grid > .tablet.only.row,
  525. .ui.grid > .row > .tablet.only.column {
  526. display: none;
  527. }
  528. }
  529. /* Computer Only */
  530. @media only screen and (min-width : 998px) {
  531. .ui.computer.only.grid,
  532. .ui.grid > .computer.only.row {
  533. display: block !important;
  534. }
  535. .ui.grid > .row > .computer.only.column {
  536. display: inline-block !important;
  537. }
  538. .ui.divided.computer.only.grid,
  539. .ui.celled.computer.only.grid,
  540. .ui.divided.computer.only.grid .row,
  541. .ui.celled.computer.only.grid .row,
  542. .ui.divided.grid .computer.only.row,
  543. .ui.celled.grid .computer.only.row,
  544. .ui.grid .computer.only.equal.height.row,
  545. .ui.computer.only.grid .equal.height.row {
  546. display: table !important;
  547. }
  548. .ui.divided.grid > .row > .computer.only.column,
  549. .ui.celled.grid > .row > .computer.only.column,
  550. .ui.divided.computer.only.grid > .row > .column,
  551. .ui.celled.computer.only.grid > .row > .column,
  552. .ui.divided.computer.only.grid > .column,
  553. .ui.celled.computer.only.grid > .column {
  554. display: table-cell !important;
  555. }
  556. }
  557. @media only screen and (max-width : 998px) {
  558. .ui.computer.only.grid,
  559. .ui.grid > .computer.only.row,
  560. .ui.grid > .row > .computer.only.column {
  561. display: none;
  562. }
  563. }
  564. /*-------------------
  565. Stackable
  566. --------------------*/
  567. @media only screen and (max-width : 768px) {
  568. .ui.stackable.grid {
  569. display: block !important;
  570. padding: 0em;
  571. }
  572. .ui.stackable.grid .row > .column,
  573. .ui.stackable.grid > .column {
  574. display: block !important;
  575. width: auto !important;
  576. margin: 1.5em 5% 0em !important;
  577. padding: 1.5em 0em 0em !important;
  578. -webkit-box-shadow: none !important;
  579. -moz-box-shadow: none !important;
  580. box-shadow: none !important;
  581. }
  582. .ui.stackable.divided.grid .column,
  583. .ui.stackable.celled.grid .column {
  584. border-top: 1px dotted rgba(0, 0, 0, 0.1);
  585. }
  586. .ui.stackable.grid > .row:first-child > .column:first-child,
  587. .ui.stackable.grid > .column:first-child {
  588. margin-top: 0em !important;
  589. padding-top: 0em !important;
  590. }
  591. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  592. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  593. .ui.stackable.divided.grid > .column:first-child,
  594. .ui.stackable.celled.grid > .column:first-child {
  595. border-top: none !important;
  596. }
  597. /* Remove pointers from vertical menus */
  598. .ui.stackable.grid .vertical.pointing.menu .item:after {
  599. display: none;
  600. }
  601. }