Fix: SCSS Deprecation Warning

- Replace deprecated `@import` with `@use`
- Move lines around in `_preview.scss`
- Update terminal preview height
- Update terminal preview font
This commit is contained in:
Candifloss 2025-08-20 19:18:58 +05:30
parent 537a7836b6
commit 936e86fa2a
5 changed files with 22 additions and 16 deletions

View File

@ -27,13 +27,13 @@
background: #2d2d2d; background: #2d2d2d;
} }
.preview .terminal-preview { .preview .terminal-preview {
background: #1a1a1a; font-family: "IosevkaTermSlab Nerd Font Mono", "Fira Code", "Courier New", monospace;
border-radius: 8px;
padding: 1.5rem;
font-family: "Fira Code", "Courier New", monospace;
font-size: 14px;
color: #e0e0e0; color: #e0e0e0;
height: 300px; background: #1a1a1a;
font-size: 14px;
height: 4rem;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} }

View File

@ -1,3 +1,5 @@
@use 'vars' as *;
.footer { .footer {
position: fixed; position: fixed;
bottom: 0; bottom: 0;

View File

@ -1,3 +1,5 @@
@use 'vars' as *;
.preview { .preview {
margin-left: $sidebar-width; margin-left: $sidebar-width;
padding: 2rem; padding: 2rem;
@ -6,13 +8,13 @@
background: $bg-light; background: $bg-light;
.terminal-preview { .terminal-preview {
background: $bg-dark; font-family: 'IosevkaTermSlab Nerd Font Mono', 'Fira Code', 'Courier New', monospace;
border-radius: 8px;
padding: 1.5rem;
font-family: 'Fira Code', 'Courier New', monospace;
font-size: 14px;
color: $text-color; color: $text-color;
height: 300px; background: $bg-dark;
font-size: 14px;
height: 4rem;
padding: 1.5rem;
border-radius: 8px;
//width: 100%; //width: 100%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} }

View File

@ -1,3 +1,5 @@
@use 'vars' as *;
.sidebar { .sidebar {
width: $sidebar-width; width: $sidebar-width;
height: calc(100vh - $footer-height); height: calc(100vh - $footer-height);

View File

@ -1,7 +1,7 @@
@import 'vars'; @use 'vars' as *;
@import 'sidebar'; @use 'sidebar';
@import 'preview'; @use 'preview';
@import 'footer'; @use 'footer';
* { * {
margin: 0; margin: 0;