Исправлены некоторые ошибки

This commit is contained in:
mrmur 2022-04-20 18:13:22 +05:00
parent 522907bdbb
commit 81bab42a86
7 changed files with 79 additions and 67 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -123,7 +123,7 @@ textarea {
font-weight: bolder; font-weight: bolder;
} }
table { table {
margin-left: 5%; margin-left: 10%;
width: 90%; width: 90%;
} }
.like { .like {
@ -131,9 +131,15 @@ table {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
#row1_div, #row2_div, #row3_div { #row1_div, #row2_div {
width: 90%; width: 98%;
} }
td { td {
margin: 20px; margin: 20px;
} }
#all_my_question {
width: 25%;
}
.is_ans {
width: 95%;
}

View File

@ -1,6 +1,7 @@
table { table {
margin-left: 20px; margin-left: 10%;
margin-right: auto; margin-right: auto;
width: 90%;
} }
#row1, #row2, #row3 { #row1, #row2, #row3 {
width: 32%; width: 32%;

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -2,7 +2,9 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/sidebars/"> <link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/sidebars/">
<style> <style>
.bd-placeholder-img { .bd-placeholder-img {
@ -18,6 +20,8 @@
font-size: 3.5rem; font-size: 3.5rem;
} }
} }
</style> </style>
<link href="sidebars.css" rel="stylesheet"> <link href="sidebars.css" rel="stylesheet">
<link href="../static/css/base.css"> <link href="../static/css/base.css">
@ -26,7 +30,8 @@
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"> crossorigin="anonymous">
<link rel="icon" href="../static/img/MoonCcircl.ico" type="image/x-icon"> <link rel="icon" href="../static/img/MoonCcircl.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=Montserrat+Alternates:wght@600&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=Montserrat+Alternates:wght@600&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="../static/css/base.css"> <link rel="stylesheet" href="../static/css/base.css">
<title>{{title}}</title> <title>{{title}}</title>
</head> </head>
@ -34,11 +39,14 @@
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="bootstrap" viewBox="0 0 118 94"> <symbol id="bootstrap" viewBox="0 0 118 94">
<title>Bootstrap</title> <title>Bootstrap</title>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z"></path> <path fill-rule="evenodd" clip-rule="evenodd"
d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z"></path>
</symbol> </symbol>
<symbol id="home" viewBox="0 0 16 16"> <symbol id="home" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/> <path fill-rule="evenodd"
<path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/> d="M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/>
<path fill-rule="evenodd"
d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/>
</symbol> </symbol>
<symbol id="diary" viewBox="0 0 16 16"> <symbol id="diary" viewBox="0 0 16 16">
<path d="M5 0h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2 2 2 0 0 1-2 2H3a2 2 0 0 1-2-2h1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1H1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v9a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1H3a2 2 0 0 1 2-2z"/> <path d="M5 0h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2 2 2 0 0 1-2 2H3a2 2 0 0 1-2-2h1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1H1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v9a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1H3a2 2 0 0 1 2-2z"/>
@ -56,36 +64,61 @@
</symbol> </symbol>
</svg> </svg>
<div class="d-flex flex-column flex-shrink-0 bg-light" style="width: 5rem; height: 0px;"> <div class="d-flex flex-column flex-shrink-0 bg-light" style="width: 5rem; height: 0px;">
<a href="/" class="d-block p-3 link-dark text-decoration-none" title="Icon-only" data-bs-toggle="tooltip" data-bs-placement="right"> <a href="/" class="d-block p-3 link-dark text-decoration-none" title="Icon-only" data-bs-toggle="tooltip"
data-bs-placement="right">
<object type="image/svg+xml" data="static/img/Логотим Moona.svg" width="54" height="54"> <object type="image/svg+xml" data="static/img/Логотим Moona.svg" width="54" height="54">
Your browser does not support SVG Your browser does not support SVG
</object> </object>
</a> </a>
<ul class="nav nav-pills nav-flush flex-column mb-auto text-center"> <ul class="nav nav-pills nav-flush flex-column mb-auto text-center">
<li class="nav-item"> <li class="nav-item">
<a href="/" class="nav-link active py-3 border-bottom" aria-current="page" title="Главная" data-bs-toggle="tooltip" data-bs-placement="right"> <a href="/" class="nav-link active py-3 border-bottom" aria-current="page" title="Главная"
<svg class="bi" width="24" height="24" role="img" aria-label="Главная"><use xlink:href="#home"/></svg> data-bs-toggle="tooltip" data-bs-placement="right">
<svg class="bi" width="24" height="24" role="img" aria-label="Главная">
<use xlink:href="#home"/>
</svg>
</a> </a>
</li> </li>
<li> <li>
<a href="/diary" class="nav-link py-3 border-bottom" title="Дневник" data-bs-toggle="tooltip" data-bs-placement="right"> <a href="/diary" class="nav-link py-3 border-bottom" title="Дневник" data-bs-toggle="tooltip"
<svg class="bi" width="24" height="24" role="img" aria-label="Дневник"><use xlink:href="#diary"/></svg> data-bs-placement="right">
<svg class="bi" width="24" height="24" role="img" aria-label="Дневник">
<use xlink:href="#diary"/>
</svg>
</a> </a>
</li> </li>
<li> <li>
<a href="/publications" class="nav-link py-3 border-bottom" title="Публикации" data-bs-toggle="tooltip" data-bs-placement="right"> <a href="/publications" class="nav-link py-3 border-bottom" title="Публикации" data-bs-toggle="tooltip"
<svg class="bi" width="24" height="24" role="img" aria-label="Публикации"><use xlink:href="#posts"/></svg> data-bs-placement="right">
<svg class="bi" width="24" height="24" role="img" aria-label="Публикации">
<use xlink:href="#posts"/>
</svg>
</a> </a>
</li> </li>
<li> <li>
<a href="/about_us" class="nav-link py-3 border-bottom" title="О нас" data-bs-toggle="tooltip" data-bs-placement="right"> <a href="/about_us" class="nav-link py-3 border-bottom" title="О нас" data-bs-toggle="tooltip"
<svg class="bi" width="24" height="24" role="img" aria-label="О нас"><use xlink:href="#about"/></svg> data-bs-placement="right">
<svg class="bi" width="24" height="24" role="img" aria-label="О нас">
<use xlink:href="#about"/>
</svg>
</a> </a>
</li> </li>
<li> <li>
<a href="/profil" class="nav-link py-3 border-bottom" title="Профиль" data-bs-toggle="tooltip" data-bs-placement="right"> {% if current_user.is_authenticated %}
<svg class="bi" width="24" height="24" role="img" aria-label="Профиль"><use xlink:href="#profil"/></svg> <a href="/profil" class="nav-link py-3 border-bottom" title="Профиль" data-bs-toggle="tooltip"
data-bs-placement="right">
<svg class="bi" width="24" height="24" role="img" aria-label="Профиль">
<use xlink:href="#profil"/>
</svg>
</a> </a>
{% else %}
<a href="/login" class="nav-link py-3 border-bottom" title="Профиль" data-bs-toggle="tooltip"
data-bs-placement="right">
<svg class="bi" width="24" height="24" role="img" aria-label="Профиль">
<use xlink:href="#profil"/>
</svg>
</a>
{% endif %}
</li> </li>
</ul> </ul>

View File

@ -224,7 +224,7 @@
<div class="my_post"> <div class="my_post">
<div class="question"> <div class="question">
{% for item in question %} {% for item in question %}
<a href="/answer_quest/{{item.id}}" class="btn"> <a href="/answer_quest/{{item.id}}" class="btn quest_block">
{% if item.id in ans %} {% if item.id in ans %}
<div class="is_ans"> <div class="is_ans">
<strong>{{item.quest}}</strong> <strong>{{item.quest}}</strong>