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.

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