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.

489 lines
9.2 KiB

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