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. /* 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. Types
  97. *******************************/
  98. /*-------------------
  99. Piled
  100. --------------------*/
  101. .ui.piled.segment {
  102. margin: 2em 0em;
  103. -webkit-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
  104. -moz-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
  105. -ms-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
  106. -o-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
  107. box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.15);
  108. }
  109. .ui.piled.segment:first-child {
  110. margin-top: 0em;
  111. }
  112. .ui.piled.segment:last-child {
  113. margin-bottom: 0em;
  114. }
  115. .ui.piled.segment:after,
  116. .ui.piled.segment:before {
  117. background-color: #FFFFFF;
  118. visibility: visible;
  119. content: "";
  120. display: block;
  121. height: 100%;
  122. left: -1px;
  123. position: absolute;
  124. width: 100%;
  125. -webkit-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
  126. -moz-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
  127. box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
  128. }
  129. .ui.piled.segment:after {
  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: -1;
  137. }
  138. .ui.piled.segment:before {
  139. -webkit-transform: rotate(-1.2deg);
  140. -moz-transform: rotate(-1.2deg);
  141. -ms-transform: rotate(-1.2deg);
  142. -o-transform: rotate(-1.2deg);
  143. transform: rotate(-1.2deg);
  144. top: 0;
  145. z-index: -2;
  146. }
  147. /*-------------------
  148. Stacked
  149. --------------------*/
  150. .ui.stacked.segment {
  151. padding-bottom: 1.7em;
  152. }
  153. .ui.stacked.segment:after,
  154. .ui.stacked.segment:before {
  155. content: '';
  156. position: absolute;
  157. bottom: -3px;
  158. left: 0%;
  159. border-top: 1px solid rgba(0, 0, 0, 0.1);
  160. background-color: rgba(0, 0, 0, 0.02);
  161. width: 100%;
  162. height: 5px;
  163. visibility: visible;
  164. }
  165. .ui.stacked.segment:before {
  166. bottom: 0px;
  167. }
  168. /* Inverted */
  169. .ui.stacked.inverted.segment:after,
  170. .ui.stacked.inverted.segment:before {
  171. background-color: rgba(255, 255, 255, 0.1);
  172. border-top: 1px solid rgba(255, 255, 255, 0.35);
  173. }
  174. /*-------------------
  175. Raised
  176. --------------------*/
  177. .ui.raised.segment {
  178. -webkit-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  179. -moz-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  180. box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
  181. }
  182. /*******************************
  183. States
  184. *******************************/
  185. .ui.disabled.segment {
  186. opacity: 0.8;
  187. color: #DDDDDD;
  188. }
  189. /*******************************
  190. Variations
  191. *******************************/
  192. /*-------------------
  193. Basic
  194. --------------------*/
  195. .ui.basic.segment {
  196. position: relative;
  197. background-color: transparent;
  198. -webkit-box-shadow: none;
  199. -moz-box-shadow: none;
  200. box-shadow: none;
  201. -webkit-border-radius: 0px;
  202. -moz-border-radius: 0px;
  203. border-radius: 0px;
  204. }
  205. .ui.basic.segment:first-child {
  206. padding-top: 0em;
  207. }
  208. .ui.basic.segment:last-child {
  209. padding-bottom: 0em;
  210. }
  211. /*-------------------
  212. Fittted
  213. --------------------*/
  214. .ui.fitted.segment {
  215. padding: 0em;
  216. }
  217. /*-------------------
  218. Colors
  219. --------------------*/
  220. .ui.blue.segment {
  221. border-top: 0.2em solid #6ECFF5;
  222. }
  223. .ui.green.segment {
  224. border-top: 0.2em solid #A1CF64;
  225. }
  226. .ui.red.segment {
  227. border-top: 0.2em solid #D95C5C;
  228. }
  229. .ui.purple.segment {
  230. border-top: 0.2em solid #564F8A;
  231. }
  232. .ui.teal.segment {
  233. border-top: 0.2em solid #00B5AD;
  234. }
  235. /*-------------------
  236. Inverted Colors
  237. --------------------*/
  238. .ui.inverted.black.segment {
  239. background-color: #5C6166 !important;
  240. color: #FFFFFF !important;
  241. }
  242. .ui.inverted.blue.segment {
  243. background-color: #6ECFF5 !important;
  244. color: #FFFFFF !important;
  245. }
  246. .ui.inverted.green.segment {
  247. background-color: #A1CF64 !important;
  248. color: #FFFFFF !important;
  249. }
  250. .ui.inverted.red.segment {
  251. background-color: #D95C5C !important;
  252. color: #FFFFFF !important;
  253. }
  254. .ui.inverted.purple.segment {
  255. background-color: #564F8A !important;
  256. color: #FFFFFF !important;
  257. }
  258. .ui.inverted.teal.segment {
  259. background-color: #00B5AD !important;
  260. color: #FFFFFF !important;
  261. }
  262. /*-------------------
  263. Aligned
  264. --------------------*/
  265. .ui.left.aligned.segment {
  266. text-align: left;
  267. }
  268. .ui.right.aligned.segment {
  269. text-align: right;
  270. }
  271. .ui.center.aligned.segment {
  272. text-align: center;
  273. }
  274. /*-------------------
  275. Floated
  276. --------------------*/
  277. .ui.floated.segment,
  278. .ui.left.floated.segment {
  279. float: left;
  280. }
  281. .ui.right.floated.segment {
  282. float: right;
  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: #222222;
  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: #FAF9FA;
  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. }