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.

350 lines
7.6 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
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. 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,
  222. .ui.divided.grid > .row {
  223. display: table;
  224. }
  225. .ui.divided.grid > .column,
  226. .ui.divided.grid > .row > .column {
  227. display: table-cell;
  228. -webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  229. -moz-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  230. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  231. }
  232. .ui.divided.grid > .column:first-child,
  233. .ui.divided.grid > .row > .column:first-child {
  234. -webkit-box-shadow: none;
  235. -moz-box-shadow: none;
  236. box-shadow: none;
  237. }
  238. /*----------------------
  239. Celled
  240. -----------------------*/
  241. .ui.celled.grid {
  242. display: table;
  243. -webkit-box-shadow: 0px 0px 0px 1px #DFDFDF;
  244. -moz-box-shadow: 0px 0px 0px 1px #DFDFDF;
  245. box-shadow: 0px 0px 0px 1px #DFDFDF;
  246. }
  247. .ui.celled.grid > .row {
  248. display: table;
  249. margin-top: 0em;
  250. padding-top: 0em;
  251. -webkit-box-shadow: 0px -1px 0px 0px #dfdfdf;
  252. -moz-box-shadow: 0px -1px 0px 0px #dfdfdf;
  253. box-shadow: 0px -1px 0px 0px #dfdfdf;
  254. }
  255. .ui.celled.grid > .column,
  256. .ui.celled.grid > .row > .column {
  257. display: table-cell;
  258. padding: 1.33%;
  259. -webkit-box-shadow: -1px 0px 0px 0px #dfdfdf;
  260. -moz-box-shadow: -1px 0px 0px 0px #dfdfdf;
  261. box-shadow: -1px 0px 0px 0px #dfdfdf;
  262. }
  263. .ui.celled.grid > .column:first-child,
  264. .ui.celled.grid > .row > .column:first-child {
  265. -webkit-box-shadow: none;
  266. -moz-box-shadow: none;
  267. box-shadow: none;
  268. }
  269. /*----------------------
  270. Horizontally Centered
  271. -----------------------*/
  272. /* Vertical Centered */
  273. .ui.left.aligned.grid,
  274. .ui.left.aligned.grid .column,
  275. .ui.grid .left.aligned.column,
  276. .ui.grid > .left.aligned.row .column {
  277. text-align: left;
  278. }
  279. .ui.center.aligned.grid,
  280. .ui.center.aligned.grid .column,
  281. .ui.grid .center.aligned.column,
  282. .ui.grid > .center.aligned.row .column {
  283. text-align: center;
  284. }
  285. .ui.right.aligned.grid,
  286. .ui.right.aligned.grid .column,
  287. .ui.grid .right.aligned.column,
  288. .ui.grid > .right.aligned.row .column {
  289. text-align: right;
  290. }
  291. /*----------------------
  292. Vertically Centered
  293. -----------------------*/
  294. /* Vertical Centered */
  295. .ui.top.aligned.grid .column,
  296. .ui.grid .top.aligned.column,
  297. .ui.grid > .top.aligned.row .column {
  298. vertical-align: top;
  299. }
  300. .ui.middle.aligned.grid .column,
  301. .ui.grid .middle.aligned.column,
  302. .ui.grid > .middle.aligned.row .column {
  303. vertical-align: middle;
  304. }
  305. .ui.bottom.aligned.grid .column,
  306. .ui.grid .bottom.aligned.column,
  307. .ui.grid > .bottom.aligned.row .column {
  308. vertical-align: bottom;
  309. }
  310. /*----------------------
  311. Equal Height Columns
  312. -----------------------*/
  313. .ui.grid .equal.row {
  314. display: table;
  315. }
  316. .ui.grid .equal.row .column {
  317. display: table-cell;
  318. }
  319. /*-------------------
  320. Folding
  321. --------------------*/
  322. @media only screen and (max-width: 960px) {
  323. .ui.stackable.grid {
  324. display: block !important;
  325. }
  326. .ui.stackable.grid .column {
  327. display: block !important;
  328. width: auto !important;
  329. margin: 1.5em 3em 0em !important;
  330. padding: 1.5em 0em 0em !important;
  331. -webkit-box-shadow: none !important;
  332. -moz-box-shadow: none !important;
  333. box-shadow: none !important;
  334. }
  335. .ui.stackable.divided.grid .column,
  336. .ui.stackable.celled.grid .column {
  337. border-top: 1px dotted rgba(0, 0, 0, 0.1);
  338. }
  339. .ui.stackable.grid > .row:first-child > .column:first-child,
  340. .ui.stackable.grid > .column:first-child {
  341. margin-top: 0em !important;
  342. padding-top: 0em !important;
  343. }
  344. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  345. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  346. .ui.stackable.divided.grid > .column:first-child,
  347. .ui.stackable.celled.grid > .column:first-child {
  348. border-top: none !important;
  349. }
  350. }