Skip to content

Commit

Permalink
chore(frontend): use SASS rules & improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Data5tream committed Apr 6, 2023
1 parent 974c00a commit 1e494d6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 12 deletions.
17 changes: 11 additions & 6 deletions frontend/src/lib/components/PageFooter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
</footer>

<style>
<style lang="scss">
footer {
width: 100%;
padding: 16px 0 8px;
Expand All @@ -19,11 +19,16 @@
font-size: 16px;
}
a, a:visited {
color: var(--c-white);
}
a:hover, a:active {
a {
&,
&:visited {
color: var(--c-white);
}
&:hover,
&:active {
background: var(--c-white);
color: var(--c-black);
color: var(--c-black);
}
}
</style>
22 changes: 21 additions & 1 deletion frontend/src/lib/components/StatusEntry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,31 @@
</div>
</div>

<style>
<style lang="scss">
.watchpoint {
position: relative;
flex: 1 0 0;
border: 1px solid var(--c-black);
min-width: 300px;
&:after {
content: '';
display: block;
position: absolute;
bottom: 0;
right: 0;
border: 2px solid var(--c-black);
border-top: 0;
border-left: 0;
width: 33.3334%;
height: 25%;
transition: all 0.3s;
}
&:hover:after {
width: 50%;
height: 40%;
}
}
h4 {
Expand Down
11 changes: 6 additions & 5 deletions frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</main>
<PageFooter />

<style>
<style lang="scss">
main {
width: 100%;
max-width: 1400px;
Expand All @@ -30,10 +30,11 @@
color: var(--c-white);
padding: 8px 16px 8px 8px;
font-family: monospace;
}
h1:after {
content: '_';
animation: blink 2s infinite;
&:after {
content: '_';
animation: blink 2s infinite;
}
}
.error {
Expand Down

0 comments on commit 1e494d6

Please sign in to comment.