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.

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