Style again the login page to fit pleroma more
[akkoma] / lib / pleroma / web / templates / layout / app.html.eex
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8" />
5 <meta name="viewport" content="width=device-width,initial-scale=1,minimal-ui" />
6 <title>
7 <%= Application.get_env(:pleroma, :instance)[:name] %>
8 </title>
9 <style>
10 body {
11 background-color: #121a24;
12 font-family: sans-serif;
13 color: #b9b9ba;
14 text-align: center;
15 }
16
17 .container {
18 max-width: 420px;
19 padding: 20px;
20 background-color: #182230;
21 border-radius: 4px;
22 margin: auto;
23 margin-top: 10vh;
24 box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.5);
25 }
26
27 h1 {
28 margin: 0;
29 font-size: 24px;
30 }
31
32 h2 {
33 color: #b9b9ba;
34 font-weight: normal;
35 font-size: 18px;
36 margin-bottom: 20px;
37 }
38
39 form {
40 width: 100%;
41 }
42
43 .input {
44 text-align: left;
45 color: #89898a;
46 display: flex;
47 flex-direction: column;
48 }
49
50 input {
51 box-sizing: content-box;
52 padding: 10px;
53 margin-top: 5px;
54 margin-bottom: 10px;
55 background-color: #121a24;
56 color: #b9b9ba;
57 border: 0;
58 transition-property: border-bottom;
59 transition-duration: 0.35s;
60 border-bottom: 2px solid #2a384a;
61 font-size: 14px;
62 }
63
64 .scopes-input {
65 display: flex;
66 margin-top: 1em;
67 text-align: left;
68 color: #89898a;
69 }
70
71 .scopes-input label:first-child {
72 flex-basis: 40%;
73 }
74
75 .scopes {
76 display: flex;
77 flex-wrap: wrap;
78 text-align: left;
79 color: #b9b9ba;
80 }
81
82 .scope {
83 flex-basis: 100%;
84 display: flex;
85 height: 2em;
86 align-items: center;
87 }
88
89 [type="checkbox"] + label {
90 margin: 0.5em;
91 }
92
93 [type="checkbox"] {
94 display: none;
95 }
96
97 [type="checkbox"] + label:before {
98 display: inline-block;
99 color: white;
100 background-color: #121a24;
101 border: 4px solid #121a24;
102 box-sizing: border-box;
103 width: 1.2em;
104 height: 1.2em;
105 margin-right: 1.0em;
106 content: "";
107 transition-property: background-color;
108 transition-duration: 0.35s;
109 color: #121a24;
110 margin-bottom: -0.2em;
111 border-radius: 2px;
112 }
113
114 [type="checkbox"]:checked + label:before {
115 background-color: #d8a070;
116 }
117
118 input:focus {
119 border-bottom: 2px solid #d8a070;
120 }
121
122 button {
123 box-sizing: border-box;
124 width: 100%;
125 background-color: #1c2a3a;
126 color: #b9b9ba;
127 border-radius: 4px;
128 border: none;
129 padding: 10px;
130 margin-top: 30px;
131 text-transform: uppercase;
132 font-size: 16px;
133 box-shadow: 0px 0px 2px 0px black,
134 0px 1px 0px 0px rgba(255, 255, 255, 0.2) inset,
135 0px -1px 0px 0px rgba(0, 0, 0, 0.2) inset;
136 }
137
138 button:hover {
139 cursor: pointer;
140 box-shadow: 0px 0px 0px 1px #d8a070,
141 0px 1px 0px 0px rgba(255, 255, 255, 0.2) inset,
142 0px -1px 0px 0px rgba(0, 0, 0, 0.2) inset;
143 }
144
145 .alert-danger {
146 box-sizing: border-box;
147 width: 100%;
148 background-color: #931014;
149 border-radius: 4px;
150 border: none;
151 padding: 10px;
152 margin-top: 20px;
153 font-weight: 500;
154 font-size: 16px;
155 }
156
157 .alert-info {
158 box-sizing: border-box;
159 width: 100%;
160 border-radius: 4px;
161 border: 1px solid #7d796a;
162 padding: 10px;
163 margin-top: 20px;
164 font-weight: 500;
165 font-size: 16px;
166 }
167
168 @media all and (max-width: 440px) {
169 .container {
170 margin-top: 0
171 }
172
173 .scopes-input {
174 flex-direction: column;
175 }
176
177 .scope {
178 flex-basis: 50%;
179 }
180 }
181 </style>
182 </head>
183 <body>
184 <div class="container">
185 <h1><%= Application.get_env(:pleroma, :instance)[:name] %></h1>
186 <%= render @view_module, @view_template, assigns %>
187 </div>
188 </body>
189 </html>