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.

472 lines
11 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%;
  56. }
  57. .ui.grid > .row {
  58. margin-top: 1rem;
  59. padding-top: 1rem;
  60. }
  61. .ui.grid > .row:first-child {
  62. padding-top: 0rem;
  63. margin-top: 0rem;
  64. }
  65. /*-------------------
  66. Content
  67. --------------------*/
  68. .ui.grid > .row > img,
  69. .ui.grid > .row > .column > img {
  70. max-width: 100%;
  71. }
  72. .ui.grid .column > .ui.segment:only-child {
  73. margin: 0em;
  74. }
  75. /*-------------------
  76. Grids in Grids
  77. --------------------*/
  78. .ui.grid .column > .grid {
  79. margin-left: -1.5%;
  80. margin-right: -1.5%;
  81. }
  82. /*******************************
  83. Variations
  84. *******************************/
  85. /*-------------------
  86. Page
  87. --------------------*/
  88. .ui.page.grid {
  89. margin: 0%;
  90. padding: 0% 2%;
  91. }
  92. /*-------------------
  93. Responsive
  94. --------------------*/
  95. .ui.responsive.grid {
  96. margin-left: 0% !important;
  97. margin-right: 0% !important;
  98. min-width: 320px;
  99. }
  100. @media only screen and (max-width: 1000px) {
  101. .ui.responsive.grid {
  102. padding: 0% 5.55%;
  103. }
  104. }
  105. @media only screen and (min-width: 1000px) {
  106. .ui.responsive.grid {
  107. padding: 0% 8%;
  108. }
  109. }
  110. @media only screen and (min-width: 1500px) {
  111. .ui.responsive.grid {
  112. padding: 0% 13%;
  113. }
  114. }
  115. @media only screen and (min-width: 1750px) {
  116. .ui.responsive.grid {
  117. padding: 0% 18%;
  118. }
  119. }
  120. @media only screen and (min-width: 2000px) {
  121. .ui.responsive.grid {
  122. padding: 0% 25%;
  123. }
  124. }
  125. /*-------------------
  126. Column Width
  127. --------------------*/
  128. /* Sizing Combinations */
  129. .ui.grid .one.wide.column {
  130. width: 6.25%;
  131. }
  132. .ui.grid .two.wide.column {
  133. width: 12.5%;
  134. }
  135. .ui.grid .three.wide.column {
  136. width: 18.75%;
  137. }
  138. .ui.grid .four.wide.column {
  139. width: 25%;
  140. }
  141. .ui.grid .five.wide.column {
  142. width: 31.25%;
  143. }
  144. .ui.grid .six.wide.column {
  145. width: 37.5%;
  146. }
  147. .ui.grid .seven.wide.column {
  148. width: 43.75%;
  149. }
  150. .ui.grid .eight.wide.column {
  151. width: 50%;
  152. }
  153. .ui.grid .nine.wide.column {
  154. width: 56.25%;
  155. }
  156. .ui.grid .ten.wide.column {
  157. width: 62.5%;
  158. }
  159. .ui.grid .eleven.wide.column {
  160. width: 68.75%;
  161. }
  162. .ui.grid .twelve.wide.column {
  163. width: 75%;
  164. }
  165. .ui.grid .thirteen.wide.column {
  166. width: 81.25%;
  167. }
  168. .ui.grid .fourteen.wide.column {
  169. width: 87.5%;
  170. }
  171. .ui.grid .fifteen.wide.column {
  172. width: 93.75%;
  173. }
  174. .ui.grid .sixteen.wide.column {
  175. width: 100%;
  176. }
  177. /*-------------------
  178. Column Count
  179. --------------------*/
  180. /* Standard */
  181. .ui.grid > .column,
  182. .ui.grid > .row > .column {
  183. width: 6.25%;
  184. }
  185. /* Assume full width with one column */
  186. .ui.one.column.grid > .row > .column,
  187. .ui.one.column.grid > .column,
  188. .ui.grid > .one.column.row > .column {
  189. width: 100%;
  190. }
  191. .ui.two.column.grid > .row > .column,
  192. .ui.two.column.grid > .column,
  193. .ui.grid > .two.column.row > .column {
  194. width: 50%;
  195. }
  196. .ui.three.column.grid > .row > .column,
  197. .ui.three.column.grid > .column,
  198. .ui.grid > .three.column.row > .column {
  199. width: 33.3333%;
  200. }
  201. .ui.four.column.grid > .row > .column,
  202. .ui.four.column.grid > .column,
  203. .ui.grid > .four.column.row > .column {
  204. width: 25%;
  205. }
  206. .ui.five.column.grid > .row > .column,
  207. .ui.five.column.grid > .column,
  208. .ui.grid > .five.column.row > .column {
  209. width: 20%;
  210. }
  211. .ui.six.column.grid > .row > .column,
  212. .ui.six.column.grid > .column,
  213. .ui.grid > .six.column.row > .column {
  214. width: 16.66667%;
  215. }
  216. .ui.seven.column.grid > .row > .column,
  217. .ui.seven.column.grid > .column,
  218. .ui.grid > .seven.column.row > .column {
  219. width: 14.2857%;
  220. }
  221. .ui.eight.column.grid > .row > .column,
  222. .ui.eight.column.grid > .column,
  223. .ui.grid > .eight.column.row > .column {
  224. width: 12.5%;
  225. }
  226. .ui.nine.column.grid > .row > .column,
  227. .ui.nine.column.grid > .column,
  228. .ui.grid > .nine.column.row > .column {
  229. width: 11.1111%;
  230. }
  231. .ui.ten.column.grid > .row > .column,
  232. .ui.ten.column.grid > .column,
  233. .ui.grid > .ten.column.row > .column {
  234. width: 10%;
  235. }
  236. .ui.eleven.column.grid > .row > .column,
  237. .ui.eleven.column.grid > .column,
  238. .ui.grid > .eleven.column.row > .column {
  239. width: 9.0909%;
  240. }
  241. .ui.twelve.column.grid > .row > .column,
  242. .ui.twelve.column.grid > .column,
  243. .ui.grid > .twelve.column.row > .column {
  244. width: 8.3333%;
  245. }
  246. .ui.thirteen.column.grid > .row > .column,
  247. .ui.thirteen.column.grid > .column,
  248. .ui.grid > .thirteen.column.row > .column {
  249. width: 7.6923%;
  250. }
  251. .ui.fourteen.column.grid > .row > .column,
  252. .ui.fourteen.column.grid > .column,
  253. .ui.grid > .fourteen.column.row > .column {
  254. width: 7.1428%;
  255. }
  256. .ui.fifteen.column.grid > .row > .column,
  257. .ui.fifteen.column.grid > .column,
  258. .ui.grid > .fifteen.column.row > .column {
  259. width: 6.6666%;
  260. }
  261. .ui.sixteen.column.grid > .row > .column,
  262. .ui.sixteen.column.grid > .column,
  263. .ui.grid > .sixteen.column.row > .column {
  264. width: 6.25%;
  265. }
  266. /* Assume full width with one column */
  267. .ui.grid > .column:only-child,
  268. .ui.grid > .row > .column:only-child {
  269. width: 100%;
  270. }
  271. /* Increase Gutters */
  272. /*
  273. .ui.two.column.grid,
  274. .ui.three.column.grid,
  275. .ui.four.column.grid {
  276. margin-left: -3%;
  277. margin-right: -3%;
  278. }
  279. .ui.two.column.grid > .row > .column,
  280. .ui.two.column.grid > .column,
  281. .ui.three.column.grid > .row > .column,
  282. .ui.three.column.grid > .column,
  283. .ui.four.column.grid > .row > .column,
  284. .ui.four.column.grid > .column {
  285. padding-left: 3%;
  286. padding-right: 3%;
  287. }
  288. .ui.five.column.grid,
  289. .ui.six.column.grid,
  290. .ui.seven.column.grid,
  291. .ui.eight.column.grid {
  292. margin-left: -2%;
  293. margin-right: -2%;
  294. }
  295. .ui.five.column.grid > .row > .column,
  296. .ui.five.column.grid > .column,
  297. .ui.six.column.grid > .row > .column,
  298. .ui.six.column.grid > .column,
  299. .ui.seven.column.grid > .row > .column,
  300. .ui.seven.column.grid > .column,
  301. .ui.eight.column.grid > .row > .column,
  302. .ui.eight.column.grid > .column {
  303. padding-left: 2%;
  304. padding-right: 2%;
  305. }
  306. */
  307. /*----------------------
  308. "Floated"
  309. -----------------------*/
  310. .ui.grid .left.floated.column {
  311. float: left;
  312. }
  313. .ui.grid .right.floated.column {
  314. float: right;
  315. }
  316. /*----------------------
  317. Divided
  318. -----------------------*/
  319. .ui.divided.grid,
  320. .ui.divided.grid > .row {
  321. display: table;
  322. width: 100%;
  323. margin-left: 0% !important;
  324. margin-right: 0% !important;
  325. }
  326. .ui.divided.grid > .column,
  327. .ui.divided.grid > .row > .column {
  328. display: table-cell;
  329. -webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  330. -moz-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  331. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  332. }
  333. .ui.divided.grid > .column:first-child,
  334. .ui.divided.grid > .row > .column:first-child {
  335. -webkit-box-shadow: none;
  336. -moz-box-shadow: none;
  337. box-shadow: none;
  338. }
  339. /*----------------------
  340. Celled
  341. -----------------------*/
  342. .ui.celled.grid {
  343. display: table;
  344. width: 100%;
  345. margin-left: 0% !important;
  346. margin-right: 0% !important;
  347. -webkit-box-shadow: 0px 0px 0px 1px #DFDFDF;
  348. -moz-box-shadow: 0px 0px 0px 1px #DFDFDF;
  349. box-shadow: 0px 0px 0px 1px #DFDFDF;
  350. }
  351. .ui.celled.grid > .row {
  352. display: table;
  353. width: 100%;
  354. margin-top: 0em;
  355. padding-top: 0em;
  356. -webkit-box-shadow: 0px -1px 0px 0px #dfdfdf;
  357. -moz-box-shadow: 0px -1px 0px 0px #dfdfdf;
  358. box-shadow: 0px -1px 0px 0px #dfdfdf;
  359. }
  360. .ui.celled.grid > .column,
  361. .ui.celled.grid > .row > .column {
  362. display: table-cell;
  363. padding: 0.75em;
  364. -webkit-box-shadow: -1px 0px 0px 0px #dfdfdf;
  365. -moz-box-shadow: -1px 0px 0px 0px #dfdfdf;
  366. box-shadow: -1px 0px 0px 0px #dfdfdf;
  367. }
  368. .ui.celled.grid > .column:first-child,
  369. .ui.celled.grid > .row > .column:first-child {
  370. -webkit-box-shadow: none;
  371. -moz-box-shadow: none;
  372. box-shadow: none;
  373. }
  374. /*----------------------
  375. Horizontally Centered
  376. -----------------------*/
  377. /* Vertical Centered */
  378. .ui.left.aligned.grid,
  379. .ui.left.aligned.grid > .row > .column,
  380. .ui.left.aligned.grid > .column,
  381. .ui.grid .left.aligned.column,
  382. .ui.grid > .left.aligned.row > .column {
  383. text-align: left;
  384. }
  385. .ui.center.aligned.grid,
  386. .ui.center.aligned.grid > .row > .column,
  387. .ui.center.aligned.grid > .column,
  388. .ui.grid .center.aligned.column,
  389. .ui.grid > .center.aligned.row > .column {
  390. text-align: center;
  391. }
  392. .ui.right.aligned.grid,
  393. .ui.right.aligned.grid > .row > .column,
  394. .ui.right.aligned.grid > .column,
  395. .ui.grid .right.aligned.column,
  396. .ui.grid > .right.aligned.row > .column {
  397. text-align: right;
  398. }
  399. /*----------------------
  400. Vertically Centered
  401. -----------------------*/
  402. /* Vertical Centered */
  403. .ui.top.aligned.grid,
  404. .ui.top.aligned.grid > .row > .column,
  405. .ui.top.aligned.grid > .column,
  406. .ui.grid .top.aligned.column,
  407. .ui.grid > .top.aligned.row > .column {
  408. vertical-align: top;
  409. }
  410. .ui.middle.aligned.grid,
  411. .ui.middle.aligned.grid > .row > .column,
  412. .ui.middle.aligned.grid > .column,
  413. .ui.grid .middle.aligned.column,
  414. .ui.grid > .middle.aligned.row > .column {
  415. vertical-align: middle;
  416. }
  417. .ui.bottom.aligned.grid,
  418. .ui.bottom.aligned.grid > .row > .column,
  419. .ui.bottom.aligned.grid > .column,
  420. .ui.grid .bottom.aligned.column,
  421. .ui.grid > .bottom.aligned.row > .column {
  422. vertical-align: bottom;
  423. }
  424. /*----------------------
  425. Equal Height Columns
  426. -----------------------*/
  427. .ui.grid > .equal.row {
  428. display: table;
  429. width: 100%;
  430. }
  431. .ui.grid > .equal.row > .column {
  432. display: table-cell;
  433. }
  434. /*-------------------
  435. Folding
  436. --------------------*/
  437. @media only screen and (max-width: 960px) {
  438. .ui.stackable.grid {
  439. display: block !important;
  440. padding: 0em;
  441. }
  442. .ui.stackable.grid .row > .column,
  443. .ui.stackable.grid > .column {
  444. display: block !important;
  445. width: auto !important;
  446. margin: 1.5em 5% 0em !important;
  447. padding: 1.5em 0em 0em !important;
  448. -webkit-box-shadow: none !important;
  449. -moz-box-shadow: none !important;
  450. box-shadow: none !important;
  451. }
  452. .ui.stackable.divided.grid .column,
  453. .ui.stackable.celled.grid .column {
  454. border-top: 1px dotted rgba(0, 0, 0, 0.1);
  455. }
  456. .ui.stackable.grid > .row:first-child > .column:first-child,
  457. .ui.stackable.grid > .column:first-child {
  458. margin-top: 0em !important;
  459. padding-top: 0em !important;
  460. }
  461. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  462. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  463. .ui.stackable.divided.grid > .column:first-child,
  464. .ui.stackable.celled.grid > .column:first-child {
  465. border-top: none !important;
  466. }
  467. /* Remove pointers from vertical menus */
  468. .ui.stackable.grid .vertical.pointing.menu .item:after {
  469. display: none;
  470. }
  471. }