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.

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