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.

562 lines
12 KiB

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