Skip to content

Commit

Permalink
Merge pull request #17 from DogukanUrker/dev
Browse files Browse the repository at this point in the history
delete button's size changed
  • Loading branch information
DogukanUrker authored Jul 29, 2023
2 parents 15b2efe + 38989b3 commit de487b0
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 38 deletions.
87 changes: 50 additions & 37 deletions static/css/adminPanel.css
Original file line number Diff line number Diff line change
@@ -1,54 +1,67 @@
.userContainer {
display: block;
text-align: center;
border: 1px solid var(--primaryColor);
border-radius: 0.5rem;
width: fit-content;
padding: 1rem;
margin: 1rem auto 1rem auto;
a {
margin-left: 0rem !important;
}

.userContainer .picture {
width: 2rem;
height: 2rem;
section p {
width: 50rem !important;
}

.stats {
display: flex;
width: 22rem;
justify-content: space-between;
.toPanel {
font-size: 1.5rem;
font-weight: bold;
}

.stats p, .stats a {
text-align: left;
margin-left: 1rem;
.deleteUserButton {
font-size: 1rem;
}

a {
margin-left: 0rem !important;
.deleteUserButton,
.toPanel {
cursor: pointer;
}

section p {
width: 50rem !important;
.userContainer {
display: block;
text-align: center;
border: 1px solid var(--primaryColor);
border-radius: 0.5rem;
width: fit-content;
padding: 1rem;
margin: 1rem auto 1rem auto;
}

.toPanelsContainer {
text-align: center;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
padding: 1rem;
.userContainer .picture {
width: 2rem;
height: 2rem;
}

.stats {
display: flex;
width: 22rem;
justify-content: space-between;
}

@media screen and (max-width: 600px) {
.userContainer {
width: 90%;
.stats p,
.stats a {
text-align: left;
margin-left: 1rem;
}

}
.toPanelsContainer {
text-align: center;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
padding: 1rem;
}

@media screen and (max-width: 600px) {
.userContainer {
width: 90%;
}

.stats {
width: 100%;
}
}
.stats {
width: 100%;
}
}
6 changes: 5 additions & 1 deletion templates/adminPanelUsers.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ <h1 class="textCenter">Users</h1>
<section class="stats">
<form method="post">
<input type="hidden" name="userName" value="{{user[1]}}" />
<button type="submit" name="userDeleteButton" class="textPrimary">
<button
type="submit"
name="userDeleteButton"
class="textPrimary deleteUserButton"
>
delete user
</button>
</form>
Expand Down

0 comments on commit de487b0

Please sign in to comment.