editor.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. html,
  2. body {
  3. height: 100%;
  4. overflow: hidden;
  5. }
  6. body {
  7. margin: 0;
  8. display: flex;
  9. flex-direction: column;
  10. user-select: none;
  11. }
  12. .toolbar {
  13. display: flex;
  14. background-color: #e6e6e6;
  15. border-bottom: 1px solid #cecece;
  16. }
  17. .buttons {
  18. display: flex;
  19. flex-direction: row;
  20. margin: 1px;
  21. }
  22. img[type=button] {
  23. cursor: pointer;
  24. background-color: #404040;
  25. padding: 4px;
  26. margin-right: 2px;
  27. border-radius: 4px;
  28. }
  29. img[type=button]:hover {
  30. filter: brightness(0.75);
  31. }
  32. img[type=button].edit-disabled,
  33. img[type=button].highlight-disabled,
  34. img[type=button].remove-highlight-disabled {
  35. background-color: #7b7b7b;
  36. filter: brightness(1.25);
  37. }
  38. img[type=button].edit-disabled:hover,
  39. img[type=button].highlight-disabled:hover,
  40. img[type=button].remove-highlight-disabled:hover {
  41. filter: brightness(0.875);
  42. }
  43. .separator {
  44. display: inline-block;
  45. width: 2px;
  46. height: 22px;
  47. background-color: #404040;
  48. margin-left: 2px;
  49. margin-right: 2px;
  50. margin-top: 6px;
  51. }
  52. .editor {
  53. flex: auto;
  54. border: none;
  55. }
  56. @media (orientation: portrait) {
  57. body {
  58. flex-direction: row;
  59. }
  60. .toolbar {
  61. flex-direction: column;
  62. min-width: 34px;
  63. max-width: 34px;
  64. border-bottom: 0px;
  65. border-right: 1px solid #6d6d6d;
  66. }
  67. .buttons {
  68. flex-direction: column;
  69. }
  70. .separator {
  71. margin-top: 2px;
  72. margin-bottom: 2px;
  73. margin-left: 6px;
  74. width: 22px;
  75. height: 2px;
  76. }
  77. img[type="button"] {
  78. margin-right: 0;
  79. margin-bottom: 2px;
  80. }
  81. @media (max-height: 495px) {
  82. .separator {
  83. display: none;
  84. }
  85. }
  86. }
  87. @media (prefers-color-scheme: dark) {
  88. .toolbar {
  89. background-color: #505050;
  90. border-bottom-color: #4a4a4a;
  91. }
  92. img[type=button] {
  93. background-color: #1f1f1f;
  94. }
  95. img[type=button].edit-disabled,
  96. img[type=button].highlight-disabled,
  97. img[type=button].remove-highlight-disabled {
  98. background-color: #4a4a4a;
  99. }
  100. .separator {
  101. background-color: #b3b3b3;
  102. }
  103. }