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.

455 lines
8.6 KiB

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