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

add Hooli-style-Popup #58

Merged
merged 6 commits into from
Aug 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 3 additions & 7 deletions submissions/ksalpern/Hooli-style-Popup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<title>Hooli-style-Popup</title>
</head>
<body>
<div class="container">
<header class="header">
<nav class="header__nav">
<ul class="nav__items">
Expand All @@ -26,7 +25,7 @@
<img
class="popup__button"
src="./popup-icons/popup-button.png"
alt="See more apps"
alt="popup button"
/>
</label>

Expand Down Expand Up @@ -244,9 +243,7 @@
</li>

<li class="popup__even-more">
<span class="popup__more-even even-more"
>Even more from Kottans</span
>
<a class="popup__more-even even-more" href="#">Even more from Kottans</a>
</li>
</ul>
</div>
Expand All @@ -256,7 +253,7 @@

<li class="nav__item">
<a href="#" class="nav__item_bell">
<img class="bell" src="./popup-icons/bell.png" alt="" />
<img class="bell" src="./popup-icons/bell.png" alt="bell" />
A-Ostrovnyy marked this conversation as resolved.
Show resolved Hide resolved
</a>
</li>

Expand All @@ -268,6 +265,5 @@
</ul>
</nav>
</header>
</div>
</body>
</html>
87 changes: 38 additions & 49 deletions submissions/ksalpern/Hooli-style-Popup/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
html {

box-sizing: border-box;
height: 100%;
}

*,
*::after,
*::before {

box-sizing: inherit;
padding: 0;
margin: 0;
}
body {

body {
min-width: 320px;
overflow-x: hidden;
height: 100%;
}

ol,
ul {

list-style: none;
}

a,
a:link,
a:visited,
a:hover {

text-decoration: none;
}
img {

img {
height: auto;
vertical-align: top;
}
.container {

.header {
max-width: 1200px;
margin: 0 auto;
background-color: rgb(212, 240, 231);
Expand All @@ -45,21 +43,20 @@ img {


.header__nav {
A-Ostrovnyy marked this conversation as resolved.
Show resolved Hide resolved

display: flex;
justify-content: flex-end;
align-items: center;
.nav__items {

.nav__items {
display: flex;
align-items: center;
.nav__item {

.nav__item {
A-Ostrovnyy marked this conversation as resolved.
Show resolved Hide resolved
display: inline;
position: relative;
margin-right: 14px;
.nav__item-link {

.nav__item-link {
font-size: 14px;
padding: 8px 16px;
color: rgb(27, 22, 22);
Expand All @@ -69,13 +66,13 @@ img {
-ms-border-radius: 4px;
-o-border-radius: 4px;
}
.nav__item-link:hover {

.nav__item-link:hover {
background-color: rgb(161, 206, 206);
}

.nav__item-link:focus,
.nav__item-link:focus-visible {

background-color: rgb(109, 221, 221);
}
}
Expand All @@ -85,39 +82,35 @@ img {

.checkbox,
.checkbox__more {

appearance: none;
position: absolute;
}

.checkbox:checked ~ label .popup__button,
.checkbox:focus ~ label .popup__button,
.popup__button:hover {

background-color: rgb(134, 223, 230);
}

.checkbox:checked ~ .popup__wrapper {

display: block;
}

.checkbox__more:checked ~ .popup__more-items {

display: flex;
justify-content: center;
}

.checkbox__more:focus ~ label .popup__more-name {

.checkbox__more:checked ~ label .popup__more-name {
background-color: rgb(218, 230, 226);
display: none;
}

.popup__button {

cursor: pointer;
}
.popup__wrapper {

.popup__wrapper {
display: none;
position: absolute;
top: 56px;
Expand All @@ -133,26 +126,26 @@ img {
-ms-border-radius: 4px;
-o-border-radius: 4px;
z-index: 1;
.popup__content {

.popup__content {
height: 320px;
overflow: auto;
.popup__items {

.popup__items {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding-top: 8px;
.popup__item {

.popup__item {
display: flex;
justify-content: center;
align-items: flex-end;
text-align: center;
margin-bottom: 8px;
.popup__item-icon {

.popup__item-icon {
display: inline-block;
width: 70px;
height: fit-content;
Expand All @@ -168,23 +161,22 @@ img {
padding: 4px 0;

.popup__item-name {

display: block;
color: rgb(27, 24, 24);
font-size: 12px;
padding-top: 12px;
}
.popup__item-name:hover {

.popup__item-name:hover {
text-decoration: underline;
}
}
.popup__item-icon:hover {

.popup__item-icon:hover {
background-color: #d1cbcb;
}
.popup__item-icon:focus {

.popup__item-icon:focus {
background-color: #aaa5a5;
outline: none;
}
Expand All @@ -194,37 +186,37 @@ img {
}

.popup__content::-webkit-scrollbar {

width: 4px;
}
.popup__content::-webkit-scrollbar-thumb {

.popup__content::-webkit-scrollbar-thumb {
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
background-color: #d1cbcb;
}
.popup__content::-webkit-scrollbar-track {

.popup__content::-webkit-scrollbar-track {
margin: 4px;
}

.icon {

max-height: 36px;
margin-bottom: 4px;
margin-top: 8px;
}

.popup__more-items {

display: none;
flex-wrap: wrap;
margin-top: 12px;

.popup__more-item {
A-Ostrovnyy marked this conversation as resolved.
Show resolved Hide resolved

.popup__more-icon {

padding-top: 4px;
display: inline-block;
width: 80px;
height: 100%;
Expand All @@ -240,84 +232,81 @@ img {
padding: 4px 0;

.popup__more-name:hover {

text-decoration: underline;
}
}

.popup__more-icon:hover {

background-color: #d1cbcb;
}
.popup__more-icon:focus {

.popup__more-icon:focus {
background-color: #aaa5a5;
outline: none;
}
}
}

.even-more {

width: 100%;
}
.even-more:hover {

.even-more:hover {
text-decoration: underline;
}

.nav__item_bell {

border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
padding: 4px;
.bell {

.bell {
width: 20px;
}
}

.nav__item_bell:focus,
.nav__item_bell:hover,
.nav__item_bell:focus-visible {

background-color: rgb(109, 221, 221);
outline: none;
}

.user-item {

border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
padding: 4px;
.user {

.user {
background-color: rgb(180, 235, 226);
color: rgb(56, 53, 49);

.user__img {
width: 24px;
}
}
}

.popup__more-name {

display: block;
display: flex;
color: rgb(27, 24, 24);
font-size: 14px;
padding: 4px;
padding: 18px 8px 8px 8px;
cursor: pointer;
width: 80%;
margin: 0 auto;
color: #1f1a1a;
align-items: center;
justify-content: center;
}
.even-more{

.even-more{
display: inline;
padding-bottom: 8px;
}