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.

503 lines
9.7 KiB

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