scss styling and remove astro elements
This commit is contained in:
@ -11,30 +11,5 @@ import Motd from '../components/terminal/motd.astro';
|
||||
</Webpage>
|
||||
|
||||
<style lang="scss" is:global>
|
||||
@use "../scss/variables";
|
||||
@use "../scss/terminal";
|
||||
|
||||
::spelling-error {
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
main {
|
||||
@include terminal.formatting;
|
||||
|
||||
width: 100vw;
|
||||
height: calc(99.3vh - variables.$header-Y - variables.$footer-Y);
|
||||
padding: 5px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
input {
|
||||
font-size: 1.2rem;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
width: 90%;
|
||||
/* Pester me when this gets undrafted */
|
||||
caret-shape: block;
|
||||
|
||||
&:disabled { color: white }
|
||||
}
|
||||
</style>
|
@ -0,0 +1,27 @@
|
||||
@use "../variables.scss";
|
||||
|
||||
@mixin styling {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100vw;
|
||||
height: variables.$footer-Y;
|
||||
background-color: var(--body-background-color)
|
||||
|
||||
p { padding: 0 20px 0 20px; }
|
||||
section {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
|
||||
button {
|
||||
height: 100%;
|
||||
padding: 0 20px 0 20px;
|
||||
|
||||
&:hover { background-color: var(--hf-button-hover-color) }
|
||||
}
|
||||
}
|
||||
|
||||
#toggle-term-mode { background-color: rgb(0,50,90) }
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
@use "../variables.scss";
|
||||
|
||||
@mixin styling {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
@ -1,4 +1,5 @@
|
||||
@use "./terminal";
|
||||
@use "../variables.scss";
|
||||
|
||||
@mixin input {
|
||||
font-size: 1.2rem;
|
||||
@ -16,7 +17,7 @@
|
||||
@include terminal.formatting;
|
||||
|
||||
width: 100vw;
|
||||
height: calc(99.3vh - $header-Y - $footer-Y);
|
||||
height: calc(99.3vh - variables.$header-Y - variables.$footer-Y);
|
||||
padding: 5px;
|
||||
overflow-y: auto;
|
||||
|
||||
|
@ -1,13 +1,10 @@
|
||||
@forward "./font.scss";
|
||||
|
||||
@use "./variables.scss";
|
||||
@use "./elements/header.scss";
|
||||
@use "./elements/main.scss";
|
||||
@use "./elements/footer.scss";
|
||||
|
||||
$header-Y: 30px;
|
||||
$footer-Y: 30px;
|
||||
$component-padding: 20px;
|
||||
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
|
||||
|
3
src/scss/variables.scss
Normal file
3
src/scss/variables.scss
Normal file
@ -0,0 +1,3 @@
|
||||
$header-Y: 30px;
|
||||
$footer-Y: 30px;
|
||||
$component-padding: 20px;
|
@ -1,10 +0,0 @@
|
||||
const enum Links {
|
||||
Self = "https://rhpidfyre.io/",
|
||||
Cloud = "https://files.rhpidfyre.io/",
|
||||
Gsm = "https://gsm.rhpidfyre.io/",
|
||||
Git = "https://git.rhpidfyre.io/",
|
||||
RepoGitea = "https://git.rhpidfyre.io/rhpidfyre/rhpidfyre.io/",
|
||||
RepoGithub = "https://github.com/unixtensor/rhpidfyre.io/"
|
||||
}
|
||||
|
||||
export { Links }
|
Reference in New Issue
Block a user