mirror of
https://github.com/fenmirs/ob-extends-gwsc.git
synced 2026-07-22 08:32:06 +00:00
468 lines
No EOL
8.2 KiB
CSS
468 lines
No EOL
8.2 KiB
CSS
.sc-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* View container */
|
|
.sc-view-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Toolbar */
|
|
.sc-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sc-toolbar-btn {
|
|
padding: 4px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
border: none;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.sc-toolbar-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.sc-toolbar-btn.active {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.sc-toolbar-separator {
|
|
width: 1px;
|
|
height: 18px;
|
|
background: var(--background-modifier-border);
|
|
margin: 0 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Form wrapper */
|
|
.sc-form-wrapper {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
/* Preview wrapper */
|
|
.sc-preview-wrapper {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.sc-export-bar {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Keyboard container */
|
|
.sc-keyboard-container {
|
|
flex-shrink: 0;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
}
|
|
|
|
/* Form rows */
|
|
.sc-form-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.sc-form-label {
|
|
min-width: 48px;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
color: var(--text-normal);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sc-form-input {
|
|
flex: 1;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.sc-form-select {
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Lines */
|
|
.sc-form-lines {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.sc-form-line {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 10px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
background: var(--background-secondary);
|
|
}
|
|
|
|
.sc-form-line.collapsed .sc-char-container {
|
|
display: none;
|
|
}
|
|
|
|
.sc-form-line-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.sc-form-line-toggle {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
/* padding: 2px 4px; */
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sc-form-line-toggle svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.sc-form-line-toggle:hover {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.sc-form-line-delete {
|
|
margin-left: auto;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
padding: 0 6px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sc-form-line-delete:hover {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.sc-form-textarea {
|
|
/* flex: 1; */
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
min-height: 35px;
|
|
height: 35px;
|
|
max-height: 140px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
/* Add line button */
|
|
.sc-form-add-line {
|
|
margin-top: 12px;
|
|
padding: 10px;
|
|
background: var(--background-secondary);
|
|
border: 1px dashed var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.sc-form-add-line:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Char container */
|
|
.sc-char-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
min-height: 44px;
|
|
}
|
|
|
|
/* Char card */
|
|
.heti-char-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
min-width: 40px;
|
|
background: var(--background-primary);
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.heti-char-card:hover {
|
|
border-color: var(--interactive-accent);
|
|
background: var(--background-secondary);
|
|
}
|
|
|
|
.heti-char-card.active {
|
|
border-color: var(--interactive-accent);
|
|
background: var(--interactive-accent-hover);
|
|
}
|
|
|
|
.heti-char {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.heti-char-pinyin {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
min-height: 14px;
|
|
}
|
|
|
|
.heti-char-delete {
|
|
position: absolute;
|
|
top: -6px;
|
|
right: -6px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.heti-char-card.hovered .heti-char-delete {
|
|
display: flex;
|
|
}
|
|
|
|
.heti-char-delete:hover {
|
|
background: var(--text-error);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
/* Pinyin keyboard */
|
|
.heti-pinyin-keyboard {
|
|
padding: 8px;
|
|
border: 1px solid #e6eced;
|
|
border-radius: 16px;
|
|
box-shadow: -1px -1px 20px 0px #fbe8e8;
|
|
}
|
|
|
|
.heti-pinyin-preview {
|
|
padding: 10px;
|
|
text-align: center;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: var(--text-normal);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.heti-pinyin-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.heti-pinyin-row-indent {
|
|
padding-left: 44px;
|
|
}
|
|
|
|
.heti-pinyin-label {
|
|
min-width: 40px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.heti-pinyin-btn {
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.heti-pinyin-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.heti-pinyin-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.heti-pinyin-confirm {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.heti-pinyin-confirm:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.heti-pinyin-close {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.heti-pinyin-close:hover {
|
|
background: var(--background-modifier-border);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Rendered poem (preview) */
|
|
.heti {
|
|
max-width: 100%;
|
|
padding: 16px;
|
|
font-family: var(--heti-font, inherit);
|
|
}
|
|
|
|
.heti h2 {
|
|
font-size: calc(var(--heti-font-size, 24px) * 1.5);
|
|
margin: 0 0 0.25em;
|
|
}
|
|
|
|
.poetry-title,
|
|
.ancient-title {
|
|
text-align: center;
|
|
padding-bottom: 0.5em;
|
|
}
|
|
|
|
.heti .heti-x-large {
|
|
font-size: var(--heti-font-size, 20px);
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.heti--ancient .heti-x-large {
|
|
line-height: 2.5;
|
|
}
|
|
|
|
.heti--vertical .heti-x-large {
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.heti .heti-meta {
|
|
font-size: calc(var(--heti-font-size, 24px) * 0.75);
|
|
margin-left: 0.5em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.heti--ancient .heti-meta {
|
|
display: block;
|
|
text-align: center;
|
|
margin-left: 0;
|
|
margin-top: 0.25em;
|
|
}
|
|
|
|
.heti--vertical {
|
|
writing-mode: vertical-rl;
|
|
text-orientation: upright;
|
|
max-height: 80vh;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.heti-vertical-header {
|
|
text-align: center;
|
|
}
|
|
|
|
.heti-vertical-title {
|
|
font-size: calc(var(--heti-font-size, 24px) * 1.5);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.heti-vertical-meta {
|
|
flex-direction: row;
|
|
display: inline-flex;
|
|
gap: 0.5em;
|
|
font-size: calc(var(--heti-font-size, 24px) * 0.75);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.heti-vertical-dynasty {
|
|
writing-mode: sideways-rl;
|
|
}
|
|
|
|
.heti--vertical .heti-line {
|
|
display: block;
|
|
text-indent: 2em;
|
|
margin-left: 1em;
|
|
}
|
|
|
|
.heti--ancient .heti-line {
|
|
display: block;
|
|
text-indent: 2em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.heti--poetry .heti-line {
|
|
display: block;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.heti ruby {
|
|
ruby-align: center;
|
|
}
|
|
|
|
.heti rt {
|
|
font-size: 0.6em;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.heti {
|
|
--heti-char-gap: 0.15em;
|
|
}
|
|
|
|
.heti-char {
|
|
margin-right: var(--heti-char-gap);
|
|
} |