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.

426 lines
8.2 KiB

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