Files
legolog/client/public/components/css/notificationbar.css
Benjamin Kyd b652d8cd6b product listing
Former-commit-id: 1ee2385fa95125e08311a8e15b7ac4b38c111e26
2022-03-29 00:23:42 +01:00

106 lines
1.9 KiB
CSS

.notification-bar {
display: inline-block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2em;
background-color: #00B4F5;
box-shadow: #222 0px 0px 5px;
transition: all 0.3s ease-in;
}
.notification-bar-text {
font-family: 'Josefin Sans', sans-serif;
text-transform: uppercase;
text-align: center;
color: #fff;
padding: 0px 1em;
height: 100%;
line-height: 35px;
font-size: 1em;
font-weight: bold;
text-align: center;
}
.notification-bar-close {
font-family: 'Open Sans', sans-serif;
display: inline-block;
padding: 0px 1em;
height: 100%;
line-height: 2em;
color: #fff;
font-size: 1.5em;
font-weight: bold;
text-align: center;
}
.notification-bar-close:hover {
color: #fff;
}
.notification-bar-close:focus {
outline: none;
}
.notification-bar-close:active {
color: #F5F6F6;
}
.notification-bar-close:hover {
color: #F5F6F6;
}
.notification-bar-close:focus {
outline: none;
}
.notification-toggler {
position: absolute;
right: 2px;
top: 2px;
background: transparent;
border: none;
cursor: pointer;
outline: none;
height: 2em;
width: 2em;
z-index: 100;
transition: all 0.2s ease-in;
}
.cross-line {
background: #222;
box-shadow: #222 0px 0px 2px;
position: absolute;
height: 2px;
left: 0;
width: 100%;
}
#notification-toggler:hover .cross-line {
background: #777;
}
.cross-line-top {
top: 50%;
transform: rotate(45deg) translatey(-50%);
}
.cross-line-bottom {
bottom: 50%;
transform: rotate(-45deg) translatey(50%);
}
/* move it further up the screen than the mobile toggler would */
.notification-toggled {
transform: translatey(-300%);
}
/* don's show on mobile or 'small mode' */
@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
.notification-bar {
transform: translatey(-300%);
}
}