1
0

editor.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. }
  75. .buttons {
  76. flex-direction: column;
  77. }
  78. .separator {
  79. margin-top: 2px;
  80. margin-bottom: 2px;
  81. margin-left: 6px;
  82. width: 22px;
  83. height: 2px;
  84. }
  85. img[type="button"] {
  86. margin-right: 0;
  87. margin-bottom: 2px;
  88. }
  89. @media (max-height: 495px) {
  90. .separator {
  91. display: none;
  92. }
  93. }
  94. }
  95. @media (prefers-color-scheme: dark) {
  96. body {
  97. background-color: #3a3a3a;
  98. }
  99. .editor {
  100. border-top-color: #4a4a4a;
  101. }
  102. img[type=button] {
  103. background-color: #1f1f1f;
  104. }
  105. img[type=button].edit-disabled,
  106. img[type=button].format-disabled,
  107. img[type=button].cut-disabled,
  108. img[type=button].highlight-disabled,
  109. img[type=button].remove-highlight-disabled {
  110. background-color: #4a4a4a;
  111. }
  112. .separator {
  113. background-color: #b3b3b3;
  114. }
  115. }