From 1870f3fdf43707a15fda0f609a021f516f45eb63 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:15:38 +0100 Subject: finish auth routes, create cookie token, fix folder structure, add context to FE --- client/src/admin/scss/_topBar.scss | 114 +++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 client/src/admin/scss/_topBar.scss (limited to 'client/src/admin/scss/_topBar.scss') diff --git a/client/src/admin/scss/_topBar.scss b/client/src/admin/scss/_topBar.scss new file mode 100644 index 0000000..af9fcd6 --- /dev/null +++ b/client/src/admin/scss/_topBar.scss @@ -0,0 +1,114 @@ +@keyframes showTopMenu { + 0% {transform: translateY(100%) scale(0.8) ; opacity: 0;} + 80% {transform: translateY(100%) scale(1.1); opacity: 100%;} + 100% {transform: translateY(100%) scale(1); opacity: 100%;} +} + +.top-bar { + flex-grow: 0; + display: flex; + justify-content: end; + padding: 1em; + + + &__fog { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + } +} + +.user { + position: relative; + + &__list { + position: absolute; + display: block; + bottom: 0; + right: 0; + transform: translateY(100%); + background: $background-menu; + animation: showTopMenu .3s; + } + + &__main-item { + color: $text; + display: block; + padding: .5em; + white-space: nowrap; + transition: color .3s; + cursor: pointer; + + &--active { + background: $background-menu; + color: $text-selected; + } + + &:hover { + color: $text-selected; + } + } + + &__item { + display: block; + color: $text; + padding: .5em; + font-weight: normal; + transition: color .3s; + cursor: pointer; + white-space: nowrap; + text-align: right; + + &:hover { + color: $text-selected; + } + } +} + +.lang-switch { + display: inline-block; + position: relative; + + &__list { + position: absolute; + bottom: 0; + left: 0; + right: 0; + transform: translateY(100%); + background: $background-menu; + animation: showTopMenu .3s; + } + + &__main-item { + transition: .3s color; + padding: .5em; + display: block; + color: $text; + font-weight: normal; + cursor: pointer; + + &:hover { + color: $text-selected; + } + + &--active { + background: $background-menu; + color: $text-selected; + } + } + + &__item { + padding: .5em; + display: block; + color: $text; + font-weight: normal; + cursor: pointer; + transition: color .3s; + + &:hover { + color: $text-selected; + } + } +} -- cgit v1.2.3