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