editor-note-web.css 2.2 KB

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