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.

392 lines
7.1 KiB

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