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.

654 lines
15 KiB

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