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.

135 lines
2.7 KiB

6 years ago
  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. &.embed {
  55. background: lighten($ui-base-color, 4%);
  56. margin: 0;
  57. padding-bottom: 0;
  58. .container {
  59. position: absolute;
  60. width: 100%;
  61. height: 100%;
  62. overflow: hidden;
  63. }
  64. }
  65. &.admin {
  66. background: darken($ui-base-color, 4%);
  67. position: fixed;
  68. width: 100%;
  69. height: 100%;
  70. padding: 0;
  71. }
  72. &.error {
  73. position: absolute;
  74. text-align: center;
  75. color: $darker-text-color;
  76. background: $ui-base-color;
  77. width: 100%;
  78. height: 100%;
  79. padding: 0;
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. .dialog {
  84. vertical-align: middle;
  85. margin: 20px;
  86. img {
  87. display: block;
  88. max-width: 470px;
  89. width: 100%;
  90. height: auto;
  91. margin-top: -120px;
  92. }
  93. h1 {
  94. font-size: 20px;
  95. line-height: 28px;
  96. font-weight: 400;
  97. }
  98. }
  99. }
  100. }
  101. button {
  102. font-family: inherit;
  103. cursor: pointer;
  104. &:focus {
  105. outline: none;
  106. }
  107. }
  108. .app-holder {
  109. &,
  110. & > div {
  111. display: flex;
  112. width: 100%;
  113. height: 100%;
  114. align-items: center;
  115. justify-content: center;
  116. outline: 0 !important;
  117. }
  118. }