Add: CSS tweaks
- Add blinking cursor after prompt string - Add thin scrollbar to sidebar
This commit is contained in:
parent
44e91b2eba
commit
b16764daa0
19
css/main.css
19
css/main.css
@ -1,3 +1,4 @@
|
|||||||
|
@charset "UTF-8";
|
||||||
.sidebar {
|
.sidebar {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
height: calc(100vh - 60px);
|
height: calc(100vh - 60px);
|
||||||
@ -8,6 +9,9 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
color: #e0e0e0;
|
color: #e0e0e0;
|
||||||
|
overflow-y: auto;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: #0c7a57 transparent;
|
||||||
}
|
}
|
||||||
.sidebar h2 {
|
.sidebar h2 {
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
@ -19,15 +23,21 @@
|
|||||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes cursor-blink {
|
||||||
|
50% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.preview {
|
.preview {
|
||||||
margin-left: 300px;
|
margin-left: 300px;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
min-height: calc(100vh - 60px);
|
min-height: calc(100vh - 60px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #2d2d2d;
|
background: #2d2d2d;
|
||||||
|
padding-bottom: calc(60px + 2rem);
|
||||||
}
|
}
|
||||||
.preview .terminal-preview {
|
.preview .terminal-preview {
|
||||||
font-family: "IosevkaTermSlab Nerd Font Mono", "Fira Code", "Courier New", monospace;
|
font-family: monospace;
|
||||||
color: #e0e0e0;
|
color: #e0e0e0;
|
||||||
background: #1a1a1a;
|
background: #1a1a1a;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -36,6 +46,13 @@
|
|||||||
border-radius: 8px;
|
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);
|
||||||
}
|
}
|
||||||
|
.preview .terminal-preview::after {
|
||||||
|
content: "█";
|
||||||
|
color: #0c7a57;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 2px;
|
||||||
|
animation: cursor-blink 1s step-start infinite;
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<main class="preview">
|
<main class="preview">
|
||||||
<div class="terminal-preview">
|
<div class="terminal-preview">
|
||||||
<!-- Prompt preview will be rendered here -->
|
<!-- Prompt preview will be rendered here -->
|
||||||
user@host:~/Works/shell_styler$
|
user@host:~/Works/shell_styler$ <!-- temp placeholder -->
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
@use 'vars' as *;
|
@use 'vars' as *;
|
||||||
|
|
||||||
|
@keyframes cursor-blink {
|
||||||
|
50% { opacity: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
margin-left: $sidebar-width;
|
margin-left: $sidebar-width;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
@ -8,7 +12,7 @@
|
|||||||
background: $bg-light;
|
background: $bg-light;
|
||||||
|
|
||||||
.terminal-preview {
|
.terminal-preview {
|
||||||
font-family: 'IosevkaTermSlab Nerd Font Mono', 'Fira Code', 'Courier New', monospace;
|
font-family: monospace;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
background: $bg-dark;
|
background: $bg-dark;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -17,5 +21,13 @@
|
|||||||
border-radius: 8px;
|
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);
|
||||||
|
&::after {
|
||||||
|
content: "█";
|
||||||
|
color: $cursor-color;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 2px;
|
||||||
|
animation: cursor-blink 1s step-start infinite;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
padding-bottom: calc($footer-height + 2rem);
|
||||||
}
|
}
|
@ -10,6 +10,12 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
|
|
||||||
|
// Scrollbar
|
||||||
|
overflow-y: auto;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: $accent-color transparent;
|
||||||
|
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
|
@ -7,6 +7,8 @@ $accent-color: #0c7a57;
|
|||||||
$text-color: #e0e0e0;
|
$text-color: #e0e0e0;
|
||||||
$text-muted: #888;
|
$text-muted: #888;
|
||||||
|
|
||||||
|
$cursor-color: $accent-color;
|
||||||
|
|
||||||
// Sizes
|
// Sizes
|
||||||
$sidebar-width: 300px;
|
$sidebar-width: 300px;
|
||||||
$footer-height: 60px;
|
$footer-height: 60px;
|
Loading…
x
Reference in New Issue
Block a user