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.

326 lines
6.8 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. width: 100%;
  17. display: block;
  18. text-align: center;
  19. font-size: 0em;
  20. margin: 0% -1.33%;
  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.33%;
  43. padding-right: 1.33%;
  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: 2%;
  59. padding-top: 2%;
  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.333%;
  80. margin-right: -1.333%;
  81. }
  82. /*******************************
  83. Variations
  84. *******************************/
  85. /*-------------------
  86. Page
  87. --------------------*/
  88. .ui.page.grid {
  89. padding: 0% 2%;
  90. }
  91. /*-------------------
  92. Responsive
  93. --------------------*/
  94. @media only screen and (max-width: 1000px) {
  95. .ui.responsive.grid {
  96. padding: 0% 5.55%;
  97. }
  98. }
  99. @media only screen and (min-width: 1000px) {
  100. .ui.responsive.grid {
  101. padding: 0% 8%;
  102. }
  103. }
  104. @media only screen and (min-width: 1500px) {
  105. .ui.responsive.grid {
  106. padding: 0% 13%;
  107. }
  108. }
  109. @media only screen and (min-width: 1750px) {
  110. .ui.responsive.grid {
  111. padding: 0% 18%;
  112. }
  113. }
  114. @media only screen and (min-width: 2000px) {
  115. .ui.responsive.grid {
  116. padding: 0% 20%;
  117. }
  118. }
  119. /*-------------------
  120. Column Width
  121. --------------------*/
  122. /* Sizing Combinations */
  123. .ui.grid .one.wide.column {
  124. width: 8.3333%;
  125. }
  126. .ui.grid .two.wide.column {
  127. width: 16.66667%;
  128. }
  129. .ui.grid .three.wide.column {
  130. width: 25%;
  131. }
  132. .ui.grid .four.wide.column {
  133. width: 33.3333%;
  134. }
  135. .ui.grid .five.wide.column {
  136. width: 41.6666%;
  137. }
  138. .ui.grid .six.wide.column {
  139. width: 50%;
  140. }
  141. .ui.grid .seven.wide.column {
  142. width: 58.3333%;
  143. }
  144. .ui.grid .eight.wide.column {
  145. width: 66.6666%;
  146. }
  147. .ui.grid .nine.wide.column {
  148. width: 75%;
  149. }
  150. .ui.grid .ten.wide.column {
  151. width: 83.3333%;
  152. }
  153. .ui.grid .eleven.wide.column {
  154. width: 91.666%;
  155. }
  156. .ui.grid .twelve.wide.column {
  157. width: 100%;
  158. }
  159. /*-------------------
  160. Column Count
  161. --------------------*/
  162. /* Standard */
  163. .ui.grid > .column,
  164. .ui.grid > .row > .column {
  165. width: 8.3333%;
  166. }
  167. /* Assume full width with one column */
  168. .ui.grid > .column:only-child,
  169. .ui.grid > .row > .column:only-child {
  170. width: 100%;
  171. }
  172. .ui.two.column.grid .column {
  173. width: 50%;
  174. }
  175. .ui.three.column.grid .column {
  176. width: 33.3333%;
  177. }
  178. .ui.four.column.grid .column {
  179. width: 25%;
  180. }
  181. .ui.five.column.grid .column {
  182. width: 20%;
  183. }
  184. .ui.six.column.grid .column {
  185. width: 16.66667%;
  186. }
  187. .ui.seven.column.grid .column {
  188. width: 14.2857%;
  189. }
  190. .ui.eight.column.grid .column {
  191. width: 12.5%;
  192. }
  193. .ui.nine.column.grid .column {
  194. width: 11.1111%;
  195. }
  196. .ui.ten.column.grid .column {
  197. width: 10%;
  198. }
  199. .ui.eleven.column.grid .column {
  200. width: 9.0909%;
  201. }
  202. /*-------------------
  203. Padded
  204. --------------------*/
  205. .ui.padded.grid {
  206. margin-left: 0%;
  207. margin-right: 0%;
  208. }
  209. /*----------------------
  210. "Floated"
  211. -----------------------*/
  212. .ui.grid .left.floated.column {
  213. float: left;
  214. }
  215. .ui.grid .right.floated.column {
  216. float: right;
  217. }
  218. /*----------------------
  219. Divided
  220. -----------------------*/
  221. .ui.divided.grid > .row {
  222. display: table;
  223. }
  224. .ui.divided.grid > .column,
  225. .ui.divided.grid > .row > .column {
  226. display: table-cell;
  227. -webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  228. -moz-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  229. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  230. }
  231. .ui.divided.grid > .column:first-child,
  232. .ui.divided.grid > .row > .column:first-child {
  233. -webkit-box-shadow: none;
  234. -moz-box-shadow: none;
  235. box-shadow: none;
  236. }
  237. /*----------------------
  238. Celled
  239. -----------------------*/
  240. .ui.celled.grid {
  241. -webkit-box-shadow: 0px 0px 0px 1px #DFDFDF;
  242. -moz-box-shadow: 0px 0px 0px 1px #DFDFDF;
  243. box-shadow: 0px 0px 0px 1px #DFDFDF;
  244. }
  245. .ui.celled.grid > .row {
  246. display: table;
  247. margin-top: 0em;
  248. padding-top: 0em;
  249. -webkit-box-shadow: 0px -1px 0px 0px #dfdfdf;
  250. -moz-box-shadow: 0px -1px 0px 0px #dfdfdf;
  251. box-shadow: 0px -1px 0px 0px #dfdfdf;
  252. }
  253. .ui.celled.grid > .column,
  254. .ui.celled.grid > .row > .column {
  255. display: table-cell;
  256. padding: 2%;
  257. -webkit-box-shadow: -1px 0px 0px 0px #dfdfdf;
  258. -moz-box-shadow: -1px 0px 0px 0px #dfdfdf;
  259. box-shadow: -1px 0px 0px 0px #dfdfdf;
  260. }
  261. .ui.celled.grid > .column:first-child,
  262. .ui.celled.grid > .row > .column:first-child {
  263. -webkit-box-shadow: none;
  264. -moz-box-shadow: none;
  265. box-shadow: none;
  266. }
  267. /*----------------------
  268. Horizontally Centered
  269. -----------------------*/
  270. /* Vertical Centered */
  271. .ui.left.aligned.grid,
  272. .ui.left.aligned.grid .column,
  273. .ui.grid .left.aligned.column,
  274. .ui.grid > .left.aligned.row .column {
  275. text-align: left;
  276. }
  277. .ui.center.aligned.grid,
  278. .ui.center.aligned.grid .column,
  279. .ui.grid .center.aligned.column,
  280. .ui.grid > .center.aligned.row .column {
  281. text-align: center;
  282. }
  283. .ui.right.aligned.grid,
  284. .ui.right.aligned.grid .column,
  285. .ui.grid .right.aligned.column,
  286. .ui.grid > .right.aligned.row .column {
  287. text-align: right;
  288. }
  289. /*----------------------
  290. Vertically Centered
  291. -----------------------*/
  292. /* Vertical Centered */
  293. .ui.top.aligned.grid .column,
  294. .ui.grid .top.aligned.column,
  295. .ui.grid > .top.aligned.row .column {
  296. vertical-align: top;
  297. }
  298. .ui.middle.aligned.grid .column,
  299. .ui.grid .middle.aligned.column,
  300. .ui.grid > .middle.aligned.row .column {
  301. vertical-align: middle;
  302. }
  303. .ui.bottom.aligned.grid .column,
  304. .ui.grid .bottom.aligned.column,
  305. .ui.grid > .bottom.aligned.row .column {
  306. vertical-align: bottom;
  307. }
  308. /*----------------------
  309. Equal Height Columns
  310. -----------------------*/
  311. .ui.grid .equal.row .column {
  312. display: table-cell;
  313. }
  314. /*-------------------
  315. Folding
  316. --------------------*/
  317. @media only screen and (max-width: 1000px) {
  318. .ui.folding.grid {
  319. display: block !important;
  320. }
  321. .ui.folding.grid .column {
  322. display: block !important;
  323. width: 100% !important;
  324. padding: 0% !important;
  325. }
  326. }