kityminder.core.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .km-view {
  2. font-family: "STHeitiSC-Light", "STHeiti", "Hei", "Heiti SC", "Microsoft Yahei", Arial, sans-serif;
  3. -webkit-user-select: none;
  4. user-select: none;
  5. position: relative;
  6. }
  7. .km-view .km-receiver {
  8. position: absolute;
  9. left: -99999px;
  10. top: -99999px;
  11. width: 20px;
  12. height: 20px;
  13. outline: none;
  14. margin: 0;
  15. }
  16. .km-view image {
  17. cursor: zoom-in;
  18. }
  19. .km-image-viewer {
  20. position: fixed;
  21. z-index: 99999;
  22. top: 0;
  23. bottom: 0;
  24. left: 0;
  25. right: 0;
  26. background: rgba(0, 0, 0, .75);
  27. }
  28. .km-image-viewer .km-image-viewer-container {
  29. position: absolute;
  30. top: 0;
  31. bottom: 0;
  32. left: 0;
  33. right: 0;
  34. text-align: center;
  35. white-space: nowrap;
  36. overflow: auto;
  37. }
  38. .km-image-viewer .km-image-viewer-container::before {
  39. content: '';
  40. display: inline-block;
  41. height: 100%;
  42. width: 0;
  43. font-size: 0;
  44. vertical-align: middle;
  45. }
  46. .km-image-viewer .km-image-viewer-container img {
  47. cursor: zoom-out;
  48. vertical-align: middle;
  49. }
  50. .km-image-viewer .km-image-viewer-container img.limited {
  51. cursor: zoom-in;
  52. max-width: 100%;
  53. max-height: 100%;
  54. }
  55. .km-image-viewer .km-image-viewer-toolbar {
  56. z-index: 1;
  57. background: rgba(0, 0, 0, .75);
  58. text-align: right;
  59. transition: all .25s;
  60. }
  61. .km-image-viewer .km-image-viewer-toolbar.hidden {
  62. transform: translate(0, -100%);
  63. opacity: 0;
  64. }
  65. .km-image-viewer .km-image-viewer-btn {
  66. cursor: pointer;
  67. outline: 0;
  68. border: 0;
  69. width: 44px;
  70. height: 44px;
  71. background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjY0IiBoZWlnaHQ9Ijg4IiB2aWV3Qm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}
  79. .km-image-viewer .km-image-viewer-close {
  80. background-position: 0 -44px;
  81. }