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.

450 lines
8.4 KiB

9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 1.11.4 - Modal
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 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. width: 90%;
  22. margin-left: -45%;
  23. background: #ffffff;
  24. border: none;
  25. box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.3);
  26. border-radius: 0.2857rem;
  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.2857rem;
  36. border-top-right-radius: 0.2857rem;
  37. }
  38. .ui.modal > :last-child {
  39. border-bottom-left-radius: 0.2857rem;
  40. border-bottom-right-radius: 0.2857rem;
  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: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  71. background: linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  72. margin: 0em;
  73. padding: 1.2rem 2rem;
  74. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  75. font-size: 1.6em;
  76. line-height: 1.3em;
  77. font-weight: bold;
  78. color: rgba(0, 0, 0, 0.85);
  79. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  80. }
  81. /*--------------
  82. Content
  83. ---------------*/
  84. .ui.modal > .content {
  85. display: table;
  86. table-layout: fixed;
  87. width: 100%;
  88. font-size: 1em;
  89. line-height: 1.4;
  90. padding: 2rem;
  91. background: #ffffff;
  92. }
  93. /* Image */
  94. .ui.modal > .content > .image {
  95. display: table-cell;
  96. width: '';
  97. vertical-align: top;
  98. }
  99. .ui.modal > .content > .image[class*="top aligned"] {
  100. vertical-align: top;
  101. }
  102. .ui.modal > .content > .image[class*="middle aligned"] {
  103. vertical-align: middle;
  104. }
  105. /* Description */
  106. .ui.modal > .content > .description {
  107. display: table-cell;
  108. vertical-align: top;
  109. }
  110. .ui.modal > .content > .icon + .description,
  111. .ui.modal > .content > .image + .description {
  112. min-width: '';
  113. width: 80%;
  114. padding-left: 2em;
  115. }
  116. /*rtl:ignore*/
  117. .ui.modal > .content > .image > i.icon {
  118. font-size: 8rem;
  119. margin: 0em;
  120. opacity: 1;
  121. width: auto;
  122. }
  123. /*--------------
  124. Actions
  125. ---------------*/
  126. .ui.modal .actions {
  127. background: #efefef;
  128. padding: 1rem 2rem;
  129. border-top: 1px solid rgba(34, 36, 38, 0.15);
  130. text-align: right;
  131. }
  132. .ui.modal .actions > .button {
  133. margin-left: 0.75em;
  134. }
  135. /*-------------------
  136. Responsive
  137. --------------------*/
  138. /* Modal Width */
  139. @media only screen and (max-width: 767px) {
  140. .ui.modal {
  141. width: 95%;
  142. margin: 0em 0em 0em -47.5%;
  143. }
  144. }
  145. @media only screen and (min-width: 768px) {
  146. .ui.modal {
  147. width: 88%;
  148. margin: 0em 0em 0em -44%;
  149. }
  150. }
  151. @media only screen and (min-width: 992px) {
  152. .ui.modal {
  153. width: 74%;
  154. margin: 0em 0em 0em -37%;
  155. }
  156. }
  157. @media only screen and (min-width: 1400px) {
  158. .ui.modal {
  159. width: 56%;
  160. margin: 0em 0em 0em -28%;
  161. }
  162. }
  163. @media only screen and (min-width: 1920px) {
  164. .ui.modal {
  165. width: 42%;
  166. margin: 0em 0em 0em -21%;
  167. }
  168. }
  169. /* Tablet and Mobile */
  170. @media only screen and (max-width: 992px) {
  171. .ui.modal > .header {
  172. padding-right: 2.25rem;
  173. }
  174. .ui.modal > .close {
  175. top: 1.0035rem;
  176. right: 1rem;
  177. color: rgba(0, 0, 0, 0.8);
  178. }
  179. }
  180. /* Mobile */
  181. @media only screen and (max-width: 767px) {
  182. .ui.modal > .header {
  183. padding: 0.75rem 1rem !important;
  184. padding-right: 2.25rem !important;
  185. }
  186. .ui.modal > .content {
  187. display: block;
  188. padding: 1rem !important;
  189. }
  190. .ui.modal > .close {
  191. top: 0.5rem !important;
  192. right: 0.5rem !important;
  193. }
  194. /*rtl:ignore*/
  195. .ui.modal .content > .image {
  196. display: block;
  197. max-width: 100%;
  198. margin: 0em auto !important;
  199. text-align: center;
  200. padding: 0rem 0rem 1rem !important;
  201. }
  202. .ui.modal > .content > .image > i.icon {
  203. font-size: 5rem;
  204. text-align: center;
  205. }
  206. /*rtl:ignore*/
  207. .ui.modal .content > .description {
  208. display: block;
  209. width: 100% !important;
  210. margin: 0em !important;
  211. padding: 1rem 0rem !important;
  212. box-shadow: none;
  213. }
  214. /* Let Buttons Stack */
  215. .ui.modal > .actions {
  216. padding: 1rem 1rem 0rem !important;
  217. }
  218. .ui.modal .actions > .buttons,
  219. .ui.modal .actions > .button {
  220. margin-bottom: 1rem;
  221. }
  222. }
  223. /*******************************
  224. Types
  225. *******************************/
  226. .ui.basic.modal {
  227. background-color: transparent;
  228. border: none;
  229. border-radius: 0em;
  230. box-shadow: 0px 0px 0px 0px;
  231. color: #ffffff;
  232. }
  233. .ui.basic.modal > .header,
  234. .ui.basic.modal > .content,
  235. .ui.basic.modal > .actions {
  236. background-color: transparent;
  237. }
  238. .ui.basic.modal > .header {
  239. color: #ffffff;
  240. }
  241. .ui.basic.modal > .close {
  242. top: 1rem;
  243. right: 1.5rem;
  244. }
  245. /* Tablet and Mobile */
  246. @media only screen and (max-width: 992px) {
  247. .ui.basic.modal > .close {
  248. color: #ffffff;
  249. }
  250. }
  251. /*******************************
  252. States
  253. *******************************/
  254. .ui.active.modal {
  255. display: block;
  256. }
  257. /*******************************
  258. Variations
  259. *******************************/
  260. /*--------------
  261. Scrolling
  262. ---------------*/
  263. /* A modal that cannot fit on the page */
  264. .scrolling.dimmable.dimmed {
  265. overflow: hidden;
  266. }
  267. .scrolling.dimmable.dimmed > .dimmer {
  268. overflow: auto;
  269. -webkit-overflow-scrolling: touch;
  270. }
  271. .scrolling.dimmable > .dimmer {
  272. position: fixed;
  273. }
  274. .modals.dimmer .ui.scrolling.modal {
  275. position: static !important;
  276. margin: 3.5rem auto !important;
  277. }
  278. /* undetached scrolling */
  279. .scrolling.undetached.dimmable.dimmed {
  280. overflow: auto;
  281. -webkit-overflow-scrolling: touch;
  282. }
  283. .scrolling.undetached.dimmable.dimmed > .dimmer {
  284. overflow: hidden;
  285. }
  286. .scrolling.undetached.dimmable .ui.scrolling.modal {
  287. position: absolute;
  288. left: 50%;
  289. margin-top: 3.5rem !important;
  290. }
  291. /* Coupling with Sidebar */
  292. .undetached.dimmable.dimmed > .pusher {
  293. z-index: auto;
  294. }
  295. @media only screen and (max-width: 992px) {
  296. .ui.scrolling.modal {
  297. margin-top: 1rem;
  298. margin-bottom: 1rem;
  299. }
  300. }
  301. /*--------------
  302. Full Screen
  303. ---------------*/
  304. .ui.fullscreen.modal {
  305. width: 95% !important;
  306. left: 2.5% !important;
  307. margin: 1em auto;
  308. }
  309. .ui.fullscreen.scrolling.modal {
  310. left: 0em !important;
  311. }
  312. .ui.fullscreen.modal > .header {
  313. padding-right: 2.25rem;
  314. }
  315. .ui.fullscreen.modal > .close {
  316. top: 1.0035rem;
  317. right: 1rem;
  318. color: rgba(0, 0, 0, 0.8);
  319. }
  320. /*--------------
  321. Size
  322. ---------------*/
  323. .ui.modal {
  324. font-size: 1rem;
  325. }
  326. /* Small */
  327. .ui.small.modal > .header {
  328. font-size: 1.3em;
  329. }
  330. /* Small Modal Width */
  331. @media only screen and (max-width: 767px) {
  332. .ui.small.modal {
  333. width: 95%;
  334. margin: 0em 0em 0em -47.5%;
  335. }
  336. }
  337. @media only screen and (min-width: 768px) {
  338. .ui.small.modal {
  339. width: 52.8%;
  340. margin: 0em 0em 0em -26.4%;
  341. }
  342. }
  343. @media only screen and (min-width: 992px) {
  344. .ui.small.modal {
  345. width: 44.4%;
  346. margin: 0em 0em 0em -22.2%;
  347. }
  348. }
  349. @media only screen and (min-width: 1400px) {
  350. .ui.small.modal {
  351. width: 33.6%;
  352. margin: 0em 0em 0em -16.8%;
  353. }
  354. }
  355. @media only screen and (min-width: 1920px) {
  356. .ui.small.modal {
  357. width: 25.2%;
  358. margin: 0em 0em 0em -12.6%;
  359. }
  360. }
  361. /* Large Modal Width */
  362. .ui.large.modal > .header {
  363. font-size: 1.6em;
  364. }
  365. @media only screen and (max-width: 767px) {
  366. .ui.large.modal {
  367. width: 95%;
  368. margin: 0em 0em 0em -47.5%;
  369. }
  370. }
  371. @media only screen and (min-width: 768px) {
  372. .ui.large.modal {
  373. width: 88%;
  374. margin: 0em 0em 0em -44%;
  375. }
  376. }
  377. @media only screen and (min-width: 992px) {
  378. .ui.large.modal {
  379. width: 88.8%;
  380. margin: 0em 0em 0em -44.4%;
  381. }
  382. }
  383. @media only screen and (min-width: 1400px) {
  384. .ui.large.modal {
  385. width: 67.2%;
  386. margin: 0em 0em 0em -33.6%;
  387. }
  388. }
  389. @media only screen and (min-width: 1920px) {
  390. .ui.large.modal {
  391. width: 50.4%;
  392. margin: 0em 0em 0em -25.2%;
  393. }
  394. }
  395. /*******************************
  396. Theme Overrides
  397. *******************************/
  398. /*******************************
  399. Site Overrides
  400. *******************************/