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.

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