mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
294 lines
5.2 KiB
SCSS
294 lines
5.2 KiB
SCSS
.gui-settings-icon-panel
|
|
{
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 24px;
|
|
z-index: 10000;
|
|
}
|
|
.gui-settings
|
|
{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
transform: translateX(-12px);
|
|
}
|
|
.gui-settings,
|
|
.gui-settings-header .gui-settings-close path,
|
|
.gui-settings svg path
|
|
{
|
|
transition: all 0.2s;
|
|
}
|
|
.gui-settings svg path
|
|
{
|
|
fill: #8884;
|
|
opacity: 0.5;
|
|
transform-origin: center !important;
|
|
}
|
|
.gui-settings:hover
|
|
{
|
|
transform: translateX(0px);
|
|
}
|
|
.gui-settings:hover svg path
|
|
{
|
|
opacity: 1;
|
|
transform: rotate(120deg);
|
|
}
|
|
.gui-settings-panel
|
|
{
|
|
transition: all 0.2s;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: transparent;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 10001;
|
|
display: flex;
|
|
opacity: 0;
|
|
transform: scale(0);
|
|
transform-origin: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.gui-settings-panel.opened
|
|
{
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
.gui-settings-box
|
|
{
|
|
width: 400px;
|
|
height: 90%;
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0px 3px 20px 2px #0004;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.gui-settings-footer,
|
|
.gui-settings-header
|
|
{
|
|
flex-grow: 0;
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.gui-settings-footer
|
|
{
|
|
height: 80px;
|
|
justify-content: center;
|
|
}
|
|
.gui-settings-content
|
|
{
|
|
flex-grow: 1;
|
|
overflow: auto;
|
|
}
|
|
.gui-settings-content ul li
|
|
{
|
|
font-size: 16px;
|
|
margin: 16px 0;
|
|
display: flex;
|
|
}
|
|
.gui-settings-content ul li.indent-0
|
|
{
|
|
margin-left: 16px;
|
|
}
|
|
.gui-settings-content ul li.indent-1
|
|
{
|
|
margin-left: 80px;
|
|
}
|
|
.gui-settings-content ul li.indent-2
|
|
{
|
|
margin-left: 144px;
|
|
}
|
|
.gui-settings-title
|
|
{
|
|
flex-grow: 1;
|
|
font-size: 16px;
|
|
margin: 16px;
|
|
}
|
|
.gui-settings-close
|
|
{
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 16px;
|
|
}
|
|
.gui-settings-header .gui-settings-close
|
|
{
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.gui-settings-header .gui-settings-close:hover path
|
|
{
|
|
fill: $customStyleColor !important;
|
|
}
|
|
.gui-settings-close path
|
|
{
|
|
fill: #222;
|
|
}
|
|
.gui-settings-ok path
|
|
{
|
|
fill: transparent;
|
|
}
|
|
.gui-settings-textbox-container
|
|
{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.gui-settings-textbox-container span
|
|
{
|
|
margin: 0 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
.gui-settings-textbox-container input
|
|
{
|
|
border-radius: 4px;
|
|
border: none;
|
|
height: 100%;
|
|
max-width: 70px;
|
|
padding: 2px 8px;
|
|
background: #8884;
|
|
transition: all 0.2s;
|
|
font-size: 16px;
|
|
}
|
|
.gui-settings-textbox-container input:disabled,
|
|
.gui-settings-textbox-container.disabled span,
|
|
.gui-settings-textbox-container.disabled div
|
|
{
|
|
opacity: 0.5;
|
|
}
|
|
.gui-settings-checkbox-container
|
|
{
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0 16px;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.gui-settings-checkbox-container input
|
|
{
|
|
opacity: 0;
|
|
width: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
.gui-settings-checkbox-container svg
|
|
{
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
margin-right: 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
.gui-settings-checkbox-container svg path
|
|
{
|
|
transform: scale(0.8);
|
|
transform-origin: center;
|
|
}
|
|
.gui-settings-checkbox-container input ~ svg
|
|
{
|
|
background-color: #8884;
|
|
}
|
|
.gui-settings-checkbox-container input:checked ~ svg
|
|
{
|
|
background-color: $customStyleColor;
|
|
}
|
|
.gui-settings-checkbox-container input:checked ~ svg path
|
|
{
|
|
fill: $foreground;
|
|
}
|
|
.gui-settings-checkbox-container input:disabled ~ svg,
|
|
.gui-settings-checkbox-container input:disabled ~ span
|
|
{
|
|
opacity: 0.5;
|
|
}
|
|
button.save
|
|
{
|
|
padding: 8px 32px;
|
|
border: none;
|
|
background: $customStyleColor;
|
|
color: $foreground;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
button.save:focus
|
|
{
|
|
outline: none;
|
|
}
|
|
.gui-settings-footer svg
|
|
{
|
|
width: 0;
|
|
height: 30px;
|
|
margin-left: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
.gui-settings-footer svg path
|
|
{
|
|
fill: $customStyleColor;
|
|
}
|
|
.custom-color-preview
|
|
{
|
|
width: 40px;
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
background: $customStyleColor;
|
|
margin-right: 16px;
|
|
border: 1px solid #8884;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
.predefined-colors
|
|
{
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
opacity: 0;
|
|
background: white;
|
|
width: 168px;
|
|
height: 168px;
|
|
position: absolute;
|
|
box-shadow: 0px 3px 20px 2px #0004;
|
|
border-radius: 4px;
|
|
top: 32px;
|
|
left: -64px;
|
|
transform: scale(0);
|
|
transform-origin: top;
|
|
}
|
|
.predefined-colors.opened
|
|
{
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
.predefined-colors-grid
|
|
{
|
|
display: grid;
|
|
grid-template-columns: auto auto auto auto;
|
|
margin: 4px;
|
|
flex-grow: 1;
|
|
}
|
|
.predefined-colors-grid-block
|
|
{
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 4px;
|
|
justify-self: center;
|
|
align-self: center;
|
|
cursor: pointer;
|
|
}
|
|
input[key]:focus
|
|
{
|
|
outline: none;
|
|
}
|