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

94 lines
1.8 KiB
SCSS
Raw Normal View History

.bd-settings-button {
position: absolute;
z-index: 1;
top: 22px;
width: 70px;
height: 48px;
left: 0;
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%;
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;
}
}
&.bd-hide-button {
transition: opacity 0.4s ease-out;
opacity: 0;
&.bd-active {
transition-timing-function: ease-in;
}
}
2018-02-04 13:00:08 +01:00
&.bd-active {
opacity: 1;
}
&.bd-active,
&.bd-hide-button {
background: transparent;
box-shadow: none;
.bd-settings-button-btn {
background-image: $logoBigBw;
2018-03-21 23:24:23 +01:00
background-size: 100% 100%;
filter: none;
opacity: 1;
width: 130px;
2018-03-21 23:24:23 +01:00
height: 43px;
margin: 18px 0 17px 25px;
cursor: default;
}
}
&.bd-active,
&.bd-animating {
z-index: 3001;
}
}
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
}