modal.css 11 KB

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