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.

127 lines
2.6 KiB

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