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.

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