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.

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