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.

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