Загатока стрелочки перемотки вверх для главной страницы

This commit is contained in:
Андрей Дувакин 2022-12-17 10:55:31 +05:00
parent 89bb80c73c
commit 024271b94a
6 changed files with 45 additions and 4 deletions

View File

@ -88,4 +88,12 @@ body {
} }
.nav_user_name_div { .nav_user_name_div {
height: 100%; height: 100%;
}
body::-webkit-scrollbar {
width: 12px; /* ширина scrollbar */
}
body::-webkit-scrollbar-thumb {
background-color: #d49d51; /* цвет плашки */
border-radius: 20px; /* закругления плашки */
border: 3px solid #ffffff;
} }

View File

@ -266,6 +266,13 @@ main, html {
margin-top: 45%; margin-top: 45%;
transition: background-color 0.5s ease-in; transition: background-color 0.5s ease-in;
} }
.scroll_image {
margin-top: 5px;
margin-left: 5px;
width: 40px;
height: 40px;
border-radius: 2vw;
}
.scroll_button:hover { .scroll_button:hover {
background-color: #1c59fe; background-color: #1c59fe;
} }

View File

@ -6,13 +6,14 @@
background: linear-gradient( rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8) ), url(../images/back_profile_one.jpg);background-repeat: repeat; background-position: center; background: linear-gradient( rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8) ), url(../images/back_profile_one.jpg);background-repeat: repeat; background-position: center;
} }
.profile_block { .profile_block {
height: 80%; height: 83%;
width: 85%; width: 85%;
margin-left: 7.5%; margin-left: 7.5%;
margin-top: 10%; margin-top: 10%;
background: linear-gradient( rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) ), url(../images/back_profile_two.jpg);background-repeat: repeat; background-position: center; background: linear-gradient( rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) ), url(../images/back_profile_two.jpg);background-repeat: repeat; background-position: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y: auto;
} }
.header_profile { .header_profile {
display: inline; display: inline;
@ -62,6 +63,7 @@ form {
color: #000000; color: #000000;
border: 0.1vw solid #595008; border: 0.1vw solid #595008;
height: 4.5vw; height: 4.5vw;
min-height: 4.5vw;
width: 20vw; width: 20vw;
background-color: #dbc3af; background-color: #dbc3af;
border-radius: 5vw; border-radius: 5vw;
@ -92,4 +94,23 @@ form {
} }
#delete_button { #delete_button {
margin-top: 45px; margin-top: 45px;
}
.dop_data {
padding-top:15px;
padding-left: 15px;
}
#logout_button {
color: #000000;
background-color:#f5d3b8;
}
#logout_button:hover {
text-decoration: none;
color: #000000;
}
.profile_button_text {
width: 100%;
height: 100%;
text-align: center;
font-size: 1.5vw;
margin-top: 6%;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -3,7 +3,7 @@
{% block content %} {% block content %}
<rect class="scroll_button"> <rect class="scroll_button">
<img class="scroll_image" src=""> <img class="scroll_image" src="../static/images/black_arrow.png">
</rect> </rect>
<div class="header_block"> <div class="header_block">
<div id="header_block"></div> <div id="header_block"></div>

View File

@ -44,7 +44,7 @@
</div> </div>
<div class="form_data"> <div class="form_data">
<label class="form-label">{{ form.about.label }}</label> <label class="form-label">{{ form.about.label }}</label>
{{ form.about(class="input_data", type="name", placeholder='about') }} {% {{ form.about(class="input_data dop_data", type="name", placeholder='about') }} {%
for error in form.about.errors %} for error in form.about.errors %}
<div class="alert alert-danger" role="alert">{{ error }}</div> <div class="alert alert-danger" role="alert">{{ error }}</div>
{% endfor %} {% endfor %}
@ -52,7 +52,7 @@
{% if 'none' in current_user.photo %} {% if 'none' in current_user.photo %}
<div class="form_data"> <div class="form_data">
<label class="form-label">{{ form.photo.label }}</label> <label class="form-label">{{ form.photo.label }}</label>
{{ form.photo(class="input_data", type="file") }} {{ form.photo(class="input_data dop_data", type="file") }}
{% for error in form.photo.errors %} {% for error in form.photo.errors %}
<div class="alert alert-danger" role="alert">{{ error }}</div> <div class="alert alert-danger" role="alert">{{ error }}</div>
{% endfor %} {% endfor %}
@ -71,6 +71,11 @@
</div> </div>
<div class="form_data_button"> <div class="form_data_button">
{{ form.submit(type="submit", class="profile_button") }} {{ form.submit(type="submit", class="profile_button") }}
<a class="profile_button" id="logout_button" href="/logout">
<div class="profile_button_text">
<p>Выйти</p>
</div>
</a>
</div> </div>
</form> </form>
</div> </div>