diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-12 19:34:30 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-12 19:34:30 +0100 |
| commit | cd84d1fbf26a9272b56fec30fa6e1c30bebe7e06 (patch) | |
| tree | 0eff1a2153ab5402b1e45e78f685cf93d78f27b5 /animism-align/frontend/app/views/editor/captions/captions.css | |
| parent | cb47d6a07b857ffc11e5baec07ec9d49439f14e4 (diff) | |
nicer automatic captions
Diffstat (limited to 'animism-align/frontend/app/views/editor/captions/captions.css')
| -rw-r--r-- | animism-align/frontend/app/views/editor/captions/captions.css | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/editor/captions/captions.css b/animism-align/frontend/app/views/editor/captions/captions.css new file mode 100644 index 0000000..23db204 --- /dev/null +++ b/animism-align/frontend/app/views/editor/captions/captions.css @@ -0,0 +1,75 @@ +/* caption entries */ + +.caption-entry { + display: flex; + justify-content: flex-start; + align-items: flex-start; + background: #111; + padding: 0.5rem; + margin-bottom: 0.5rem; + max-width: 800px; + cursor: pointer; + transition: background 0.1s; +} +.caption-entry:hover { + background: #333; +} +.caption-index { + width: 120px; + text-align: right; + margin: 0; + padding: 0 1rem 0 0; +} +.caption-text { + flex: 1; +} +.caption-entry.generated .caption-index, +.caption-entry.generated .caption-text { + color: #888; + font-style: italic; +} + +/* caption form */ + +.caption-form .textarea span { + text-align: right; + padding-right: 1.25rem; +} +.caption-form .textarea textarea { + width: 670px; + height: 70px; +} +.caption-form .buttons { + display: flex; + align-items: center; + margin-bottom: 0.5rem; +} +.caption-form .buttons span { + display: block; + text-align: right; + padding-right: 1.25rem; + width: 128px; +} +.caption-form .buttons button { + margin-right: 0.5rem; +} + +/* gallery captions */ + +.gallery-captions { + margin-bottom: 1rem; +} +.gallery-captions.expanded .caption-entry { + background: #222; +} +.gallery-captions .button-spacer { + display: block; + width: 103px; +} +.gallery-captions.expanded button.expander { + margin-bottom: 1rem; +} +.gallery-captions button.expander { + font-size: 0.75rem; + padding: 0.5rem; +}
\ No newline at end of file |
