Skip to content

Commit f3d0c6d

Browse files
committed
fix dead file and remove name field
1 parent 3a8dbcb commit f3d0c6d

3 files changed

Lines changed: 63 additions & 74 deletions

File tree

server/pokepoll/static/pokepoll/styles/submit-style.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,66 @@ textarea.showdown-input {
44
width: 90%;
55
height: auto;
66
}
7+
8+
* {
9+
box-sizing: border-box;
10+
}
11+
12+
/*the container must be positioned relative:*/
13+
.autocomplete {
14+
position: relative;
15+
display: inline-block;
16+
}
17+
18+
input {
19+
border: 1px solid transparent;
20+
background-color: #f1f1f1;
21+
padding: 10px;
22+
font-size: 16px;
23+
}
24+
25+
input[type=text] {
26+
background-color: #f1f1f1;
27+
width: 100%;
28+
}
29+
30+
input[type=submit] {
31+
background-color: DodgerBlue;
32+
color: #fff;
33+
cursor: pointer;
34+
}
35+
36+
.autocomplete-items {
37+
position: absolute;
38+
border: 1px solid #d4d4d4;
39+
border-bottom: none;
40+
border-top: none;
41+
z-index: 99;
42+
/*position the autocomplete items to be the same width as the container:*/
43+
top: 100%;
44+
left: 0;
45+
right: 0;
46+
}
47+
48+
.autocomplete-items div {
49+
padding: 10px;
50+
cursor: pointer;
51+
background-color: #333;
52+
border-bottom: 1px solid #d4d4d4;
53+
color: gray;
54+
}
55+
56+
/*when hovering an item:*/
57+
.autocomplete-items div:hover {
58+
background-color: #e9e9e9;
59+
}
60+
61+
/*when navigating through the items using the arrow keys:*/
62+
.autocomplete-active {
63+
background-color: DodgerBlue !important;
64+
color: #ffffff;
65+
}
66+
67+
#pokemon_preview {
68+
width: 30%;
69+
}

server/pokepoll/static/pokepoll/styles/submit_style.css

Whitespace-only changes.

server/pokepoll/templates/pokepoll/master_submit.html

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -15,72 +15,6 @@
1515
<link rel="stylesheet" href="{% static 'pokepoll/styles/submit-style.css' %}">
1616
</head>
1717

18-
<style>
19-
* {
20-
box-sizing: border-box;
21-
}
22-
23-
/*the container must be positioned relative:*/
24-
.autocomplete {
25-
position: relative;
26-
display: inline-block;
27-
}
28-
29-
input {
30-
border: 1px solid transparent;
31-
background-color: #f1f1f1;
32-
padding: 10px;
33-
font-size: 16px;
34-
}
35-
36-
input[type=text] {
37-
background-color: #f1f1f1;
38-
width: 100%;
39-
}
40-
41-
input[type=submit] {
42-
background-color: DodgerBlue;
43-
color: #fff;
44-
cursor: pointer;
45-
}
46-
47-
.autocomplete-items {
48-
position: absolute;
49-
border: 1px solid #d4d4d4;
50-
border-bottom: none;
51-
border-top: none;
52-
z-index: 99;
53-
/*position the autocomplete items to be the same width as the container:*/
54-
top: 100%;
55-
left: 0;
56-
right: 0;
57-
}
58-
59-
.autocomplete-items div {
60-
padding: 10px;
61-
cursor: pointer;
62-
background-color: #fff;
63-
border-bottom: 1px solid #d4d4d4;
64-
}
65-
66-
/*when hovering an item:*/
67-
.autocomplete-items div:hover {
68-
background-color: #e9e9e9;
69-
}
70-
71-
/*when navigating through the items using the arrow keys:*/
72-
.autocomplete-active {
73-
background-color: DodgerBlue !important;
74-
color: #ffffff;
75-
}
76-
77-
#pokemon_preview {
78-
width: 30%;
79-
}
80-
81-
</style>
82-
83-
8418
<nav class="navbar navbar-expand-lg navbar-dark">
8519
<div class="container-fluid">
8620
<a class="navbar-brand" href="{% url 'pokepoll:home' %}">Evii's Egglocke Maker :3</a>
@@ -294,14 +228,6 @@ <h3>Nature:</h3>
294228
</div>
295229
<br>
296230
<br>
297-
298-
<input type="text"
299-
name="{{ submitter_form.name.name }}"
300-
id="{{ submitter_form.name.id_for_label }}"
301-
class="{{ submitter_form.name.field.widget.attrs.class }}"
302-
style="{{ submitter_form.name.field.widget.attrs.style }}"
303-
placeholder="{{ submitter_form.name.field.widget.attrs.placeholder }}"
304-
value="{{ submitter_form.name.value|default_if_none:'' }}">
305231
</div>
306232

307233
</div>

0 commit comments

Comments
 (0)