diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-03-17 03:04:36 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-07 12:32:37 +1000 |
| commit | c51ff4e755f009ca0bc8e935a92c04e583c4ee8a (patch) | |
| tree | 0a9a311c5404a96495df1047e613dc3aea3d0f15 /Pages/ViewMedia.razor.css | |
Initial commit
Diffstat (limited to 'Pages/ViewMedia.razor.css')
| -rw-r--r-- | Pages/ViewMedia.razor.css | 222 |
1 files changed, 222 insertions, 0 deletions
diff --git a/Pages/ViewMedia.razor.css b/Pages/ViewMedia.razor.css new file mode 100644 index 0000000..1a856d3 --- /dev/null +++ b/Pages/ViewMedia.razor.css @@ -0,0 +1,222 @@ +div#vcontainer { + align-items: start; + display: flex; + flex-direction: column; + height: 100%; + overflow: hidden; + width: 100%; +} + +div#hcontainer { + align-items: start; + display: flex; + flex-direction: row; + height: 100%; + overflow: hidden; + width: 100%; +} + +div#image-container { + box-sizing: border-box; + flex: 1 0 0; + height: 100%; + overflow: auto; + padding: var(--size-default-gap); + width: 100%; +} + +@media (hover: none) and (pointer: coarse) { + div#image-container { + padding: 0 !important; + } +} + +div#image-container > img { + display: block; + left: 50%; + max-height: 100%; + max-width: 100%; + object-fit: contain; + position: relative; + top: 50%; + transform: translate(-50%, -50%); +} + +div#metadata-show-button { + display: flex; + flex-direction: column; + height: 100%; + justify-content: center; + user-select: none; + width: 20px; +} + +div#metadata-show-button > a::before { + content: "\25B6"; +} + +div#hcontainer.hide-metadata > div#metadata-show-button > a::before { + content: "\25C0" !important; +} + +@media (hover: none) and (pointer: coarse) { + div#metadata-show-button { + display: none !important; + } +} + +div#metadata-show-button > a { + /* TODO: Use colours from global.css */ + background: #333; + border-radius: 10px 0 0 10px; + color: #fff; + display: block; + padding: 15px 0 15px 0; + text-align: center; +} + +div#metadata-show-button > a:hover { + filter: brightness(1.5); +} + +div#metadata-show-button > a:active { + background: #fff; +} + +div#metadata { + background: #333; + box-shadow: rgba(0, 0, 0, 0.25) -10px 0px 10px; + box-sizing: border-box; + display: flex; + flex-direction: column; + flex: 0 0 auto; + height: 100%; + margin-left: auto; + padding: 30px; + transition: margin-right 0.1s linear; + width: 700px; + z-index: 90; +} + +@media (hover: hover) and (pointer: fine) { + div#hcontainer.hide-metadata > div#metadata { + box-shadow: none; + margin-right: -700px; + } +} + +@media (hover: none) and (pointer: coarse) { + [class^="mobile-pane-"] { + width: 100% !important; + } + + [class^="mobile-pane-"]:not(.visible) { + display: none !important; + } +} + +div#button-container { + margin-top: auto; +} + +@media (hover: none) and (pointer: coarse) { + div#button-container button { + font-size: 8pt; + } +} + +div#metadata-container { + overflow-x: hidden; + overflow-y: auto; +} + +table#edit-metadata { + border-collapse: collapse; + width: 100%; +} + +table#edit-metadata tr:first-child { + vertical-align: middle; +} + +table#edit-metadata tr:last-child { + vertical-align: top; +} + +table#edit-metadata td:last-child { + width: 100%; +} + +table#edit-metadata td > input { + width: 100%; + margin: 0; +} + +table#edit-metadata td > textarea { + margin: 0; + resize: none; + width: 100%; +} + +table#uploaded-files th { + font-size: 8pt; +} + +table#uploaded-files td { + font-family: 'Lucida Console'; + font-size: 7pt; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +@media (hover: none) and (pointer: coarse) { + table#uploaded-files th, + table#uploaded-files td { + font-size: 6pt; + } +} + +table#uploaded-files td:nth-child(4) { + max-width: 170px; +} + +table#uploaded-files td.verified { + color: var(--col-checksum-verified-pri); +} + +p.heading { + margin-top: 30px; +} + +p.newlines { + white-space: pre-line; +} + +div#bottom-bar { + /* TODO: Use colours from global.css */ + align-items: center; + background: #141414; + box-shadow: rgba(0, 0, 0, 0.25) 0px -5px 5px; + display: none; + flex-direction: row; + width: 100%; +} + +@media (hover: none) and (pointer: coarse) { + div#bottom-bar { + display: flex; + } +} + +div#bottom-bar > img { + color: white; + margin: auto; + padding: 10px; +} + +div#bottom-bar > img:active { + /* TODO: Use colours from global.css */ + background: white; + color: #141414; +} |
