Files
koodo-reader/src/components/dialogs/annotationDialog/annotationDialog.css
T
troyeguo 36b8bf4fbc feat: add annotation feature with customizable brush color and width
- Added new translation keys for "Annotation", "Brush color", and "Brush width" in English and Chinese locale files.
- Implemented AnnotationDialog component for users to select brush color and width for annotations.
- Integrated AnnotationDialog into the Reader component, allowing users to toggle its visibility.
- Updated Redux store to manage the state of the annotation dialog and its visibility.
- Created styles for the annotation dialog to enhance user experience.
2026-07-11 14:16:14 +08:00

88 lines
1.7 KiB
CSS

.annotation-dialog-container {
padding: 12px 16px 16px;
box-sizing: border-box;
}
.annotation-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
}
.annotation-dialog-title {
font-size: 15px;
font-weight: 600;
}
.annotation-dialog-close {
font-size: 18px;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.15s;
}
.annotation-dialog-close:hover {
opacity: 1;
}
.annotation-dialog-section {
margin-bottom: 14px;
}
.annotation-dialog-section:last-child {
margin-bottom: 0;
}
.annotation-dialog-label {
font-size: 13px;
margin-bottom: 8px;
opacity: 0.75;
}
.annotation-color-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 0;
padding: 0;
list-style: none;
}
.annotation-color-item {
width: 26px;
height: 26px;
border-radius: 50%;
cursor: pointer;
box-sizing: border-box;
border: 2px solid transparent;
transition: border-color 0.15s, transform 0.15s;
}
.annotation-color-item:hover {
transform: scale(1.1);
}
.active-annotation-color-item {
border-color: rgba(0, 0, 0, 0.4);
}
.annotation-width-list {
display: flex;
align-items: center;
gap: 14px;
margin: 0;
padding: 0;
list-style: none;
}
.annotation-width-item {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 8px;
cursor: pointer;
box-sizing: border-box;
border: 2px solid transparent;
transition: border-color 0.15s, background-color 0.15s;
}
.annotation-width-item:hover {
background-color: rgba(0, 0, 0, 0.05);
}
.active-annotation-width-item {
border-color: rgba(0, 0, 0, 0.4);
}
.annotation-width-preview {
display: block;
width: 26px;
}