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.

285 lines
7.2 KiB

11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic Segment - Flat
  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 17 2013
  11. */
  12. /*******************************
  13. Segment
  14. *******************************/
  15. .ui.segment {
  16. position: relative;
  17. background-color: #FFFFFF;
  18. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  19. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  20. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  21. margin: 1em 0em;
  22. padding: 1.3em 1em;
  23. -webkit-border-radius: 5px 5px 5px 5px;
  24. -moz-border-radius: 5px 5px 5px 5px;
  25. border-radius: 5px 5px 5px 5px;
  26. -webkit-box-sizing: border-box;
  27. -moz-box-sizing: border-box;
  28. -ms-box-sizing: border-box;
  29. box-sizing: border-box;
  30. }
  31. .ui.segment:after {
  32. content: ".";
  33. display: block;
  34. height: 0;
  35. clear: both;
  36. visibility: hidden;
  37. }
  38. .ui.vertical.segment {
  39. margin: 0em;
  40. padding-left: 0em;
  41. padding-right: 0em;
  42. background-color: transparent;
  43. -webkit-border-radius: 0px;
  44. -moz-border-radius: 0px;
  45. border-radius: 0px;
  46. -webkit-box-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  47. -moz-box-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  48. box-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  49. }
  50. .ui.horizontal.segment {
  51. margin: 0em;
  52. padding-top: 0em;
  53. padding-bottom: 0em;
  54. background-color: transparent;
  55. -webkit-border-radius: 0px;
  56. -moz-border-radius: 0px;
  57. border-radius: 0px;
  58. -webkit-box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1), -1px 0px 0px rgba(0, 0, 0, 0.1);
  59. -moz-box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1), -1px 0px 0px rgba(0, 0, 0, 0.1);
  60. box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1), -1px 0px 0px rgba(0, 0, 0, 0.1);
  61. }
  62. /*-------------------
  63. Loose Coupling
  64. --------------------*/
  65. /* No padding on edge content */
  66. .ui.segment > :first-child {
  67. margin-top: 0em;
  68. }
  69. .ui.segment > :last-child {
  70. margin-bottom: 0em;
  71. }
  72. .ui.segment > :only-child {
  73. margin: 0em;
  74. }
  75. /* Padding on next content after a label */
  76. .ui.segment > .attached.label:first-child + * {
  77. margin-top: 2em;
  78. }
  79. .ui.segment > .bottom.attached.label:first-child + * {
  80. margin-top: 0em;
  81. }
  82. /*******************************
  83. States
  84. *******************************/
  85. .ui.disabled.segment {
  86. opacity: 0.8;
  87. color: #DDDDDD;
  88. }
  89. /*******************************
  90. Variations
  91. *******************************/
  92. /*-------------------
  93. Basic
  94. --------------------*/
  95. .ui.basic.segment {
  96. position: relative;
  97. background-color: transparent;
  98. -webkit-box-shadow: none;
  99. -moz-box-shadow: none;
  100. box-shadow: none;
  101. }
  102. /*-------------------
  103. Fittted
  104. --------------------*/
  105. .ui.fitted.segment {
  106. padding: 0em;
  107. }
  108. /*-------------------
  109. Colors
  110. --------------------*/
  111. .ui.blue.segment {
  112. border-top: 0.2em solid #6ECFF5;
  113. }
  114. .ui.green.segment {
  115. border-top: 0.2em solid #A1CF64;
  116. }
  117. .ui.red.segment {
  118. border-top: 0.2em solid #EF4D6D;
  119. }
  120. .ui.purple.segment {
  121. border-top: 0.2em solid #564F8A;
  122. }
  123. .ui.teal.segment {
  124. border-top: 0.2em solid #00B5AD;
  125. }
  126. /*-------------------
  127. Inverted Colors
  128. --------------------*/
  129. .ui.inverted.black.segment {
  130. background-color: #5C6166 !important;
  131. color: #FFFFFF !important;
  132. }
  133. .ui.inverted.blue.segment {
  134. background-color: #6ECFF5 !important;
  135. color: #FFFFFF !important;
  136. }
  137. .ui.inverted.green.segment {
  138. background-color: #A1CF64 !important;
  139. color: #FFFFFF !important;
  140. }
  141. .ui.inverted.red.segment {
  142. background-color: #EF4D6D !important;
  143. color: #FFFFFF !important;
  144. }
  145. .ui.inverted.purple.segment {
  146. background-color: #564F8A !important;
  147. color: #FFFFFF !important;
  148. }
  149. .ui.inverted.teal.segment {
  150. background-color: #00B5AD !important;
  151. color: #FFFFFF !important;
  152. }
  153. /*-------------------
  154. Aligned
  155. --------------------*/
  156. .ui.left.aligned.segment {
  157. text-align: left;
  158. }
  159. .ui.right.aligned.segment {
  160. text-align: right;
  161. }
  162. .ui.center.aligned.segment {
  163. text-align: center;
  164. }
  165. /*-------------------
  166. Floated
  167. --------------------*/
  168. .ui.floated.segment,
  169. .ui.left.floated.segment {
  170. float: left;
  171. }
  172. .ui.right.floated.segment {
  173. float: right;
  174. }
  175. /*-------------------
  176. Stacked
  177. --------------------*/
  178. .ui.stacked.segment {
  179. padding-bottom: 1.7em;
  180. }
  181. .ui.stacked.segment:after,
  182. .ui.stacked.segment:before {
  183. content: '';
  184. position: absolute;
  185. bottom: -3px;
  186. left: 0%;
  187. border-top: 1px solid rgba(0, 0, 0, 0.1);
  188. background-color: rgba(0, 0, 0, 0.02);
  189. width: 100%;
  190. height: 5px;
  191. }
  192. .ui.stacked.segment:before {
  193. bottom: 0px;
  194. }
  195. /* Inverted */
  196. .ui.stacked.inverted.segment:after,
  197. .ui.stacked.inverted.segment:before {
  198. background-color: rgba(255, 255, 255, 0.1);
  199. border-top: 1px solid rgba(255, 255, 255, 0.35);
  200. }
  201. /*-------------------
  202. Raised
  203. --------------------*/
  204. .ui.raised.segment {
  205. -webkit-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  206. -moz-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  207. box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  208. }
  209. /*-------------------
  210. Inverted
  211. --------------------*/
  212. .ui.inverted.segment {
  213. border-top: none;
  214. -webkit-box-shadow: none;
  215. -moz-box-shadow: none;
  216. box-shadow: none;
  217. }
  218. .ui.inverted.segment,
  219. .ui.primary.inverted.segment {
  220. background-color: #555555;
  221. color: #FFFFFF;
  222. }
  223. /*-------------------
  224. Ordinality
  225. --------------------*/
  226. .ui.primary.segment {
  227. background-color: #FFFFFF;
  228. color: #555555;
  229. }
  230. .ui.secondary.segment {
  231. background-color: #F5F5F5;
  232. color: #777777;
  233. }
  234. .ui.tertiary.segment {
  235. background-color: #EBEBEB;
  236. color: #B0B0B0;
  237. }
  238. .ui.secondary.inverted.segment {
  239. background-color: #555555;
  240. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.3)), to(rgba(255, 255, 255, 0.3)));
  241. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  242. background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  243. background-image: -o-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  244. background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  245. color: #FAFAFA;
  246. }
  247. .ui.tertiary.inverted.segment {
  248. background-color: #555555;
  249. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.6)), to(rgba(255, 255, 255, 0.6)));
  250. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  251. background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  252. background-image: -o-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  253. background-image: linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  254. color: #EEEEEE;
  255. }
  256. /*-------------------
  257. Attached
  258. --------------------*/
  259. .ui.segment.attached {
  260. top: -1px;
  261. bottom: -1px;
  262. -moz-border-radius: 0px;
  263. -webkit-border-radius: 0px;
  264. border-radius: 0px;
  265. margin: 0em;
  266. -moz-box-shadow: 0px 0px 0px 1px #DDDDDD;
  267. -webkit-box-shadow: 0px 0px 0px 1px #DDDDDD;
  268. box-shadow: 0px 0px 0px 1px #DDDDDD;
  269. }
  270. .ui.top.attached.segment {
  271. top: 0px;
  272. bottom: -1px;
  273. margin-top: 0em;
  274. -moz-border-radius: 5px 5px 0px 0px;
  275. -webkit-border-radius: 5px 5px 0px 0px;
  276. border-radius: 5px 5px 0px 0px;
  277. }
  278. .ui.segment.bottom.attached {
  279. top: -1px;
  280. bottom: 0px;
  281. margin-bottom: 0em;
  282. -moz-border-radius: 0px 0px 5px 5px;
  283. -webkit-border-radius: 0px 0px 5px 5px;
  284. border-radius: 0px 0px 5px 5px;
  285. }