mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-03-15 08:13:16 +08:00
修复样式问题
This commit is contained in:
896
xiaomusic/static/default/main.css
vendored
896
xiaomusic/static/default/main.css
vendored
@@ -1,217 +1,217 @@
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f0f0f0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
.index_page {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.player {
|
||||
background-color: #ffffff;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
||||
text-align: center;
|
||||
max-width: 360px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
margin-bottom: 15px;
|
||||
color: #333;
|
||||
display: flex;
|
||||
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
h1 a {
|
||||
margin-left: 10px;
|
||||
font-size: 14px;
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.new-badge {
|
||||
background-color: #ff4757;
|
||||
color: white;
|
||||
border-radius: 12px;
|
||||
padding: 2px 6px;
|
||||
font-size: 12px;
|
||||
margin-left: 5px;
|
||||
display: none;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
margin: 5px 0;
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
select,
|
||||
input[type="range"],
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="number"] {
|
||||
padding: 10px;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 12px;
|
||||
font-size: 14px;
|
||||
transition: border 0.2s ease;
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
select:focus,
|
||||
input[type="text"]:focus {
|
||||
border-color: #007bff;
|
||||
outline: none;
|
||||
}
|
||||
select {
|
||||
overflow: hidden;
|
||||
}
|
||||
button {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 10px 15px;
|
||||
cursor: pointer;
|
||||
margin: 5px;
|
||||
font-size: 16px;
|
||||
transition: background-color 0.3s;
|
||||
position: relative; /* 为tooltip绝对定位做准备 */
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
.tooltip {
|
||||
visibility: hidden;
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 150%; /* 控制tooltip相对按钮的位置 */
|
||||
left: 50%;
|
||||
margin-left: -50px; /* 调整位置以居中显示 Tooltip */
|
||||
width: 80px; /* 设置固定宽度以保证足够的显示空间 */
|
||||
white-space: nowrap; /* 防止换行 */
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
button:hover .tooltip,.option-inline:hover .tooltip,.control-button:hover .tooltip {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
.option-inline{
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
}
|
||||
.option-inline:hover .tooltip {
|
||||
/* 位置调整到左边 */
|
||||
left: -50px; /* 调整位置以居中显示 Tooltip */
|
||||
bottom: 0;
|
||||
}
|
||||
.control-button{
|
||||
position: relative; /* 为tooltip绝对定位做准备 */
|
||||
}
|
||||
.progress {
|
||||
width: 90%;
|
||||
height: 6px;
|
||||
background: #e0e0e0;
|
||||
border-radius: 6px;
|
||||
margin: 15px 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
progress::-webkit-progress-bar {
|
||||
background: #e0e0e0;
|
||||
}
|
||||
|
||||
progress::-moz-progress-bar,
|
||||
progress::-webkit-progress-value {
|
||||
background: #007bff;
|
||||
}
|
||||
|
||||
.current-song {
|
||||
color: #333;
|
||||
margin: 10px 0;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.component {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background-color: #ffffff;
|
||||
padding: 5px 15px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
||||
z-index: 100;
|
||||
width: 300px;
|
||||
}
|
||||
.component input {
|
||||
width: 90%;
|
||||
}
|
||||
.component-button-group {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.component-button-one {
|
||||
display: flex;
|
||||
|
||||
}
|
||||
#warning-component p span {
|
||||
color: #007bff;
|
||||
}
|
||||
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.player-controls {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.play {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f0f0f0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
.index_page {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.player {
|
||||
background-color: #ffffff;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
||||
text-align: center;
|
||||
max-width: 360px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
margin-bottom: 15px;
|
||||
color: #333;
|
||||
display: flex;
|
||||
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
h1 a {
|
||||
margin-left: 10px;
|
||||
font-size: 14px;
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.new-badge {
|
||||
background-color: #ff4757;
|
||||
color: white;
|
||||
border-radius: 12px;
|
||||
padding: 2px 6px;
|
||||
font-size: 12px;
|
||||
margin-left: 5px;
|
||||
display: none;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
margin: 5px 0;
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
select,
|
||||
input[type="range"],
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="number"] {
|
||||
padding: 10px;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 12px;
|
||||
font-size: 14px;
|
||||
transition: border 0.2s ease;
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
select:focus,
|
||||
input[type="text"]:focus {
|
||||
border-color: #007bff;
|
||||
outline: none;
|
||||
}
|
||||
select {
|
||||
overflow: hidden;
|
||||
}
|
||||
button {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 10px 15px;
|
||||
cursor: pointer;
|
||||
margin: 5px;
|
||||
font-size: 16px;
|
||||
transition: background-color 0.3s;
|
||||
position: relative; /* 为tooltip绝对定位做准备 */
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
.tooltip {
|
||||
visibility: hidden;
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 150%; /* 控制tooltip相对按钮的位置 */
|
||||
left: 50%;
|
||||
margin-left: -50px; /* 调整位置以居中显示 Tooltip */
|
||||
width: 80px; /* 设置固定宽度以保证足够的显示空间 */
|
||||
white-space: nowrap; /* 防止换行 */
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
button:hover .tooltip,.option-inline:hover .tooltip,.control-button:hover .tooltip {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
.option-inline{
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
}
|
||||
.option-inline:hover .tooltip {
|
||||
/* 位置调整到左边 */
|
||||
left: -50px; /* 调整位置以居中显示 Tooltip */
|
||||
bottom: 0;
|
||||
}
|
||||
.control-button{
|
||||
position: relative; /* 为tooltip绝对定位做准备 */
|
||||
}
|
||||
.progress {
|
||||
width: 90%;
|
||||
height: 6px;
|
||||
background: #e0e0e0;
|
||||
border-radius: 6px;
|
||||
margin: 15px 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
progress::-webkit-progress-bar {
|
||||
background: #e0e0e0;
|
||||
}
|
||||
|
||||
progress::-moz-progress-bar,
|
||||
progress::-webkit-progress-value {
|
||||
background: #007bff;
|
||||
}
|
||||
|
||||
.current-song {
|
||||
color: #333;
|
||||
margin: 10px 0;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.component {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background-color: #ffffff;
|
||||
padding: 5px 15px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
||||
z-index: 100;
|
||||
width: 300px;
|
||||
}
|
||||
.component input {
|
||||
width: 90%;
|
||||
}
|
||||
.component-button-group {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.component-button-one {
|
||||
display: flex;
|
||||
|
||||
}
|
||||
#warning-component p span {
|
||||
color: #007bff;
|
||||
}
|
||||
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.player-controls {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.play {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
@@ -227,237 +227,237 @@ progress::-webkit-progress-value {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.timer-tooltip {
|
||||
bottom: 50%;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
.favorite.favorite-active .material-icons {
|
||||
color: #ff6347;
|
||||
}
|
||||
#audio {
|
||||
width: 100%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qrcode {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.login-tips {
|
||||
color: red;
|
||||
font-size: 12px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.login-tips a {
|
||||
color: rgb(9, 105, 218);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* setting.html */
|
||||
.rows {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
}
|
||||
|
||||
.rows a {
|
||||
color: rgb(9, 105, 218);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rows a:hover {
|
||||
color: rgb(9, 95, 198);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
textarea {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
width: 90%;
|
||||
max-width: 400px;
|
||||
height: 200px;
|
||||
}
|
||||
.custom-checkbox {
|
||||
display: inline-block;
|
||||
margin: 10px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: middle; /* 确保与标签垂直居中对齐 */
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
display: inline-block;
|
||||
width: 180px;
|
||||
background-color: #fff;
|
||||
border: 0px solid #ccc;
|
||||
border-radius: 3px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
vertical-align: middle; /* 确保与复选框垂直居中对齐 */
|
||||
margin-left: 1px; /* 给复选框和标签之间一些距离,如果需要的话 */
|
||||
padding: 5px 10px;
|
||||
}
|
||||
.debug {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
@media screen and (max-width: 440px) {
|
||||
.player{
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
.mini-button {
|
||||
padding: 0px 0px;
|
||||
margin: 0px;
|
||||
font-size: 14px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.playlist-selector,
|
||||
.device-selector,
|
||||
.version-selector,
|
||||
.song-selector {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.mode-controls {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid #ddd;
|
||||
color: #555;
|
||||
}
|
||||
.icon-item {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.icon-item p {
|
||||
font-size: 12px;
|
||||
margin: 5px 0 0;
|
||||
}
|
||||
.disabled {
|
||||
color: #ccc;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
span,p {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.changelog-button {
|
||||
padding: 0px 0px;
|
||||
margin: 0px;
|
||||
font-size: 14px;
|
||||
margin-left: auto;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.setting-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* fallback */
|
||||
@font-face {
|
||||
font-family: 'Material Icons';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(./materialicons.woff2) format('woff2');
|
||||
}
|
||||
/* fallback */
|
||||
@font-face {
|
||||
font-family: 'Material Icons Outlined';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(./materialiconsoutlined.woff2) format('woff2');
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
font-family: 'Material Icons';
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-feature-settings: 'liga';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.material-icons-outlined {
|
||||
font-family: 'Material Icons Outlined';
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-feature-settings: 'liga';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
|
||||
/* 胶囊开关容器 */
|
||||
.toggle-switch-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.toggle-label {
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 胶囊开关样式 */
|
||||
.toggle-switch {
|
||||
position: relative;
|
||||
width: 40px;
|
||||
height: 22px;
|
||||
background-color: #ccc;
|
||||
border-radius: 11px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.toggle-switch.active {
|
||||
background-color: #007bff;
|
||||
}
|
||||
|
||||
.toggle-slider {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 3px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-color: white;
|
||||
border-radius: 50%;
|
||||
transition: transform 0.3s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.toggle-switch.active .toggle-slider {
|
||||
transform: translateX(18px);
|
||||
}
|
||||
}
|
||||
|
||||
.timer-tooltip {
|
||||
bottom: 50%;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
.favorite.favorite-active .material-icons {
|
||||
color: #ff6347;
|
||||
}
|
||||
#audio {
|
||||
width: 100%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qrcode {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.login-tips {
|
||||
color: red;
|
||||
font-size: 12px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.login-tips a {
|
||||
color: rgb(9, 105, 218);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* setting.html */
|
||||
.rows {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
}
|
||||
|
||||
.rows a {
|
||||
color: rgb(9, 105, 218);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rows a:hover {
|
||||
color: rgb(9, 95, 198);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
textarea {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
width: 90%;
|
||||
max-width: 400px;
|
||||
height: 200px;
|
||||
}
|
||||
.custom-checkbox {
|
||||
display: inline-block;
|
||||
margin: 10px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: middle; /* 确保与标签垂直居中对齐 */
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
display: inline-block;
|
||||
width: 180px;
|
||||
background-color: #fff;
|
||||
border: 0px solid #ccc;
|
||||
border-radius: 3px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
vertical-align: middle; /* 确保与复选框垂直居中对齐 */
|
||||
margin-left: 1px; /* 给复选框和标签之间一些距离,如果需要的话 */
|
||||
padding: 5px 10px;
|
||||
}
|
||||
.debug {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
@media screen and (max-width: 440px) {
|
||||
.player{
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
.mini-button {
|
||||
padding: 0px 0px;
|
||||
margin: 0px;
|
||||
font-size: 14px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.playlist-selector,
|
||||
.device-selector,
|
||||
.version-selector,
|
||||
.song-selector {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.mode-controls {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid #ddd;
|
||||
color: #555;
|
||||
}
|
||||
.icon-item {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.icon-item p {
|
||||
font-size: 12px;
|
||||
margin: 5px 0 0;
|
||||
}
|
||||
.disabled {
|
||||
color: #ccc;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
span,p {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.changelog-button {
|
||||
padding: 0px 0px;
|
||||
margin: 0px;
|
||||
font-size: 14px;
|
||||
margin-left: auto;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.setting-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* fallback */
|
||||
@font-face {
|
||||
font-family: 'Material Icons';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(./materialicons.woff2) format('woff2');
|
||||
}
|
||||
/* fallback */
|
||||
@font-face {
|
||||
font-family: 'Material Icons Outlined';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(./materialiconsoutlined.woff2) format('woff2');
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
font-family: 'Material Icons';
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-feature-settings: 'liga';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.material-icons-outlined {
|
||||
font-family: 'Material Icons Outlined';
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-feature-settings: 'liga';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
|
||||
/* 胶囊开关容器 */
|
||||
.toggle-switch-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.toggle-label {
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 胶囊开关样式 */
|
||||
.toggle-switch {
|
||||
position: relative;
|
||||
width: 40px;
|
||||
height: 22px;
|
||||
background-color: #ccc;
|
||||
border-radius: 11px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.toggle-switch.active {
|
||||
background-color: #007bff;
|
||||
}
|
||||
|
||||
.toggle-slider {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 3px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-color: white;
|
||||
border-radius: 50%;
|
||||
transition: transform 0.3s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.toggle-switch.active .toggle-slider {
|
||||
transform: translateX(18px);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user