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.

272 lines
4.8 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. padding: 0;
  61. margin: 0;
  62. position: absolute;
  63. width: 100%;
  64. height: 100%;
  65. overflow: hidden;
  66. & > div {
  67. height: 100%;
  68. }
  69. .video-player video {
  70. width: 100%;
  71. height: 100%;
  72. max-height: 100vh;
  73. }
  74. .media-gallery {
  75. margin-top: 0;
  76. height: 100% !important;
  77. border-radius: 0;
  78. }
  79. .media-gallery__item {
  80. border-radius: 0;
  81. }
  82. }
  83. &.embed {
  84. background: lighten($ui-base-color, 4%);
  85. margin: 0;
  86. padding-bottom: 0;
  87. .container {
  88. position: absolute;
  89. width: 100%;
  90. height: 100%;
  91. overflow: hidden;
  92. }
  93. }
  94. &.admin {
  95. background: darken($ui-base-color, 4%);
  96. padding: 0;
  97. }
  98. &.error {
  99. position: absolute;
  100. text-align: center;
  101. color: $darker-text-color;
  102. background: $ui-base-color;
  103. width: 100%;
  104. height: 100%;
  105. padding: 0;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. .dialog {
  110. vertical-align: middle;
  111. margin: 20px;
  112. &__illustration {
  113. img {
  114. display: block;
  115. max-width: 470px;
  116. width: 100%;
  117. height: auto;
  118. margin-top: -120px;
  119. }
  120. }
  121. h1 {
  122. font-size: 20px;
  123. line-height: 28px;
  124. font-weight: 400;
  125. }
  126. }
  127. }
  128. }
  129. button {
  130. font-family: inherit;
  131. cursor: pointer;
  132. &:focus {
  133. outline: none;
  134. }
  135. }
  136. .app-holder {
  137. &,
  138. & > div,
  139. & > noscript {
  140. display: flex;
  141. width: 100%;
  142. align-items: center;
  143. justify-content: center;
  144. outline: 0 !important;
  145. }
  146. & > noscript {
  147. height: 100vh;
  148. }
  149. }
  150. .layout-single-column .app-holder {
  151. &,
  152. & > div {
  153. min-height: 100vh;
  154. }
  155. }
  156. .layout-multiple-columns .app-holder {
  157. &,
  158. & > div {
  159. height: 100%;
  160. }
  161. }
  162. .error-boundary,
  163. .app-holder noscript {
  164. flex-direction: column;
  165. font-size: 16px;
  166. font-weight: 400;
  167. line-height: 1.7;
  168. color: lighten($error-red, 4%);
  169. text-align: center;
  170. & > div {
  171. max-width: 500px;
  172. }
  173. p {
  174. margin-bottom: .85em;
  175. &:last-child {
  176. margin-bottom: 0;
  177. }
  178. }
  179. a {
  180. color: $highlight-text-color;
  181. &:hover,
  182. &:focus,
  183. &:active {
  184. text-decoration: none;
  185. }
  186. }
  187. &__footer {
  188. color: $dark-text-color;
  189. font-size: 13px;
  190. a {
  191. color: $dark-text-color;
  192. }
  193. }
  194. button {
  195. display: inline;
  196. border: 0;
  197. background: transparent;
  198. color: $dark-text-color;
  199. font: inherit;
  200. padding: 0;
  201. margin: 0;
  202. line-height: inherit;
  203. cursor: pointer;
  204. outline: 0;
  205. transition: color 300ms linear;
  206. text-decoration: underline;
  207. &:hover,
  208. &:focus,
  209. &:active {
  210. text-decoration: none;
  211. }
  212. &.copied {
  213. color: $valid-value-color;
  214. transition: none;
  215. }
  216. }
  217. }
  218. .logo-resources {
  219. display: none;
  220. }
  221. // NoScript adds a __ns__pop2top class to the full ancestry of blocked elements,
  222. // to set the z-index to a high value, which messes with modals and dropdowns.
  223. // Blocked elements can in theory only be media and frames/embeds, so they
  224. // should only appear in statuses, under divs and articles.
  225. body,
  226. div,
  227. article {
  228. .__ns__pop2top {
  229. z-index: unset !important;
  230. }
  231. }