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

179 lines
3.7 KiB
SCSS
Raw Normal View History

.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;
2018-08-15 11:42:43 +02:00
&.bd-active {
width: 900px;
transform: none;
opacity: 1;
}
2018-08-15 05:33:42 +02:00
.bd-settingsX {
position: absolute;
2018-02-08 21:15:18 +01:00
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;
2018-08-15 11:42:43 +02:00
.platform-darwin & { // sass-lint:disable-line class-name-format
top: 43px;
2018-02-08 21:15:18 +01:00
}
2018-08-15 04:03:56 +02:00
.bd-xText {
color: #72767d;
position: absolute;
top: 32px;
font-weight: 600;
font-size: 13px;
}
2018-08-15 04:03:56 +02:00
.bd-materialDesignIcon {
2018-02-03 01:17:35 +01:00
justify-content: center;
display: flex;
fill: #72767d;
}
&:hover {
2018-08-15 11:42:43 +02:00
background-color: hsla(218, 5%, 47%, .3);
2018-02-03 01:17:35 +01:00
2018-08-15 04:03:56 +02:00
.bd-materialDesignIcon {
2018-03-29 21:16:06 +02:00
fill: #fff;
2018-02-03 01:17:35 +01:00
}
}
}
.bd-info {
display: flex;
align-items: flex-end;
overflow: hidden;
2018-02-03 06:39:56 +01:00
padding: 0 25px;
2018-02-08 21:15:18 +01:00
margin: 10px 0;
2018-02-02 14:23:02 +01:00
.bd-vtext {
color: #414245;
font-weight: 700;
font-size: 12px;
2018-02-02 14:23:02 +01:00
flex-grow: 1;
height: 20px;
cursor: default;
user-select: none;
}
2018-08-15 04:03:56 +02:00
.bd-materialButton {
2018-02-02 14:23:02 +01:00
cursor: pointer;
&:hover {
2018-08-15 04:03:56 +02:00
.bd-materialDesignIcon {
2018-03-29 21:16:06 +02:00
fill: #fff;
2018-02-02 14:23:02 +01:00
}
}
}
2018-08-15 04:03:56 +02:00
.bd-materialDesignIcon {
2018-02-02 14:23:02 +01:00
fill: #414245;
2018-02-03 01:17:35 +01:00
2018-02-02 14:23:02 +01:00
&:hover {
2018-03-29 21:16:06 +02:00
fill: #fff;
2018-02-02 14:23:02 +01:00
}
}
}
2018-08-15 04:03:56 +02:00
.bd-sidebarView {
&::after {
2018-08-15 11:42:43 +02:00
content: '';
height: 100%;
width: 310px;
background-color: #202225;
top: 100%;
display: block;
position: absolute;
}
2018-08-15 11:42:43 +02:00
.bd-sidebarRegion {
.bd-scroller {
padding-top: 0;
}
}
2018-08-15 04:03:56 +02:00
.bd-contentRegion {
width: 590px;
}
2018-08-15 11:42:43 +02:00
&.bd-active {
2018-08-15 04:03:56 +02:00
.bd-contentRegion {
2018-08-15 11:42:43 +02:00
transition: transform .4s ease-in-out, opacity .2s ease;
transform: none;
opacity: 1;
}
}
2018-08-15 11:42:43 +02:00
&.bd-stop {
.bd-sidebarRegion {
z-index: 3004;
}
.bd-contentRegion {
z-index: 3003;
}
}
}
2018-08-15 11:42:43 +02:00
.platform-darwin & { // sass-lint:disable-line class-name-format
top: 0;
2018-08-15 11:42:43 +02:00
.bd-sidebarView {
.bd-sidebarRegion {
padding-top: 22px;
}
}
}
2018-02-08 21:15:18 +01:00
2018-08-15 11:42:43 +02:00
.platform-linux & { // sass-lint:disable-line class-name-format
2018-02-08 21:15:18 +01:00
top: 0;
}
2018-02-04 13:00:08 +01:00
2018-08-15 11:42:43 +02:00
&: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
2018-08-15 04:03:56 +02:00
.bd-contentRegion {
transform: translate(-600px, 0%);
opacity: 0;
width: 590px;
}
}
2018-08-15 11:42:43 +02:00
&:not(.bd-active) {
.bd-sidebarView {
&.bd-active {
.bd-contentRegion {
transform: translate(-600px, 100%);
}
}
}
}
2018-02-04 13:00:08 +01:00
}
2018-08-15 11:42:43 +02:00
.bd-sidebar {
.bd-settingsButton {
position: absolute;
top: 0;
2018-02-08 21:15:18 +01:00
2018-08-15 11:42:43 +02:00
.platform-darwin & { // sass-lint:disable-line class-name-format
top: 22px;
}
2018-02-08 21:15:18 +01:00
}
2018-02-04 13:00:08 +01:00
}