Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
Width and shit is still weird, but better now
  • Loading branch information
lyssieth committed Jan 5, 2024
1 parent 3524d2e commit a61386c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ button:focus-visible {
color: #213547;
background-color: #ffffff;
}
#questionnaire {
background-color: darken(#ffffff, 5%);
border: 1px solid darken(#ffffff, 5%);
}

a:hover {
color: #747bff;
}
Expand Down
5 changes: 5 additions & 0 deletions src/lib/Controls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,10 @@
background-color: darken(#242424, 10%);
border: 1px solid darken(#242424, 10%);
border-radius: 0.5em 0.5em 0 0;
@media (prefers-color-scheme: light) {
background-color: darken(#f9f9f9, 10%);
border: 1px solid darken(#f9f9f9, 10%);
}
}
</style>
2 changes: 1 addition & 1 deletion src/lib/Question.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</label>
</li>

<style>
<style lang="scss">
.question {
margin-bottom: 1em;
}
Expand Down
6 changes: 5 additions & 1 deletion src/lib/QuestionTitle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<span class="question-text"><slot /></span>
{/if}

<style>
<style lang="scss">
.question-text {
display: block;
font-weight: bold;
Expand All @@ -24,5 +24,9 @@
rgba(255, 255, 255, 0.87) 50%,
rgba(0, 255, 0, 0.87) 50%
);
@media (prefers-color-scheme: light) {
color: color-mix(in lab, #213547 50%, rgba(0, 255, 0, 0.87) 50%);
}
}
</style>
4 changes: 4 additions & 0 deletions src/lib/ScrollButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
padding: 0.5em;
background-color: #3c3c3c;
@media (prefers-color-scheme: light) {
background-color: #f9f9f9;
}
// if it's less than 600px wide, make it smaller
@media (max-width: 600px) {
padding: 0.25em;
Expand Down
4 changes: 4 additions & 0 deletions src/lib/SectionTitle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
rgba(255, 255, 255, 0.87) 50%,
rgba(0, 255, 0, 0.87) 50%
);
@media (prefers-color-scheme: light) {
color: color-mix(in lab, #213547 50%, rgba(0, 255, 0, 0.87) 50%);
}
}
</style>

0 comments on commit a61386c

Please sign in to comment.