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.

376 lines
8.8 KiB

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