prinvest_mate / web_assets /stylesheet /custom-components.css
Keldos
BREAKING (refactor): 完全重构整理css和js
9186425
raw
history blame
5.83 kB
/* user-info */
#user-info.block {
white-space: nowrap;
position: absolute; left: 8em; top: .8em;
z-index: var(--layer-2);
box-shadow: var(--block-shadow);
border: none!important; border-radius: var(--block-label-radius);
background: var(--color-accent);
padding: var(--block-label-padding);
font-size: var(--block-label-text-size); line-height: var(--line-sm);
width: auto; max-height: 30px!important;
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
#user-info.block .wrap {
opacity: 0;
}
#user-info p {
color: white;
font-weight: var(--block-label-text-weight);
}
#user-info.info-transparent {
opacity: 0;
transition: opacity 1s ease-in-out;
}
/* updater */
#toast-update {
position: absolute;
display: flex;
top: -500px;
width: 100%;
justify-content: center;
z-index: var(--layer-top);
transition: top 0.3s ease-out;
}
#check-chuanhu-update {
position: absolute;
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
margin: var(--size-6) var(--size-4);
box-shadow: var(--shadow-drop-lg);
border: 1px solid var(--block-label-border-color);
border-radius: var(--container-radius);
background: var(--background-fill-primary);
padding: var(--size-4) var(--size-6);
min-width: 360px;
max-width: 480px;
overflow: hidden;
pointer-events: auto;
}
#version-info-title {
font-size: 1.2em;
font-weight: bold;
text-align: start;
width: 100%;
}
#release-note-wrap {
width: 100%;
max-width: 400px;
height: 120px;
border: solid 1px var(--border-color-primary);
overflow: auto;
padding: 0 8px;
}
#release-note-wrap.hideK {
display: none;
}
.btn-update-group {
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
padding-top: 10px;
}
.btn-update-group.hideK {
display: none;
}
#updating-info {
margin: 16px 0px 24px;
text-align: start;
width: 100%;
}
#usage-display p, #usage-display span {
margin: 0;
font-size: .85em;
color: var(--body-text-color-subdued);
}
.progress-bar {
background-color: var(--input-background-fill);;
margin: .5em 0 !important;
height: 20px;
border-radius: 10px;
overflow: hidden;
}
.progress {
background-color: var(--block-title-background-fill);
height: 100%;
border-radius: 10px;
text-align: right;
transition: width 0.5s ease-in-out;
}
.progress-text {
/* color: white; */
color: var(--color-accent) !important;
font-size: 1em !important;
font-weight: bold;
padding-right: 10px;
line-height: 20px;
}
/* 亮暗色模式切换 */
#apSwitch input[type="checkbox"] {
margin: 0 !important;
}
#apSwitch label.apSwitch {
display: flex;
align-items: center;
cursor: pointer;
color: var(--body-text-color);
font-weight: var(--checkbox-label-text-weight);
font-size: var(--checkbox-label-text-size);
line-height: var(--line-md);
margin: 2px 0 !important;
}
input[type="checkbox"]#apSwitch-checkbox::before {
background: none !important;
content: '🌞';
border: none !important;
box-shadow: none !important;
font-size: 22px;
top: -4.4px;
left: -1px;
}
input:checked[type="checkbox"]#apSwitch-checkbox::before {
content: '🌚';
left: 16px;
}
/* .apSwitch {
top: 2px;
display: inline-block;
height: 22px;
position: relative;
width: 40px;
border-radius: 11px;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.05), inset 0 0 2px 0 rgba(0,0,0,0.08) !important;
}
.apSwitch input {
display: none !important;
}
.apSlider {
background-color: var(--neutral-200);
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
transition: .4s;
font-size: 22px;
border-radius: 11px;
}
.apSlider::before {
transform: scale(0.9);
position: absolute;
transition: .4s;
content: "🌞";
}
input:checked + .apSlider {
background-color: var(--primary-600);
}
input:checked + .apSlider::before {
transform: translateX(18px);
content:"🌚";
} */
/* switch-checkbox */
.switch-checkbox label {
flex-direction: row-reverse;
justify-content: space-between;
}
.switch-checkbox input[type="checkbox"] + span {
margin-left: 0 !important;
}
.switch-checkbox input[type="checkbox"] {
-moz-appearance: none;
appearance: none;
-webkit-appearance: none;
outline: none;
}
.switch-checkbox input[type="checkbox"] {
display: inline-block !important;
position: relative !important;
border: none !important;
outline: none;
width: 40px !important;
height: 22px !important;
border-radius: 11px !important;
background-image: none !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.05), inset 0 0 2px 0 rgba(0,0,0,0.08) !important;
background-image: none !important;
background-color: var(--switch-checkbox-color-light) !important;
transition: .2s ease background-color;
}
.dark .switch-checkbox input[type="checkbox"] {
background-color: var(--switch-checkbox-color-dark) !important;
}
.switch-checkbox input[type="checkbox"]::before {
content: "";
position: absolute;
width: 22px;
height: 22px;
top: 0;
left: 0;
background: #FFFFFF;
border: 0.5px solid rgba(0,0,0,0.02);
box-shadow: 0 0 0 0 rgba(0,0,0,0.15), 0 1px 0 0 rgba(0,0,0,0.05);
transform: scale(0.9);
border-radius: 11px !important;
transition: .4s ease all;
box-shadow: var(--input-shadow);
}
.switch-checkbox input:checked[type="checkbox"] {
background-color: var(--primary-600) !important;
}
.switch-checkbox input:checked[type="checkbox"]::before {
background-color: #fff;
left: 18px;
}