79 lines
1.2 KiB
SCSS
79 lines
1.2 KiB
SCSS
.announcements-list {
|
|
& {
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
max-width: 420px;
|
|
padding: 0;
|
|
}
|
|
|
|
@media (min-width: 481px) {
|
|
padding: 16px;
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
padding: 32px;
|
|
}
|
|
}
|
|
|
|
.announcements-item {
|
|
& {
|
|
position: relative;
|
|
padding: 16px;
|
|
box-shadow: $shadow6;
|
|
border-radius: 1px;
|
|
background: white;
|
|
padding-right: 48px;
|
|
animation: announcements-item-flyin 500ms ease-out;
|
|
transition: opacity 500ms linear, transform 500ms ease-out;
|
|
}
|
|
|
|
&.-hide {
|
|
display: none;
|
|
}
|
|
|
|
& > .title {
|
|
@include font-size(1);
|
|
font-weight: normal;
|
|
color: $base-a;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
& > .close {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
border: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $base-a;
|
|
}
|
|
}
|
|
|
|
& > .close::before {
|
|
content: "\00D7";
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
@keyframes announcements-item-flyin {
|
|
0% {
|
|
transform: translate3d(0, 32px, 0);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translate3d(0, 0, 0);
|
|
opacity: 1;
|
|
}
|
|
}
|