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.

316 lines
6.5 KiB

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