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.

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