editor-note-web.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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: 2px 2px 5px 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. }
  56. .note .note-anchor {
  57. all: initial;
  58. position: absolute;
  59. left: 0px;
  60. top: 2px;
  61. padding: 5px;
  62. opacity: .25;
  63. cursor: pointer;
  64. }
  65. .note .note-resize {
  66. all: initial;
  67. position: absolute;
  68. bottom: -5px;
  69. right: -5px;
  70. height: 15px;
  71. width: 15px;
  72. cursor: nwse-resize;
  73. user-select: none;
  74. }
  75. .note .note-remove:hover {
  76. opacity: 1;
  77. }
  78. .note .note-anchor:hover {
  79. opacity: .5;
  80. }
  81. .note-anchored .note-anchor {
  82. opacity: .5;
  83. }
  84. .note-anchored .note-anchor:hover {
  85. opacity: 1;
  86. }
  87. .note-moving {
  88. opacity: .5;
  89. }
  90. .note-moving * {
  91. cursor: grabbing;
  92. }
  93. .note-yellow header {
  94. background-color: #f5f545;
  95. }
  96. .note-yellow textarea {
  97. background-color: #ffff7c;
  98. }
  99. .note-pink header {
  100. background-color: #ffa59f;
  101. }
  102. .note-pink textarea {
  103. background-color: #ffbbb6;
  104. }
  105. .note-blue header {
  106. background-color: #84c8ff;
  107. }
  108. .note-blue textarea {
  109. background-color: #95d0ff;
  110. }
  111. .note-green header {
  112. background-color: #93ef8d;
  113. }
  114. .note-green textarea {
  115. background-color: #9cff95;
  116. }