~cytrogen/masto-fe

ref: bc69d48652e431b06a1fff2c3fd0a67b54d23f81 masto-fe/app/javascript/flavours/glitch/styles/login.scss -rw-r--r-- 2.1 KiB
bc69d486 — Cytrogen Cherry-pick PR #104: Reduced motion accessibility 14 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@import 'styles/fonts/roboto';
@import 'reset';

:root {
    --color-bg: #191b22;
    --color-fg: #fff;
}

body {
    color: var(--color-fg);
    font-family: ui-rounded, mastodon-font-sans-serif, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: var(--color-bg);
}

.login-container {
    --login-row-gap: 10px;

    display: grid;
    row-gap: var(--login-row-gap);
    margin: 50px auto;
    padding: 1rem;
    max-width: 30rem;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: center;

    img {
        height: 150px;
    }
}

main {
    display: flex;
    flex-direction: column;
    row-gap: var(--login-row-gap);
}

h1 {
    font-size: 28px;
    line-height: 33px;
    font-weight: 700;
    margin-bottom: 15px;
}

label {
    font-family: inherit;
    color: var(--color-fg);
    display: block;
    word-wrap: break-word;
    font-weight: 500;
    grid-column: 1 / -1;
}

form {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr min-content;
}

:focus-visible,
button:focus-visible {
    outline: 2px solid #66befe;
    outline-offset: 3px;
}

button {
    padding: 7px 10px;
    border: 1px solid lighten(#66befe, 7%);
    border-radius: 4px;
    box-sizing: border-box;
    color: #2a2b2f;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    background-color: #66befe;

    &:hover {
        background-color: #89caff;
    }

    &:disabled {
        background-color: #9baec8;
        cursor: default;
    }
}

input[type='text'] {
    display: block;
    margin: 0;
    padding: 15px;
    border: 1px solid lighten(#282c37, 7%);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: none;
    color: #9baec8;
    font-family: inherit;
    font-size: inherit;
    line-height: 18px;
    background: #282c37;
}

.content {
    padding: 15px;
    border-radius: 4px;
    border: 1px solid lighten(#39404f, 7%);
    color: #fff;
    background-color: #39404f;
}

.link-footer {
    padding-inline: 10px;
    color: #97a8b4;
    font-size: 0.875rem;

    a {
        color: inherit;
    }
}