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.

510 lines
9.9 KiB

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