modal.css 12 KB

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