1
0

editor.css 2.4 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. }
  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. }
  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. img[type=button].highlight-disabled:hover,
  45. 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. }
  65. @media (orientation: portrait) {
  66. body {
  67. flex-direction: row;
  68. }
  69. .toolbar {
  70. flex-direction: column;
  71. min-width: 34px;
  72. max-width: 34px;
  73. border-bottom-width: 0px;
  74. border-right-width: 1px;
  75. border-right-style: solid;
  76. }
  77. .buttons {
  78. flex-direction: column;
  79. }
  80. .separator {
  81. margin-top: 2px;
  82. margin-bottom: 2px;
  83. margin-left: 6px;
  84. width: 22px;
  85. height: 2px;
  86. }
  87. img[type="button"] {
  88. margin-right: 0;
  89. margin-bottom: 2px;
  90. }
  91. @media (max-height: 495px) {
  92. .separator {
  93. display: none;
  94. }
  95. }
  96. }
  97. @media (prefers-color-scheme: dark) {
  98. .toolbar {
  99. background-color: #3a3a3a;
  100. border-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. }