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.

368 lines
9.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. -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-left: 0em;
  46. padding-right: 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-left: 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. left: -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. left: 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.orange.segment {
  229. border-top: 0.2em solid #F05940;
  230. }
  231. .ui.purple.segment {
  232. border-top: 0.2em solid #564F8A;
  233. }
  234. .ui.teal.segment {
  235. border-top: 0.2em solid #00B5AD;
  236. }
  237. /*-------------------
  238. Inverted Colors
  239. --------------------*/
  240. .ui.inverted.black.segment {
  241. background-color: #5C6166 !important;
  242. color: #FFFFFF !important;
  243. }
  244. .ui.inverted.blue.segment {
  245. background-color: #6ECFF5 !important;
  246. color: #FFFFFF !important;
  247. }
  248. .ui.inverted.green.segment {
  249. background-color: #A1CF64 !important;
  250. color: #FFFFFF !important;
  251. }
  252. .ui.inverted.red.segment {
  253. background-color: #D95C5C !important;
  254. color: #FFFFFF !important;
  255. }
  256. .ui.inverted.orange.segment {
  257. background-color: #F05940 !important;
  258. color: #FFFFFF !important;
  259. }
  260. .ui.inverted.purple.segment {
  261. background-color: #564F8A !important;
  262. color: #FFFFFF !important;
  263. }
  264. .ui.inverted.teal.segment {
  265. background-color: #00B5AD !important;
  266. color: #FFFFFF !important;
  267. }
  268. /*-------------------
  269. Aligned
  270. --------------------*/
  271. .ui.left.aligned.segment {
  272. text-align: left;
  273. }
  274. .ui.right.aligned.segment {
  275. text-align: right;
  276. }
  277. .ui.center.aligned.segment {
  278. text-align: center;
  279. }
  280. /*-------------------
  281. Floated
  282. --------------------*/
  283. .ui.floated.segment,
  284. .ui.left.floated.segment {
  285. float: left;
  286. }
  287. .ui.right.floated.segment {
  288. float: right;
  289. }
  290. /*-------------------
  291. Inverted
  292. --------------------*/
  293. .ui.inverted.segment {
  294. border: none;
  295. -webkit-box-shadow: none;
  296. -moz-box-shadow: none;
  297. box-shadow: none;
  298. }
  299. .ui.inverted.segment,
  300. .ui.primary.inverted.segment {
  301. background-color: #222222;
  302. color: #FFFFFF;
  303. }
  304. /*-------------------
  305. Ordinality
  306. --------------------*/
  307. .ui.primary.segment {
  308. background-color: #FFFFFF;
  309. color: #555555;
  310. }
  311. .ui.secondary.segment {
  312. background-color: #FAF9FA;
  313. color: #777777;
  314. }
  315. .ui.tertiary.segment {
  316. background-color: #EBEBEB;
  317. color: #B0B0B0;
  318. }
  319. .ui.secondary.inverted.segment {
  320. background-color: #555555;
  321. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.3)), to(rgba(255, 255, 255, 0.3)));
  322. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  323. background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  324. background-image: -o-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  325. background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  326. color: #FAFAFA;
  327. }
  328. .ui.tertiary.inverted.segment {
  329. background-color: #555555;
  330. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.6)), to(rgba(255, 255, 255, 0.6)));
  331. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  332. background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  333. background-image: -o-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  334. background-image: linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
  335. color: #EEEEEE;
  336. }
  337. /*-------------------
  338. Attached
  339. --------------------*/
  340. .ui.segment.attached {
  341. top: -1px;
  342. bottom: -1px;
  343. -moz-border-radius: 0px;
  344. -webkit-border-radius: 0px;
  345. border-radius: 0px;
  346. margin: 0em;
  347. -moz-box-shadow: 0px 0px 0px 1px #DDDDDD;
  348. -webkit-box-shadow: 0px 0px 0px 1px #DDDDDD;
  349. box-shadow: 0px 0px 0px 1px #DDDDDD;
  350. }
  351. .ui.top.attached.segment {
  352. top: 0px;
  353. bottom: -1px;
  354. margin-top: 1em;
  355. margin-bottom: 0em;
  356. -moz-border-radius: 5px 5px 0px 0px;
  357. -webkit-border-radius: 5px 5px 0px 0px;
  358. border-radius: 5px 5px 0px 0px;
  359. }
  360. .ui.segment.bottom.attached {
  361. top: -1px;
  362. bottom: 0px;
  363. margin-top: 0em;
  364. margin-bottom: 1em;
  365. -moz-border-radius: 0px 0px 5px 5px;
  366. -webkit-border-radius: 0px 0px 5px 5px;
  367. border-radius: 0px 0px 5px 5px;
  368. }