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.

669 lines
15 KiB

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
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
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
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Modal
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Defaults
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Max Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Status */
  86. /*-------------------
  87. Neutral Text
  88. --------------------*/
  89. /*-------------------
  90. Brand Colors
  91. --------------------*/
  92. /*-------------------
  93. Borders
  94. --------------------*/
  95. /*-------------------
  96. Sizes
  97. --------------------*/
  98. /*-------------------
  99. Transitions
  100. --------------------*/
  101. /*-------------------
  102. Derived Values
  103. --------------------*/
  104. /* Makes sure padded grid can fit at 320px */
  105. /* Used to match floats with text */
  106. /* Positive / Negative Dupes */
  107. /* Header Colors */
  108. /* Responsive */
  109. /* Columns */
  110. /*******************************
  111. States
  112. *******************************/
  113. /*-------------------
  114. Disabled
  115. --------------------*/
  116. /*-------------------
  117. Hover
  118. --------------------*/
  119. /*--- Colors ---*/
  120. /*--- Emotive ---*/
  121. /*--- Neutrals ---*/
  122. /*-------------------
  123. Down (:active)
  124. --------------------*/
  125. /*--- Colors ---*/
  126. /*--- Emotive ---*/
  127. /*--- Neutrals ---*/
  128. /*-------------------
  129. Active
  130. --------------------*/
  131. /*--- Standard ---*/
  132. /*--- Emotive ---*/
  133. /*--- Neutrals ---*/
  134. /*******************************
  135. Modal
  136. *******************************/
  137. /* Close Icon */
  138. /* Header */
  139. /* Content */
  140. /* Image / Description */
  141. /* Modal Actions */
  142. /* Inner Close Position (Tablet/Mobile) */
  143. /* Mobile Positions */
  144. /* Responsive Widths */
  145. /*-------------------
  146. Types
  147. --------------------*/
  148. /* Basic */
  149. /* Scrolling Margin */
  150. /*-------------------
  151. Variations
  152. --------------------*/
  153. /* Size Widths */
  154. /* Derived Responsive Sizes */
  155. /*------------------
  156. Load Theme
  157. -------------------*/
  158. /*******************************
  159. Site Settings
  160. *******************************/
  161. /*-------------------
  162. Paths
  163. --------------------*/
  164. /*-------------------
  165. Fonts
  166. --------------------*/
  167. /*-------------------
  168. Site Colors
  169. --------------------*/
  170. /*--- Colors ---*/
  171. /*--- Light Colors ---*/
  172. /*-------------------
  173. Page
  174. --------------------*/
  175. /*-------------------
  176. Background Colors
  177. --------------------*/
  178. /* Used for differentiating neutrals */
  179. /* Used for differentiating layers */
  180. /*-------------------
  181. Grid
  182. --------------------*/
  183. /*-------------------
  184. Breakpoints
  185. --------------------*/
  186. /*******************************
  187. Power-User
  188. *******************************/
  189. /*-------------------
  190. Icons
  191. --------------------*/
  192. /* Max Width of Icon */
  193. /*-------------------
  194. Easing
  195. --------------------*/
  196. /*--- Neutrals ---*/
  197. /*--- Colored Backgrounds ---*/
  198. /*--- Colored Text ---*/
  199. /*--- Colored Headers ---*/
  200. /*-------------------
  201. Emotive Colors
  202. --------------------*/
  203. /* Mood */
  204. /* Status */
  205. /*-------------------
  206. Neutral Text
  207. --------------------*/
  208. /*-------------------
  209. Brand Colors
  210. --------------------*/
  211. /*-------------------
  212. Borders
  213. --------------------*/
  214. /*-------------------
  215. Sizes
  216. --------------------*/
  217. /*-------------------
  218. Transitions
  219. --------------------*/
  220. /*-------------------
  221. Derived Values
  222. --------------------*/
  223. /* Makes sure padded grid can fit at 320px */
  224. /* Used to match floats with text */
  225. /* Positive / Negative Dupes */
  226. /* Header Colors */
  227. /* Responsive */
  228. /* Columns */
  229. /*******************************
  230. States
  231. *******************************/
  232. /*-------------------
  233. Disabled
  234. --------------------*/
  235. /*-------------------
  236. Hover
  237. --------------------*/
  238. /*--- Colors ---*/
  239. /*--- Emotive ---*/
  240. /*--- Neutrals ---*/
  241. /*-------------------
  242. Down (:active)
  243. --------------------*/
  244. /*--- Colors ---*/
  245. /*--- Emotive ---*/
  246. /*--- Neutrals ---*/
  247. /*-------------------
  248. Active
  249. --------------------*/
  250. /*--- Standard ---*/
  251. /*--- Emotive ---*/
  252. /*--- Neutrals ---*/
  253. /*******************************
  254. Modal
  255. *******************************/
  256. /* Close Icon */
  257. /* Header */
  258. /* Content */
  259. /* Image / Description */
  260. /* Modal Actions */
  261. /* Inner Close Position (Tablet/Mobile) */
  262. /* Mobile Positions */
  263. /* Responsive Widths */
  264. /*-------------------
  265. Types
  266. --------------------*/
  267. /* Basic */
  268. /* Scrolling Margin */
  269. /*-------------------
  270. Variations
  271. --------------------*/
  272. /* Size Widths */
  273. /* Derived Responsive Sizes */
  274. /*------------------
  275. Load Site
  276. -------------------*/
  277. /*******************************
  278. User Global Variables
  279. *******************************/
  280. /*******************************
  281. Overrides
  282. *******************************/
  283. /*------------------
  284. Override Loader
  285. -------------------*/
  286. /*******************************
  287. Modal
  288. *******************************/
  289. .ui.modal {
  290. display: none;
  291. position: fixed;
  292. z-index: 1001;
  293. top: 50%;
  294. left: 50%;
  295. text-align: left;
  296. width: 90%;
  297. margin-left: -45%;
  298. background: #ffffff;
  299. border: none;
  300. box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
  301. border-radius: 0.25rem;
  302. -webkit-user-select: text;
  303. -moz-user-select: text;
  304. -ms-user-select: text;
  305. user-select: text;
  306. will-change: top, left, margin, transform, opacity;
  307. }
  308. .ui.modal > :first-child:not(.icon),
  309. .ui.modal > .icon:first-child + * {
  310. border-top-left-radius: 0.25rem;
  311. border-top-right-radius: 0.25rem;
  312. }
  313. .ui.modal > :last-child {
  314. border-bottom-left-radius: 0.25rem;
  315. border-bottom-right-radius: 0.25rem;
  316. }
  317. /*******************************
  318. Content
  319. *******************************/
  320. /*--------------
  321. Close
  322. ---------------*/
  323. .ui.modal > .close {
  324. cursor: pointer;
  325. position: absolute;
  326. top: -2.5rem;
  327. right: -2.5rem;
  328. z-index: 1;
  329. opacity: 0.8;
  330. font-size: 1.25em;
  331. color: #ffffff;
  332. width: 2.25rem;
  333. height: 2.25rem;
  334. padding: 0.625rem 0rem 0rem 0rem;
  335. }
  336. .ui.modal > .close:hover {
  337. opacity: 1;
  338. }
  339. /*--------------
  340. Header
  341. ---------------*/
  342. .ui.modal > .header {
  343. display: block;
  344. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  345. background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  346. background: linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  347. margin: 0em;
  348. padding: 1.2rem 2rem;
  349. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  350. font-size: 1.6em;
  351. line-height: 1.3em;
  352. font-weight: bold;
  353. color: rgba(0, 0, 0, 0.85);
  354. border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  355. }
  356. /*--------------
  357. Content
  358. ---------------*/
  359. .ui.modal > .content {
  360. display: table;
  361. table-layout: fixed;
  362. width: 100%;
  363. font-size: 1em;
  364. line-height: 1.4;
  365. padding: 2rem;
  366. background: #ffffff;
  367. }
  368. /* Image */
  369. .ui.modal > .content > .image {
  370. display: table-cell;
  371. width: '';
  372. vertical-align: top;
  373. }
  374. .ui.modal > .content > .image[class*="top aligned"] {
  375. vertical-align: top;
  376. }
  377. .ui.modal > .content > .image[class*="top aligned"] {
  378. vertical-align: middle;
  379. }
  380. /* Description */
  381. .ui.modal > .content > .description {
  382. display: table-cell;
  383. vertical-align: top;
  384. }
  385. .ui.modal > .content > .icon + .description,
  386. .ui.modal > .content > .image + .description {
  387. min-width: '';
  388. width: 80%;
  389. padding-left: 2em;
  390. }
  391. /*rtl:ignore*/
  392. .ui.modal > .content > .image > i.icon {
  393. font-size: 8rem;
  394. margin: 0em;
  395. opacity: 1;
  396. width: auto;
  397. }
  398. /*--------------
  399. Actions
  400. ---------------*/
  401. .ui.modal .actions {
  402. background: #efefef;
  403. padding: 1rem 2rem;
  404. border-top: 1px solid rgba(0, 0, 0, 0.15);
  405. text-align: right;
  406. }
  407. .ui.modal .actions > .button {
  408. margin-left: 0.75em;
  409. }
  410. /*-------------------
  411. Responsive
  412. --------------------*/
  413. /* Modal Width */
  414. @media only screen and (max-width: 767px) {
  415. .ui.modal {
  416. width: 95%;
  417. margin: 0em 0em 0em -47.5%;
  418. }
  419. }
  420. @media only screen and (min-width: 768px) {
  421. .ui.modal {
  422. width: 88%;
  423. margin: 0em 0em 0em -44%;
  424. }
  425. }
  426. @media only screen and (min-width: 992px) {
  427. .ui.modal {
  428. width: 74%;
  429. margin: 0em 0em 0em -37%;
  430. }
  431. }
  432. @media only screen and (min-width: 1400px) {
  433. .ui.modal {
  434. width: 56%;
  435. margin: 0em 0em 0em -28%;
  436. }
  437. }
  438. @media only screen and (min-width: 1920px) {
  439. .ui.modal {
  440. width: 42%;
  441. margin: 0em 0em 0em -21%;
  442. }
  443. }
  444. /* Tablet and Mobile */
  445. @media only screen and (max-width: 992px) {
  446. .ui.modal > .header {
  447. padding-right: 2.25rem;
  448. }
  449. .ui.modal > .close {
  450. top: 0.905rem;
  451. right: 1rem;
  452. color: rgba(0, 0, 0, 0.8);
  453. }
  454. }
  455. /* Mobile */
  456. @media only screen and (max-width: 767px) {
  457. .ui.modal > .header {
  458. padding: 0.75rem 1rem !important;
  459. padding-right: 2.25rem !important;
  460. }
  461. .ui.modal > .content {
  462. display: block;
  463. padding: 1rem !important;
  464. }
  465. .ui.modal > .close {
  466. top: 0.5rem !important;
  467. right: 0.5rem !important;
  468. }
  469. /*rtl:ignore*/
  470. .ui.modal .content > .image {
  471. display: block;
  472. max-width: 100%;
  473. margin: 0em auto !important;
  474. text-align: center;
  475. padding: 0rem 0rem 1rem !important;
  476. }
  477. .ui.modal > .content > .image > i.icon {
  478. font-size: 5rem;
  479. text-align: center;
  480. }
  481. /*rtl:ignore*/
  482. .ui.modal .content > .description {
  483. display: block;
  484. width: 100% !important;
  485. margin: 0em !important;
  486. padding: 1rem 0rem !important;
  487. box-shadow: none;
  488. }
  489. .ui.modal > .actions {
  490. padding: 1rem 1rem 0rem !important;
  491. }
  492. .ui.modal .actions > .buttons,
  493. .ui.modal .actions > .button {
  494. margin-bottom: 1rem;
  495. }
  496. }
  497. /*******************************
  498. Types
  499. *******************************/
  500. .ui.basic.modal {
  501. background-color: transparent;
  502. border: none;
  503. box-shadow: none;
  504. color: #ffffff;
  505. }
  506. .ui.basic.modal > .header,
  507. .ui.basic.modal > .content,
  508. .ui.basic.modal > .actions {
  509. background-color: transparent;
  510. }
  511. .ui.basic.modal > .header {
  512. color: #ffffff;
  513. }
  514. .ui.basic.modal > .close {
  515. top: 1rem;
  516. right: 1.5rem;
  517. }
  518. /* Tablet and Mobile */
  519. @media only screen and (max-width: 992px) {
  520. .ui.basic.modal > .close {
  521. color: #ffffff;
  522. }
  523. }
  524. /*******************************
  525. Variations
  526. *******************************/
  527. /* A modal that cannot fit on the page */
  528. .scrolling.dimmable.dimmed {
  529. overflow: hidden;
  530. }
  531. .scrolling.dimmable.dimmed > .dimmer {
  532. overflow: auto;
  533. -webkit-overflow-scrolling: touch;
  534. }
  535. .scrolling.dimmable > .dimmer {
  536. position: fixed;
  537. }
  538. .ui.scrolling.modal {
  539. position: static;
  540. margin: 3.5rem auto;
  541. }
  542. @media only screen and (max-width: 992px) {
  543. .ui.scrolling.modal {
  544. margin-top: 1rem;
  545. margin-bottom: 1rem;
  546. }
  547. }
  548. /*******************************
  549. States
  550. *******************************/
  551. .ui.active.modal {
  552. display: block;
  553. }
  554. /*******************************
  555. Variations
  556. *******************************/
  557. /*--------------
  558. Full Screen
  559. ---------------*/
  560. .ui.fullscreen.modal {
  561. width: 95% !important;
  562. margin: 1em 0em 1em -47.5%;
  563. }
  564. .ui.fullscreen.modal > .header {
  565. padding-right: 2.25rem;
  566. }
  567. .ui.fullscreen.modal > .close {
  568. top: 0.905rem;
  569. right: 1rem;
  570. color: rgba(0, 0, 0, 0.8);
  571. }
  572. @media only screen and (max-width: 767px) {
  573. .ui.fullscreen.modal {
  574. width: auto !important;
  575. margin: 1em !important;
  576. top: 0% !important;
  577. left: 0% !important;
  578. }
  579. }
  580. /*--------------
  581. Size
  582. ---------------*/
  583. .ui.modal {
  584. font-size: 1em;
  585. }
  586. /* Small */
  587. .ui.small.modal > .header {
  588. font-size: 1.3em;
  589. }
  590. /* Small Modal Width */
  591. @media only screen and (max-width: 767px) {
  592. .ui.small.modal {
  593. width: 95%;
  594. margin: 0em 0em 0em -47.5%;
  595. }
  596. }
  597. @media only screen and (min-width: 768px) {
  598. .ui.small.modal {
  599. width: 52.8%;
  600. margin: 0em 0em 0em -26.4%;
  601. }
  602. }
  603. @media only screen and (min-width: 992px) {
  604. .ui.small.modal {
  605. width: 44.4%;
  606. margin: 0em 0em 0em -22.2%;
  607. }
  608. }
  609. @media only screen and (min-width: 1400px) {
  610. .ui.small.modal {
  611. width: 33.6%;
  612. margin: 0em 0em 0em -16.8%;
  613. }
  614. }
  615. @media only screen and (min-width: 1920px) {
  616. .ui.small.modal {
  617. width: 25.2%;
  618. margin: 0em 0em 0em -12.6%;
  619. }
  620. }
  621. /* Large Modal Width */
  622. .ui.large.modal > .header {
  623. font-size: 1.6em;
  624. }
  625. @media only screen and (max-width: 767px) {
  626. .ui.large.modal {
  627. width: 95%;
  628. margin: 0em 0em 0em -47.5%;
  629. }
  630. }
  631. @media only screen and (min-width: 768px) {
  632. .ui.large.modal {
  633. width: 88%;
  634. margin: 0em 0em 0em -44%;
  635. }
  636. }
  637. @media only screen and (min-width: 992px) {
  638. .ui.large.modal {
  639. width: 88.8%;
  640. margin: 0em 0em 0em -44.4%;
  641. }
  642. }
  643. @media only screen and (min-width: 1400px) {
  644. .ui.large.modal {
  645. width: 67.2%;
  646. margin: 0em 0em 0em -33.6%;
  647. }
  648. }
  649. @media only screen and (min-width: 1920px) {
  650. .ui.large.modal {
  651. width: 50.4%;
  652. margin: 0em 0em 0em -25.2%;
  653. }
  654. }
  655. /*******************************
  656. Overrides
  657. *******************************/
  658. /*******************************
  659. Overrides
  660. *******************************/