clock/src/components/RollClock.css
ysm d2a9a94d3b 为翻页和滚动时钟独立添加12/24小时制切换
- FlipClock组件独立实现12/24H切换功能
- RollClock组件独立实现12/24H切换功能
- 分别使用独立的CSS样式(flip-format-toggle/roll-format-toggle)
- 各组件状态独立,互不干扰

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 00:17:32 +08:00

90 lines
1.5 KiB
CSS

.roll-clock-outer {
display: flex;
flex-direction: row;
align-items: center;
gap: 0;
}
.roll-clock-side-panel {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
gap: 4px;
margin-right: 4px;
}
.roll-clock-period {
font-family: Arial, sans-serif;
font-weight: 600;
color: #fff;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
line-height: 1;
}
.roll-format-toggle {
padding: 4px 8px;
font-size: 12px;
font-weight: 500;
color: #888;
background-color: rgba(255, 255, 255, 0.05);
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
}
.roll-format-toggle:hover {
color: #fff;
background-color: rgba(255, 255, 255, 0.15);
}
.roll-clock-wrapper {
display: flex;
flex-direction: row;
align-items: center;
}
.roll-clock-container {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.roll-clock-digit-group {
display: flex;
flex-direction: row;
gap: 4px;
}
.roll-clock-separator {
font-weight: bold;
color: #666666;
line-height: 1;
}
.roll-clock-button {
background-color: rgba(255, 255, 255, 0.2);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
}
.roll-clock-button:hover {
background-color: rgba(255, 255, 255, 0.3);
}
.roll-clock-button:active {
background-color: rgba(255, 255, 255, 0.15);
}
.roll-clock-button-text {
color: #ffffff;
font-weight: bold;
line-height: 1;
}