-
-
Notifications
You must be signed in to change notification settings - Fork 179
Hooli style popup #89
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
Changes from 3 commits
55e709a
125f67d
21d0868
2dc2110
ec23126
e2ecacf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,173 @@ | ||
| <!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"> | ||
| <title>Hooli Style Popup</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <nav class="nav"> | ||
| <ul class="nav__ul"> | ||
| <li class="nav__item"> | ||
| <a href="#">Mail</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#">Images</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <!-- <input type="checkbox" id="menu" class="check__input" tabindex="-1"> --> | ||
| <input type="checkbox" id="menu" class="check__input img__checkbox"> | ||
|
|
||
| <label for="menu"> | ||
| <!-- <img src="img/popup-button.png" alt="popup" class="img__nav img__checkbox" tabindex="0"> --> | ||
| <img src="img/popup-button.png" alt="popup" class="img__nav img__checkbox"> | ||
| </label> | ||
|
|
||
| <div class="popup"> | ||
| <ul> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/calendar.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Calendar</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/mail.png" alt="" class="popup__item_img"> | ||
| <span class='popup__item-title'>Mail</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/news.png" alt="" class="popup__item_img"> | ||
| <span class='popup__item-title'>News</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/maps.png" alt="" class="popup__item_img"> | ||
| <span class='popup__item-title'>Map</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/files.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Files</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/contacts.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Contacts</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/tanslation.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Translate</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/videos.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Videos</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/search.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Search</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/photos.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Photo</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/apps.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Apps</span> | ||
| </a> | ||
| </li> | ||
| <li class="popup__item"> | ||
| <a href="#"> | ||
| <img src="img/documents.png" alt="" class="popup__item_img"> | ||
| <span class="popup__item-title">Document</span> | ||
| </a> | ||
| </li> | ||
| </ul> | ||
|
|
||
| <hr> | ||
|
|
||
| <!-- <input type="checkbox" id="more" class="more__checkbox" tabindex="-1"/> | ||
| <label for="more" class="popup__open" tabindex="0">More</label> --> | ||
| <input type="checkbox" id="more" class="more__checkbox" tabindex="0"> | ||
| <label for="more" class="popup__open" tabindex="-1">More</label> | ||
|
|
||
| <div class="more__popup"> | ||
| <ul> | ||
| <li class="more__popup__item"> | ||
| <a href="#"> | ||
| <img src="img/chat.png" alt="" class="more__popup__item_img"> | ||
| <span class="more_popup__item-title">Chat</span> | ||
| </a> | ||
| </li> | ||
| <li class="more__popup__item"> | ||
| <a href="#"> | ||
| <img src="img/classroom.png" alt="" class="more__popup__item_img"> | ||
| <span class="more_popup__item-title">Classroom</span> | ||
| </a> | ||
| </li> | ||
| <li class="more__popup__item"> | ||
| <a href="#"> | ||
| <img src="img/collection.png" alt="" class="more__popup__item_img"> | ||
| <span class="more_popup__item-title">Collection</span> | ||
| </a> | ||
| </li> | ||
| <li class="more__popup__item"> | ||
| <a href="#"> | ||
| <img src="img/mars.png" alt="" class="more__popup__item_img"> | ||
| <span class="more_popup__item-title">Mars</span> | ||
| </a> | ||
| </li> | ||
| <li class="more__popup__item"> | ||
| <a href="#"> | ||
| <img src="img/blogs.png" alt="" class="more__popup__item_img"> | ||
| <span class="more_popup__item-title">Blogs</span> | ||
| </a> | ||
| </li> | ||
| <li class="more__popup__item"> | ||
| <a href="#"> | ||
| <img src="img/promo.png" alt="" class="more__popup__item_img"> | ||
| <span class="more_popup__item-title">Promos</span> | ||
| </a> | ||
| </li> | ||
|
|
||
| <a href="https://kottans.org/" class="more__popup__open"> | ||
| Even more Kottans | ||
| </a> | ||
| </ul> | ||
| </div> | ||
| </div> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#"> | ||
| <img src="img/bell.png" alt="bell" class="img__nav"> | ||
| </a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#"> | ||
| <img src="img/apps.png" alt="profile__pic" class="img__nav img__circle"> | ||
| </a> | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
| </header> | ||
| </body> | ||
| </html> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,182 @@ | ||
| .nav__ul { | ||
| display: flex; | ||
| flex-direction: row; | ||
| justify-content: end; | ||
| } | ||
|
|
||
| .nav__item { | ||
| padding: 0 10px; | ||
| list-style: none; | ||
| display: flex; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .nav__item a { | ||
| color: black; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .nav__item a:hover { | ||
| color: rgb(78, 69, 69); | ||
| text-decoration: underline; | ||
| } | ||
|
|
||
| :focus { | ||
| outline: 2px solid blue; | ||
| } | ||
|
|
||
| input[type='checkbox']:focus + label { | ||
|
||
| outline: 2px solid blue; | ||
| } | ||
|
|
||
| .check__input { | ||
| position: absolute; | ||
| clip: rect(0 0 0 0); | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .img__checkbox { | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .img__nav { | ||
| border-radius: 10rem; | ||
| height: 25px; | ||
| width: 25px; | ||
| } | ||
|
|
||
| .img__nav:hover { | ||
| box-shadow: 14px 17px 41px 10px rgba(0,0,0,0.1); | ||
| } | ||
|
|
||
| .popup { | ||
| display: none; | ||
| top: 50px; | ||
| right: 4em; | ||
| position: absolute; | ||
| width: 360px; | ||
| height: 430px; | ||
| overflow-y: auto; | ||
| box-shadow: 0px 0px 22px -1px rgba(0,0,0,0.12); | ||
| } | ||
|
|
||
| :checked ~ .popup { | ||
| display: block; | ||
| } | ||
|
|
||
| .popup ul { | ||
|
||
| display: flex; | ||
| flex-wrap: wrap; | ||
| right: 4em; | ||
| padding: 0; | ||
| } | ||
|
|
||
| .popup__item { | ||
| list-style: none; | ||
| flex: 0 0 33%; | ||
| } | ||
|
|
||
| .popup__item:hover { | ||
| box-shadow: 0px 0px 22px -1px rgba(0,0,0,0.12); | ||
| } | ||
|
|
||
| .popup__item a { | ||
|
||
| margin: 10px 5px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .popup__item_img { | ||
| width: 40x; | ||
| height: 40px; | ||
| padding-bottom: 15px; | ||
| } | ||
|
|
||
| .popup__open { | ||
| background-color: rgb(175, 170, 170); | ||
| text-align: center; | ||
| padding: 10px; | ||
| display: block; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
|
|
||
| .more__checkbox { | ||
| position: absolute; | ||
| clip: rect(0 0 0 0); | ||
| } | ||
|
|
||
| .popup__open:focus { | ||
| border: 1px solid blue; | ||
| background-color: gainsboro; | ||
| } | ||
|
|
||
| .more__checkbox ~ .popup__open { | ||
| display: block; | ||
| } | ||
|
|
||
| .more__checkbox:checked ~ .popup__open { | ||
| display: none; | ||
| } | ||
|
|
||
| .more__checkbox:checked ~ .more__popup { | ||
| display: flex; | ||
| } | ||
|
|
||
| .more__popup { | ||
| display: flex; | ||
| } | ||
|
|
||
| .more__popup { | ||
| display: none; | ||
| flex-wrap: wrap; | ||
| right: 4em; | ||
| padding: 0; | ||
| } | ||
|
|
||
| .more__popup__item { | ||
| list-style: none; | ||
| flex: 0 0 33%; | ||
| } | ||
|
|
||
| .more__popup__item a { | ||
|
||
| margin: 10px 5px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .more__popup__item_img { | ||
| width: 40x; | ||
| height: 40px; | ||
| padding-bottom: 15px; | ||
| } | ||
|
|
||
| .more__popup__open { | ||
| width: 100%; | ||
| text-align: center; | ||
| padding: 20px 10px; | ||
| display: block; | ||
| } | ||
|
|
||
| .more__popup__open a { | ||
|
||
| text-decoration: none; | ||
| color: black; | ||
| } | ||
|
|
||
| .more__popup__open a:hover { | ||
|
||
| text-decoration: underline; | ||
| } | ||
|
|
||
| @media only screen and (max-width: 600px) { | ||
| .popup { | ||
| right: 1em; | ||
| } | ||
| } | ||
|
|
||
| @media only screen and (max-width: 400px) { | ||
| .popup { | ||
| right: -1em; | ||
| } | ||
| } | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, remove unnecessary comments