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.

454 lines
8.6 KiB

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