You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
2.7 KiB

  1. .glitch.local-settings {
  2. position: relative;
  3. display: flex;
  4. flex-direction: row;
  5. background: $ui-secondary-color;
  6. color: $inverted-text-color;
  7. border-radius: 8px;
  8. height: 80vh;
  9. width: 80vw;
  10. max-width: 740px;
  11. max-height: 450px;
  12. overflow: hidden;
  13. label,
  14. legend {
  15. display: block;
  16. font-size: 14px;
  17. }
  18. .boolean label,
  19. .radio_buttons label {
  20. position: relative;
  21. padding-left: 28px;
  22. padding-top: 3px;
  23. input {
  24. position: absolute;
  25. left: 0;
  26. top: 0;
  27. }
  28. }
  29. span.hint {
  30. display: block;
  31. color: $lighter-text-color;
  32. }
  33. h1 {
  34. font-size: 18px;
  35. font-weight: 500;
  36. line-height: 24px;
  37. margin-bottom: 20px;
  38. }
  39. h2 {
  40. font-size: 15px;
  41. font-weight: 500;
  42. line-height: 20px;
  43. margin-top: 20px;
  44. margin-bottom: 10px;
  45. }
  46. }
  47. .glitch.local-settings__navigation__item {
  48. display: block;
  49. padding: 15px 20px;
  50. color: inherit;
  51. background: lighten($ui-secondary-color, 8%);
  52. border-bottom: 1px $ui-secondary-color solid;
  53. cursor: pointer;
  54. text-decoration: none;
  55. outline: none;
  56. transition: background 0.3s;
  57. .text-icon-button {
  58. color: inherit;
  59. transition: unset;
  60. }
  61. &:hover {
  62. background: $ui-secondary-color;
  63. }
  64. &.active {
  65. background: $ui-highlight-color;
  66. color: $primary-text-color;
  67. }
  68. &.close,
  69. &.close:hover {
  70. background: $error-value-color;
  71. color: $primary-text-color;
  72. }
  73. }
  74. .glitch.local-settings__navigation {
  75. background: lighten($ui-secondary-color, 8%);
  76. width: 212px;
  77. font-size: 15px;
  78. line-height: 20px;
  79. overflow-y: auto;
  80. }
  81. .glitch.local-settings__page {
  82. display: block;
  83. flex: auto;
  84. padding: 15px 20px 15px 20px;
  85. width: 360px;
  86. overflow-y: auto;
  87. }
  88. .glitch.local-settings__page__item {
  89. margin-bottom: 2px;
  90. .hint a {
  91. color: $lighter-text-color;
  92. font-weight: 500;
  93. text-decoration: underline;
  94. &:active,
  95. &:focus,
  96. &:hover {
  97. text-decoration: none;
  98. }
  99. }
  100. #mastodon-settings--collapsed-auto-height {
  101. width: calc(4ch + 20px);
  102. }
  103. }
  104. .glitch.local-settings__page__item.string,
  105. .glitch.local-settings__page__item.radio_buttons {
  106. margin-top: 10px;
  107. margin-bottom: 10px;
  108. }
  109. @media screen and (max-width: 630px) {
  110. .glitch.local-settings__navigation {
  111. width: 40px;
  112. flex-shrink: 0;
  113. }
  114. .glitch.local-settings__navigation__item {
  115. padding: 10px;
  116. span:last-of-type {
  117. display: none;
  118. }
  119. }
  120. }
  121. .deprecated-settings-label {
  122. white-space: nowrap;
  123. }
  124. .deprecated-settings-info {
  125. text-align: start;
  126. ul {
  127. padding: 10px;
  128. margin-left: 12px;
  129. list-style: disc inside;
  130. }
  131. a {
  132. color: $lighter-text-color;
  133. font-weight: 500;
  134. text-decoration: underline;
  135. &:active,
  136. &:focus,
  137. &:hover {
  138. text-decoration: none;
  139. }
  140. }
  141. }