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

179 lines
3.7 KiB
SCSS

.bd-settings {
position: absolute;
top: 22px;
left: 0;
bottom: 0;
z-index: 3000;
width: 310px;
transform: translateX(-100%) translateY(-100%);
opacity: 0;
transition: all .4s ease-in-out;
pointer-events: none;
&.bd-active {
width: 900px;
transform: none;
opacity: 1;
}
.bd-settingsX {
position: absolute;
top: 18px;
left: 255px;
border: 2px solid #6e6e6e;
border-radius: 50%;
width: 25px;
height: 25px;
justify-content: center;
display: flex;
align-items: center;
cursor: pointer;
.platform-darwin & { // sass-lint:disable-line class-name-format
top: 43px;
}
.bd-xText {
color: #72767d;
position: absolute;
top: 32px;
font-weight: 600;
font-size: 13px;
}
.bd-materialDesignIcon {
justify-content: center;
display: flex;
fill: #72767d;
}
&:hover {
background-color: hsla(218, 5%, 47%, .3);
.bd-materialDesignIcon {
fill: #fff;
}
}
}
.bd-info {
display: flex;
align-items: flex-end;
overflow: hidden;
padding: 0 25px;
margin: 10px 0;
.bd-vtext {
color: #414245;
font-weight: 700;
font-size: 12px;
flex-grow: 1;
height: 20px;
cursor: default;
user-select: none;
}
.bd-materialButton {
cursor: pointer;
&:hover {
.bd-materialDesignIcon {
fill: #fff;
}
}
}
.bd-materialDesignIcon {
fill: #414245;
&:hover {
fill: #fff;
}
}
}
.bd-sidebarView {
&::after {
content: '';
height: 100%;
width: 310px;
background-color: #202225;
top: 100%;
display: block;
position: absolute;
}
.bd-sidebarRegion {
.bd-scroller {
padding-top: 0;
}
}
.bd-contentRegion {
width: 590px;
}
&.bd-active {
.bd-contentRegion {
transition: transform .4s ease-in-out, opacity .2s ease;
transform: none;
opacity: 1;
}
}
&.bd-stop {
.bd-sidebarRegion {
z-index: 3004;
}
.bd-contentRegion {
z-index: 3003;
}
}
}
.platform-darwin & { // sass-lint:disable-line class-name-format
top: 0;
.bd-sidebarView {
.bd-sidebarRegion {
padding-top: 22px;
}
}
}
.platform-linux & { // sass-lint:disable-line class-name-format
top: 0;
}
&:not(.bd-active) > .bd-sidebarView.bd-active, // sass-lint:disable-line force-element-nesting
&.bd-settingsOut .bd-sidebarView.bd-active { // sass-lint:disable-line force-element-nesting
.bd-contentRegion {
transform: translate(-600px, 0%);
opacity: 0;
width: 590px;
}
}
&:not(.bd-active) {
.bd-sidebarView {
&.bd-active {
.bd-contentRegion {
transform: translate(-600px, 100%);
}
}
}
}
}
.bd-sidebar {
.bd-settingsButton {
position: absolute;
top: 0;
.platform-darwin & { // sass-lint:disable-line class-name-format
top: 22px;
}
}
}