Skip to content

Commit 4566cbc

Browse files
committed
Cleaned up some styles and markup
1 parent 8d26668 commit 4566cbc

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed

app/static/styles/flask-auth.css

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,12 @@ header {
1616
text-align: center;
1717
}
1818

19-
h1, h2, h3, p, label {
19+
h1, h2, h3, p, label, li {
2020
color: whitesmoke;
2121
}
2222

23-
form {
24-
width: 100%;
25-
height: auto;
26-
padding: 1%;
27-
margin: 0%;
28-
display: flex;
29-
flex-direction: column;
30-
align-items: center;
23+
ol {
24+
list-style-type: none;
3125
}
3226

3327
a {
@@ -53,28 +47,26 @@ input {
5347
font-size: 1rem;
5448
}
5549

56-
a:hover {
50+
a:hover, input:hover {
5751
color: dodgerblue;
5852
}
5953

60-
input:hover {
61-
color: dodgerblue;
54+
form {
55+
display: flex;
56+
flex-direction: column;
57+
flex-wrap: wrap;
58+
align-items: center;
6259
}
6360

6461
.box {
6562
opacity: 70%;
6663
padding: 1%;
6764
height: auto;
68-
margin: 0%;
69-
display: inline-block;
70-
text-align: center;
71-
border-top: transparent;
72-
border-left: transparent;
73-
border-right: transparent;
74-
border-bottom: transparent;
75-
border-radius: 15px;
76-
border-width: thin;
65+
margin: auto;
66+
display: block;
7767
width: 100%;
68+
border: transparent;
69+
text-align: center;
7870
}
7971

8072
.title {

app/templates/account.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@
33
{% block content %}
44
<div class="box">
55
<h1>Account Info</h1>
6-
<p>Username: {{ username }}</p>
7-
<p>Email: {{ email }}</p>
8-
<p>Type: {{ type }}</p>
6+
<ol>
7+
<li><strong>Username: </strong>{{ username }}</li>
8+
<li><strong>Email: </strong>{{ email }}</li>
9+
<li><strong>Type: </strong>{{ type }}</li>
10+
</ol>
911
<form action="{{ url_for('del_user') }}" method="POST">
1012
<input type="hidden" id="username" name="username" value="{{ username }}">
1113
<input type="submit" value="Delete Account">
1214
</form>
13-
14-
<h2>Change Username</h2>
15+
1516
<form action="{{ url_for('change_username') }}" method="POST" accept-charset="UTF-8" autocomplete="off" autofocus="off" enctype="multipart/form-data">
17+
<h2>Change Username</h2><br/>
1618
<input type="hidden" id="username" name="username" value="{{ username }}" required/></br>
1719
<label for="new_username">New Username</label>
1820
<input type="text" id="new_username" name="new_username" size="32" minlength="8" maxlength="32" required/></br>
1921
<input type="submit" value="Submit"/>
2022
</form>
21-
22-
<h2>Change Password</h2>
2323
<form action="{{ url_for('change_password') }}" method="POST" accept-charset="UTF-8" autocomplete="off" autofocus="off" enctype="multipart/form-data">
24+
<h2>Change Password</h2><br/>
2425
<input type="hidden" id="username" name="username" value="{{ username }}" required/></br>
2526
<label for="password">Password</label>
2627
<input type="password" id="password" name="password" size="32" minlength="8" maxlength="32" required/></br>

0 commit comments

Comments
 (0)