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.

493 lines
9.3 KiB

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