Mailspring/internal_packages/feedback/stylesheets/main.less

58 lines
1.5 KiB
Plaintext

@import "ui-variables";
@import "ui-mixins";
.btn-feedback {
position: fixed;
bottom: 8px;
right: 8px;
background: linear-gradient(to bottom, @blue 0%,darken(@blue, 10%) 100%);
width:42px;
height:42px;
border-radius:25px;
display: inline-block;
font-size: 28px;
text-align: center;
line-height:42px;
color:rgba(255,255,255,0.9);
border: 1px solid darken(@blue, 20%);
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
cursor: default;
}
.btn-feedback:hover {
color:rgba(255,255,255,1);
background: linear-gradient(to bottom, lighten(@blue,5%) 0%, darken(@blue, 5%) 100%);
}
.btn-feedback:active {
background: linear-gradient(to bottom, darken(@blue,20%) 0%, darken(@blue, 10%) 100%);
}
@keyframes bounce {
46% {right: 8px; animation-timing-function: ease-in;}
50% {right: 35px; animation-timing-function: ease-in;}
55% {right: 8px; animation-timing-function: ease-out;}
58% {right: 3px; animation-timing-function: ease-in;}
61% {right: 8px; animation-timing-function: ease-out;}
63% {right: 14px; animation-timing-function: ease-in;}
65% {right: 8px; animation-timing-function: ease-out;}
}
.btn-feedback.newmsg{
color:rgba(255,255,255,1);
}
.btn-feedback.newmsg::after {
display:block;
background: linear-gradient(to bottom, darken(red, 2%) 0%, darken(red, 10%) 100%);
content: "•";
position: absolute;
font-size:16px;
width:16px;
height:16px;
top: -4px;
right: -4px;
line-height: 13px;
border-radius: 10px;
}
.btn-feedback.newmsg:not(:hover):not(:active){
animation: bounce 3s ease-in-out 0s infinite;
}