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.

494 lines
11 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
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 Default
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*-------------------
  53. Page
  54. --------------------*/
  55. /*-------------------
  56. Background Colors
  57. --------------------*/
  58. /* Used for differentiating neutrals */
  59. /* Used for differentiating layers */
  60. /*-------------------
  61. Grid
  62. --------------------*/
  63. /*-------------------
  64. Breakpoints
  65. --------------------*/
  66. /*******************************
  67. Power-User
  68. *******************************/
  69. /*-------------------
  70. Icons
  71. --------------------*/
  72. /* Max Width of Icon */
  73. /*-------------------
  74. Easing
  75. --------------------*/
  76. /*--- Light Variations ---*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Solid Background Color */
  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. /* Mobile Positions */
  139. /* Inner Close Position (Responsive) */
  140. /* Responsive Widths */
  141. /*-------------------
  142. Types
  143. --------------------*/
  144. /* Basic */
  145. /* Scrolling Margin */
  146. /*-------------------
  147. Variations
  148. --------------------*/
  149. /* Sizes */
  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 Mix-in
  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.5em;
  207. right: -2.5em;
  208. z-index: 1;
  209. opacity: 0.8;
  210. font-size: 1.25em;
  211. color: #ffffff;
  212. width: 2.25em;
  213. height: 2.25em;
  214. padding: 0.625em 0em 0em 0em;
  215. }
  216. .ui.modal > .close:hover {
  217. opacity: 1;
  218. }
  219. /*--------------
  220. Header
  221. ---------------*/
  222. .ui.modal > .header {
  223. display: block;
  224. font-family: 'Open Sans', "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.5rem 2rem;
  229. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  230. font-size: 1.6em;
  231. font-weight: bold;
  232. color: rgba(0, 0, 0, 0.85);
  233. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  234. }
  235. /*--------------
  236. Content
  237. ---------------*/
  238. .ui.modal > .content {
  239. display: table;
  240. table-layout: fixed;
  241. width: 100%;
  242. font-size: 1em;
  243. line-height: 1.4;
  244. padding: 2rem;
  245. background: #ffffff;
  246. }
  247. .ui.modal > .content > .image {
  248. display: table-cell;
  249. width: '';
  250. vertical-align: top;
  251. }
  252. .ui.modal > .content > .description {
  253. display: table-cell;
  254. min-width: '';
  255. vertical-align: top;
  256. }
  257. .ui.modal > .content > .icon + .description,
  258. .ui.modal > .content > .image + .description {
  259. padding-left: 1em;
  260. }
  261. /*rtl:ignore*/
  262. .ui.modal > .content > .image > i.icon {
  263. font-size: 8rem;
  264. margin: 0em;
  265. opacity: 1;
  266. }
  267. /*--------------
  268. Actions
  269. ---------------*/
  270. .ui.modal .actions {
  271. background: #efefef;
  272. padding: 1rem 2rem;
  273. border-top: 1px solid rgba(0, 0, 0, 0.1);
  274. text-align: right;
  275. }
  276. .ui.modal .actions > .button {
  277. margin-left: 0.75em;
  278. }
  279. /*-------------------
  280. Responsive
  281. --------------------*/
  282. /* Modal Width */
  283. @media only screen and (max-width: 767px) {
  284. .ui.modal {
  285. width: 95%;
  286. margin: 0em 0em 0em -47.5%;
  287. }
  288. }
  289. @media only screen and (min-width: 768px) {
  290. .ui.modal {
  291. width: 88%;
  292. margin: 0em 0em 0em -44%;
  293. }
  294. }
  295. @media only screen and (min-width: 992px) {
  296. .ui.modal {
  297. width: 74%;
  298. margin: 0em 0em 0em -37%;
  299. }
  300. }
  301. @media only screen and (min-width: 1400px) {
  302. .ui.modal {
  303. width: 56%;
  304. margin: 0em 0em 0em -28%;
  305. }
  306. }
  307. @media only screen and (min-width: 1900px) {
  308. .ui.modal {
  309. width: 42%;
  310. margin: 0em 0em 0em -21%;
  311. }
  312. }
  313. /* Position Adjustments */
  314. @media only screen and (max-width: 767px) {
  315. /*rtl:ignore*/
  316. .ui.modal .content > .image {
  317. display: block;
  318. padding: 0em 0em 1em;
  319. }
  320. /*rtl:ignore*/
  321. .ui.modal .content > .description {
  322. display: block;
  323. padding: 0em 0em 1em;
  324. box-shadow: none;
  325. }
  326. .ui.modal .content .image {
  327. width: auto !important;
  328. max-width: 100%;
  329. }
  330. .ui.modal .actions {
  331. padding-bottom: 0em;
  332. }
  333. .ui.modal .actions > .buttons,
  334. .ui.modal .actions > .button {
  335. margin-bottom: 1em;
  336. }
  337. }
  338. /* Tablet and Mobile */
  339. @media only screen and (max-width: 992px) {
  340. .ui.modal > .close {
  341. top: 1rem;
  342. right: 1rem;
  343. color: rgba(0, 0, 0, 0.8);
  344. }
  345. }
  346. /*******************************
  347. Types
  348. *******************************/
  349. .ui.basic.modal {
  350. background-color: transparent;
  351. border: none;
  352. box-shadow: none;
  353. color: #ffffff;
  354. }
  355. .ui.basic.modal > .header,
  356. .ui.basic.modal > .content,
  357. .ui.basic.modal > .actions {
  358. background-color: transparent;
  359. }
  360. .ui.basic.modal > .header {
  361. color: #ffffff;
  362. }
  363. .ui.basic.modal > .close {
  364. top: 1.5rem;
  365. right: 1rem;
  366. }
  367. /*******************************
  368. Variations
  369. *******************************/
  370. /* A modal that cannot fit on the page */
  371. .ui.scrolling.dimmable.dimmed {
  372. overflow: hidden;
  373. }
  374. .ui.scrolling.dimmable.dimmed > .dimmer {
  375. overflow: auto;
  376. }
  377. .ui.scrolling.dimmable > .dimmer {
  378. position: fixed;
  379. }
  380. .ui.modal.scrolling {
  381. position: static;
  382. margin: 3rem auto;
  383. }
  384. /*******************************
  385. States
  386. *******************************/
  387. .ui.active.modal {
  388. display: block;
  389. }
  390. /*******************************
  391. Variations
  392. *******************************/
  393. /*--------------
  394. Full Screen
  395. ---------------*/
  396. .ui.fullscreen.modal {
  397. width: 95% !important;
  398. margin: 3rem 0em 3rem -47.5%;
  399. }
  400. .ui.fullscreen.modal > .close {
  401. top: 1rem;
  402. right: 1rem;
  403. color: rgba(0, 0, 0, 0.8);
  404. }
  405. /*--------------
  406. Size
  407. ---------------*/
  408. .ui.modal {
  409. font-size: 1em;
  410. }
  411. /* Small */
  412. .ui.small.modal > .header {
  413. font-size: 1.3em;
  414. }
  415. /* Small Modal Width */
  416. @media only screen and (max-width: 767px) {
  417. .ui.small.modal {
  418. width: 95%;
  419. margin: 0em 0em 0em -47.5%;
  420. }
  421. }
  422. @media only screen and (min-width: 768px) {
  423. .ui.small.modal {
  424. width: 52.8%;
  425. margin: 0em 0em 0em -26.4%;
  426. }
  427. }
  428. @media only screen and (min-width: 992px) {
  429. .ui.small.modal {
  430. width: 44.4%;
  431. margin: 0em 0em 0em -22.2%;
  432. }
  433. }
  434. @media only screen and (min-width: 1400px) {
  435. .ui.small.modal {
  436. width: 33.6%;
  437. margin: 0em 0em 0em -16.8%;
  438. }
  439. }
  440. @media only screen and (min-width: 1900px) {
  441. .ui.small.modal {
  442. width: 25.2%;
  443. margin: 0em 0em 0em -12.6%;
  444. }
  445. }
  446. /* Large Modal Width */
  447. .ui.large.modal > .header {
  448. font-size: 1.6em;
  449. }
  450. @media only screen and (max-width: 767px) {
  451. .ui.large.modal {
  452. width: 95%;
  453. margin: 0em 0em 0em -47.5%;
  454. }
  455. }
  456. @media only screen and (min-width: 768px) {
  457. .ui.large.modal {
  458. width: 88%;
  459. margin: 0em 0em 0em -44%;
  460. }
  461. }
  462. @media only screen and (min-width: 992px) {
  463. .ui.large.modal {
  464. width: 88.8%;
  465. margin: 0em 0em 0em -44.4%;
  466. }
  467. }
  468. @media only screen and (min-width: 1400px) {
  469. .ui.large.modal {
  470. width: 67.2%;
  471. margin: 0em 0em 0em -33.6%;
  472. }
  473. }
  474. @media only screen and (min-width: 1900px) {
  475. .ui.large.modal {
  476. width: 50.4%;
  477. margin: 0em 0em 0em -25.2%;
  478. }
  479. }
  480. /*******************************
  481. Overrides
  482. *******************************/
  483. /*******************************
  484. Overrides
  485. *******************************/