feat: add Bates numbering tool with PDF processing capabilities
- Implemented bates-numbering-page.ts for handling Bates numbering logic. - Created a new HTML page for Bates numbering functionality. - Added style presets and file handling for multiple PDF uploads. - Integrated user interface elements for file selection, style customization, and preview. - Enhanced main.ts to support collapsible categories and compact mode for tool grid. - Updated types for Bates numbering in bates-numbering-type.ts. - Registered the new tool in tools.html and updated routing in vite.config.ts.
This commit is contained in:
@@ -76,6 +76,106 @@ body {
|
||||
border-color: #4f46e5;
|
||||
}
|
||||
|
||||
.category-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
padding: 0.5rem 0;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.category-group:first-child .category-header {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.category-header:hover {
|
||||
color: #818cf8;
|
||||
}
|
||||
|
||||
.category-header:hover .category-chevron {
|
||||
color: #818cf8;
|
||||
}
|
||||
|
||||
.category-tools {
|
||||
overflow: hidden;
|
||||
transition: max-height 300ms ease-in-out;
|
||||
}
|
||||
|
||||
.category-group.collapsed .category-chevron {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.compact-mode .category-tools {
|
||||
grid-template-columns: 1fr !important;
|
||||
gap: 0 !important;
|
||||
}
|
||||
|
||||
.compact-mode .tool-card {
|
||||
flex-direction: row;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
border-top: none;
|
||||
border-bottom: 1px solid #1f2937;
|
||||
background-color: transparent;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.compact-mode .tool-card i {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
min-width: 1.25rem;
|
||||
margin-bottom: 0;
|
||||
margin-right: 0.75rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.compact-mode .tool-card i.ph {
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 0;
|
||||
margin-right: 0.75rem;
|
||||
}
|
||||
|
||||
.compact-mode .tool-card h3 {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.compact-mode .tool-card p {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.compact-mode .tool-card:hover {
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
background-color: #1f2937;
|
||||
border-color: #1f2937;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.compact-mode .category-tools {
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.compact-mode .category-tools {
|
||||
grid-template-columns: repeat(3, 1fr) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
transition:
|
||||
background-color 0.2s ease-in-out,
|
||||
@@ -116,7 +216,7 @@ input[type='file']::file-selector-button {
|
||||
border: 2px dashed #4f46e5;
|
||||
}
|
||||
|
||||
#embed-pdf-container>div {
|
||||
#embed-pdf-container > div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -126,7 +226,7 @@ input[type='file']::file-selector-button {
|
||||
}
|
||||
|
||||
.page-thumbnail,
|
||||
#file-list>li {
|
||||
#file-list > li {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
@@ -264,8 +364,6 @@ footer a {
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.section-divider {
|
||||
height: 1px;
|
||||
background: linear-gradient(to right, transparent, #4d44f7, transparent);
|
||||
@@ -501,19 +599,19 @@ footer a {
|
||||
color: rgb(165 180 252);
|
||||
}
|
||||
|
||||
details>summary {
|
||||
details > summary {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
details>summary::-webkit-details-marker {
|
||||
details > summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
details>summary .icon {
|
||||
details > summary .icon {
|
||||
transition: transform 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
details[open]>summary .icon {
|
||||
details[open] > summary .icon {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
@@ -537,7 +635,9 @@ button:disabled,
|
||||
height: 1.5rem;
|
||||
padding: 0 0.25rem;
|
||||
font-size: 0.75rem;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
font-family:
|
||||
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
|
||||
'Courier New', monospace;
|
||||
line-height: 1;
|
||||
color: #e5e7eb;
|
||||
background-color: #374151;
|
||||
@@ -547,7 +647,9 @@ button:disabled,
|
||||
}
|
||||
|
||||
.shortcut-input {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
font-family:
|
||||
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
|
||||
'Courier New', monospace;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
@@ -591,18 +693,22 @@ button:disabled,
|
||||
linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
|
||||
linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
|
||||
mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
|
||||
-webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
|
||||
-webkit-mask-image: radial-gradient(
|
||||
ellipse at center,
|
||||
black 40%,
|
||||
transparent 80%
|
||||
);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Hide spin buttons for number inputs */
|
||||
input[type="number"] {
|
||||
input[type='number'] {
|
||||
appearance: none;
|
||||
-moz-appearance: textfield; /* Firefox */
|
||||
}
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
input[type='number']::-webkit-inner-spin-button,
|
||||
input[type='number']::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none; /* Chrome, Safari, Edge */
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user