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.

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