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.

549 lines
13 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
  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. /* Used to match floats with text */
  57. /*-------------------
  58. Background Colors
  59. --------------------*/
  60. /* Used for differentiating neutrals */
  61. /* Used for differentiating layers */
  62. /*-------------------
  63. Grid
  64. --------------------*/
  65. /*-------------------
  66. Breakpoints
  67. --------------------*/
  68. /*******************************
  69. Power-User
  70. *******************************/
  71. /*-------------------
  72. Icons
  73. --------------------*/
  74. /* Max Width of Icon */
  75. /*-------------------
  76. Easing
  77. --------------------*/
  78. /*--- Neutrals ---*/
  79. /*--- Colored Backgrounds ---*/
  80. /*--- Colored Text ---*/
  81. /*--- Colored Headers ---*/
  82. /*-------------------
  83. Emotive Colors
  84. --------------------*/
  85. /* Mood */
  86. /* Status */
  87. /* Darkened Headers */
  88. /*-------------------
  89. Neutral Text
  90. --------------------*/
  91. /*-------------------
  92. Brand Colors
  93. --------------------*/
  94. /*-------------------
  95. Grid Columns
  96. --------------------*/
  97. /*-------------------
  98. Borders
  99. --------------------*/
  100. /*-------------------
  101. Sizes
  102. --------------------*/
  103. /*-------------------
  104. Transitions
  105. --------------------*/
  106. /*******************************
  107. States
  108. *******************************/
  109. /*-------------------
  110. Disabled
  111. --------------------*/
  112. /*-------------------
  113. Hover
  114. --------------------*/
  115. /*--- Colors ---*/
  116. /*--- Emotive ---*/
  117. /*--- Neutrals ---*/
  118. /*-------------------
  119. Down (:active)
  120. --------------------*/
  121. /*--- Colors ---*/
  122. /*--- Emotive ---*/
  123. /*--- Neutrals ---*/
  124. /*-------------------
  125. Active
  126. --------------------*/
  127. /*--- Standard ---*/
  128. /*--- Emotive ---*/
  129. /*--- Neutrals ---*/
  130. /*******************************
  131. Modal
  132. *******************************/
  133. /* Close Icon */
  134. /* Header */
  135. /* Content */
  136. /* Image / Description */
  137. /* Modal Actions */
  138. /* Inner Close Position (Tablet/Mobile) */
  139. /* Mobile Positions */
  140. /* Responsive Widths */
  141. /*-------------------
  142. Types
  143. --------------------*/
  144. /* Basic */
  145. /* Scrolling Margin */
  146. /*-------------------
  147. Variations
  148. --------------------*/
  149. /* Size Widths */
  150. /* Derived Responsive Sizes */
  151. /*------------------
  152. Load Theme
  153. -------------------*/
  154. /*------------------
  155. Load Site
  156. -------------------*/
  157. /*******************************
  158. User Global Variables
  159. *******************************/
  160. /*******************************
  161. Overrides
  162. *******************************/
  163. /*------------------
  164. Override Loader
  165. -------------------*/
  166. /*******************************
  167. Modal
  168. *******************************/
  169. .ui.modal {
  170. display: none;
  171. position: fixed;
  172. z-index: 1001;
  173. top: 50%;
  174. left: 50%;
  175. text-align: left;
  176. width: 90%;
  177. margin-left: -45%;
  178. background: #ffffff;
  179. border: none;
  180. box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
  181. border-radius: 0.25rem;
  182. -webkit-user-select: text;
  183. -moz-user-select: text;
  184. -ms-user-select: text;
  185. user-select: text;
  186. will-change: top, left, margin, transform, opacity;
  187. }
  188. .ui.modal > :first-child:not(.icon),
  189. .ui.modal > .icon:first-child + * {
  190. border-top-left-radius: 0.25rem;
  191. border-top-right-radius: 0.25rem;
  192. }
  193. .ui.modal > :last-child {
  194. border-bottom-left-radius: 0.25rem;
  195. border-bottom-right-radius: 0.25rem;
  196. }
  197. /*******************************
  198. Content
  199. *******************************/
  200. /*--------------
  201. Close
  202. ---------------*/
  203. .ui.modal > .close {
  204. cursor: pointer;
  205. position: absolute;
  206. top: -2.5rem;
  207. right: -2.5rem;
  208. z-index: 1;
  209. opacity: 0.8;
  210. font-size: 1.25em;
  211. color: #ffffff;
  212. width: 2.25rem;
  213. height: 2.25rem;
  214. padding: 0.625rem 0rem 0rem 0rem;
  215. }
  216. .ui.modal > .close:hover {
  217. opacity: 1;
  218. }
  219. /*--------------
  220. Header
  221. ---------------*/
  222. .ui.modal > .header {
  223. display: block;
  224. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  225. background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  226. background: linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  227. margin: 0em;
  228. padding: 1.2rem 2rem;
  229. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  230. font-size: 1.6em;
  231. line-height: 1.3em;
  232. font-weight: bold;
  233. color: rgba(0, 0, 0, 0.85);
  234. border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  235. }
  236. /*--------------
  237. Content
  238. ---------------*/
  239. .ui.modal > .content {
  240. display: table;
  241. table-layout: fixed;
  242. width: 100%;
  243. font-size: 1em;
  244. line-height: 1.4;
  245. padding: 2rem;
  246. background: #ffffff;
  247. }
  248. /* Image */
  249. .ui.modal > .content > .image {
  250. display: table-cell;
  251. width: '';
  252. vertical-align: top;
  253. }
  254. .ui.modal > .content > .image[class*="top aligned"] {
  255. vertical-align: top;
  256. }
  257. .ui.modal > .content > .image[class*="top aligned"] {
  258. vertical-align: middle;
  259. }
  260. /* Description */
  261. .ui.modal > .content > .description {
  262. display: table-cell;
  263. vertical-align: top;
  264. }
  265. .ui.modal > .content > .icon + .description,
  266. .ui.modal > .content > .image + .description {
  267. min-width: '';
  268. width: 80%;
  269. padding-left: 2em;
  270. }
  271. /*rtl:ignore*/
  272. .ui.modal > .content > .image > i.icon {
  273. font-size: 8rem;
  274. margin: 0em;
  275. opacity: 1;
  276. width: auto;
  277. }
  278. /*--------------
  279. Actions
  280. ---------------*/
  281. .ui.modal .actions {
  282. background: #efefef;
  283. padding: 1rem 2rem;
  284. border-top: 1px solid rgba(0, 0, 0, 0.15);
  285. text-align: right;
  286. }
  287. .ui.modal .actions > .button {
  288. margin-left: 0.75em;
  289. }
  290. /*-------------------
  291. Responsive
  292. --------------------*/
  293. /* Modal Width */
  294. @media only screen and (max-width: 767px) {
  295. .ui.modal {
  296. width: 95%;
  297. margin: 0em 0em 0em -47.5%;
  298. }
  299. }
  300. @media only screen and (min-width: 768px) {
  301. .ui.modal {
  302. width: 88%;
  303. margin: 0em 0em 0em -44%;
  304. }
  305. }
  306. @media only screen and (min-width: 992px) {
  307. .ui.modal {
  308. width: 74%;
  309. margin: 0em 0em 0em -37%;
  310. }
  311. }
  312. @media only screen and (min-width: 1400px) {
  313. .ui.modal {
  314. width: 56%;
  315. margin: 0em 0em 0em -28%;
  316. }
  317. }
  318. @media only screen and (min-width: 1920px) {
  319. .ui.modal {
  320. width: 42%;
  321. margin: 0em 0em 0em -21%;
  322. }
  323. }
  324. /* Tablet and Mobile */
  325. @media only screen and (max-width: 992px) {
  326. .ui.modal > .header {
  327. padding-right: 2.25rem;
  328. }
  329. .ui.modal > .close {
  330. top: 0.905rem;
  331. right: 1rem;
  332. color: rgba(0, 0, 0, 0.8);
  333. }
  334. }
  335. /* Mobile */
  336. @media only screen and (max-width: 767px) {
  337. .ui.modal > .header {
  338. padding: 0.75rem 1rem !important;
  339. padding-right: 2.25rem !important;
  340. }
  341. .ui.modal > .content {
  342. display: block;
  343. padding: 1rem !important;
  344. }
  345. .ui.modal > .close {
  346. top: 0.5rem !important;
  347. right: 0.5rem !important;
  348. }
  349. /*rtl:ignore*/
  350. .ui.modal .content > .image {
  351. display: block;
  352. max-width: 100%;
  353. margin: 0em auto !important;
  354. text-align: center;
  355. padding: 0rem 0rem 1rem !important;
  356. }
  357. .ui.modal > .content > .image > i.icon {
  358. font-size: 5rem;
  359. text-align: center;
  360. }
  361. /*rtl:ignore*/
  362. .ui.modal .content > .description {
  363. display: block;
  364. width: 100% !important;
  365. margin: 0em !important;
  366. padding: 1rem 0rem !important;
  367. box-shadow: none;
  368. }
  369. .ui.modal > .actions {
  370. padding: 1rem 1rem 0rem !important;
  371. }
  372. .ui.modal .actions > .buttons,
  373. .ui.modal .actions > .button {
  374. margin-bottom: 1rem;
  375. }
  376. }
  377. /*******************************
  378. Types
  379. *******************************/
  380. .ui.basic.modal {
  381. background-color: transparent;
  382. border: none;
  383. box-shadow: none;
  384. color: #ffffff;
  385. }
  386. .ui.basic.modal > .header,
  387. .ui.basic.modal > .content,
  388. .ui.basic.modal > .actions {
  389. background-color: transparent;
  390. }
  391. .ui.basic.modal > .header {
  392. color: #ffffff;
  393. }
  394. .ui.basic.modal > .close {
  395. top: 1rem;
  396. right: 1.5rem;
  397. }
  398. /* Tablet and Mobile */
  399. @media only screen and (max-width: 992px) {
  400. .ui.basic.modal > .close {
  401. color: #ffffff;
  402. }
  403. }
  404. /*******************************
  405. Variations
  406. *******************************/
  407. /* A modal that cannot fit on the page */
  408. .scrolling.dimmable.dimmed {
  409. overflow: hidden;
  410. }
  411. .scrolling.dimmable.dimmed > .dimmer {
  412. overflow: auto;
  413. -webkit-overflow-scrolling: touch;
  414. }
  415. .scrolling.dimmable > .dimmer {
  416. position: fixed;
  417. }
  418. .ui.scrolling.modal {
  419. position: static;
  420. margin: 3.5rem auto;
  421. }
  422. @media only screen and (max-width: 992px) {
  423. .ui.scrolling.modal {
  424. margin-top: 1rem;
  425. margin-bottom: 1rem;
  426. }
  427. }
  428. /*******************************
  429. States
  430. *******************************/
  431. .ui.active.modal {
  432. display: block;
  433. }
  434. /*******************************
  435. Variations
  436. *******************************/
  437. /*--------------
  438. Full Screen
  439. ---------------*/
  440. .ui.fullscreen.modal {
  441. width: 95% !important;
  442. margin: 1em 0em 1em -47.5%;
  443. }
  444. .ui.fullscreen.modal > .header {
  445. padding-right: 2.25rem;
  446. }
  447. .ui.fullscreen.modal > .close {
  448. top: 0.905rem;
  449. right: 1rem;
  450. color: rgba(0, 0, 0, 0.8);
  451. }
  452. @media only screen and (max-width: 767px) {
  453. .ui.fullscreen.modal {
  454. width: auto !important;
  455. margin: 1em !important;
  456. top: 0% !important;
  457. left: 0% !important;
  458. }
  459. }
  460. /*--------------
  461. Size
  462. ---------------*/
  463. .ui.modal {
  464. font-size: 1em;
  465. }
  466. /* Small */
  467. .ui.small.modal > .header {
  468. font-size: 1.3em;
  469. }
  470. /* Small Modal Width */
  471. @media only screen and (max-width: 767px) {
  472. .ui.small.modal {
  473. width: 95%;
  474. margin: 0em 0em 0em -47.5%;
  475. }
  476. }
  477. @media only screen and (min-width: 768px) {
  478. .ui.small.modal {
  479. width: 52.8%;
  480. margin: 0em 0em 0em -26.4%;
  481. }
  482. }
  483. @media only screen and (min-width: 992px) {
  484. .ui.small.modal {
  485. width: 44.4%;
  486. margin: 0em 0em 0em -22.2%;
  487. }
  488. }
  489. @media only screen and (min-width: 1400px) {
  490. .ui.small.modal {
  491. width: 33.6%;
  492. margin: 0em 0em 0em -16.8%;
  493. }
  494. }
  495. @media only screen and (min-width: 1920px) {
  496. .ui.small.modal {
  497. width: 25.2%;
  498. margin: 0em 0em 0em -12.6%;
  499. }
  500. }
  501. /* Large Modal Width */
  502. .ui.large.modal > .header {
  503. font-size: 1.6em;
  504. }
  505. @media only screen and (max-width: 767px) {
  506. .ui.large.modal {
  507. width: 95%;
  508. margin: 0em 0em 0em -47.5%;
  509. }
  510. }
  511. @media only screen and (min-width: 768px) {
  512. .ui.large.modal {
  513. width: 88%;
  514. margin: 0em 0em 0em -44%;
  515. }
  516. }
  517. @media only screen and (min-width: 992px) {
  518. .ui.large.modal {
  519. width: 88.8%;
  520. margin: 0em 0em 0em -44.4%;
  521. }
  522. }
  523. @media only screen and (min-width: 1400px) {
  524. .ui.large.modal {
  525. width: 67.2%;
  526. margin: 0em 0em 0em -33.6%;
  527. }
  528. }
  529. @media only screen and (min-width: 1920px) {
  530. .ui.large.modal {
  531. width: 50.4%;
  532. margin: 0em 0em 0em -25.2%;
  533. }
  534. }
  535. /*******************************
  536. Overrides
  537. *******************************/
  538. /*******************************
  539. Overrides
  540. *******************************/