editor.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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: #efefef;
  15. border-bottom-width: 1px;
  16. border-bottom-style: solid;
  17. border-color: #cccccc;
  18. }
  19. .buttons {
  20. display: flex;
  21. flex-direction: row;
  22. margin: 1px;
  23. }
  24. img[type=button] {
  25. cursor: pointer;
  26. background-color: #404040;
  27. padding: 4px;
  28. margin-right: 2px;
  29. border-radius: 4px;
  30. max-width: 24px;
  31. max-height: 24px;
  32. }
  33. img[type=button]:hover {
  34. filter: brightness(0.75);
  35. }
  36. img[type=button].edit-disabled,
  37. img[type=button].format-disabled,
  38. img[type=button].cut-disabled,
  39. img[type=button].highlight-disabled,
  40. img[type=button].remove-highlight-disabled {
  41. background-color: #7b7b7b;
  42. filter: brightness(1.25);
  43. }
  44. img[type=button].edit-disabled:hover,
  45. img[type=button].cut-disabled:hover,
  46. .toolbar:not(.cut-mode):not(.remove-highlight-mode) img[type=button].highlight-disabled:hover,
  47. .toolbar:not(.cut-mode) img[type=button].remove-highlight-disabled:hover {
  48. filter: brightness(0.875);
  49. }
  50. .cut-mode img[type=button].highlight-disabled:hover,
  51. .cut-mode img[type=button].remove-highlight-disabled:hover,
  52. .remove-highlight-mode img[type=button].highlight-disabled:hover {
  53. cursor: not-allowed;
  54. }
  55. .format-page-button:not(.format-disabled):hover {
  56. cursor: default;
  57. filter: brightness(1);
  58. }
  59. .separator {
  60. display: inline-block;
  61. width: 2px;
  62. height: 22px;
  63. background-color: #404040;
  64. margin-left: 2px;
  65. margin-right: 2px;
  66. margin-top: 6px;
  67. }
  68. .editor {
  69. flex: auto;
  70. border: none;
  71. }
  72. @media (orientation: portrait) {
  73. body {
  74. flex-direction: row;
  75. }
  76. .toolbar {
  77. flex-direction: column;
  78. min-width: 34px;
  79. max-width: 34px;
  80. border-bottom-width: 0px;
  81. border-right-width: 1px;
  82. border-right-style: solid;
  83. }
  84. .buttons {
  85. flex-direction: column;
  86. }
  87. .separator {
  88. margin-top: 2px;
  89. margin-bottom: 2px;
  90. margin-left: 6px;
  91. width: 22px;
  92. height: 2px;
  93. }
  94. img[type="button"] {
  95. margin-right: 0;
  96. margin-bottom: 2px;
  97. }
  98. @media (max-height: 495px) {
  99. .separator {
  100. display: none;
  101. }
  102. }
  103. }
  104. @media (prefers-color-scheme: dark) {
  105. .toolbar {
  106. background-color: #3a3a3a;
  107. border-color: #4a4a4a;
  108. }
  109. img[type=button] {
  110. background-color: #1f1f1f;
  111. }
  112. img[type=button].edit-disabled,
  113. img[type=button].format-disabled,
  114. img[type=button].cut-disabled,
  115. img[type=button].highlight-disabled,
  116. img[type=button].remove-highlight-disabled {
  117. background-color: #4a4a4a;
  118. }
  119. .separator {
  120. background-color: #b3b3b3;
  121. }
  122. }