BetterDiscordApp-v2/client/src/styles/partials/bdsettings/button.scss

79 lines
1.6 KiB
SCSS
Raw Normal View History

.bd-settings-button {
position: absolute;
z-index: 1;
top: 22px;
width: 70px;
height: 48px;
left: 0;
background: #202225;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 2px 0 rgba(0, 0, 0, 0.06);
opacity: 1;
2018-02-08 21:15:18 +01:00
.platform-darwin & {
top: 27px;
}
2018-02-14 21:02:12 +01:00
.platform-linux & {
top: 0;
}
.bd-settings-button-btn {
background-image: $logoSmallBw;
background-size: 50% 50%;
background-repeat: no-repeat;
background-position: center;
width: 100%;
height: 100%;
z-index: 3001;
cursor: pointer;
filter: grayscale(100%);
opacity: 0.5;
transition: all 0.4s ease-in-out;
2018-01-25 12:03:12 +01:00
&:not(.bd-loading):hover {
filter: none;
opacity: 1;
}
2018-01-25 12:03:12 +01:00
&.bd-loading {
animation: bd-settings-button-pulse 1.5s infinite;
}
2018-02-14 21:02:12 +01:00
&.bd-updates {
filter: hue-rotate(250deg) !important;
opacity: 1 !important;
}
}
2018-02-04 13:00:08 +01:00
&.bd-active {
background: transparent;
opacity: 1;
box-shadow: none;
z-index: 3001;
.bd-settings-button-btn {
background-image: $logoBigBw;
filter: none;
opacity: 1;
width: 130px;
height: 80px;
background-size: 100% 100%;
margin-left: 20px;
cursor: default;
}
}
}
2018-01-25 10:01:20 +01:00
2018-01-25 12:03:12 +01:00
@keyframes bd-settings-button-pulse {
0% {
filter: grayscale(100%);
}
50% {
filter: grayscale(0%);
opacity: 1;
}
100% {
filter: grayscale(100%);
}
2018-02-08 21:15:18 +01:00
}