gbplugin/popup.css

168 lines
2.2 KiB
CSS

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
width: 320px;
background-color: #f5f5f5;
}
.container {
padding: 16px;
}
.header {
display: flex;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
}
.header img {
width: 32px;
height: 32px;
margin-right: 10px;
}
.header h1 {
margin: 0;
font-size: 18px;
flex-grow: 1;
}
.version {
color: #888;
margin: 0;
font-size: 12px;
}
.settings {
background-color: #fff;
border-radius: 8px;
padding: 16px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.setting-item {
margin-bottom: 16px;
}
.setting-item:last-child {
margin-bottom: 0;
}
.setting-item label {
display: block;
margin-bottom: 6px;
font-weight: bold;
font-size: 14px;
}
.setting-item input[type="text"] {
width: 100%;
padding: 8px;
border-radius: 4px;
border: 1px solid #ddd;
box-sizing: border-box;
}
.toggle {
display: flex;
justify-content: space-between;
align-items: center;
}
.toggle span {
font-size: 14px;
font-weight: bold;
}
.switch {
position: relative;
display: inline-block;
width: 46px;
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: .3s;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .3s;
}
input:checked + .slider {
background-color: #4CAF50;
}
input:focus + .slider {
box-shadow: 0 0 1px #4CAF50;
}
input:checked + .slider:before {
transform: translateX(22px);
}
.slider.round {
border-radius: 24px;
}
.slider.round:before {
border-radius: 50%;
}
.footer {
margin-top: 16px;
text-align: center;
}
button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 16px;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
width: 100%;
transition: background-color 0.2s;
}
button:hover {
background-color: #45a049;
}
.copyright {
margin-top: 10px;
font-size: 12px;
color: #888;
}
.copyright a {
color: #4CAF50;
text-decoration: none;
}
.copyright a:hover {
text-decoration: underline;
}