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.

569 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
  1. /*
  2. * # Semantic - Grid
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Grid
  13. *******************************/
  14. .ui.grid {
  15. display: block;
  16. text-align: left;
  17. font-size: 0em;
  18. margin: 0% -1.5%;
  19. padding: 0%;
  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.5%;
  42. padding-right: 1.5%;
  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% !important;
  55. margin-top: 1.5%;
  56. padding: 1.5% 0% 0%;
  57. font-size: 0rem;
  58. }
  59. .ui.grid > .row:first-child {
  60. padding-top: 0rem;
  61. margin-top: 0rem;
  62. }
  63. /*-------------------
  64. Content
  65. --------------------*/
  66. .ui.grid > .row > img,
  67. .ui.grid > .row > .column > img {
  68. max-width: 100%;
  69. }
  70. .ui.grid .column > .ui.segment:only-child {
  71. margin: 0em;
  72. }
  73. /*******************************
  74. Variations
  75. *******************************/
  76. /*-------------------
  77. Page
  78. --------------------*/
  79. .ui.page.grid {
  80. margin: 0%;
  81. padding-left: 0%;
  82. padding-right: 0%;
  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: 998px) {
  93. .ui.responsive.grid {
  94. padding: 0% 4%;
  95. }
  96. }
  97. @media only screen and (min-width: 998px) {
  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. Relaxed
  265. -----------------------*/
  266. .ui.relaxed.grid {
  267. margin: 0% -2.5%;
  268. }
  269. .ui.relaxed.grid > .column,
  270. .ui.relaxed.grid > .row > .column {
  271. padding-left: 2.5%;
  272. padding-right: 2.5%;
  273. }
  274. /*----------------------
  275. "Floated"
  276. -----------------------*/
  277. .ui.grid .left.floated.column {
  278. float: left;
  279. }
  280. .ui.grid .right.floated.column {
  281. float: right;
  282. }
  283. /*----------------------
  284. Divided
  285. -----------------------*/
  286. .ui.divided.grid,
  287. .ui.divided.grid > .row {
  288. display: table;
  289. width: 100%;
  290. margin-left: 0% !important;
  291. margin-right: 0% !important;
  292. }
  293. .ui.divided.grid > .column:not(.row),
  294. .ui.divided.grid > .row > .column {
  295. display: table-cell;
  296. -webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
  297. -moz-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
  298. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
  299. }
  300. .ui.divided.grid > .column.row {
  301. display: table;
  302. }
  303. .ui.divided.grid > .column:first-child,
  304. .ui.divided.grid > .row > .column:first-child {
  305. -webkit-box-shadow: none;
  306. -moz-box-shadow: none;
  307. box-shadow: none;
  308. }
  309. /* Vertically Divided */
  310. .ui.vertically.divided.grid > .row {
  311. -webkit-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
  312. -moz-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
  313. box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
  314. }
  315. .ui.vertically.divided.grid > .row > .column,
  316. .ui.vertically.divided.grid > .column:not(.row),
  317. .ui.vertically.divided.grid > .row:first-child {
  318. -webkit-box-shadow: none !important;
  319. -moz-box-shadow: none !important;
  320. box-shadow: none !important;
  321. }
  322. /*----------------------
  323. Celled
  324. -----------------------*/
  325. .ui.celled.grid {
  326. display: table;
  327. width: 100%;
  328. margin-left: 0% !important;
  329. margin-right: 0% !important;
  330. -webkit-box-shadow: 0px 0px 0px 1px #DFDFDF;
  331. -moz-box-shadow: 0px 0px 0px 1px #DFDFDF;
  332. box-shadow: 0px 0px 0px 1px #DFDFDF;
  333. }
  334. .ui.celled.grid > .row,
  335. .ui.celled.grid > .column.row,
  336. .ui.celled.grid > .column.row:first-child {
  337. display: table;
  338. width: 100%;
  339. margin-top: 0em;
  340. padding-top: 0em;
  341. -webkit-box-shadow: 0px -1px 0px 0px #dfdfdf;
  342. -moz-box-shadow: 0px -1px 0px 0px #dfdfdf;
  343. box-shadow: 0px -1px 0px 0px #dfdfdf;
  344. }
  345. .ui.celled.grid > .column:not(.row),
  346. .ui.celled.grid > .row > .column {
  347. display: table-cell;
  348. padding: 0.75em;
  349. -webkit-box-shadow: -1px 0px 0px 0px #dfdfdf;
  350. -moz-box-shadow: -1px 0px 0px 0px #dfdfdf;
  351. box-shadow: -1px 0px 0px 0px #dfdfdf;
  352. }
  353. .ui.celled.grid > .column:first-child,
  354. .ui.celled.grid > .row > .column:first-child {
  355. -webkit-box-shadow: none;
  356. -moz-box-shadow: none;
  357. box-shadow: none;
  358. }
  359. .ui.celled.responsive.grid {
  360. -webkit-box-shadow: none;
  361. -moz-box-shadow: none;
  362. box-shadow: none;
  363. }
  364. /*----------------------
  365. Horizontally Centered
  366. -----------------------*/
  367. /* Vertical Centered */
  368. .ui.left.aligned.grid,
  369. .ui.left.aligned.grid > .row > .column,
  370. .ui.left.aligned.grid > .column,
  371. .ui.grid .left.aligned.column,
  372. .ui.grid > .left.aligned.row > .column {
  373. text-align: left;
  374. }
  375. .ui.center.aligned.grid,
  376. .ui.center.aligned.grid > .row > .column,
  377. .ui.center.aligned.grid > .column,
  378. .ui.grid .center.aligned.column,
  379. .ui.grid > .center.aligned.row > .column {
  380. text-align: center;
  381. }
  382. .ui.right.aligned.grid,
  383. .ui.right.aligned.grid > .row > .column,
  384. .ui.right.aligned.grid > .column,
  385. .ui.grid .right.aligned.column,
  386. .ui.grid > .right.aligned.row > .column {
  387. text-align: right;
  388. }
  389. /*----------------------
  390. Vertically Centered
  391. -----------------------*/
  392. /* Vertical Centered */
  393. .ui.top.aligned.grid,
  394. .ui.top.aligned.grid > .row > .column,
  395. .ui.top.aligned.grid > .column,
  396. .ui.grid .top.aligned.column,
  397. .ui.grid > .top.aligned.row > .column {
  398. vertical-align: top;
  399. }
  400. .ui.middle.aligned.grid,
  401. .ui.middle.aligned.grid > .row > .column,
  402. .ui.middle.aligned.grid > .column,
  403. .ui.grid .middle.aligned.column,
  404. .ui.grid > .middle.aligned.row > .column {
  405. vertical-align: middle;
  406. }
  407. .ui.bottom.aligned.grid,
  408. .ui.bottom.aligned.grid > .row > .column,
  409. .ui.bottom.aligned.grid > .column,
  410. .ui.grid .bottom.aligned.column,
  411. .ui.grid > .bottom.aligned.row > .column {
  412. vertical-align: bottom;
  413. }
  414. /*----------------------
  415. Equal Height Columns
  416. -----------------------*/
  417. .ui.grid > .equal.height.row {
  418. display: table;
  419. width: 100%;
  420. }
  421. .ui.grid > .equal.height.row > .column {
  422. display: table-cell;
  423. }
  424. /*----------------------
  425. Only (Device)
  426. -----------------------*/
  427. /* Mobile Only */
  428. @media only screen and (max-width: 768px) {
  429. .ui.mobile.only.grid,
  430. .ui.grid > .mobile.only.row {
  431. display: block !important;
  432. }
  433. .ui.grid > .row > .mobile.only.column {
  434. display: inline-block !important;
  435. }
  436. .ui.divided.mobile.only.grid,
  437. .ui.celled.mobile.only.grid,
  438. .ui.divided.mobile.only.grid .row,
  439. .ui.celled.mobile.only.grid .row,
  440. .ui.divided.grid .mobile.only.row,
  441. .ui.celled.grid .mobile.only.row,
  442. .ui.grid .mobile.only.equal.height.row,
  443. .ui.mobile.only.grid .equal.height.row {
  444. display: table !important;
  445. }
  446. .ui.divided.grid > .row > .mobile.only.column,
  447. .ui.celled.grid > .row > .mobile.only.column,
  448. .ui.divided.mobile.only.grid > .row > .column,
  449. .ui.celled.mobile.only.grid > .row > .column,
  450. .ui.divided.mobile.only.grid > .column,
  451. .ui.celled.mobile.only.grid > .column {
  452. display: table-cell !important;
  453. }
  454. }
  455. @media only screen and (min-width: 768px) {
  456. .ui.mobile.only.grid,
  457. .ui.grid > .mobile.only.row,
  458. .ui.grid > .row > .mobile.only.column {
  459. display: none;
  460. }
  461. }
  462. /* Tablet Only */
  463. @media only screen and (min-width: 768px) and (max-width: 998px) {
  464. .ui.tablet.only.grid,
  465. .ui.grid > .tablet.only.row {
  466. display: block !important;
  467. }
  468. .ui.grid > .row > .tablet.only.column {
  469. display: inline-block !important;
  470. }
  471. .ui.divided.tablet.only.grid,
  472. .ui.celled.tablet.only.grid,
  473. .ui.divided.tablet.only.grid .row,
  474. .ui.celled.tablet.only.grid .row,
  475. .ui.divided.grid .tablet.only.row,
  476. .ui.celled.grid .tablet.only.row,
  477. .ui.grid .tablet.only.equal.height.row,
  478. .ui.tablet.only.grid .equal.height.row {
  479. display: table !important;
  480. }
  481. .ui.divided.grid > .row > .tablet.only.column,
  482. .ui.celled.grid > .row > .tablet.only.column,
  483. .ui.divided.tablet.only.grid > .row > .column,
  484. .ui.celled.tablet.only.grid > .row > .column,
  485. .ui.divided.tablet.only.grid > .column,
  486. .ui.celled.tablet.only.grid > .column {
  487. display: table-cell !important;
  488. }
  489. }
  490. @media only screen and (max-width: 768px), (min-width: 998px) {
  491. .ui.tablet.only.grid,
  492. .ui.grid > .tablet.only.row,
  493. .ui.grid > .row > .tablet.only.column {
  494. display: none;
  495. }
  496. }
  497. /* Computer Only */
  498. @media only screen and (min-width: 998px) {
  499. .ui.computer.only.grid,
  500. .ui.grid > .computer.only.row {
  501. display: block !important;
  502. }
  503. .ui.grid > .row > .computer.only.column {
  504. display: inline-block !important;
  505. }
  506. .ui.divided.computer.only.grid,
  507. .ui.celled.computer.only.grid,
  508. .ui.divided.computer.only.grid .row,
  509. .ui.celled.computer.only.grid .row,
  510. .ui.divided.grid .computer.only.row,
  511. .ui.celled.grid .computer.only.row,
  512. .ui.grid .computer.only.equal.height.row,
  513. .ui.computer.only.grid .equal.height.row {
  514. display: table !important;
  515. }
  516. .ui.divided.grid > .row > .computer.only.column,
  517. .ui.celled.grid > .row > .computer.only.column,
  518. .ui.divided.computer.only.grid > .row > .column,
  519. .ui.celled.computer.only.grid > .row > .column,
  520. .ui.divided.computer.only.grid > .column,
  521. .ui.celled.computer.only.grid > .column {
  522. display: table-cell !important;
  523. }
  524. }
  525. @media only screen and (max-width: 998px) {
  526. .ui.computer.only.grid,
  527. .ui.grid > .computer.only.row,
  528. .ui.grid > .row > .computer.only.column {
  529. display: none;
  530. }
  531. }
  532. /*-------------------
  533. Stackable
  534. --------------------*/
  535. @media only screen and (max-width: 768px) {
  536. .ui.stackable.grid {
  537. display: block !important;
  538. padding: 0em;
  539. }
  540. .ui.stackable.grid .row > .column,
  541. .ui.stackable.grid > .column {
  542. display: block !important;
  543. width: auto !important;
  544. margin: 1.5em 5% 0em !important;
  545. padding: 1.5em 0em 0em !important;
  546. -webkit-box-shadow: none !important;
  547. -moz-box-shadow: none !important;
  548. box-shadow: none !important;
  549. }
  550. .ui.stackable.divided.grid .column,
  551. .ui.stackable.celled.grid .column {
  552. border-top: 1px dotted rgba(0, 0, 0, 0.1);
  553. }
  554. .ui.stackable.grid > .row:first-child > .column:first-child,
  555. .ui.stackable.grid > .column:first-child {
  556. margin-top: 0em !important;
  557. padding-top: 0em !important;
  558. }
  559. .ui.stackable.divided.grid > .row:first-child > .column:first-child,
  560. .ui.stackable.celled.grid > .row:first-child > .column:first-child,
  561. .ui.stackable.divided.grid > .column:first-child,
  562. .ui.stackable.celled.grid > .column:first-child {
  563. border-top: none !important;
  564. }
  565. /* Remove pointers from vertical menus */
  566. .ui.stackable.grid .vertical.pointing.menu .item:after {
  567. display: none;
  568. }
  569. }