Files
testing-tool/sidepanel/index.css
T
雨霖铃 3b9e362bc9 ```
feat(sidepanel): 优化时间戳工具页面布局与响应式样式

新增 datetime-box 和 input-group 容器类,用于优化时间戳转换和日期时间转换功能的
界面结构。调整 input-text、select-box 和 convert-button 的宽度及响应式行为,使其在
移动端设备上能够自适应显示。同时更新 HTML 结构以匹配新的 CSS 类名和布局方式,提升
用户体验与界面可读性。
```
2025-11-14 00:20:35 +08:00

117 lines
1.7 KiB
CSS

/* sidepanel/style.css */
.navbar {
display: flex;
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
padding: 0.5rem;
}
.nav-button {
flex: 1;
padding: 0.5rem 1rem;
background-color: transparent;
border: none;
cursor: pointer;
text-align: center;
transition: background-color 0.2s;
}
.nav-button:hover {
background-color: #e9ecef;
}
.nav-button.active {
background-color: #007bff;
color: white;
}
.close-button {
padding: 0.25rem 0.75rem;
background-color: #dc3545;
color: white;
border: none;
border-radius: 0.25rem;
cursor: pointer;
margin-left: auto;
}
.datetime-box {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
}
@media screen and (max-width: 768px) {
.datetime-box {
flex-direction: column;
align-items: stretch;
}
}
.input-group {
display: flex;
gap: 1rem;
align-items: center;
margin: 0.5rem 0;
min-width: 200px;
}
@media screen and (max-width: 768px) {
.input-group {
min-width: unset;
width: 100%;
}
}
.input-text {
width: 200px;
padding: 0.5rem;
margin: 0.5rem 0;
box-sizing: border-box;
}
@media screen and (max-width: 768px) {
.input-text {
width: 100%;
flex: 1;
}
}
.select-box {
width: 150px;
padding: 0.5rem;
margin: 0.5rem 0;
box-sizing: border-box;
}
.convert-button {
padding: 0.5rem 1rem;
background-color: #28a745;
color: white;
border: none;
border-radius: 0.25rem;
cursor: pointer;
height: 2rem;
width: 4rem;
margin: 0.5rem 0;
align-self: flex-start;
}
@media screen and (max-width: 768px) {
.convert-button {
width: 100%;
}
}
.content {
padding: 1rem;
}
.page {
display: none;
}
.page.active {
display: block;
}