- Stylelint: - re-enable `declaration-property-value-keyword-no-deprecated` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions - SCSS: - replace deprecated `word-break: break-word` usage with `overflow-wrap: anywhere` in the affected frontend stylesheets - Validation: - `just ui stylelint`
360 lines
6.6 KiB
SCSS
360 lines
6.6 KiB
SCSS
@use '../../../../shared/styles/panel-shared' as panel;
|
|
|
|
.font-upload-dialog {
|
|
width: 700px;
|
|
max-width: 700px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
@media (width <= 768px) {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.panel-header {
|
|
@include panel.panel-header;
|
|
|
|
border-bottom: none;
|
|
}
|
|
|
|
.upload-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
padding: 1.75rem;
|
|
background: var(--card-background);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 0 0 10px 10px;
|
|
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
|
|
|
|
@media (width <= 480px) {
|
|
padding: 1rem;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
.file-upload-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.625rem 0.875rem;
|
|
background: var(--overlay-background);
|
|
border-radius: 6px;
|
|
|
|
.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
|
|
i {
|
|
color: var(--primary-color);
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (width <= 480px) {
|
|
padding: 0.5rem 0.625rem;
|
|
|
|
.section-title {
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
padding: 1.5rem 1rem;
|
|
|
|
.empty-icon-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 80px;
|
|
height: 80px;
|
|
background: var(--overlay-background);
|
|
border-radius: 50%;
|
|
margin-bottom: 1rem;
|
|
border: 3px dashed var(--border-color);
|
|
|
|
.empty-icon {
|
|
font-size: 2.5rem;
|
|
color: var(--text-secondary-color);
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.empty-title {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.empty-description {
|
|
margin: 0;
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary-color);
|
|
max-width: 450px;
|
|
line-height: 1.5;
|
|
|
|
strong {
|
|
color: var(--text-color);
|
|
}
|
|
}
|
|
|
|
@media (width <= 480px) {
|
|
padding: 1.5rem 0.75rem;
|
|
min-height: 180px;
|
|
|
|
.empty-icon-wrapper {
|
|
width: 70px;
|
|
height: 70px;
|
|
margin-bottom: 0.75rem;
|
|
|
|
.empty-icon {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
.empty-title {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.empty-description {
|
|
font-size: 0.8rem;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ==================== Upload Zone ====================
|
|
.upload-zone {
|
|
padding: 2rem;
|
|
text-align: center;
|
|
border: 2px dashed var(--border-color);
|
|
border-radius: 8px;
|
|
background: var(--ground-background);
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
|
|
&:hover:not(.disabled) {
|
|
border-color: var(--primary-color);
|
|
background: color-mix(
|
|
in srgb,
|
|
var(--primary-color) 3%,
|
|
var(--ground-background)
|
|
);
|
|
}
|
|
|
|
&.drag-over {
|
|
border-color: var(--primary-color);
|
|
background: color-mix(
|
|
in srgb,
|
|
var(--primary-color) 8%,
|
|
var(--ground-background)
|
|
);
|
|
|
|
.empty-icon-wrapper {
|
|
border-color: var(--primary-color);
|
|
|
|
.empty-icon {
|
|
color: var(--primary-color);
|
|
transform: scale(1.1);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
// ==================== File Selected ====================
|
|
.file-selected {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.file-info-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--overlay-background);
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
|
|
i {
|
|
font-size: 2rem;
|
|
color: var(--primary-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.file-details {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
|
|
.file-name {
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
font-size: 0.9375rem;
|
|
overflow-wrap: anywhere;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.file-meta {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.preview-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
|
|
.preview-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary-color);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.025em;
|
|
|
|
i {
|
|
font-size: 0.75rem;
|
|
color: var(--primary-color);
|
|
}
|
|
}
|
|
|
|
.font-preview {
|
|
padding: 1.5rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--overlay-background);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
.preview-paragraph {
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
line-height: 1.7;
|
|
margin: 0;
|
|
text-align: justify;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.preview-paragraph-small {
|
|
color: var(--text-color);
|
|
font-size: 0.875rem;
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
text-align: justify;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.preview-characters {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem;
|
|
padding-top: 0.75rem;
|
|
margin-top: 0.5rem;
|
|
border-top: 1px solid var(--border-color);
|
|
|
|
span {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary-color);
|
|
letter-spacing: 0.025em;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.setting-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
padding: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.setting-info {
|
|
width: 100%;
|
|
|
|
.setting-label {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.setting-description {
|
|
color: var(--text-secondary-color);
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.setting-control {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
width: 100%;
|
|
|
|
.font-name-input {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
// ==================== Dialog Footer ====================
|
|
.dialog-footer {
|
|
@include panel.dialog-footer-end;
|
|
|
|
border-top: 1px solid var(--border-color);
|
|
border-left: none;
|
|
border-right: none;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
}
|