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.

480 lines
9.3 KiB

11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic - Segment
  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. Segment
  13. *******************************/
  14. .ui.segment {
  15. position: relative;
  16. background-color: #FFFFFF;
  17. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  18. margin: 1em 0em;
  19. padding: 1em;
  20. -webkit-border-radius: 5px 5px 5px 5px;
  21. -moz-border-radius: 5px 5px 5px 5px;
  22. border-radius: 5px 5px 5px 5px;
  23. -webkit-box-sizing: border-box;
  24. -moz-box-sizing: border-box;
  25. -ms-box-sizing: border-box;
  26. box-sizing: border-box;
  27. }
  28. .ui.segment:first-child {
  29. margin-top: 0em;
  30. }
  31. .ui.segment:last-child {
  32. margin-bottom: 0em;
  33. }
  34. .ui.segment:after {
  35. content: '';
  36. display: block;
  37. height: 0;
  38. clear: both;
  39. visibility: hidden;
  40. }
  41. .ui.vertical.segment {
  42. margin: 0em;
  43. padding-left: 0em;
  44. padding-right: 0em;
  45. background-color: transparent;
  46. -webkit-border-radius: 0px;
  47. -moz-border-radius: 0px;
  48. border-radius: 0px;
  49. -webkit-box-shadow:
  50. 0px 1px 0px rgba(0, 0, 0, 0.1)
  51. ;
  52. -moz-box-shadow:
  53. 0px 1px 0px rgba(0, 0, 0, 0.1)
  54. ;
  55. box-shadow:
  56. 0px 1px 0px rgba(0, 0, 0, 0.1)
  57. ;
  58. }
  59. .ui.vertical.segment:first-child {
  60. padding-top: 0em;
  61. }
  62. .ui.horizontal.segment {
  63. margin: 0em;
  64. padding-top: 0em;
  65. padding-bottom: 0em;
  66. background-color: transparent;
  67. -webkit-border-radius: 0px;
  68. -moz-border-radius: 0px;
  69. border-radius: 0px;
  70. -webkit-box-shadow:
  71. 1px 0px 0px rgba(0, 0, 0, 0.1)
  72. ;
  73. -moz-box-shadow:
  74. 1px 0px 0px rgba(0, 0, 0, 0.1)
  75. ;
  76. box-shadow:
  77. 1px 0px 0px rgba(0, 0, 0, 0.1)
  78. ;
  79. }
  80. .ui.horizontal.segment:first-child {
  81. padding-left: 0em;
  82. }
  83. /*-------------------
  84. Loose Coupling
  85. --------------------*/
  86. .ui.pointing.menu + .ui.attached.segment {
  87. top: 1px;
  88. }
  89. .ui.page.grid.segment
  90. .ui.grid .ui.segment.column {
  91. padding-top: 2rem;
  92. padding-bottom: 2rem;
  93. }
  94. .ui.grid.segment,
  95. .ui.grid .ui.segment.row,
  96. .ui.grid .ui.segment.column {
  97. border-radius: 0em;
  98. box-shadow: none;
  99. border: none;
  100. }
  101. /* No padding on edge content */
  102. .ui.segment > :first-child {
  103. margin-top: 0em;
  104. }
  105. .ui.segment > :last-child {
  106. margin-bottom: 0em;
  107. }
  108. /*******************************
  109. Types
  110. *******************************/
  111. /*-------------------
  112. Piled
  113. --------------------*/
  114. .ui.piled.segment {
  115. margin: 2em 0em;
  116. -webkit-box-shadow:
  117. 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
  118. ;
  119. -moz-box-shadow:
  120. 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
  121. ;
  122. -ms-box-shadow:
  123. 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
  124. ;
  125. -o-box-shadow:
  126. 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
  127. ;
  128. box-shadow:
  129. 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
  130. ;
  131. }
  132. .ui.piled.segment:first-child {
  133. margin-top: 0em;
  134. }
  135. .ui.piled.segment:last-child {
  136. margin-bottom: 0em;
  137. }
  138. .ui.piled.segment:after,
  139. .ui.piled.segment:before {
  140. background-color: #FFFFFF;
  141. visibility: visible;
  142. content: "";
  143. display: block;
  144. height: 100%;
  145. left: -1px;
  146. position: absolute;
  147. width: 100%;
  148. -webkit-box-shadow:
  149. 0px 0px 1px 1px rgba(0, 0, 0, 0.1)
  150. ;
  151. -moz-box-shadow:
  152. 0px 0px 1px 1px rgba(0, 0, 0, 0.1)
  153. ;
  154. box-shadow:
  155. 0px 0px 1px 1px rgba(0, 0, 0, 0.1)
  156. ;
  157. }
  158. .ui.piled.segment:after {
  159. -webkit-transform: rotate(1.2deg);
  160. -moz-transform: rotate(1.2deg);
  161. -ms-transform: rotate(1.2deg);
  162. -o-transform: rotate(1.2deg);
  163. transform: rotate(1.2deg);
  164. top: 0;
  165. z-index: -1;
  166. }
  167. .ui.piled.segment:before {
  168. -webkit-transform: rotate(-1.2deg);
  169. -moz-transform: rotate(-1.2deg);
  170. -ms-transform: rotate(-1.2deg);
  171. -o-transform: rotate(-1.2deg);
  172. transform: rotate(-1.2deg);
  173. top: 0;
  174. z-index: -2;
  175. }
  176. /*-------------------
  177. Stacked
  178. --------------------*/
  179. .ui.stacked.segment {
  180. padding-bottom: 1.7em;
  181. }
  182. .ui.stacked.segment:after,
  183. .ui.stacked.segment:before {
  184. content: '';
  185. position: absolute;
  186. bottom: -3px;
  187. left: 0%;
  188. border-top: 1px solid rgba(0, 0, 0, 0.1);
  189. background-color: rgba(0, 0, 0, 0.02);
  190. width: 100%;
  191. height: 5px;
  192. visibility: visible;
  193. }
  194. .ui.stacked.segment:before {
  195. bottom: 0px;
  196. }
  197. /* Inverted */
  198. .ui.stacked.inverted.segment:after,
  199. .ui.stacked.inverted.segment:before {
  200. background-color: rgba(255, 255, 255, 0.1);
  201. border-top: 1px solid rgba(255, 255, 255, 0.35);
  202. }
  203. /*-------------------
  204. Raised
  205. --------------------*/
  206. .ui.raised.segment {
  207. -webkit-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  208. -moz-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  209. box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  210. }
  211. /*******************************
  212. States
  213. *******************************/
  214. .ui.disabled.segment {
  215. opacity: 0.8;
  216. color: #DDDDDD;
  217. }
  218. /*******************************
  219. Variations
  220. *******************************/
  221. /*-------------------
  222. Basic
  223. --------------------*/
  224. .ui.basic.segment {
  225. position: relative;
  226. background-color: transparent;
  227. -webkit-box-shadow: none;
  228. -moz-box-shadow: none;
  229. box-shadow: none;
  230. -webkit-border-radius: 0px;
  231. -moz-border-radius: 0px;
  232. border-radius: 0px;
  233. }
  234. .ui.basic.segment:first-child {
  235. padding-top: 0em;
  236. }
  237. .ui.basic.segment:last-child {
  238. padding-bottom: 0em;
  239. }
  240. /*-------------------
  241. Fittted
  242. --------------------*/
  243. .ui.fitted.segment {
  244. padding: 0em;
  245. }
  246. /*-------------------
  247. Colors
  248. --------------------*/
  249. .ui.blue.segment {
  250. border-top: 0.2em solid #6ECFF5;
  251. }
  252. .ui.green.segment {
  253. border-top: 0.2em solid #A1CF64;
  254. }
  255. .ui.red.segment {
  256. border-top: 0.2em solid #D95C5C;
  257. }
  258. .ui.orange.segment {
  259. border-top: 0.2em solid #F05940;
  260. }
  261. .ui.purple.segment {
  262. border-top: 0.2em solid #564F8A;
  263. }
  264. .ui.teal.segment {
  265. border-top: 0.2em solid #00B5AD;
  266. }
  267. /*-------------------
  268. Inverted Colors
  269. --------------------*/
  270. .ui.inverted.black.segment {
  271. background-color: #5C6166 !important;
  272. color: #FFFFFF !important;
  273. }
  274. .ui.inverted.blue.segment {
  275. background-color: #6ECFF5 !important;
  276. color: #FFFFFF !important;
  277. }
  278. .ui.inverted.green.segment {
  279. background-color: #A1CF64 !important;
  280. color: #FFFFFF !important;
  281. }
  282. .ui.inverted.red.segment {
  283. background-color: #D95C5C !important;
  284. color: #FFFFFF !important;
  285. }
  286. .ui.inverted.orange.segment {
  287. background-color: #F05940 !important;
  288. color: #FFFFFF !important;
  289. }
  290. .ui.inverted.purple.segment {
  291. background-color: #564F8A !important;
  292. color: #FFFFFF !important;
  293. }
  294. .ui.inverted.teal.segment {
  295. background-color: #00B5AD !important;
  296. color: #FFFFFF !important;
  297. }
  298. /*-------------------
  299. Aligned
  300. --------------------*/
  301. .ui.left.aligned.segment {
  302. text-align: left;
  303. }
  304. .ui.right.aligned.segment {
  305. text-align: right;
  306. }
  307. .ui.center.aligned.segment {
  308. text-align: center;
  309. }
  310. /*-------------------
  311. Floated
  312. --------------------*/
  313. .ui.floated.segment,
  314. .ui.left.floated.segment {
  315. float: left;
  316. }
  317. .ui.right.floated.segment {
  318. float: right;
  319. }
  320. /*-------------------
  321. Inverted
  322. --------------------*/
  323. .ui.inverted.segment {
  324. border: none;
  325. -webkit-box-shadow: none;
  326. -moz-box-shadow: none;
  327. box-shadow: none;
  328. }
  329. .ui.inverted.segment,
  330. .ui.primary.inverted.segment {
  331. background-color: #222222;
  332. color: #FFFFFF;
  333. }
  334. /*-------------------
  335. Ordinality
  336. --------------------*/
  337. .ui.primary.segment {
  338. background-color: #FFFFFF;
  339. color: #555555;
  340. }
  341. .ui.secondary.segment {
  342. background-color: #FAF9FA;
  343. color: #777777;
  344. }
  345. .ui.tertiary.segment {
  346. background-color: #EBEBEB;
  347. color: #B0B0B0;
  348. }
  349. .ui.secondary.inverted.segment {
  350. background-color: #555555;
  351. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.3)), to(rgba(255, 255, 255, 0.3)));
  352. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  353. background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  354. background-image: -o-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  355. background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  356. color: #FAFAFA;
  357. }
  358. .ui.tertiary.inverted.segment {
  359. background-color: #555555;
  360. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.6)), to(rgba(255, 255, 255, 0.6)));
  361. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  362. background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  363. background-image: -o-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  364. background-image: linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  365. color: #EEEEEE;
  366. }
  367. /*-------------------
  368. Attached
  369. --------------------*/
  370. .ui.segment.attached {
  371. top: -1px;
  372. bottom: -1px;
  373. -moz-border-radius: 0px;
  374. -webkit-border-radius: 0px;
  375. border-radius: 0px;
  376. margin: 0em;
  377. -moz-box-shadow: 0px 0px 0px 1px #DDDDDD;
  378. -webkit-box-shadow: 0px 0px 0px 1px #DDDDDD;
  379. box-shadow: 0px 0px 0px 1px #DDDDDD;
  380. }
  381. .ui.top.attached.segment {
  382. top: 0px;
  383. bottom: -1px;
  384. margin-top: 1em;
  385. margin-bottom: 0em;
  386. -moz-border-radius: 5px 5px 0px 0px;
  387. -webkit-border-radius: 5px 5px 0px 0px;
  388. border-radius: 5px 5px 0px 0px;
  389. }
  390. .ui.segment.top.attached:first-child {
  391. margin-top: 0em;
  392. }
  393. .ui.segment.bottom.attached {
  394. top: -1px;
  395. bottom: 0px;
  396. margin-top: 0em;
  397. margin-bottom: 1em;
  398. -moz-border-radius: 0px 0px 5px 5px;
  399. -webkit-border-radius: 0px 0px 5px 5px;
  400. border-radius: 0px 0px 5px 5px;
  401. }
  402. .ui.segment.bottom.attached:last-child {
  403. margin-bottom: 0em;
  404. }