editor-note-web.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 textarea {
  23. all: initial;
  24. white-space: pre;
  25. font-family: Arial, Helvetica, sans-serif;
  26. font-size: 14px;
  27. padding: 3px;
  28. height: 100%;
  29. border: 1px solid transparent;
  30. resize: none;
  31. }
  32. .note textarea:focus {
  33. border: 1px dotted rgb(160, 160, 160);
  34. }
  35. .note header {
  36. all: initial;
  37. min-height: 30px;
  38. cursor: grab;
  39. user-select: none;
  40. }
  41. .note .note-remove {
  42. all: initial;
  43. position: absolute;
  44. right: 0px;
  45. top: 2px;
  46. padding: 5px;
  47. opacity: .5;
  48. cursor: pointer;
  49. user-select: none;
  50. }
  51. .note .note-anchor {
  52. all: initial;
  53. position: absolute;
  54. left: 0px;
  55. top: 2px;
  56. padding: 5px;
  57. opacity: .25;
  58. cursor: pointer;
  59. }
  60. .note .note-resize {
  61. all: initial;
  62. position: absolute;
  63. bottom: -5px;
  64. right: -5px;
  65. height: 15px;
  66. width: 15px;
  67. cursor: nwse-resize;
  68. user-select: none;
  69. }
  70. .note .note-remove:hover {
  71. opacity: 1;
  72. }
  73. .note .note-anchor:hover {
  74. opacity: .5;
  75. }
  76. .note-anchored .note-anchor {
  77. opacity: .5;
  78. }
  79. .note-anchored .note-anchor:hover {
  80. opacity: 1;
  81. }
  82. .note-moving {
  83. opacity: .5;
  84. }
  85. .note-moving * {
  86. cursor: grabbing;
  87. }
  88. .note-yellow header {
  89. background-color: #f5f545;
  90. }
  91. .note-yellow textarea {
  92. background-color: #ffff7c;
  93. }
  94. .note-pink header {
  95. background-color: #ffa59f;
  96. }
  97. .note-pink textarea {
  98. background-color: #ffbbb6;
  99. }
  100. .note-blue header {
  101. background-color: #84c8ff;
  102. }
  103. .note-blue textarea {
  104. background-color: #95d0ff;
  105. }
  106. .note-green header {
  107. background-color: #93ef8d;
  108. }
  109. .note-green textarea {
  110. background-color: #9cff95;
  111. }