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.

141 lines
2.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, 8%);
  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. position: absolute;
  35. width: 100%;
  36. height: 100%;
  37. padding: 0;
  38. background: $ui-base-color;
  39. &.with-modals--active {
  40. overflow-y: hidden;
  41. }
  42. }
  43. &.lighter {
  44. background: $ui-base-color;
  45. }
  46. &.with-modals {
  47. overflow-x: hidden;
  48. overflow-y: scroll;
  49. &--active {
  50. overflow-y: hidden;
  51. margin-right: 13px;
  52. }
  53. }
  54. &.player {
  55. text-align: center;
  56. }
  57. &.embed {
  58. background: lighten($ui-base-color, 4%);
  59. margin: 0;
  60. padding-bottom: 0;
  61. .container {
  62. position: absolute;
  63. width: 100%;
  64. height: 100%;
  65. overflow: hidden;
  66. }
  67. }
  68. &.admin {
  69. background: darken($ui-base-color, 4%);
  70. position: fixed;
  71. width: 100%;
  72. height: 100%;
  73. padding: 0;
  74. }
  75. &.error {
  76. position: absolute;
  77. text-align: center;
  78. color: $darker-text-color;
  79. background: $ui-base-color;
  80. width: 100%;
  81. height: 100%;
  82. padding: 0;
  83. display: flex;
  84. justify-content: center;
  85. align-items: center;
  86. .dialog {
  87. vertical-align: middle;
  88. margin: 20px;
  89. &__illustration {
  90. img {
  91. display: block;
  92. max-width: 470px;
  93. width: 100%;
  94. height: auto;
  95. margin-top: -120px;
  96. }
  97. }
  98. h1 {
  99. font-size: 20px;
  100. line-height: 28px;
  101. font-weight: 400;
  102. }
  103. }
  104. }
  105. }
  106. button {
  107. font-family: inherit;
  108. cursor: pointer;
  109. &:focus {
  110. outline: none;
  111. }
  112. }
  113. .app-holder {
  114. &,
  115. & > div {
  116. display: flex;
  117. width: 100%;
  118. height: 100%;
  119. align-items: center;
  120. justify-content: center;
  121. outline: 0 !important;
  122. }
  123. }