Files
jav-play/entrypoints/popup/style.css

150 lines
2.1 KiB
CSS

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
width: 280px; /* 为新布局增加了宽度 */
padding: 0;
margin: 0;
color: #333;
}
#app {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 20px 15px;
}
header {
margin-bottom: 15px;
}
.logo {
width: 64px;
height: 64px;
margin-bottom: 10px;
}
h1 {
font-size: 22px;
margin: 0 0 8px 0;
}
.description {
font-size: 14px;
color: #666;
margin: 0;
max-width: 240px; /* 确保描述文本可以优雅地换行 */
}
.separator {
width: 100%;
border: none;
border-top: 1px solid #eee;
margin: 0;
}
.settings-container {
width: 100%;
padding: 15px 0;
}
.setting-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
margin-bottom: 15px;
}
.setting-row:last-child {
margin-bottom: 0;
}
footer {
padding-top: 10px;
margin-top: 5px;
}
footer span {
font-size: 13px;
}
footer a {
color: #007bff;
text-decoration: none;
font-size: 13px;
padding: 0 3px;
}
footer a:hover {
text-decoration: underline;
}
/* --- 下拉选择框样式 --- */
.source-select {
padding: 4px 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
background-color: white;
cursor: pointer;
min-width: 100px;
}
.source-select:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
/* --- 开关样式 --- */
.switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
}
input:checked + .slider {
background-color: #007bff;
}
input:checked + .slider:before {
transform: translateX(20px);
}
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}