v0.1/styling-and-bug-fixes #38

Merged
lamacchinadesiderante merged 5 commits from v0.1/styling-and-bug-fixes into main 2024-04-25 21:14:47 +00:00
7 changed files with 62 additions and 19 deletions
Showing only changes of commit 775cca3475 - Show all commits

View File

@ -1,9 +1,8 @@
@import 'colors';
@import 'spacing'; @import 'spacing';
@import 'fontsize'; @import 'fontsize';
.messageBox { .messageBox {
border: 1px solid $colors_yellow; border: 1px solid var(--primary);
text-align: center; text-align: center;
padding: $spacing_8; padding: $spacing_8;
border-radius: $spacing_4; border-radius: $spacing_4;

View File

@ -1,10 +1,9 @@
@import 'spacing'; @import 'spacing';
@import 'colors';
@import 'breakpoints'; @import 'breakpoints';
.text { .text {
font-size: 12px; font-size: 12px;
color: $colors_yellow; color: var(--primary);
text-decoration: none; text-decoration: none;
display: none; display: none;
@ -28,7 +27,7 @@
} }
.imgPlaceholder { .imgPlaceholder {
background-color: $colors_yellow_focus; background-color: var(--primary-focus);
} }
.thumbnailContainer { .thumbnailContainer {

View File

@ -6,6 +6,11 @@
align-items: center; align-items: center;
margin-bottom: 16px; margin-bottom: 16px;
input[type="checkbox"]:checked {
background-color: var(--primary);
border-color: var(--primary-focus);
}
@media only screen and (min-width: $tablet) { @media only screen and (min-width: $tablet) {
display: none; display: none;
} }

View File

@ -1,5 +1,4 @@
@import 'spacing'; @import 'spacing';
@import 'colors';
.searchForm { .searchForm {
display: flex; display: flex;
@ -12,19 +11,27 @@
margin-right: $spacing_16; margin-right: $spacing_16;
} }
.query:hover {
border-color: var(--primary-hover);
}
.query:focus {
border-color: var(--primary-hover);
}
.submitBtn{ .submitBtn{
flex: 1; flex: 1;
background-color: $colors_yellow; background-color: var(--primary);
border-color: $colors_yellow; border-color: var(--primary);
color: $colors_yellow_inverse; color: var(--primary-inverse);
} }
.submitBtn:hover { .submitBtn:hover {
background-color: $colors_yellow_hover; background-color: var(--primary-hover);
border-color: $colors_yellow_hover; border-color: var(--primary-hover);
} }
.submitBtn:focus { .submitBtn:focus {
background-color: $colors_yellow_focus; background-color: var(--primary-focus);
border-color: $colors_yellow_focus; border-color: var(--primary-focus);
} }

View File

@ -1,5 +0,0 @@
// primaries
$colors_yellow: #fdd835;
$colors_yellow_hover: #fbc02d;
$colors_yellow_focus: rgba(253, 216, 53, 0.125);
$colors_yellow_inverse: rgba(0, 0, 0, 0.75);

37
src/styles/_theme.scss Normal file
View File

@ -0,0 +1,37 @@
/* light scheme (Default) */
/* Can be forced with data-theme="light" */
[data-theme="light"],
:root:not([data-theme="dark"]) {
--primary: #d81b60;
--primary-hover: #e91e63;
--primary-focus: rgba(216, 27, 96, 0.25);
--primary-inverse: #FFF;
}
/* Pink Dark scheme (Auto) */
/* Automatically enabled if user has Dark mode enabled */
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme]) {
--primary: #fdd835;
--primary-hover: #fbc02d;
--primary-focus: rgba(253, 216, 53, 0.125);
--primary-inverse: rgba(0, 0, 0, 0.75);
}
}
/* Pink Dark scheme (Forced) */
/* Enabled if forced with data-theme="dark" */
[data-theme="dark"] {
--primary: #fdd835;
--primary-hover: #fbc02d;
--primary-focus: rgba(253, 216, 53, 0.125);
--primary-inverse: rgba(0, 0, 0, 0.75);
}
/* Pink (Common styles) */
:root {
--form-element-active-border-color: var(--primary);
--form-element-focus-color: var(--primary-focus);
--switch-color: var(--primary-inverse);
--switch-checked-background-color: var(--primary);
}

View File

@ -1,3 +1,4 @@
@use "@picocss/pico"; @use "@picocss/pico";
@import "./font" @import "./font";
@import "./theme";