added responsive btn

This commit is contained in:
Chneemann 2024-04-01 20:09:15 +02:00
parent ace619a2ec
commit a802ed094b
2 changed files with 39 additions and 4 deletions

View file

@ -8,6 +8,9 @@
<span>Add new contact</span> <span>Add new contact</span>
<img src="./../../../assets/img/contact/add.svg" alt="check" /> <img src="./../../../assets/img/contact/add.svg" alt="check" />
</div> </div>
<div class="btn-inside-mobile">
<img src="./../../../assets/img/contact/add.svg" alt="check" />
</div>
</button> </button>
<div class="content"> <div class="content">
@for (sortLetter of this.sortFirstLetter(); track sortLetter) { @for (sortLetter of this.sortFirstLetter(); track sortLetter) {

View file

@ -36,6 +36,10 @@ section {
} }
} }
.btn-inside-mobile {
display: none;
}
.left-frame { .left-frame {
position: absolute; position: absolute;
top: -64px; top: -64px;
@ -147,6 +151,13 @@ section {
top: -64px; top: -64px;
left: -64px; left: -64px;
width: calc(100vw - 232px); width: calc(100vw - 232px);
background-color: var(--bgContent);
}
.contact {
&:hover {
background-color: var(--light-gray);
}
} }
} }
@ -158,6 +169,31 @@ section {
width: calc(100vw); width: calc(100vw);
min-height: calc(100vh - 208px); min-height: calc(100vh - 208px);
} }
.btn-inside {
display: none;
}
.btn-inside-mobile {
display: block;
}
.btn {
position: fixed;
bottom: 100px;
right: 40px;
justify-content: space-between;
height: 56px;
width: 56px;
border-radius: 100%;
z-index: 1;
cursor: pointer;
img {
padding: 0;
width: 32px;
height: 32px;
}
}
} }
@media screen and (max-width: 450px) { @media screen and (max-width: 450px) {
@ -167,10 +203,6 @@ section {
min-height: calc(100vh - 176px); min-height: calc(100vh - 176px);
} }
.btn {
display: none;
}
.first-letter { .first-letter {
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;