mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
75d0593198
- A text can be cased (capitals, lower case, small caps), placed at the top, middle or foot of its frame, outlined, given a hard shadow or a marker band, bent on an arc or round a circle, filled with a gallery photo or left hollow, and shrunk to fit its frame. Every effect prints as vector: copies and strokes for HTML type, textPath and a clip over an <image> for SVG. - Fitting is solved when the text is edited, in the Studio and in the edit engine, and stored; the chosen size is kept as the ceiling. - Text sizes reach 400 pt and tracking 1.5 em. - The Elements panel opens on a Text tab: the plain styles and 24 lockups (titles, badges and stamps, chapter marks, quotes, captions, places), each drawn with the book's own title and placed as one group. - The assistant sets every effect through style and add, places a lockup with add_lockup, reads the effects in describe_book_page and gets two new findings (curve_overflow, effect_heavy) beside photo-fill and band checks. - Book format revision 6.
86 lines
2.0 KiB
CSS
86 lines
2.0 KiB
CSS
/* Text effects in the inspector and the Text styles shelf (StudioTextEffects.tsx,
|
|
StudioTextStyles.tsx). Kept beside studio.css, which is at its size ceiling. */
|
|
|
|
/* One effect: its switch, then its settings indented under it while it is on. */
|
|
.trek-dash .st-fx-group + .st-fx-group {
|
|
border-top: 1px solid var(--line);
|
|
margin-top: 4px;
|
|
padding-top: 4px;
|
|
}
|
|
.trek-dash .st-fx-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 4px 0 10px;
|
|
}
|
|
.trek-dash .st-fx-hint {
|
|
padding: 4px 0 6px;
|
|
}
|
|
|
|
/* The photos the letters can be filled with: the content panel's thumbnails, smaller. */
|
|
.trek-dash .st-fx-photos {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 5px;
|
|
}
|
|
.trek-dash .st-fx-photo {
|
|
aspect-ratio: 1;
|
|
min-width: 0;
|
|
border-radius: 7px;
|
|
overflow: hidden;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--line);
|
|
transition:
|
|
box-shadow 0.14s,
|
|
transform 0.14s ease-out;
|
|
}
|
|
.trek-dash .st-fx-photo:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
.trek-dash .st-fx-photo.is-on {
|
|
box-shadow: 0 0 0 2px var(--accent);
|
|
}
|
|
.trek-dash .st-fx-photo img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
/* The Text styles shelf: each lockup drawn as it will print, on paper. */
|
|
.trek-dash .st-lockups {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 6px;
|
|
}
|
|
.trek-dash .st-lockup {
|
|
position: relative;
|
|
min-width: 0;
|
|
aspect-ratio: 4 / 3;
|
|
border-radius: 11px;
|
|
overflow: hidden;
|
|
/* Paper, not app chrome: the lockup is shown on the page it will be printed on. */
|
|
background: white;
|
|
border: 1px solid var(--line);
|
|
transition:
|
|
transform 0.14s ease-out,
|
|
box-shadow 0.14s,
|
|
border-color 0.16s;
|
|
}
|
|
.trek-dash .st-lockup:hover {
|
|
transform: translateY(-1px);
|
|
border-color: var(--line-2);
|
|
box-shadow: var(--sh-md);
|
|
}
|
|
.trek-dash .st-lockup:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
.trek-dash .st-lockup-art {
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
inset-inline-start: 0;
|
|
transform-origin: 0 0;
|
|
pointer-events: none;
|
|
}
|