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.

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