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.

359 lines
8.9 KiB

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