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.

581 lines
11 KiB

10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 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
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
  1. /*!
  2. * # Semantic UI 2.0.0 - Modal
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Modal
  13. *******************************/
  14. .ui.modal {
  15. display: none;
  16. position: fixed;
  17. z-index: 1001;
  18. top: 50%;
  19. left: 50%;
  20. text-align: left;
  21. background: #ffffff;
  22. border: none;
  23. box-shadow: 1px 3px 3px 0px rgba(0, 0, 0, 0.2), 1px 3px 15px 2px rgba(0, 0, 0, 0.2);
  24. border-radius: 0.285714rem;
  25. -webkit-user-select: text;
  26. -moz-user-select: text;
  27. -ms-user-select: text;
  28. user-select: text;
  29. will-change: top, left, margin, transform, opacity;
  30. }
  31. .ui.modal > :first-child:not(.icon),
  32. .ui.modal > .icon:first-child + * {
  33. border-top-left-radius: 0.285714rem;
  34. border-top-right-radius: 0.285714rem;
  35. }
  36. .ui.modal > :last-child {
  37. border-bottom-left-radius: 0.285714rem;
  38. border-bottom-right-radius: 0.285714rem;
  39. }
  40. /*******************************
  41. Content
  42. *******************************/
  43. /*--------------
  44. Close
  45. ---------------*/
  46. .ui.modal > .close {
  47. cursor: pointer;
  48. position: absolute;
  49. top: -2.5rem;
  50. right: -2.5rem;
  51. z-index: 1;
  52. opacity: 0.8;
  53. font-size: 1.25em;
  54. color: #ffffff;
  55. width: 2.25rem;
  56. height: 2.25rem;
  57. padding: 0.625rem 0rem 0rem 0rem;
  58. }
  59. .ui.modal > .close:hover {
  60. opacity: 1;
  61. }
  62. /*--------------
  63. Header
  64. ---------------*/
  65. .ui.modal > .header {
  66. display: block;
  67. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  68. background: #ffffff;
  69. margin: 0em;
  70. padding: 1.25rem 1.5rem;
  71. box-shadow: none;
  72. font-size: 1.42857143rem;
  73. line-height: 1.2857em;
  74. font-weight: bold;
  75. color: rgba(0, 0, 0, 0.85);
  76. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  77. }
  78. /*--------------
  79. Content
  80. ---------------*/
  81. .ui.modal > .content {
  82. display: block;
  83. width: 100%;
  84. font-size: 1em;
  85. line-height: 1.4;
  86. padding: 1.5rem;
  87. background: #ffffff;
  88. }
  89. .ui.modal > .image.content {
  90. display: -webkit-box;
  91. display: -webkit-flex;
  92. display: -ms-flexbox;
  93. display: flex;
  94. -webkit-box-orient: horizontal;
  95. -webkit-box-direction: normal;
  96. -webkit-flex-direction: row;
  97. -ms-flex-direction: row;
  98. flex-direction: row;
  99. }
  100. /* Image */
  101. .ui.modal > .content > .image {
  102. display: block;
  103. -webkit-box-flex: 0;
  104. -webkit-flex: 0 1 auto;
  105. -ms-flex: 0 1 auto;
  106. flex: 0 1 auto;
  107. width: '';
  108. -webkit-align-self: top;
  109. -ms-flex-item-align: top;
  110. align-self: top;
  111. }
  112. .ui.modal > [class*="top aligned"] {
  113. -webkit-align-self: top;
  114. -ms-flex-item-align: top;
  115. align-self: top;
  116. }
  117. .ui.modal > [class*="middle aligned"] {
  118. -webkit-align-self: middle;
  119. -ms-flex-item-align: middle;
  120. align-self: middle;
  121. }
  122. .ui.modal > [class*="stretched"] {
  123. -webkit-align-self: stretch;
  124. -ms-flex-item-align: stretch;
  125. align-self: stretch;
  126. }
  127. /* Description */
  128. .ui.modal > .content > .description {
  129. display: block;
  130. -webkit-box-flex: 1;
  131. -webkit-flex: 1 0 auto;
  132. -ms-flex: 1 0 auto;
  133. flex: 1 0 auto;
  134. min-width: 0px;
  135. -webkit-align-self: top;
  136. -ms-flex-item-align: top;
  137. align-self: top;
  138. }
  139. .ui.modal > .content > .icon + .description,
  140. .ui.modal > .content > .image + .description {
  141. -webkit-box-flex: 0;
  142. -webkit-flex: 0 1 auto;
  143. -ms-flex: 0 1 auto;
  144. flex: 0 1 auto;
  145. min-width: '';
  146. width: auto;
  147. padding-left: 2em;
  148. }
  149. /*rtl:ignore*/
  150. .ui.modal > .content > .image > i.icon {
  151. margin: 0em;
  152. opacity: 1;
  153. width: auto;
  154. line-height: 1;
  155. font-size: 8rem;
  156. }
  157. /*--------------
  158. Actions
  159. ---------------*/
  160. .ui.modal .actions {
  161. background: #f9fafb;
  162. padding: 1rem 1rem;
  163. border-top: 1px solid rgba(34, 36, 38, 0.15);
  164. text-align: right;
  165. }
  166. .ui.modal .actions > .button {
  167. margin-left: 0.75em;
  168. }
  169. /*-------------------
  170. Responsive
  171. --------------------*/
  172. /* Modal Width */
  173. @media only screen and (max-width: 767px) {
  174. .ui.modal {
  175. width: 95%;
  176. margin: 0em 0em 0em -47.5%;
  177. }
  178. }
  179. @media only screen and (min-width: 768px) {
  180. .ui.modal {
  181. width: 88%;
  182. margin: 0em 0em 0em -44%;
  183. }
  184. }
  185. @media only screen and (min-width: 992px) {
  186. .ui.modal {
  187. width: 850px;
  188. margin: 0em 0em 0em -425px;
  189. }
  190. }
  191. @media only screen and (min-width: 1400px) {
  192. .ui.modal {
  193. width: 900px;
  194. margin: 0em 0em 0em -450px;
  195. }
  196. }
  197. @media only screen and (min-width: 1920px) {
  198. .ui.modal {
  199. width: 950px;
  200. margin: 0em 0em 0em -475px;
  201. }
  202. }
  203. /* Tablet and Mobile */
  204. @media only screen and (max-width: 992px) {
  205. .ui.modal > .header {
  206. padding-right: 2.25rem;
  207. }
  208. .ui.modal > .close {
  209. top: 1.0535rem;
  210. right: 1rem;
  211. color: rgba(0, 0, 0, 0.87);
  212. }
  213. }
  214. /* Mobile */
  215. @media only screen and (max-width: 767px) {
  216. .ui.modal > .header {
  217. padding: 0.75rem 1rem !important;
  218. padding-right: 2.25rem !important;
  219. }
  220. .ui.modal > .content {
  221. display: block;
  222. padding: 1rem !important;
  223. }
  224. .ui.modal > .close {
  225. top: 0.5rem !important;
  226. right: 0.5rem !important;
  227. }
  228. /*rtl:ignore*/
  229. .ui.modal .image.content {
  230. -webkit-box-orient: vertical;
  231. -webkit-box-direction: normal;
  232. -webkit-flex-direction: column;
  233. -ms-flex-direction: column;
  234. flex-direction: column;
  235. }
  236. .ui.modal .content > .image {
  237. display: block;
  238. max-width: 100%;
  239. margin: 0em auto !important;
  240. text-align: center;
  241. padding: 0rem 0rem 1rem !important;
  242. }
  243. .ui.modal > .content > .image > i.icon {
  244. font-size: 5rem;
  245. text-align: center;
  246. }
  247. /*rtl:ignore*/
  248. .ui.modal .content > .description {
  249. display: block;
  250. width: 100% !important;
  251. margin: 0em !important;
  252. padding: 1rem 0rem !important;
  253. box-shadow: none;
  254. }
  255. /* Let Buttons Stack */
  256. .ui.modal > .actions {
  257. padding: 1rem 1rem 0rem !important;
  258. }
  259. .ui.modal .actions > .buttons,
  260. .ui.modal .actions > .button {
  261. margin-bottom: 1rem;
  262. }
  263. }
  264. /*--------------
  265. Coupling
  266. ---------------*/
  267. .ui.inverted.dimmer > .ui.modal {
  268. box-shadow: 1px 3px 10px 2px rgba(0, 0, 0, 0.2);
  269. }
  270. /*******************************
  271. Types
  272. *******************************/
  273. .ui.basic.modal {
  274. background-color: transparent;
  275. border: none;
  276. border-radius: 0em;
  277. box-shadow: none !important;
  278. color: #ffffff;
  279. }
  280. .ui.basic.modal > .header,
  281. .ui.basic.modal > .content,
  282. .ui.basic.modal > .actions {
  283. background-color: transparent;
  284. }
  285. .ui.basic.modal > .header {
  286. color: #ffffff;
  287. }
  288. .ui.basic.modal > .close {
  289. top: 1rem;
  290. right: 1.5rem;
  291. }
  292. .ui.inverted.dimmer > .basic.modal {
  293. color: rgba(0, 0, 0, 0.87);
  294. }
  295. .ui.inverted.dimmer > .ui.basic.modal > .header {
  296. color: rgba(0, 0, 0, 0.85);
  297. }
  298. /* Tablet and Mobile */
  299. @media only screen and (max-width: 992px) {
  300. .ui.basic.modal > .close {
  301. color: #ffffff;
  302. }
  303. }
  304. /*******************************
  305. States
  306. *******************************/
  307. .ui.active.modal {
  308. display: block;
  309. }
  310. /*******************************
  311. Variations
  312. *******************************/
  313. /*--------------
  314. Scrolling
  315. ---------------*/
  316. /* A modal that cannot fit on the page */
  317. .scrolling.dimmable.dimmed {
  318. overflow: hidden;
  319. }
  320. .scrolling.dimmable.dimmed > .dimmer {
  321. overflow: auto;
  322. -webkit-overflow-scrolling: touch;
  323. }
  324. .scrolling.dimmable > .dimmer {
  325. position: fixed;
  326. }
  327. .modals.dimmer .ui.scrolling.modal {
  328. position: static !important;
  329. margin: 3.5rem auto !important;
  330. }
  331. /* undetached scrolling */
  332. .scrolling.undetached.dimmable.dimmed {
  333. overflow: auto;
  334. -webkit-overflow-scrolling: touch;
  335. }
  336. .scrolling.undetached.dimmable.dimmed > .dimmer {
  337. overflow: hidden;
  338. }
  339. .scrolling.undetached.dimmable .ui.scrolling.modal {
  340. position: absolute;
  341. left: 50%;
  342. margin-top: 3.5rem !important;
  343. }
  344. /* Coupling with Sidebar */
  345. .undetached.dimmable.dimmed > .pusher {
  346. z-index: auto;
  347. }
  348. @media only screen and (max-width: 992px) {
  349. .ui.scrolling.modal {
  350. margin-top: 1rem;
  351. margin-bottom: 1rem;
  352. }
  353. }
  354. /*--------------
  355. Full Screen
  356. ---------------*/
  357. .ui.fullscreen.modal {
  358. width: 95% !important;
  359. left: 2.5% !important;
  360. margin: 1em auto;
  361. }
  362. .ui.fullscreen.scrolling.modal {
  363. left: 0em !important;
  364. }
  365. .ui.fullscreen.modal > .header {
  366. padding-right: 2.25rem;
  367. }
  368. .ui.fullscreen.modal > .close {
  369. top: 1.0535rem;
  370. right: 1rem;
  371. color: rgba(0, 0, 0, 0.87);
  372. }
  373. /*--------------
  374. Size
  375. ---------------*/
  376. .ui.modal {
  377. font-size: 1rem;
  378. }
  379. /* Small */
  380. .ui.small.modal > .header {
  381. font-size: 1.3em;
  382. }
  383. /* Small Modal Width */
  384. @media only screen and (max-width: 767px) {
  385. .ui.small.modal {
  386. width: 95%;
  387. margin: 0em 0em 0em -47.5%;
  388. }
  389. }
  390. @media only screen and (min-width: 768px) {
  391. .ui.small.modal {
  392. width: 70.4%;
  393. margin: 0em 0em 0em -35.2%;
  394. }
  395. }
  396. @media only screen and (min-width: 992px) {
  397. .ui.small.modal {
  398. width: 680px;
  399. margin: 0em 0em 0em -340px;
  400. }
  401. }
  402. @media only screen and (min-width: 1400px) {
  403. .ui.small.modal {
  404. width: 720px;
  405. margin: 0em 0em 0em -360px;
  406. }
  407. }
  408. @media only screen and (min-width: 1920px) {
  409. .ui.small.modal {
  410. width: 760px;
  411. margin: 0em 0em 0em -380px;
  412. }
  413. }
  414. /* Large Modal Width */
  415. .ui.large.modal > .header {
  416. font-size: 1.6em;
  417. }
  418. @media only screen and (max-width: 767px) {
  419. .ui.large.modal {
  420. width: 95%;
  421. margin: 0em 0em 0em -47.5%;
  422. }
  423. }
  424. @media only screen and (min-width: 768px) {
  425. .ui.large.modal {
  426. width: 88%;
  427. margin: 0em 0em 0em -44%;
  428. }
  429. }
  430. @media only screen and (min-width: 992px) {
  431. .ui.large.modal {
  432. width: 1020px;
  433. margin: 0em 0em 0em -510px;
  434. }
  435. }
  436. @media only screen and (min-width: 1400px) {
  437. .ui.large.modal {
  438. width: 1080px;
  439. margin: 0em 0em 0em -540px;
  440. }
  441. }
  442. @media only screen and (min-width: 1920px) {
  443. .ui.large.modal {
  444. width: 1140px;
  445. margin: 0em 0em 0em -570px;
  446. }
  447. }
  448. /*******************************
  449. Theme Overrides
  450. *******************************/
  451. .ui.modal.scale.transition.in {
  452. -webkit-animation-name: modalScaleIn;
  453. animation-name: modalScaleIn;
  454. }
  455. .ui.modal.scale.transition.out {
  456. -webkit-animation-name: modalScaleOut;
  457. animation-name: modalScaleOut;
  458. }
  459. /* In */
  460. @-webkit-keyframes modalScaleIn {
  461. 0% {
  462. opacity: 0;
  463. -webkit-transform: scale(0.8);
  464. transform: scale(0.8);
  465. -webkit-transform-origin: 50% 25%;
  466. transform-origin: 50% 25%;
  467. }
  468. 100% {
  469. opacity: 1;
  470. -webkit-transform: scale(1);
  471. transform: scale(1);
  472. -webkit-transform-origin: 50% 25%;
  473. transform-origin: 50% 25%;
  474. }
  475. }
  476. @keyframes modalScaleIn {
  477. 0% {
  478. opacity: 0;
  479. -webkit-transform: scale(0.8);
  480. transform: scale(0.8);
  481. -webkit-transform-origin: 50% 25%;
  482. transform-origin: 50% 25%;
  483. }
  484. 100% {
  485. opacity: 1;
  486. -webkit-transform: scale(1);
  487. transform: scale(1);
  488. -webkit-transform-origin: 50% 25%;
  489. transform-origin: 50% 25%;
  490. }
  491. }
  492. /* Out */
  493. @-webkit-keyframes modalScaleOut {
  494. 0% {
  495. opacity: 1;
  496. -webkit-transform: scale(1);
  497. transform: scale(1);
  498. -webkit-transform-origin: 50% 25%;
  499. transform-origin: 50% 25%;
  500. }
  501. 100% {
  502. opacity: 0;
  503. -webkit-transform: scale(0.9);
  504. transform: scale(0.9);
  505. -webkit-transform-origin: 50% 25%;
  506. transform-origin: 50% 25%;
  507. }
  508. }
  509. @keyframes modalScaleOut {
  510. 0% {
  511. opacity: 1;
  512. -webkit-transform: scale(1);
  513. transform: scale(1);
  514. -webkit-transform-origin: 50% 25%;
  515. transform-origin: 50% 25%;
  516. }
  517. 100% {
  518. opacity: 0;
  519. -webkit-transform: scale(0.9);
  520. transform: scale(0.9);
  521. -webkit-transform-origin: 50% 25%;
  522. transform-origin: 50% 25%;
  523. }
  524. }
  525. /*******************************
  526. Site Overrides
  527. *******************************/