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.

508 lines
9.8 KiB

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