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.

162 lines
3.0 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: 100%;
  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. position: fixed;
  76. width: 100%;
  77. height: 100%;
  78. padding: 0;
  79. }
  80. &.error {
  81. position: absolute;
  82. text-align: center;
  83. color: $darker-text-color;
  84. background: $ui-base-color;
  85. width: 100%;
  86. height: 100%;
  87. padding: 0;
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. .dialog {
  92. vertical-align: middle;
  93. margin: 20px;
  94. &__illustration {
  95. img {
  96. display: block;
  97. max-width: 470px;
  98. width: 100%;
  99. height: auto;
  100. margin-top: -120px;
  101. }
  102. }
  103. h1 {
  104. font-size: 20px;
  105. line-height: 28px;
  106. font-weight: 400;
  107. }
  108. }
  109. }
  110. }
  111. button {
  112. font-family: inherit;
  113. cursor: pointer;
  114. &:focus {
  115. outline: none;
  116. }
  117. }
  118. .app-holder {
  119. &,
  120. & > div {
  121. display: flex;
  122. width: 100%;
  123. align-items: center;
  124. justify-content: center;
  125. outline: 0 !important;
  126. }
  127. }
  128. .layout-single-column .app-holder {
  129. &,
  130. & > div {
  131. min-height: 100%;
  132. }
  133. }
  134. .layout-multiple-columns .app-holder {
  135. &,
  136. & > div {
  137. height: 100%;
  138. }
  139. }