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.

377 lines
8.1 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%;
  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%;
  43. padding-right: 1%;
  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: 6.25%;
  125. }
  126. .ui.grid .two.wide.column {
  127. width: 12.5%;
  128. }
  129. .ui.grid .three.wide.column {
  130. width: 18.75%;
  131. }
  132. .ui.grid .four.wide.column {
  133. width: 25%;
  134. }
  135. .ui.grid .five.wide.column {
  136. width: 31.25%;
  137. }
  138. .ui.grid .six.wide.column {
  139. width: 37.5%;
  140. }
  141. .ui.grid .seven.wide.column {
  142. width: 43.75%;
  143. }
  144. .ui.grid .eight.wide.column {
  145. width: 50%;
  146. }
  147. .ui.grid .nine.wide.column {
  148. width: 56.25%;
  149. }
  150. .ui.grid .ten.wide.column {
  151. width: 62.5%;
  152. }
  153. .ui.grid .eleven.wide.column {
  154. width: 68.75%;
  155. }
  156. .ui.grid .twelve.wide.column {
  157. width: 75%;
  158. }
  159. .ui.grid .thirteen.wide.column {
  160. width: 81.25%;
  161. }
  162. .ui.grid .fourteen.wide.column {
  163. width: 87.5%;
  164. }
  165. .ui.grid .fifteen.wide.column {
  166. width: 93.75%;
  167. }
  168. .ui.grid .sixteen.wide.column {
  169. width: 100%;
  170. }
  171. /*-------------------
  172. Column Count
  173. --------------------*/
  174. /* Standard */
  175. .ui.grid > .column,
  176. .ui.grid > .row > .column {
  177. width: 6.25%;
  178. }
  179. /* Assume full width with one column */
  180. .ui.grid > .column:only-child,
  181. .ui.grid > .row > .column:only-child {
  182. width: 100%;
  183. }
  184. .ui.two.column.grid .column {
  185. width: 50%;
  186. }
  187. .ui.three.column.grid .column {
  188. width: 33.3333%;
  189. }
  190. .ui.four.column.grid .column {
  191. width: 25%;
  192. }
  193. .ui.five.column.grid .column {
  194. width: 20%;
  195. }
  196. .ui.six.column.grid .column {
  197. width: 16.66667%;
  198. }
  199. .ui.seven.column.grid .column {
  200. width: 14.2857%;
  201. }
  202. .ui.eight.column.grid .column {
  203. width: 12.5%;
  204. }
  205. .ui.nine.column.grid .column {
  206. width: 11.1111%;
  207. }
  208. .ui.ten.column.grid .column {
  209. width: 10%;
  210. }
  211. .ui.eleven.column.grid .column {
  212. width: 9.0909%;
  213. }
  214. .ui.twelve.column.grid .column {
  215. width: 8.3333%;
  216. }
  217. .ui.thirteen.column.grid .column {
  218. width: 7.6923%;
  219. }
  220. .ui.fourteen.column.grid .column {
  221. width: 7.1428%;
  222. }
  223. .ui.fifteen.column.grid .column {
  224. width: 6.6666%;
  225. }
  226. .ui.sixteen.column.grid .column {
  227. width: 6.25%;
  228. }
  229. /*-------------------
  230. Padded
  231. --------------------*/
  232. .ui.padded.grid {
  233. margin-left: 0%;
  234. margin-right: 0%;
  235. }
  236. /*----------------------
  237. "Floated"
  238. -----------------------*/
  239. .ui.grid .left.floated.column {
  240. float: left;
  241. }
  242. .ui.grid .right.floated.column {
  243. float: right;
  244. }
  245. /*----------------------
  246. Divided
  247. -----------------------*/
  248. .ui.divided.grid,
  249. .ui.divided.grid > .row {
  250. display: table;
  251. }
  252. .ui.divided.grid > .column,
  253. .ui.divided.grid > .row > .column {
  254. display: table-cell;
  255. -webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  256. -moz-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  257. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.9);
  258. }
  259. .ui.divided.grid > .column:first-child,
  260. .ui.divided.grid > .row > .column:first-child {
  261. -webkit-box-shadow: none;
  262. -moz-box-shadow: none;
  263. box-shadow: none;
  264. }
  265. /*----------------------
  266. Celled
  267. -----------------------*/
  268. .ui.celled.grid {
  269. display: table;
  270. -webkit-box-shadow: 0px 0px 0px 1px #DFDFDF;
  271. -moz-box-shadow: 0px 0px 0px 1px #DFDFDF;
  272. box-shadow: 0px 0px 0px 1px #DFDFDF;
  273. }
  274. .ui.celled.grid > .row {
  275. display: table;
  276. margin-top: 0em;
  277. padding-top: 0em;
  278. -webkit-box-shadow: 0px -1px 0px 0px #dfdfdf;
  279. -moz-box-shadow: 0px -1px 0px 0px #dfdfdf;
  280. box-shadow: 0px -1px 0px 0px #dfdfdf;
  281. }
  282. .ui.celled.grid > .column,
  283. .ui.celled.grid > .row > .column {
  284. display: table-cell;
  285. padding: 1.33%;
  286. -webkit-box-shadow: -1px 0px 0px 0px #dfdfdf;
  287. -moz-box-shadow: -1px 0px 0px 0px #dfdfdf;
  288. box-shadow: -1px 0px 0px 0px #dfdfdf;
  289. }
  290. .ui.celled.grid > .column:first-child,
  291. .ui.celled.grid > .row > .column:first-child {
  292. -webkit-box-shadow: none;
  293. -moz-box-shadow: none;
  294. box-shadow: none;
  295. }
  296. /*----------------------
  297. Horizontally Centered
  298. -----------------------*/
  299. /* Vertical Centered */
  300. .ui.left.aligned.grid,
  301. .ui.left.aligned.grid .column,
  302. .ui.grid .left.aligned.column,
  303. .ui.grid > .left.aligned.row .column {
  304. text-align: left;
  305. }
  306. .ui.center.aligned.grid,
  307. .ui.center.aligned.grid .column,
  308. .ui.grid .center.aligned.column,
  309. .ui.grid > .center.aligned.row .column {
  310. text-align: center;
  311. }
  312. .ui.right.aligned.grid,
  313. .ui.right.aligned.grid .column,
  314. .ui.grid .right.aligned.column,
  315. .ui.grid > .right.aligned.row .column {
  316. text-align: right;
  317. }
  318. /*----------------------
  319. Vertically Centered
  320. -----------------------*/
  321. /* Vertical Centered */
  322. .ui.top.aligned.grid .column,
  323. .ui.grid .top.aligned.column,
  324. .ui.grid > .top.aligned.row .column {
  325. vertical-align: top;
  326. }
  327. .ui.middle.aligned.grid .column,
  328. .ui.grid .middle.aligned.column,
  329. .ui.grid > .middle.aligned.row .column {
  330. vertical-align: middle;
  331. }
  332. .ui.bottom.aligned.grid .column,
  333. .ui.grid .bottom.aligned.column,
  334. .ui.grid > .bottom.aligned.row .column {
  335. vertical-align: bottom;
  336. }
  337. /*----------------------
  338. Equal Height Columns
  339. -----------------------*/
  340. .ui.grid .equal.row {
  341. display: table;
  342. }
  343. .ui.grid .equal.row .column {
  344. display: table-cell;
  345. }
  346. /*-------------------
  347. Folding
  348. --------------------*/
  349. @media only screen and (max-width: 960px) {
  350. .ui.stackable.grid {
  351. display: block !important;
  352. }
  353. .ui.stackable.grid .column {
  354. display: block !important;
  355. width: auto !important;
  356. margin: 1.5em 3em 0em !important;
  357. padding: 1.5em 0em 0em !important;
  358. -webkit-box-shadow: none !important;
  359. -moz-box-shadow: none !important;
  360. box-shadow: none !important;
  361. }
  362. .ui.stackable.divided.grid .column,
  363. .ui.stackable.celled.grid .column {
  364. border-top: 1px dotted rgba(0, 0, 0, 0.1);
  365. }
  366. .ui.stackable.grid > .row:first-child > .column:first-child,
  367. .ui.stackable.grid > .column:first-child {
  368. margin-top: 0em !important;
  369. padding-top: 0em !important;
  370. }
  371. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  372. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  373. .ui.stackable.divided.grid > .column:first-child,
  374. .ui.stackable.celled.grid > .column:first-child {
  375. border-top: none !important;
  376. }
  377. }