Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popup #110

Merged
merged 13 commits into from
Aug 19, 2022
Merged

popup #110

Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 190 additions & 0 deletions submissions/vovan-zt/popup/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

li {
list-style-type: none;
text-decoration: none;
}

.contaiter {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.2);
}

.navigation {
display: flex;
justify-content: center;
align-items: center;
}

.navigation__list {
margin: 1rem;
display: grid;
grid-template-columns: repeat(5, 50px);
grid-template-rows: 40px;
gap: 20px;
justify-items: center
}

.navigation__check_input {
position: absolute;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
}

.navigation__item {
width: 50px;
height: 50px;
list-style-type: none;
border-radius: 10px;
cursor: pointer;
padding: 10px;
justify-items: center;
}

.navigation__item:hover {
border-radius:10px;
box-shadow: 5px 5px 5px rgba(40, 9, 9, 0.15);
background-color:rgba(0, 0, 0, 0.1)
}

.navigation__check_input:focus ~label {
outline-style: solid;
outline-width: 0.2rem;
}

.navigation__image {
width: 30px;
height: 30px;
cursor: pointer;
}

.modal {
width: 400px;
position: relative;
padding: 10px;
top: 10px;
right: 180px;
display: none;

}

.modal__list {
background-color: rgba(0, 0, 0, 0.1);
border-radius: 5px;
box-shadow: 5px 5px 10px rgba(0,0,0,0.25);
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 100px;
list-style: none;
gap: 30px 30px;
padding: 20px;
position: relative;
overflow: auto;
height: 570px;
}

.modal__list::-webkit-scrollbar {
width: 7px;
height: 0;
}
.modal__list::-webkit-scrollbar-thumb {
background: rgb(140, 139, 139);
border-radius:5px;
}

.modal__item {
display: flex;
flex-direction: column;
align-content: space-around;
justify-content: start;
flex-wrap: wrap;
padding: 10px;
}

.modal__item a {
A-Ostrovnyy marked this conversation as resolved.
Show resolved Hide resolved
display: flex;
flex-direction: column;
align-content: space-around;
justify-content: start;
flex-wrap: wrap;
width: 100%;
text-decoration: none;
}

.modal__item img {
display: block;
width: 40px;
height: 40px;
margin-bottom: 20px;

}

.modal__item:hover {
border-radius:10px;
box-shadow: 5px 5px 5px rgba(110, 99, 99, 0.15);
background-color:rgba(81, 80, 80, 0.1)

}

.modal__item:focus {
border: 1px solid black;
}

.modal__item2 {
display: none;
}

.navigation__image2 {
font-weight: 700;
font-size: 23px;
width: 200px;
height: 30px;
text-align: center;
background-color:rgb(199, 204, 204);
border-radius:10px;
display: block;
position: absolute;
bottom: 5px;
margin: 0 auto;
transform: translateX(calc(50% - 10px));
cursor: pointer;
}

.navigation__image2::before {
content: 'Bottom';
}

.navigation__image2:hover {
box-shadow: 5px 5px 10px rgba(0,0,0,0.25);
background-color:rgb(150, 164, 164);
}

#modal2:checked ~ .modal__item2 {
display:flex;
}

#modal2:checked {
position: absolute;
bottom: -385px;
}

#modal2:checked ~ .navigation__image2 {
position: absolute;
bottom: -385px;
}


#modal2:checked ~ .navigation__image2::before {
content: 'Up';
}

#modal:checked ~ .modal {
display:block;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>popup</title>
</head>
<body>
<div class="contaiter">
<nav class="navigation">
<ul class="navigation__list">
<li class="navigation__item">
<input class="navigation__check_input" type="checkbox" >
<label><img class="navigation__image" src="icons/bell.png" alt="bell1"></label>
</li>

<li class="navigation__item">
<input class="navigation__check_input" type="checkbox" >
<label><img class="navigation__image" src="icons/bell.png" alt="bell2"></label>
</li>

<li class="navigation__item">
<input class="navigation__check_input" type="checkbox" name="modal" id="modal">
<label for="modal" ><img class="navigation__image" src="icons/popup-button.png" alt="popup"></label>

<div class="modal">
<ul class="modal__list">
<li class="modal__item"><a href="#"> <img src="icons/apps.png" alt="item1"><span>item1</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/blogs.png" alt="item2"><span>item2</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/calendar.png" alt="item3"><span>item3</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/chat.png" alt="item4"><span>item4</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/classroom.png" alt="item5"><span>item5</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/collection.png" alt="item6"><span>item6</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/contacts.png" alt="item7"><span>item7</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/documents.png" alt="item8"><span>item8</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/files.png" alt="item9"><span>item9</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/mail.png" alt="item10"><span>item10</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/maps.png" alt="item11"><span>item11</span></a></li>
<li class="modal__item"><a href="#"> <img src="icons/mars.png" alt="item12"><span>item12</span></a></li>

<input class="navigation__check_input" type="checkbox" name="" id="modal2">
<label for="modal2" class="navigation__image2"></label>
A-Ostrovnyy marked this conversation as resolved.
Show resolved Hide resolved

<li class="modal__item modal__item2" ><a href="#"><img src="icons/collection.png" alt="item13"> <span>item13</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/contacts.png" alt="item14"> <span>item14</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/documents.png" alt="item15"> <span>item15</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/files.png" alt="item16"><span>item16</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/mail.png" alt="item17"><span>item17</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/maps.png" alt="item18"><span>item18</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/mars.png" alt="item19"><span>item19</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/maps.png" alt="item20"><span>item20</span></a></li>
<li class="modal__item modal__item2" ><a href="#"><img src="icons/mars.png" alt="item21"><span>item21</span></a></li>
</ul>
</div>
</li>
<li class="navigation__item">
<input class="navigation__check_input" type="checkbox" >
<label><img class="navigation__image" src="icons/bell.png" alt="bell3"></label>
A-Ostrovnyy marked this conversation as resolved.
Show resolved Hide resolved
</li>
<li class="navigation__item">
<input class="navigation__check_input" type="checkbox" >
<label><img class="navigation__image" src="icons/bell.png" alt="bell4"></label>
</li>
</ul>
</nav>
</div>

</body>
</html>