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.

132 lines
2.6 KiB

  1. body {
  2. font-family: 'mastodon-font-sans-serif', sans-serif;
  3. background: darken($ui-base-color, 8%);
  4. font-size: 13px;
  5. line-height: 18px;
  6. font-weight: 400;
  7. color: $primary-text-color;
  8. text-rendering: optimizelegibility;
  9. font-feature-settings: "kern";
  10. text-size-adjust: none;
  11. -webkit-tap-highlight-color: rgba(0,0,0,0);
  12. -webkit-tap-highlight-color: transparent;
  13. &.system-font {
  14. // system-ui => standard property (Chrome/Android WebView 56+, Opera 43+, Safari 11+)
  15. // -apple-system => Safari <11 specific
  16. // BlinkMacSystemFont => Chrome <56 on macOS specific
  17. // Segoe UI => Windows 7/8/10
  18. // Oxygen => KDE
  19. // Ubuntu => Unity/Ubuntu
  20. // Cantarell => GNOME
  21. // Fira Sans => Firefox OS
  22. // Droid Sans => Older Androids (<4.0)
  23. // Helvetica Neue => Older macOS <10.11
  24. // mastodon-font-sans-serif => web-font (Roboto) fallback and newer Androids (>=4.0)
  25. font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", mastodon-font-sans-serif, sans-serif;
  26. }
  27. &.app-body {
  28. position: absolute;
  29. width: 100%;
  30. height: 100%;
  31. padding: 0;
  32. background: $ui-base-color;
  33. &.with-modals--active {
  34. overflow-y: hidden;
  35. }
  36. }
  37. &.lighter {
  38. background: $ui-base-color;
  39. }
  40. &.with-modals {
  41. overflow-x: hidden;
  42. overflow-y: scroll;
  43. &--active {
  44. overflow-y: hidden;
  45. margin-right: 13px;
  46. }
  47. }
  48. &.player {
  49. text-align: center;
  50. }
  51. &.embed {
  52. background: lighten($ui-base-color, 4%);
  53. margin: 0;
  54. padding-bottom: 0;
  55. .container {
  56. position: absolute;
  57. width: 100%;
  58. height: 100%;
  59. overflow: hidden;
  60. }
  61. }
  62. &.admin {
  63. background: darken($ui-base-color, 4%);
  64. position: fixed;
  65. width: 100%;
  66. height: 100%;
  67. padding: 0;
  68. }
  69. &.error {
  70. position: absolute;
  71. text-align: center;
  72. color: $darker-text-color;
  73. background: $ui-base-color;
  74. width: 100%;
  75. height: 100%;
  76. padding: 0;
  77. display: flex;
  78. justify-content: center;
  79. align-items: center;
  80. .dialog {
  81. vertical-align: middle;
  82. margin: 20px;
  83. img {
  84. display: block;
  85. max-width: 470px;
  86. width: 100%;
  87. height: auto;
  88. margin-top: -120px;
  89. }
  90. h1 {
  91. font-size: 20px;
  92. line-height: 28px;
  93. font-weight: 400;
  94. }
  95. }
  96. }
  97. }
  98. button {
  99. font-family: inherit;
  100. cursor: pointer;
  101. &:focus {
  102. outline: none;
  103. }
  104. }
  105. .app-holder {
  106. &,
  107. & > div {
  108. display: flex;
  109. width: 100%;
  110. height: 100%;
  111. align-items: center;
  112. justify-content: center;
  113. outline: 0 !important;
  114. }
  115. }