forked from server/reporter
Implement new style
This commit is contained in:
parent
7d7fd6b355
commit
3acdd2d70f
@ -1,3 +1,74 @@
|
||||
body {
|
||||
background-color: aqua;
|
||||
background-color: white;
|
||||
margin: 0;
|
||||
font-family: Arial;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#content {
|
||||
border: 1px solid #80808033;
|
||||
border-radius: 3px;
|
||||
padding: 10px;
|
||||
background: aliceblue;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
#content {
|
||||
margin: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 481px) {
|
||||
#content {
|
||||
margin: auto;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#content select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#content .textarea {
|
||||
padding-right: 5px;
|
||||
}
|
||||
#content textarea {
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
input[type=text]:focus {
|
||||
border: 3px solid #555;
|
||||
}
|
||||
|
||||
#content label {
|
||||
display: inline-block;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#content input {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
#content input[hidden=true]{
|
||||
display: none
|
||||
}
|
||||
|
||||
#content input[type=submit]{
|
||||
width: 100%;
|
||||
position: relative;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
p label {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
@ -1,24 +1,28 @@
|
||||
{% extends "base.html" %}
|
||||
{% block body %}
|
||||
<h1>Welcome</h1>
|
||||
<div id="content">
|
||||
<p>choose an issue, fill the placeholders, enter your uni-mail, then hit send</p>
|
||||
|
||||
<form action="send" method="post">
|
||||
<p>
|
||||
<select name="issue" required onchange="selection()" id="issue">
|
||||
<option selected disabled="true">---</option>
|
||||
<p>
|
||||
<select name="issue" required onchange="selection()" id="issue">
|
||||
<option selected disabled="true">---</option>
|
||||
|
||||
{% for issue in issues %}
|
||||
<option value='{{issue.value|tojson}}'>{{ issue.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</p>
|
||||
<p><textarea id="text" readonly required name="text"></textarea></p>
|
||||
<p>
|
||||
<label for="sender">absender:</label>
|
||||
<input type="email" required="true" name="sender" id="sender" placeholder="sender email" readonly>
|
||||
</p>
|
||||
<div id="placeholders" ></div>
|
||||
<input type="submit">
|
||||
{% for issue in issues %}
|
||||
<option value='{{issue.value|tojson}}'>{{ issue.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</p>
|
||||
<p class="textarea">
|
||||
<textarea id="text" readonly required name="text"></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<label for="sender">absender:</label>
|
||||
<input type="email" required="true" name="sender" id="sender" placeholder="sender email" readonly>
|
||||
</p>
|
||||
<div id="placeholders"></div>
|
||||
<p><input type="submit"></p>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user