diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-01-03 11:01:35 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-01-03 11:01:35 +0200 |
| commit | 6e5321a779b533e8d4949181eecd1b9cf1f0973f (patch) | |
| tree | da492d90ecd02c27a6e2f3e244f05e295bdfa0d4 /src | |
| parent | 99d1890d563fd0bec737f1b95bccd515b5b27536 (diff) | |
Fixed terminal border margin to be consistent across all resolutions
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/TerminalBorder.astro | 2 | ||||
| -rw-r--r-- | src/styles/terminal.css | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/components/TerminalBorder.astro b/src/components/TerminalBorder.astro index 230dc05..10b973e 100644 --- a/src/components/TerminalBorder.astro +++ b/src/components/TerminalBorder.astro @@ -5,7 +5,7 @@ interface Props { margin?: string; } -const { header = "", footer = "", margin = "-1px" } = Astro.props; +const { header = "", footer = "", margin = "-0.1vw" } = Astro.props; --- <div class="section" style={`margin: ${margin};`}> diff --git a/src/styles/terminal.css b/src/styles/terminal.css index d195f4d..5e2b354 100644 --- a/src/styles/terminal.css +++ b/src/styles/terminal.css @@ -34,12 +34,9 @@ main { left: 50%; grid-template-columns: minmax(200px, 1fr); transform: translate(-50%, -50%); - border: 1px; + border: 0.2vw; border-style: solid; background: var(--background); - /* padding: 1.75rem; */ - /* width: 55rem; */ - /* height: 28rem; */ padding: 2.2svw; width: 68.75svw; height: 35svw; @@ -47,7 +44,6 @@ main { max-height: 80%; overflow: hidden; font-size: 1.125svw; - /* font-size: 0.9rem; */ font-weight: 300; } |
