editor-note-web.css 2.3 KB

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