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.

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