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.

259 lines
5.9 KiB

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