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.

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