editor-note-web.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. .note {
  2. all: initial;
  3. display: flex;
  4. flex-direction: column;
  5. height: 100px;
  6. width: 100px;
  7. position: absolute;
  8. top: 10px;
  9. left: 10px;
  10. border: 1px solid rgb(191, 191, 191);
  11. z-index: 2147483646;
  12. box-shadow: 2px 2px 5px rgba(33, 33, 33, .7);
  13. min-height: 50px;
  14. min-width: 50px;
  15. }
  16. .note-selected {
  17. z-index: 2147483647;
  18. }
  19. .note-closed {
  20. height: 16px !important;
  21. opacity: .5;
  22. box-shadow: 1px 1px 2px rgba(33, 33, 33, .7);
  23. min-height: 20px;
  24. overflow: hidden;
  25. }
  26. .note-closed:hover {
  27. opacity: .75;
  28. }
  29. .note-closed main {
  30. display: none;
  31. }
  32. .note-hidden {
  33. display: none;
  34. }
  35. .note main {
  36. all: initial;
  37. -moz-user-modify: read-write;
  38. font-family: Arial, Helvetica, sans-serif;
  39. font-size: 14px;
  40. padding: 3px;
  41. height: 100%;
  42. overflow: auto;
  43. -webkit-user-modify: read-write;
  44. border: 1px solid transparent;
  45. }
  46. .note main:focus {
  47. border: 1px dotted rgb(160, 160, 160);
  48. }
  49. .note header {
  50. all: initial;
  51. min-height: 20px;
  52. cursor: grab;
  53. user-select: none;
  54. }
  55. .note .note-remove {
  56. all: initial;
  57. position: absolute;
  58. right: 0px;
  59. top: 0px;
  60. padding: 5px;
  61. opacity: .5;
  62. cursor: pointer;
  63. user-select: none;
  64. }
  65. .note .note-anchor {
  66. all: initial;
  67. position: absolute;
  68. left: 0px;
  69. top: 0px;
  70. padding: 5px;
  71. opacity: .25;
  72. cursor: pointer;
  73. }
  74. .note .note-resize {
  75. all: initial;
  76. position: absolute;
  77. bottom: -5px;
  78. right: -5px;
  79. height: 15px;
  80. width: 15px;
  81. cursor: nwse-resize;
  82. user-select: none;
  83. }
  84. .note-closed .note-remove,
  85. .note-closed .note-anchor {
  86. display: none;
  87. }
  88. .note .note-remove:hover {
  89. opacity: 1;
  90. }
  91. .note .note-anchor:hover {
  92. opacity: .5;
  93. }
  94. .note-anchored .note-anchor {
  95. opacity: .5;
  96. }
  97. .note-anchored .note-anchor:hover {
  98. opacity: 1;
  99. }
  100. .note-moving {
  101. opacity: .5;
  102. }
  103. .note-moving * {
  104. cursor: grabbing;
  105. }
  106. .note-yellow header {
  107. background-color: #f5f545;
  108. }
  109. .note-yellow main {
  110. background-color: #ffff7c;
  111. }
  112. .note-pink header {
  113. background-color: #ffa59f;
  114. }
  115. .note-pink main {
  116. background-color: #ffbbb6;
  117. }
  118. .note-blue header {
  119. background-color: #84c8ff;
  120. }
  121. .note-blue main {
  122. background-color: #95d0ff;
  123. }
  124. .note-green header {
  125. background-color: #93ef8d;
  126. }
  127. .note-green main {
  128. background-color: #9cff95;
  129. }