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.

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