editor.css 2.6 KB

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