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.

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