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.

561 lines
14 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
  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. display: block;
  17. text-align: left;
  18. font-size: 0em;
  19. margin: 0% -1.5%;
  20. padding: 0%;
  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.5%;
  43. padding-right: 1.5%;
  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% !important;
  56. margin-top: 1.5%;
  57. padding: 1.5% 0% 0%;
  58. font-size: 0rem;
  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. Variations
  76. *******************************/
  77. /*-------------------
  78. Page
  79. --------------------*/
  80. .ui.page.grid {
  81. margin: 0%;
  82. padding: 0% 2%;
  83. }
  84. /*-------------------
  85. Responsive
  86. --------------------*/
  87. .ui.responsive.grid {
  88. margin-left: 0% !important;
  89. margin-right: 0% !important;
  90. min-width: 320px;
  91. }
  92. @media only screen and (max-width: 1000px) {
  93. .ui.responsive.grid {
  94. padding: 0% 5.55%;
  95. }
  96. }
  97. @media only screen and (min-width: 1000px) {
  98. .ui.responsive.grid {
  99. padding: 0% 8%;
  100. }
  101. }
  102. @media only screen and (min-width: 1500px) {
  103. .ui.responsive.grid {
  104. padding: 0% 13%;
  105. }
  106. }
  107. @media only screen and (min-width: 1750px) {
  108. .ui.responsive.grid {
  109. padding: 0% 18%;
  110. }
  111. }
  112. @media only screen and (min-width: 2000px) {
  113. .ui.responsive.grid {
  114. padding: 0% 23%;
  115. }
  116. }
  117. /*-------------------
  118. Column Width
  119. --------------------*/
  120. /* Sizing Combinations */
  121. .ui.grid .one.wide.column {
  122. width: 6.25%;
  123. }
  124. .ui.grid .two.wide.column {
  125. width: 12.5%;
  126. }
  127. .ui.grid .three.wide.column {
  128. width: 18.75%;
  129. }
  130. .ui.grid .four.wide.column {
  131. width: 25%;
  132. }
  133. .ui.grid .five.wide.column {
  134. width: 31.25%;
  135. }
  136. .ui.grid .six.wide.column {
  137. width: 37.5%;
  138. }
  139. .ui.grid .seven.wide.column {
  140. width: 43.75%;
  141. }
  142. .ui.grid .eight.wide.column {
  143. width: 50%;
  144. }
  145. .ui.grid .nine.wide.column {
  146. width: 56.25%;
  147. }
  148. .ui.grid .ten.wide.column {
  149. width: 62.5%;
  150. }
  151. .ui.grid .eleven.wide.column {
  152. width: 68.75%;
  153. }
  154. .ui.grid .twelve.wide.column {
  155. width: 75%;
  156. }
  157. .ui.grid .thirteen.wide.column {
  158. width: 81.25%;
  159. }
  160. .ui.grid .fourteen.wide.column {
  161. width: 87.5%;
  162. }
  163. .ui.grid .fifteen.wide.column {
  164. width: 93.75%;
  165. }
  166. .ui.grid .sixteen.wide.column {
  167. width: 100%;
  168. }
  169. /*-------------------
  170. Column Count
  171. --------------------*/
  172. /* Standard */
  173. .ui.grid > .column,
  174. .ui.grid > .row > .column {
  175. width: 6.25%;
  176. }
  177. /* Assume full width with one column */
  178. .ui.one.column.grid > .row > .column,
  179. .ui.one.column.grid > .column,
  180. .ui.grid > .one.column.row > .column {
  181. width: 100%;
  182. }
  183. .ui.two.column.grid > .row > .column,
  184. .ui.two.column.grid > .column,
  185. .ui.grid > .two.column.row > .column {
  186. width: 50%;
  187. }
  188. .ui.three.column.grid > .row > .column,
  189. .ui.three.column.grid > .column,
  190. .ui.grid > .three.column.row > .column {
  191. width: 33.3333%;
  192. }
  193. .ui.four.column.grid > .row > .column,
  194. .ui.four.column.grid > .column,
  195. .ui.grid > .four.column.row > .column {
  196. width: 25%;
  197. }
  198. .ui.five.column.grid > .row > .column,
  199. .ui.five.column.grid > .column,
  200. .ui.grid > .five.column.row > .column {
  201. width: 20%;
  202. }
  203. .ui.six.column.grid > .row > .column,
  204. .ui.six.column.grid > .column,
  205. .ui.grid > .six.column.row > .column {
  206. width: 16.66667%;
  207. }
  208. .ui.seven.column.grid > .row > .column,
  209. .ui.seven.column.grid > .column,
  210. .ui.grid > .seven.column.row > .column {
  211. width: 14.2857%;
  212. }
  213. .ui.eight.column.grid > .row > .column,
  214. .ui.eight.column.grid > .column,
  215. .ui.grid > .eight.column.row > .column {
  216. width: 12.5%;
  217. }
  218. .ui.nine.column.grid > .row > .column,
  219. .ui.nine.column.grid > .column,
  220. .ui.grid > .nine.column.row > .column {
  221. width: 11.1111%;
  222. }
  223. .ui.ten.column.grid > .row > .column,
  224. .ui.ten.column.grid > .column,
  225. .ui.grid > .ten.column.row > .column {
  226. width: 10%;
  227. }
  228. .ui.eleven.column.grid > .row > .column,
  229. .ui.eleven.column.grid > .column,
  230. .ui.grid > .eleven.column.row > .column {
  231. width: 9.0909%;
  232. }
  233. .ui.twelve.column.grid > .row > .column,
  234. .ui.twelve.column.grid > .column,
  235. .ui.grid > .twelve.column.row > .column {
  236. width: 8.3333%;
  237. }
  238. .ui.thirteen.column.grid > .row > .column,
  239. .ui.thirteen.column.grid > .column,
  240. .ui.grid > .thirteen.column.row > .column {
  241. width: 7.6923%;
  242. }
  243. .ui.fourteen.column.grid > .row > .column,
  244. .ui.fourteen.column.grid > .column,
  245. .ui.grid > .fourteen.column.row > .column {
  246. width: 7.1428%;
  247. }
  248. .ui.fifteen.column.grid > .row > .column,
  249. .ui.fifteen.column.grid > .column,
  250. .ui.grid > .fifteen.column.row > .column {
  251. width: 6.6666%;
  252. }
  253. .ui.sixteen.column.grid > .row > .column,
  254. .ui.sixteen.column.grid > .column,
  255. .ui.grid > .sixteen.column.row > .column {
  256. width: 6.25%;
  257. }
  258. /* Assume full width with one column */
  259. .ui.grid > .column:only-child,
  260. .ui.grid > .row > .column:only-child {
  261. width: 100%;
  262. }
  263. /*----------------------
  264. "Floated"
  265. -----------------------*/
  266. .ui.grid .left.floated.column {
  267. float: left;
  268. }
  269. .ui.grid .right.floated.column {
  270. float: right;
  271. }
  272. /*----------------------
  273. Divided
  274. -----------------------*/
  275. .ui.divided.grid,
  276. .ui.divided.grid > .row {
  277. display: table;
  278. width: 100%;
  279. margin-left: 0% !important;
  280. margin-right: 0% !important;
  281. }
  282. .ui.divided.grid > .column:not(.row),
  283. .ui.divided.grid > .row > .column {
  284. display: table-cell;
  285. -webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
  286. -moz-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
  287. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
  288. }
  289. .ui.divided.grid > .column.row {
  290. display: table;
  291. }
  292. .ui.divided.grid > .column:first-child,
  293. .ui.divided.grid > .row > .column:first-child {
  294. -webkit-box-shadow: none;
  295. -moz-box-shadow: none;
  296. box-shadow: none;
  297. }
  298. /* Vertically Divided */
  299. .ui.vertically.divided.grid > .row {
  300. -webkit-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
  301. -moz-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
  302. box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
  303. }
  304. .ui.vertically.divided.grid > .row > .column,
  305. .ui.vertically.divided.grid > .column:not(.row),
  306. .ui.vertically.divided.grid > .row:first-child {
  307. -webkit-box-shadow: none !important;
  308. -moz-box-shadow: none !important;
  309. box-shadow: none !important;
  310. }
  311. /*----------------------
  312. Celled
  313. -----------------------*/
  314. .ui.celled.grid {
  315. display: table;
  316. width: 100%;
  317. margin-left: 0% !important;
  318. margin-right: 0% !important;
  319. -webkit-box-shadow: 0px 0px 0px 1px #DFDFDF;
  320. -moz-box-shadow: 0px 0px 0px 1px #DFDFDF;
  321. box-shadow: 0px 0px 0px 1px #DFDFDF;
  322. }
  323. .ui.celled.grid > .row,
  324. .ui.celled.grid > .column.row,
  325. .ui.celled.grid > .column.row:first-child {
  326. display: table;
  327. width: 100%;
  328. margin-top: 0em;
  329. padding-top: 0em;
  330. -webkit-box-shadow: 0px -1px 0px 0px #dfdfdf;
  331. -moz-box-shadow: 0px -1px 0px 0px #dfdfdf;
  332. box-shadow: 0px -1px 0px 0px #dfdfdf;
  333. }
  334. .ui.celled.grid > .column:not(.row),
  335. .ui.celled.grid > .row > .column {
  336. display: table-cell;
  337. padding: 0.75em;
  338. -webkit-box-shadow: -1px 0px 0px 0px #dfdfdf;
  339. -moz-box-shadow: -1px 0px 0px 0px #dfdfdf;
  340. box-shadow: -1px 0px 0px 0px #dfdfdf;
  341. }
  342. .ui.celled.grid > .column:first-child,
  343. .ui.celled.grid > .row > .column:first-child {
  344. -webkit-box-shadow: none;
  345. -moz-box-shadow: none;
  346. box-shadow: none;
  347. }
  348. .ui.celled.responsive.grid {
  349. -webkit-box-shadow: none;
  350. -moz-box-shadow: none;
  351. box-shadow: none;
  352. }
  353. /*----------------------
  354. Horizontally Centered
  355. -----------------------*/
  356. /* Vertical Centered */
  357. .ui.left.aligned.grid,
  358. .ui.left.aligned.grid > .row > .column,
  359. .ui.left.aligned.grid > .column,
  360. .ui.grid .left.aligned.column,
  361. .ui.grid > .left.aligned.row > .column {
  362. text-align: left;
  363. }
  364. .ui.center.aligned.grid,
  365. .ui.center.aligned.grid > .row > .column,
  366. .ui.center.aligned.grid > .column,
  367. .ui.grid .center.aligned.column,
  368. .ui.grid > .center.aligned.row > .column {
  369. text-align: center;
  370. }
  371. .ui.right.aligned.grid,
  372. .ui.right.aligned.grid > .row > .column,
  373. .ui.right.aligned.grid > .column,
  374. .ui.grid .right.aligned.column,
  375. .ui.grid > .right.aligned.row > .column {
  376. text-align: right;
  377. }
  378. /*----------------------
  379. Vertically Centered
  380. -----------------------*/
  381. /* Vertical Centered */
  382. .ui.top.aligned.grid,
  383. .ui.top.aligned.grid > .row > .column,
  384. .ui.top.aligned.grid > .column,
  385. .ui.grid .top.aligned.column,
  386. .ui.grid > .top.aligned.row > .column {
  387. vertical-align: top;
  388. }
  389. .ui.middle.aligned.grid,
  390. .ui.middle.aligned.grid > .row > .column,
  391. .ui.middle.aligned.grid > .column,
  392. .ui.grid .middle.aligned.column,
  393. .ui.grid > .middle.aligned.row > .column {
  394. vertical-align: middle;
  395. }
  396. .ui.bottom.aligned.grid,
  397. .ui.bottom.aligned.grid > .row > .column,
  398. .ui.bottom.aligned.grid > .column,
  399. .ui.grid .bottom.aligned.column,
  400. .ui.grid > .bottom.aligned.row > .column {
  401. vertical-align: bottom;
  402. }
  403. /*----------------------
  404. Equal Height Columns
  405. -----------------------*/
  406. .ui.grid > .equal.height.row {
  407. display: table;
  408. width: 100%;
  409. }
  410. .ui.grid > .equal.height.row > .column {
  411. display: table-cell;
  412. }
  413. /*----------------------
  414. Only (Device)
  415. -----------------------*/
  416. /* Mobile Only */
  417. @media only screen and (max-width: 768px) {
  418. .ui.mobile.only.grid,
  419. .ui.grid > .mobile.only.row {
  420. display: block !important;
  421. }
  422. .ui.grid > .row > .mobile.only.column {
  423. display: inline-block !important;
  424. }
  425. .ui.divided.mobile.only.grid,
  426. .ui.celled.mobile.only.grid,
  427. .ui.divided.mobile.only.grid .row,
  428. .ui.celled.mobile.only.grid .row,
  429. .ui.divided.grid .mobile.only.row,
  430. .ui.celled.grid .mobile.only.row,
  431. .ui.grid .mobile.only.equal.height.row,
  432. .ui.mobile.only.grid .equal.height.row {
  433. display: table !important;
  434. }
  435. .ui.divided.grid > .row > .mobile.only.column,
  436. .ui.celled.grid > .row > .mobile.only.column,
  437. .ui.divided.mobile.only.grid > .row > .column,
  438. .ui.celled.mobile.only.grid > .row > .column,
  439. .ui.divided.mobile.only.grid > .column,
  440. .ui.celled.mobile.only.grid > .column {
  441. display: table-cell !important;
  442. }
  443. }
  444. @media only screen and (min-width: 768px) {
  445. .ui.mobile.only.grid,
  446. .ui.grid > .mobile.only.row,
  447. .ui.grid > .row > .mobile.only.column {
  448. display: none;
  449. }
  450. }
  451. /* Tablet Only */
  452. @media only screen and (min-width: 768px) and (max-width: 998px) {
  453. .ui.tablet.only.grid,
  454. .ui.grid > .tablet.only.row {
  455. display: block !important;
  456. }
  457. .ui.grid > .row > .tablet.only.column {
  458. display: inline-block !important;
  459. }
  460. .ui.divided.tablet.only.grid,
  461. .ui.celled.tablet.only.grid,
  462. .ui.divided.tablet.only.grid .row,
  463. .ui.celled.tablet.only.grid .row,
  464. .ui.divided.grid .tablet.only.row,
  465. .ui.celled.grid .tablet.only.row,
  466. .ui.grid .tablet.only.equal.height.row,
  467. .ui.tablet.only.grid .equal.height.row {
  468. display: table !important;
  469. }
  470. .ui.divided.grid > .row > .tablet.only.column,
  471. .ui.celled.grid > .row > .tablet.only.column,
  472. .ui.divided.tablet.only.grid > .row > .column,
  473. .ui.celled.tablet.only.grid > .row > .column,
  474. .ui.divided.tablet.only.grid > .column,
  475. .ui.celled.tablet.only.grid > .column {
  476. display: table-cell !important;
  477. }
  478. }
  479. @media only screen and (max-width: 768px), (min-width: 998px) {
  480. .ui.tablet.only.grid,
  481. .ui.grid > .tablet.only.row,
  482. .ui.grid > .row > .tablet.only.column {
  483. display: none;
  484. }
  485. }
  486. /* Computer Only */
  487. @media only screen and (min-width: 998px) {
  488. .ui.computer.only.grid,
  489. .ui.grid > .computer.only.row {
  490. display: block !important;
  491. }
  492. .ui.grid > .row > .computer.only.column {
  493. display: inline-block !important;
  494. }
  495. .ui.divided.computer.only.grid,
  496. .ui.celled.computer.only.grid,
  497. .ui.divided.computer.only.grid .row,
  498. .ui.celled.computer.only.grid .row,
  499. .ui.divided.grid .computer.only.row,
  500. .ui.celled.grid .computer.only.row,
  501. .ui.grid .computer.only.equal.height.row,
  502. .ui.computer.only.grid .equal.height.row {
  503. display: table !important;
  504. }
  505. .ui.divided.grid > .row > .computer.only.column,
  506. .ui.celled.grid > .row > .computer.only.column,
  507. .ui.divided.computer.only.grid > .row > .column,
  508. .ui.celled.computer.only.grid > .row > .column,
  509. .ui.divided.computer.only.grid > .column,
  510. .ui.celled.computer.only.grid > .column {
  511. display: table-cell !important;
  512. }
  513. }
  514. @media only screen and (max-width: 998px) {
  515. .ui.computer.only.grid,
  516. .ui.grid > .computer.only.row,
  517. .ui.grid > .row > .computer.only.column {
  518. display: none;
  519. }
  520. }
  521. /*-------------------
  522. Padded
  523. --------------------*/
  524. /*-------------------
  525. Stackable
  526. --------------------*/
  527. @media only screen and (max-width: 768px) {
  528. .ui.stackable.grid {
  529. display: block !important;
  530. padding: 0em;
  531. }
  532. .ui.stackable.grid .row > .column,
  533. .ui.stackable.grid > .column {
  534. display: block !important;
  535. width: auto !important;
  536. margin: 1.5em 5% 0em !important;
  537. padding: 1.5em 0em 0em !important;
  538. -webkit-box-shadow: none !important;
  539. -moz-box-shadow: none !important;
  540. box-shadow: none !important;
  541. }
  542. .ui.stackable.divided.grid .column,
  543. .ui.stackable.celled.grid .column {
  544. border-top: 1px dotted rgba(0, 0, 0, 0.1);
  545. }
  546. .ui.stackable.grid > .row:first-child > .column:first-child,
  547. .ui.stackable.grid > .column:first-child {
  548. margin-top: 0em !important;
  549. padding-top: 0em !important;
  550. }
  551. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  552. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  553. .ui.stackable.divided.grid > .column:first-child,
  554. .ui.stackable.celled.grid > .column:first-child {
  555. border-top: none !important;
  556. }
  557. /* Remove pointers from vertical menus */
  558. .ui.stackable.grid .vertical.pointing.menu .item:after {
  559. display: none;
  560. }
  561. }