basics.scss 2.59 KB
Newer Older
1
body {
2
  font-family: 'mastodon-font-sans-serif', sans-serif;
3
  background: $ui-base-color;
4
5
6
7
8
  background-size: cover;
  background-attachment: fixed;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
9
  color: $primary-text-color;
10
  padding-bottom: 20px;
11
12
13
  text-rendering: optimizelegibility;
  font-feature-settings: "kern";
  text-size-adjust: none;
14
15
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
16

17
18
19
20
21
22
23
24
25
26
27
28
29
  &.system-font {
    // system-ui => standard property (Chrome/Android WebView 56+, Opera 43+, Safari 11+)
    // -apple-system => Safari <11 specific
    // BlinkMacSystemFont => Chrome <56 on macOS specific
    // Segoe UI => Windows 7/8/10
    // Oxygen => KDE
    // Ubuntu => Unity/Ubuntu
    // Cantarell => GNOME
    // Fira Sans => Firefox OS
    // Droid Sans => Older Androids (<4.0)
    // Helvetica Neue => Older macOS <10.11
    // mastodon-font-sans-serif => web-font (Roboto) fallback and newer Androids (>=4.0)
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", mastodon-font-sans-serif, sans-serif;
30
31
  }

32
  &.app-body {
33
    position: absolute;
34
35
36
    width: 100%;
    height: 100%;
    padding: 0;
37
    background: $ui-base-color;
38
39
  }

40
41
42
43
44
  &.about-body {
    background: darken($ui-base-color, 8%);
    padding-bottom: 0;
  }

45
46
47
48
49
  &.tag-body {
    background: darken($ui-base-color, 8%);
    padding-bottom: 0;
  }

50
51
52
53
  &.player {
    text-align: center;
  }

54
55
56
  &.embed {
    background: transparent;
    margin: 0;
57
    padding-bottom: 0;
58
59
60
61
62
63
64
65
66
67

    .container {
      position: absolute;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
  }

  &.admin {
68
    background: darken($ui-base-color, 4%);
69
70
71
72
73
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 0;
  }
74
75

  &.error {
76
    position: absolute;
77
78
    text-align: center;
    color: $ui-primary-color;
79
80
81
82
    background: $ui-base-color;
    width: 100%;
    height: 100%;
    padding: 0;
Eugen Rochko's avatar
Eugen Rochko committed
83
84
85
    display: flex;
    justify-content: center;
    align-items: center;
86

87
88
89
90
91
92
93
94
95
96
97
    .dialog {
      vertical-align: middle;
      margin: 20px;

      img {
        display: block;
        max-width: 470px;
        width: 100%;
        height: auto;
        margin-top: -120px;
      }
98

99
100
101
102
103
      h1 {
        font-size: 20px;
        line-height: 28px;
        font-weight: 400;
      }
104
105
    }
  }
106
107
}

108
109
button {
  font-family: inherit;
110
  cursor: pointer;
111

112
113
114
  &:focus {
    outline: none;
  }
115
116
117
}

.app-holder {
118
119
120
121
122
123
124
125
  &,
  & > div {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }
126
}