Skip to content

Commit 50576b1

Browse files
committed
chore(passport): remove message.css
1 parent f128696 commit 50576b1

17 files changed

Lines changed: 64 additions & 368 deletions

rootfs/api/static/css/message.css

Lines changed: 0 additions & 235 deletions
This file was deleted.
Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -102,23 +102,9 @@ form label {
102102
}
103103

104104

105-
form .input-icon.icon-username {
106-
background: url("../images/icon-username.png");
107-
background-repeat: repeat
108-
}
109-
110-
form .input-icon {
111-
position: absolute;
112-
bottom: 13px;
113-
margin-top: -9px;
114-
left: 12px;
115-
width: 18px;
116-
height: 18px;
117-
}
118-
119105
form input[type="text"], form input[type="email"], form input[type="password"], form input[type="number"] {
120106
height: 44px;
121-
padding-left: 50px;
107+
padding-left: 20px;
122108
}
123109

124110

@@ -130,23 +116,6 @@ input:-webkit-autofill {
130116
padding-right: 8px;
131117
}
132118

133-
form .input-icon.icon-password {
134-
background: url("../images/icon-password.png");
135-
background-repeat: repeat
136-
}
137-
138-
form .input-icon::after {
139-
content: '';
140-
position: absolute;
141-
right: -11px;
142-
top: -10px;
143-
bottom: -10px;
144-
width: 1px;
145-
opacity: .5;
146-
background-color: rgba(212,212,212,0);
147-
background-image: linear-gradient(to top,rgba(212,212,212,0) 0,#d4d4d4 30%,#d4d4d4 70%,rgba(212,212,212,0) 100%);
148-
}
149-
150119
.form-control {
151120
display: block;
152121
width: 100%;
@@ -268,4 +237,21 @@ form li {
268237

269238
.error {
270239
color: #c20707;
240+
}
241+
242+
.tc {
243+
text-align: center
244+
}
245+
246+
.gray-90 {
247+
color: rgba(89, 105, 129, .9)
248+
}
249+
250+
.inverted-wrapper {
251+
padding: 40px 40px 0px 40px;
252+
}
253+
254+
.white-link {
255+
margin-left: 25px;
256+
color: #fff
271257
}
-205 Bytes
Binary file not shown.
-287 Bytes
Binary file not shown.
-2.16 KB
Binary file not shown.
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
{% extends "oauth2_provider/base.html" %}
2-
31
{% load i18n %}
42
{% load static %}
5-
{% block content %}
3+
<link rel="stylesheet" href="{% static 'css/user.css' %}" type="text/css">
4+
<head>
5+
<meta charset="UTF-8">
6+
<title>Change Password</title>
7+
</head>
8+
<div class="page-wrap gradient-primary">
69
<div class="container">
710
<h1 class="logo"><a href="https://www.drycc.cc" title="Drycc">Drycc</a></h1>
811
<div class="panel">
9-
{% if not error %}
12+
{% if not error %}
1013
<h2 class="h3">{% trans "Authorize" %} {{ application.name }}?</h2>
14+
{{ updated }}
1115
<form id="authorizationForm" method="post">
1216
{% csrf_token %}
13-
1417
{% for field in form %}
1518
{% if field.is_hidden %}
1619
{{ field }}
@@ -21,10 +24,11 @@ <h2 class="h3">{% trans "Authorize" %} {{ application.name }}?</h2>
2124
<br>
2225
<input type="submit" class="btn btn-primary btn-lg btn-block" name="allow" value="{% trans 'Authorize' %}"/>
2326
</form>
24-
{% else %}
25-
<h2>Error: {{ error.error }}</h2>
26-
<p>{{ error.description }}</p>
27-
{% endif %}
28-
</div>
27+
{% else %}
28+
<h2 class="h3">{{ error.error }}</h2>
29+
<p class="tc gray-90 inverted-wrapper">{{ error.description }}</p>
30+
<div class="inverted-wrapper"></div>
31+
{% endif %}
32+
</div>
2933
</div>
30-
{% endblock %}
34+
</div>

rootfs/api/templates/oauth2_provider/base.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)