/lib/semantic/dist/components/modal.css

https://gitlab.com/vicnicius/professorz · CSS · 497 lines · 372 code · 52 blank · 73 comment · 0 complexity · f72397a03144e34f13f09a6f95876a74 MD5 · raw file

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