Skip to content

Commit

Permalink
style fixes for go back to admin page button
Browse files Browse the repository at this point in the history
  • Loading branch information
DogukanUrker committed Dec 17, 2023
1 parent 9849612 commit 2270e3c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
13 changes: 7 additions & 6 deletions static/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
--themeSecondary: #fff;
--themeHelper: #303030;
--primaryColor: #ff206e;
--primaryHelper: #FF4F8C;
--primaryHelper: #ff4f8c;
}

* {
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: var(--themePrimary);
}

Expand Down Expand Up @@ -113,7 +114,8 @@ button {
color: var(--primaryHelper);
}

.errorMessage, .formPost {
.errorMessage,
.formPost {
text-align: center;
margin-top: 6rem;
}
Expand All @@ -123,10 +125,9 @@ button {
}

.goBackToAdmin {
position: absolute;
position: fixed;
bottom: 0px;
left: 0px;

}

@media screen and (max-width: 600px) {
Expand All @@ -137,4 +138,4 @@ button {
.navbar * {
width: 100% !important;
}
}
}
4 changes: 3 additions & 1 deletion templates/adminPanelUsers.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ <h1 class="textCenter">Users</h1>
</div>
{% endfor %}
</div>
<a href="/admin" class="btn btnLink textPrimary">↩️go back to admin panel</a>
<a href="/admin" class="btn btnLink textPrimary goBackToAdmin"
>↩️go back to admin panel</a
>
{% endblock body %}
4 changes: 3 additions & 1 deletion templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ <h1 class="textCenter">Comments</h1>
<a href="/post/{{comment[1]}}" class="btn btnLink textPrimary">go to post</a>
</div>
{% endfor %} {% endif %} {% if request.path == "/admin/posts" %}
<a href="/admin" class="btn btnLink textPrimary">↩️go back to admin panel</a>
<a href="/admin" class="btn btnLink textPrimary goBackToAdmin"
>↩️go back to admin panel</a
>
{% endif %} {% endblock body %}

0 comments on commit 2270e3c

Please sign in to comment.