editor.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. .separator {
  50. display: inline-block;
  51. width: 2px;
  52. height: 22px;
  53. background-color: #404040;
  54. margin-left: 2px;
  55. margin-right: 2px;
  56. margin-top: 6px;
  57. }
  58. .editor {
  59. background-color: white;
  60. flex: auto;
  61. border: none;
  62. border-top-width: 1px;
  63. border-top-style: solid;
  64. border-top-color: #cccccc;
  65. }
  66. @media (orientation: portrait) {
  67. body {
  68. flex-direction: row;
  69. }
  70. .toolbar {
  71. flex-direction: column;
  72. min-width: 34px;
  73. max-width: 34px;
  74. border-bottom-width: 0px;
  75. border-right-width: 1px;
  76. border-right-style: solid;
  77. }
  78. .buttons {
  79. flex-direction: column;
  80. }
  81. .separator {
  82. margin-top: 2px;
  83. margin-bottom: 2px;
  84. margin-left: 6px;
  85. width: 22px;
  86. height: 2px;
  87. }
  88. img[type="button"] {
  89. margin-right: 0;
  90. margin-bottom: 2px;
  91. }
  92. @media (max-height: 495px) {
  93. .separator {
  94. display: none;
  95. }
  96. }
  97. }
  98. @media (prefers-color-scheme: dark) {
  99. body {
  100. background-color: #3a3a3a;
  101. }
  102. .editor {
  103. border-top-color: #4a4a4a;
  104. }
  105. img[type=button] {
  106. background-color: #1f1f1f;
  107. }
  108. img[type=button].edit-disabled,
  109. img[type=button].format-disabled,
  110. img[type=button].cut-disabled,
  111. img[type=button].highlight-disabled,
  112. img[type=button].remove-highlight-disabled {
  113. background-color: #4a4a4a;
  114. }
  115. .separator {
  116. background-color: #b3b3b3;
  117. }
  118. }