mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-05-15 02:35:54 +00:00

* Add a split button on top of the insert button in multitool viewer. * Add placeholder splitFileButtonCallback method. * Remove unused splitFileButtonContainer element. * Add this binding to setActions for splitFileButtonCallback * Add test log for adding separators. * Add test log for adding separators. * Remove test logs and add visual indicators to separators instead. * Add splitting functionality to multi-tools. * Prevent trying to split from index 0. * Hide the split button for the first page to avoid confusion. * Change the class name 'cutBefore' to 'split-before' to fall mroe in line with already existing classes. * Add dummy methods for splitting and compressing documents. * Remove form submission, begin work on client side splitting. * Add client side document splitting. * Add client side archiving for the split documents. * Fix a bug that adds an empty page to splitted documents due to a sorting error. * Add a 'Split All' button and the relevant functionality. --------- Co-authored-by: kazandaki <ahmetfiratusta@gmail.com> Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
129 lines
2.6 KiB
CSS
129 lines
2.6 KiB
CSS
.pdf-actions_button-container {
|
|
z-index: 2;
|
|
display: flex;
|
|
opacity: 0;
|
|
transition: opacity 0.1s linear;
|
|
}
|
|
|
|
.pdf-actions_container:hover .pdf-actions_button-container {
|
|
opacity: 1;
|
|
}
|
|
|
|
.pdf-actions_button-container>* {
|
|
padding: 0.25rem 0.5rem;
|
|
display: block;
|
|
}
|
|
|
|
.pdf-actions_button-container>*:focus {
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.pdf-actions_button-container .btn {
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.pdf-actions_button-container> :first-child,
|
|
.pdf-actions_container:first-child>.pdf-actions_button-container> :first-child+* {
|
|
border-radius: 12px 0px 0px 12px;
|
|
}
|
|
|
|
.pdf-actions_container svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.pdf-actions_container:nth-child(1) .pdf-actions_move-left-button {
|
|
display: none;
|
|
}
|
|
|
|
.pdf-actions_container:last-child .pdf-actions_move-right-button {
|
|
display: none;
|
|
}
|
|
|
|
/* "insert pdf" buttons that appear on the right when hover */
|
|
.pdf-actions_insert-file-button-container {
|
|
translate: 0 -50%;
|
|
width: 80px;
|
|
height: 100%;
|
|
|
|
z-index: 1;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button-container button .material-symbols-rounded {
|
|
vertical-align: top;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button-container.left button,
|
|
.pdf-actions_insert-file-button-container.right button {
|
|
padding: 0.45rem;
|
|
}
|
|
|
|
.pdf-actions_button-container button .material-symbols-rounded {
|
|
font-size: 1.25rem;
|
|
vertical-align: sub;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button {
|
|
padding: 0;
|
|
vertical-align: sub;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button-container.left {
|
|
left: -20px;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button-container.right {
|
|
right: -20px;
|
|
}
|
|
|
|
html[dir="ltr"] .pdf-actions_insert-file-button-container.right {
|
|
display: none;
|
|
}
|
|
|
|
html[dir="rtl"] .pdf-actions_insert-file-button-container.left {
|
|
display: none;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button-container.left .pdf-actions_insert-file-button {
|
|
left: 0;
|
|
translate: 0 -50%;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button-container.right .pdf-actions_insert-file-button {
|
|
right: 0;
|
|
translate: 0 -50%;
|
|
}
|
|
|
|
html[dir="ltr"] .pdf-actions_container:last-child>.pdf-actions_insert-file-button-container.right {
|
|
display: block;
|
|
}
|
|
|
|
html[dir="rtl"] .pdf-actions_container:last-child>.pdf-actions_insert-file-button-container.left {
|
|
display: block;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button-container:hover {
|
|
opacity: 1;
|
|
transition: opacity 0.05s;
|
|
}
|
|
|
|
.pdf-actions_insert-file-button {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 50%;
|
|
translate: 50% -50%;
|
|
aspect-ratio: 1;
|
|
border-radius: 100px;
|
|
}
|
|
|
|
.pdf-actions_split-file-button {
|
|
position: absolute;
|
|
top: 25%;
|
|
right: 50%;
|
|
translate: 0 -50%;
|
|
aspect-ratio: 1;
|
|
border-radius: 100px;
|
|
}
|