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.

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