style.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /* ======================= Style ======================= */
  2. body {
  3. line-height: 1.4;
  4. }
  5. button:hover, input:hover, select:hover, textArea:hover {
  6. opacity: .8;
  7. }
  8. button:active {
  9. opacity: .5;
  10. }
  11. *:focus {
  12. box-shadow: 0px 0px 2px 2px var(--accent) !important;
  13. }
  14. button:hover:disabled {
  15. opacity: .5;
  16. }
  17. *:disabled {
  18. opacity: .5;
  19. }
  20. a {
  21. color: var(--accent);
  22. }
  23. .custom-widgets button,
  24. .custom-widgets input[type=submit]
  25. {
  26. padding-top: 0px;
  27. padding-bottom: 0px;
  28. vertical-align: middle;
  29. background: var(--button-background);
  30. color: var(--button-color);
  31. border: 1px solid var(--chrome-border);
  32. border-radius: var(--border-radius);
  33. box-shadow: var(--box-shadow);
  34. }
  35. .custom-widgets input[type=file]::file-selector-button {
  36. padding-top: 0px;
  37. padding-bottom: 0px;
  38. vertical-align: middle;
  39. background: var(--button-background);
  40. color: var(--button-color);
  41. border: 1px solid var(--chrome-border);
  42. border-radius: var(--border-radius);
  43. box-shadow: var(--box-shadow);
  44. }
  45. .custom-widgets textarea, .custom-widgets select, .custom-widgets input {
  46. background: var(--input-background);
  47. color: var(--input-color);
  48. border: 1px solid var(--chrome-border);
  49. border-radius: var(--border-radius);
  50. padding: .25em;
  51. }
  52. main > section {
  53. box-shadow: inset var(--box-shadow);
  54. }
  55. button,
  56. input[type=submit]
  57. {
  58. height: calc(var(--header-height) - 1rem);
  59. }
  60. input[type=file]::file-selector-button {
  61. height: calc(var(--header-height) - 1rem);
  62. }
  63. input, textarea, progress[value], select {
  64. box-shadow: inset var(--box-shadow);
  65. }
  66. button, input[type=submit] {
  67. position: relative;
  68. }
  69. h2 {
  70. font-size: 100%;
  71. }
  72. .custom-widgets button:after,
  73. .custom-widgets input[type=submit]:after
  74. {
  75. content: ' ';
  76. position: absolute;
  77. bottom: 0px;
  78. left: 0px;
  79. right: 0px;
  80. top: 0px;
  81. box-shadow: inset -1px 2px calc(var(--box-shadow-spread) * 1.25) 2px rgba(255,255,255, calc(var(--highlight-strength) * 1));
  82. border-radius: var(--border-radius);
  83. }
  84. .tab-set button:after {
  85. content: none;
  86. }
  87. voice-graph-2d canvas {
  88. border-radius: var(--border-radius);
  89. }
  90. textarea {
  91. width: 100%;
  92. height: 8em;
  93. font-family: sans-serif;
  94. margin-top: 1em;
  95. margin-bottom: 1em;
  96. }
  97. .modal {
  98. border: 1px solid;
  99. padding: 1em;
  100. padding-bottom: 0em;
  101. border-radius: var(--border-radius);
  102. box-shadow: var(--box-shadow);
  103. }
  104. .modal section {
  105. padding-bottom: 2em;
  106. }
  107. .custom-widgets ::selection {
  108. background: var(--accent);
  109. color: white;
  110. color: var(--accent-text);
  111. }
  112. h2 {
  113. margin-bottom: .5em;
  114. }
  115. h2 + p {
  116. margin-top: .5em;
  117. }
  118. .scrolling-text-box {
  119. background: var(--body-background);
  120. color: var(--body-color);
  121. border-radius: var(--border-radius);
  122. box-shadow: inset var(--box-shadow);
  123. }
  124. .custom-widgets button.attention{
  125. background: var(--accent);
  126. color: var(--accent-text);
  127. font-weight: bold;
  128. }
  129. hr {
  130. border: 1px solid var(--chrome-border);
  131. }