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.

487 lines
10 KiB

10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git
  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. box-shadow: 0px 0px 0px 1px rgba(39, 41, 43, 0.15), 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  18. margin: 1rem 0em;
  19. padding: 1em 1em;
  20. border-radius: 0.2857rem;
  21. border: none;
  22. }
  23. .ui.segment:first-child {
  24. margin-top: 0em;
  25. }
  26. .ui.segment:last-child {
  27. margin-bottom: 0em;
  28. }
  29. .ui.segment:after {
  30. content: '';
  31. display: block;
  32. height: 0px;
  33. clear: both;
  34. visibility: hidden;
  35. }
  36. .ui.vertical.segment {
  37. margin: 0em;
  38. padding-left: 0em;
  39. padding-right: 0em;
  40. background-color: transparent;
  41. border-radius: 0px;
  42. border: none;
  43. box-shadow: 0px 1px 0px rgba(39, 41, 43, 0.15);
  44. }
  45. .ui.vertical.segment:first-child {
  46. padding-top: 0em;
  47. }
  48. .ui.vertical.segment:last-child {
  49. padding-bottom: 0em;
  50. box-shadow: none;
  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. border: none;
  59. box-shadow: 1px 0px 0px rgba(39, 41, 43, 0.15);
  60. }
  61. /*-------------------
  62. Loose Coupling
  63. --------------------*/
  64. /* Menu */
  65. .ui.pointing.menu + .ui.attached.segment {
  66. top: 1px;
  67. }
  68. /* Header */
  69. .ui.inverted.segment > .ui.header {
  70. color: #ffffff;
  71. }
  72. /* Label */
  73. .ui[class*="bottom attached"].segment > [class*="top attached"].label {
  74. border-top-left-radius: 0em;
  75. border-top-right-radius: 0em;
  76. }
  77. .ui[class*="top attached"].segment > [class*="bottom attached"].label {
  78. border-bottom-left-radius: 0em;
  79. border-bottom-right-radius: 0em;
  80. }
  81. .ui.attached.segment:not(.top):not(.bottom) > [class*="top attached"].label {
  82. border-top-left-radius: 0em;
  83. border-top-right-radius: 0em;
  84. }
  85. .ui.attached.segment:not(.top):not(.bottom) > [class*="bottom attached"].label {
  86. border-bottom-left-radius: 0em;
  87. border-bottom-right-radius: 0em;
  88. }
  89. /* Grid */
  90. .ui.page.grid.segment,
  91. .ui.grid .ui.segment.column {
  92. padding-top: 2em;
  93. padding-bottom: 2em;
  94. }
  95. .ui.grid.segment {
  96. margin: 1rem 0rem;
  97. border-radius: 0.2857rem;
  98. }
  99. /* Table */
  100. .ui.basic.table.segment {
  101. background: #ffffff;
  102. border: none;
  103. box-shadow: 0px 0px 0px 1px rgba(39, 41, 43, 0.15), 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  104. }
  105. .ui[class*="very basic"].table.segment {
  106. padding: 1em 1em;
  107. }
  108. /*******************************
  109. Types
  110. *******************************/
  111. /*-------------------
  112. Piled
  113. --------------------*/
  114. .ui.piled.segment {
  115. margin: 2em 0em;
  116. box-shadow: 0px 0px 1px 1px rgba(39, 41, 43, 0.15);
  117. z-index: auto;
  118. }
  119. .ui.piled.segment:first-child {
  120. margin-top: 0em;
  121. }
  122. .ui.piled.segment:last-child {
  123. margin-bottom: 0em;
  124. }
  125. .ui.piled.segment:after,
  126. .ui.piled.segment:before {
  127. background-color: #ffffff;
  128. visibility: visible;
  129. content: '';
  130. display: block;
  131. height: 100%;
  132. left: 0px;
  133. position: absolute;
  134. width: 100%;
  135. box-shadow: 0px 0px 1px 1px rgba(39, 41, 43, 0.15);
  136. }
  137. .ui.piled.segment:after {
  138. -webkit-transform: rotate(1.2deg);
  139. -ms-transform: rotate(1.2deg);
  140. transform: rotate(1.2deg);
  141. top: 0;
  142. z-index: -1;
  143. }
  144. .ui.piled.segment:before {
  145. -webkit-transform: rotate(-1.2deg);
  146. -ms-transform: rotate(-1.2deg);
  147. transform: rotate(-1.2deg);
  148. top: 0;
  149. z-index: -2;
  150. }
  151. /*-------------------
  152. Stacked
  153. --------------------*/
  154. .ui.stacked.segment {
  155. padding-bottom: 1.4em;
  156. }
  157. .ui.stacked.segment:after,
  158. .ui.stacked.segment:before {
  159. content: '';
  160. position: absolute;
  161. bottom: -3px;
  162. left: 0%;
  163. border-top: 1px solid rgba(39, 41, 43, 0.15);
  164. background-color: rgba(0, 0, 0, 0.03);
  165. width: 100%;
  166. height: 6px;
  167. visibility: visible;
  168. }
  169. .ui.stacked.segment:before {
  170. display: none;
  171. }
  172. /* Add additional page */
  173. .ui.tall.stacked.segment:before {
  174. display: block;
  175. bottom: 0px;
  176. }
  177. /* Inverted */
  178. .ui.stacked.inverted.segment:after,
  179. .ui.stacked.inverted.segment:before {
  180. background-color: rgba(0, 0, 0, 0.03);
  181. border-top: 1px solid rgba(39, 41, 43, 0.2);
  182. }
  183. /*-------------------
  184. Compact
  185. --------------------*/
  186. .ui.compact.segment {
  187. display: table;
  188. }
  189. /*-------------------
  190. Circular
  191. --------------------*/
  192. .ui.circular.segment {
  193. display: table-cell;
  194. padding: 2em;
  195. text-align: center;
  196. vertical-align: middle;
  197. border-radius: 500em;
  198. }
  199. /*-------------------
  200. Raised
  201. --------------------*/
  202. .ui.raised.segment {
  203. box-shadow: 0px 0px 0px 1px rgba(39, 41, 43, 0.15), 0px 1px 4px 0px rgba(0, 0, 0, 0.15);
  204. }
  205. /*******************************
  206. States
  207. *******************************/
  208. .ui.disabled.segment {
  209. opacity: 0.3;
  210. color: rgba(40, 40, 40, 0.3);
  211. }
  212. /*******************************
  213. Variations
  214. *******************************/
  215. /*-------------------
  216. Basic
  217. --------------------*/
  218. .ui.basic.segment {
  219. position: relative;
  220. background-color: transparent;
  221. box-shadow: none;
  222. border-radius: 0px;
  223. }
  224. .ui.basic.segment:first-child {
  225. padding-top: 0em;
  226. }
  227. .ui.basic.segment:last-child {
  228. padding-bottom: 0em;
  229. }
  230. /*-------------------
  231. Fittted
  232. --------------------*/
  233. .ui.fitted.segment {
  234. padding: 0em;
  235. }
  236. /*-------------------
  237. Colors
  238. --------------------*/
  239. .ui.black.segment:not(.inverted) {
  240. border-top: 2px solid #1b1c1d;
  241. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  242. }
  243. .ui.blue.segment:not(.inverted) {
  244. border-top: 2px solid #3b83c0;
  245. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  246. }
  247. .ui.green.segment:not(.inverted) {
  248. border-top: 2px solid #5bbd72;
  249. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  250. }
  251. .ui.orange.segment:not(.inverted) {
  252. border-top: 2px solid #e07b53;
  253. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  254. }
  255. .ui.pink.segment:not(.inverted) {
  256. border-top: 2px solid #d9499a;
  257. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  258. }
  259. .ui.purple.segment:not(.inverted) {
  260. border-top: 2px solid #564f8a;
  261. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  262. }
  263. .ui.red.segment:not(.inverted) {
  264. border-top: 2px solid #d95c5c;
  265. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  266. }
  267. .ui.teal.segment:not(.inverted) {
  268. border-top: 2px solid #00b5ad;
  269. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  270. }
  271. .ui.yellow.segment:not(.inverted) {
  272. border-top: 2px solid #f2c61f;
  273. border-radius: 0em 0em 0.2857rem 0.2857rem !important;
  274. }
  275. /*-------------------
  276. Inverted Colors
  277. --------------------*/
  278. .ui.inverted.segment,
  279. .ui.inverted.black.segment {
  280. background-color: #1b1c1d !important;
  281. color: #ffffff !important;
  282. }
  283. .ui.inverted.blue.segment {
  284. background-color: #3b83c0 !important;
  285. color: #ffffff !important;
  286. }
  287. .ui.inverted.green.segment {
  288. background-color: #5bbd72 !important;
  289. color: #ffffff !important;
  290. }
  291. .ui.inverted.orange.segment {
  292. background-color: #e07b53 !important;
  293. color: #ffffff !important;
  294. }
  295. .ui.inverted.pink.segment {
  296. background-color: #d9499a !important;
  297. color: #ffffff !important;
  298. }
  299. .ui.inverted.purple.segment {
  300. background-color: #564f8a !important;
  301. color: #ffffff !important;
  302. }
  303. .ui.inverted.red.segment {
  304. background-color: #d95c5c !important;
  305. color: #ffffff !important;
  306. }
  307. .ui.inverted.teal.segment {
  308. background-color: #00b5ad !important;
  309. color: #ffffff !important;
  310. }
  311. .ui.inverted.yellow.segment {
  312. background-color: #f2c61f !important;
  313. color: #ffffff !important;
  314. }
  315. /*-------------------
  316. Aligned
  317. --------------------*/
  318. .ui[class*="left aligned"].segment {
  319. text-align: left;
  320. }
  321. .ui[class*="right aligned"].segment {
  322. text-align: right;
  323. }
  324. .ui[class*="center aligned"].segment {
  325. text-align: center;
  326. }
  327. /*-------------------
  328. Floated
  329. --------------------*/
  330. .ui.floated.segment,
  331. .ui[class*="left floated"].segment {
  332. float: left;
  333. margin-right: 1rem;
  334. }
  335. .ui[class*="right floated"].segment {
  336. float: right;
  337. margin-left: 1rem;
  338. }
  339. /*-------------------
  340. Inverted
  341. --------------------*/
  342. .ui.inverted.segment {
  343. border: none;
  344. box-shadow: none;
  345. }
  346. .ui.inverted.segment .segment {
  347. color: rgba(0, 0, 0, 0.8);
  348. }
  349. .ui.inverted.segment .inverted.segment {
  350. color: #ffffff;
  351. }
  352. .ui.inverted.segment,
  353. .ui.primary.inverted.segment {
  354. background-color: #1b1c1d;
  355. color: #ffffff;
  356. }
  357. .ui.inverted.block.segment,
  358. .ui.inverted.attached.segment {
  359. box-shadow: none !important;
  360. border: none !important;
  361. }
  362. /*-------------------
  363. Ordinality
  364. --------------------*/
  365. .ui.secondary.segment {
  366. background: #faf9fa;
  367. color: rgba(0, 0, 0, 0.8);
  368. }
  369. .ui.tertiary.segment {
  370. background: #ebebeb;
  371. color: rgba(0, 0, 0, 0.8);
  372. }
  373. .ui.secondary.inverted.segment {
  374. background: -webkit-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  375. background: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
  376. color: #fafafa;
  377. }
  378. .ui.tertiary.inverted.segment {
  379. background: -webkit-linear-gradient(rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
  380. background: linear-gradient(rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
  381. color: #f0f0f0;
  382. }
  383. /*-------------------
  384. Attached
  385. --------------------*/
  386. .ui.segment.attached {
  387. top: 0px;
  388. bottom: 0px;
  389. margin: 0em -1px;
  390. width: -webkit-calc(100% + 2px );
  391. width: calc(100% + 2px );
  392. max-width: -webkit-calc(100% + 2px );
  393. max-width: calc(100% + 2px );
  394. border-radius: 0px;
  395. box-shadow: none;
  396. border: 1px solid #d4d4d5;
  397. }
  398. .ui.segment.attached + .ui.segment.attached {
  399. border-top: none;
  400. }
  401. /* Top */
  402. .ui[class*="top attached"].segment {
  403. top: 0px;
  404. bottom: 0px;
  405. margin-top: 1rem;
  406. margin-bottom: 0em;
  407. border-radius: 0.2857rem 0.2857rem 0em 0em;
  408. }
  409. .ui.segment[class*="top attached"]:first-child {
  410. margin-top: 0em;
  411. }
  412. /* Bottom */
  413. .ui.segment[class*="bottom attached"] {
  414. top: 0px;
  415. bottom: 0px;
  416. margin-top: 0em;
  417. margin-bottom: 1rem;
  418. box-shadow: none, 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  419. border-radius: 0em 0em 0.2857rem 0.2857rem;
  420. }
  421. .ui.segment[class*="bottom attached"]:last-child {
  422. margin-bottom: 0em;
  423. }
  424. /*******************************
  425. Theme Overrides
  426. *******************************/
  427. /*******************************
  428. Site Overrides
  429. *******************************/