add fade-in animation
This commit is contained in:
parent
7e4a7ad38f
commit
91c9c21fdd
3 changed files with 29 additions and 19 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
@keyframes fade-in {
|
||||||
|
0% { opacity: 0; }
|
||||||
|
100% { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -27,9 +32,14 @@ body {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menu {
|
||||||
|
animation: fade-in ease-in-out .5s;
|
||||||
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
margin: 50px 0px;
|
margin: 50px 0px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
animation: fade-in ease-in-out .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file {
|
.file {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,11 @@
|
||||||
<div>
|
<div>
|
||||||
<span id="cloud-name">{{ cloud_name }}</span><span id="directory-name">{{ config["directory"] }}</span>
|
<span id="cloud-name">{{ cloud_name }}</span><span id="directory-name">{{ config["directory"] }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% block nav_content %}{% endblock %}
|
<div id="menu">
|
||||||
|
{% block menu %}{% endblock %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content" class="a-fade-in">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,19 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block nav_content %}
|
{% block menu %}
|
||||||
<div>
|
{% if config["upload"] %}
|
||||||
{% if config["upload"] %}
|
<form action="/{{ config["directory"] }}" enctype="multipart/form-data" method="post">
|
||||||
<form action="/{{ config["directory"] }}" enctype="multipart/form-data" method="post">
|
<label class="button upload">
|
||||||
<label class="button upload">
|
<input type="file" name="file" onchange="this.form.submit()">
|
||||||
<input type="file" name="file" onchange="this.form.submit()">
|
Upload
|
||||||
Upload
|
</label>
|
||||||
</label>
|
</form>
|
||||||
</form>
|
{% endif %}
|
||||||
{% endif %}
|
{% if config["hashed_password"] %}
|
||||||
{% if config["hashed_password"] %}
|
<form action="/{{ config["directory"] }}" method="post">
|
||||||
<form action="/{{ config["directory"] }}" method="post">
|
<input hidden type="text" name="logout">
|
||||||
<input hidden type="text" name="logout">
|
<input type="submit" class="button logout" value="Logout">
|
||||||
<input type="submit" class="button logout" value="Logout">
|
</form>
|
||||||
</form>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% for f in files %}
|
{% for f in files %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue