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.

247 lines
4.4 KiB

  1. @function hex-color($color) {
  2. @if type-of($color) == 'color' {
  3. $color: str-slice(ie-hex-str($color), 4);
  4. }
  5. @return '%23' + unquote($color);
  6. }
  7. body {
  8. font-family: $font-sans-serif, sans-serif;
  9. background: darken($ui-base-color, 7%);
  10. font-size: 13px;
  11. line-height: 18px;
  12. font-weight: 400;
  13. color: $primary-text-color;
  14. text-rendering: optimizelegibility;
  15. font-feature-settings: "kern";
  16. text-size-adjust: none;
  17. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  18. -webkit-tap-highlight-color: transparent;
  19. &.system-font {
  20. // system-ui => standard property (Chrome/Android WebView 56+, Opera 43+, Safari 11+)
  21. // -apple-system => Safari <11 specific
  22. // BlinkMacSystemFont => Chrome <56 on macOS specific
  23. // Segoe UI => Windows 7/8/10
  24. // Oxygen => KDE
  25. // Ubuntu => Unity/Ubuntu
  26. // Cantarell => GNOME
  27. // Fira Sans => Firefox OS
  28. // Droid Sans => Older Androids (<4.0)
  29. // Helvetica Neue => Older macOS <10.11
  30. // $font-sans-serif => web-font (Roboto) fallback and newer Androids (>=4.0)
  31. font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", $font-sans-serif, sans-serif;
  32. }
  33. &.app-body {
  34. padding: 0;
  35. &.layout-single-column {
  36. height: auto;
  37. min-height: 100vh;
  38. overflow-y: scroll;
  39. }
  40. &.layout-multiple-columns {
  41. position: absolute;
  42. width: 100%;
  43. height: 100%;
  44. }
  45. &.with-modals--active {
  46. overflow-y: hidden;
  47. }
  48. }
  49. &.lighter {
  50. background: $ui-base-color;
  51. }
  52. &.with-modals {
  53. overflow-x: hidden;
  54. overflow-y: scroll;
  55. &--active {
  56. overflow-y: hidden;
  57. }
  58. }
  59. &.player {
  60. text-align: center;
  61. }
  62. &.embed {
  63. background: lighten($ui-base-color, 4%);
  64. margin: 0;
  65. padding-bottom: 0;
  66. .container {
  67. position: absolute;
  68. width: 100%;
  69. height: 100%;
  70. overflow: hidden;
  71. }
  72. }
  73. &.admin {
  74. background: darken($ui-base-color, 4%);
  75. padding: 0;
  76. }
  77. &.error {
  78. position: absolute;
  79. text-align: center;
  80. color: $darker-text-color;
  81. background: $ui-base-color;
  82. width: 100%;
  83. height: 100%;
  84. padding: 0;
  85. display: flex;
  86. justify-content: center;
  87. align-items: center;
  88. .dialog {
  89. vertical-align: middle;
  90. margin: 20px;
  91. &__illustration {
  92. img {
  93. display: block;
  94. max-width: 470px;
  95. width: 100%;
  96. height: auto;
  97. margin-top: -120px;
  98. }
  99. }
  100. h1 {
  101. font-size: 20px;
  102. line-height: 28px;
  103. font-weight: 400;
  104. }
  105. }
  106. }
  107. }
  108. button {
  109. font-family: inherit;
  110. cursor: pointer;
  111. &:focus {
  112. outline: none;
  113. }
  114. }
  115. .app-holder {
  116. &,
  117. & > div,
  118. & > noscript {
  119. display: flex;
  120. width: 100%;
  121. align-items: center;
  122. justify-content: center;
  123. outline: 0 !important;
  124. }
  125. & > noscript {
  126. height: 100vh;
  127. }
  128. }
  129. .layout-single-column .app-holder {
  130. &,
  131. & > div {
  132. min-height: 100vh;
  133. }
  134. }
  135. .layout-multiple-columns .app-holder {
  136. &,
  137. & > div {
  138. height: 100%;
  139. }
  140. }
  141. .error-boundary,
  142. .app-holder noscript {
  143. flex-direction: column;
  144. font-size: 16px;
  145. font-weight: 400;
  146. line-height: 1.7;
  147. color: lighten($error-red, 4%);
  148. text-align: center;
  149. & > div {
  150. max-width: 500px;
  151. }
  152. p {
  153. margin-bottom: .85em;
  154. &:last-child {
  155. margin-bottom: 0;
  156. }
  157. }
  158. a {
  159. color: $highlight-text-color;
  160. &:hover,
  161. &:focus,
  162. &:active {
  163. text-decoration: none;
  164. }
  165. }
  166. &__footer {
  167. color: $dark-text-color;
  168. font-size: 13px;
  169. a {
  170. color: $dark-text-color;
  171. }
  172. }
  173. button {
  174. display: inline;
  175. border: 0;
  176. background: transparent;
  177. color: $dark-text-color;
  178. font: inherit;
  179. padding: 0;
  180. margin: 0;
  181. line-height: inherit;
  182. cursor: pointer;
  183. outline: 0;
  184. transition: color 300ms linear;
  185. text-decoration: underline;
  186. &:hover,
  187. &:focus,
  188. &:active {
  189. text-decoration: none;
  190. }
  191. &.copied {
  192. color: $valid-value-color;
  193. transition: none;
  194. }
  195. }
  196. }
  197. .logo-resources {
  198. display: none;
  199. }
  200. // NoScript adds a __ns__pop2top class to the full ancestry of blocked elements,
  201. // to set the z-index to a high value, which messes with modals and dropdowns.
  202. // Blocked elements can in theory only be media and frames/embeds, so they
  203. // should only appear in statuses, under divs and articles.
  204. body,
  205. div,
  206. article {
  207. .__ns__pop2top {
  208. z-index: unset !important;
  209. }
  210. }