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.

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