JiraFeedback/styles/annotator.css
2025-01-23 23:04:49 +05:30

220 lines
3.2 KiB
CSS

.canvas-container {
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
}
.annotation-toolbar {
display: flex;
align-items: center;
padding: 10px;
background: #f5f5f5;
border-bottom: 1px solid #ddd;
gap: 10px;
}
.tool-group,
.color-group,
.size-group,
.action-group {
display: flex;
align-items: center;
gap: 5px;
}
.tool-btn,
.action-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
cursor: pointer;
padding: 4px;
}
.tool-btn:hover,
.action-btn:hover {
background: #f0f0f0;
}
.tool-btn.active {
background: #e3f2fd;
border-color: #2196f3;
}
.tool-btn svg,
.action-btn svg {
width: 20px;
height: 20px;
}
#color-picker {
width: 32px;
height: 32px;
padding: 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
#size-slider {
width: 100px;
}
/* Add separator between groups */
.tool-group:not(:last-child)::after {
content: '';
display: block;
width: 1px;
height: 24px;
background: #ddd;
margin: 0 5px;
}
/* Style the done button differently */
#done-btn {
background: #4caf50;
border-color: #43a047;
}
#done-btn svg {
fill: white;
}
#done-btn:hover {
background: #43a047;
}
body {
margin: 0;
padding: 0;
height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: #F4F5F7;
overflow: hidden;
}
#annotation-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
}
#toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: white;
box-shadow: 0 1px 3px rgba(9, 30, 66, 0.13);
z-index: 1000;
}
.tool-btn {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: 1px solid #DFE1E6;
border-radius: 4px;
background: white;
cursor: pointer;
transition: all 0.2s;
padding: 0;
}
.tool-btn:hover {
background: #EBECF0;
}
.tool-btn.active {
background: #DEEBFF;
border-color: #0052CC;
}
.tool-btn svg {
width: 20px;
height: 20px;
color: #172B4D;
}
.tool-options {
display: flex;
align-items: center;
gap: 8px;
padding: 0 8px;
border-left: 1px solid #DFE1E6;
margin-left: 8px;
}
#color-picker {
width: 32px;
height: 32px;
padding: 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
#stroke-width {
width: 100px;
}
.spacer {
flex-grow: 1;
}
.action-btn {
padding: 8px 16px;
border: 1px solid;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
#done-btn {
background: #0052CC;
color: white;
border-color: #0052CC;
}
#done-btn:hover {
background: #0747A6;
}
#cancel-btn {
background: white;
color: #172B4D;
border-color: #DFE1E6;
margin-left: 8px;
}
#cancel-btn:hover {
background: #EBECF0;
}
#canvas-container {
flex-grow: 1;
position: relative;
overflow: auto;
background: #F4F5F7;
}
#canvas {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
cursor: crosshair;
box-shadow: 0 4px 8px rgba(9, 30, 66, 0.25);
}