-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1c4072
commit bd19da9
Showing
4 changed files
with
138 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
|
||
function toggleNotifications() { | ||
var button = document.getElementById("widget__notifications"); | ||
button.classList.toggle("nav__widget_active"); | ||
button.classList.toggle("nav__main__widget_active"); | ||
} | ||
|
||
function toggleOther() { | ||
var button = document.getElementById("widget__other"); | ||
button.classList.toggle("nav__widget_active"); | ||
} | ||
button.classList.toggle("nav__main__widget_active"); | ||
} | ||
|
||
let side_not = document.querySelector('.nav__main__widget'); | ||
side_not.addEventListener('click', function(){ | ||
let side_appear = document.querySelector('.nav__side__notification'); | ||
side_appear.classList.toggle('nav__side__notification-active'); | ||
}); | ||
|
||
let closeClick = document.querySelector('.click-close'); | ||
closeClick.addEventListener('click', function(){ | ||
let side_appear = document.querySelector('.nav__side__notification'); | ||
side_appear.classList.remove('nav__side__notification-active'); | ||
var button = document.getElementById("widget__notifications"); | ||
button.classList.remove("nav__main__widget_active"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.nav { | ||
position: relative; | ||
} | ||
|
||
.nav__side__notification { | ||
visibility: hidden; | ||
opacity: 0; | ||
position: fixed; | ||
top: 0; | ||
left: 72px; | ||
background-color: #313F50; | ||
transform: translateX(-100%); | ||
transform-origin: left; | ||
transition: 0.5s ease-in-out; | ||
width: 416px; | ||
height: 100vh; | ||
z-index: -1; | ||
} | ||
|
||
.nav__side__notification-active { | ||
visibility: visible; | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
|
||
.nav__side__notificatin_header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center ; | ||
background-color: #313F50; | ||
color: #fff; | ||
pointer-events: none; | ||
margin: 0 30px; | ||
} | ||
|
||
.nav__side__notificatin_header-title { | ||
/* margin-left: -180px; */ | ||
} | ||
|
||
.click-close { | ||
pointer-events: all; | ||
cursor: pointer; | ||
} | ||
|
||
.nav__side__notificatin_content { | ||
max-height: 100vh; | ||
overflow: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters