Skip to content

feat: color changes #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/startpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/startpage.webp
Binary file not shown.
15 changes: 8 additions & 7 deletions assets/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ body {
--bs-light-rgb: 219, 224, 229;
--pagefind-ui-scale: 1;
--pagefind-ui-text: #000;
--link-default: #BA3D12;
--link-hovered: #8F2501;
--link-default: #4c81c1;
--link-hovered: #2e5687;
--link-special: #000000;
--bg-default: #FFFFFF;
--bg-neutral: #EBE9E1;
--bg-accent: #FFD900;
--bg-accent2: #DABA00;
--bg-accent3: #fff284;
--bg-neutral: #d9dff7;
--bg-accent: #d3edf8;
--bg-accent2: #ff6266;
--bg-accent3: #ff6266;
--color-onDark: #FFFFFF;
--color-onLight: #000000;
--color-table-border: #5B5B5B;
--border-radius-s: .4rem;
--border-radius-m: .8rem;
--border-radius-l: 1.2rem;
--border-radius-l: 1.6rem;
--pagefind-ui-border-radius: var(--border-radius-l);
--pagefind-ui-border: #000;
--bs-highlight-bg: var(--bg-accent);
--box-shadow: 0 .4rem 1rem rgba(0,0,0,.25);
}
10 changes: 10 additions & 0 deletions assets/sass/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* sansita-latin-800-normal */
@font-face {
font-family: 'Sansita';
font-style: normal;
font-display: swap;
font-weight: 800;
src: url(@fontsource/sansita/files/sansita-latin-800-normal.woff2) format('woff2'), url(@fontsource/sansita/files/sansita-latin-800-normal.woff) format('woff');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* material-symbols-rounded-latin-400-normal */
@font-face {
font-family: 'Material Symbols Rounded';
Expand Down
4 changes: 2 additions & 2 deletions assets/sass/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
input[type=text], input[type=email], select, textarea {
width: 100%;
margin-bottom: 1.6rem;
border-radius: var(--border-radius-m);
border-radius: var(--border-radius-l);
border-width: .2rem;
border-color: var(--color-onLight);
padding: 1.2rem;
Expand All @@ -29,7 +29,7 @@
background-color: var(--bg-accent);
color: var(--color-onLight);
border: none;
border-radius: var(--border-radius-m);
border-radius: var(--border-radius-l);
transition: background-color .3s ease;
font-weight: 700;

Expand Down
4 changes: 2 additions & 2 deletions assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@import "fonts.scss";
@import "navigation.scss";
@import "sidemenu.scss";
@import "stage.scss";
@import "search.scss";
@import "teaser.scss";
@import "footer.scss";
@import "content.scss";
Expand All @@ -13,4 +13,4 @@
@import "form.scss";
@import "expander.scss";
@import "anchorlink.scss";
@import "print.scss"
@import "print.scss";
6 changes: 5 additions & 1 deletion assets/sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

.o-header {
background-color: var(--bg-default);
z-index: 5;
position: relative;
}

.o-header__wrapper {
Expand Down Expand Up @@ -56,6 +58,7 @@
display: flex;
margin: .6rem;
position: relative;
left: -1.6rem;
text-decoration: none;
border-radius: var(--border-radius-m);

Expand All @@ -66,7 +69,8 @@

img {
height: 4.7rem;
padding: 0 .4rem
padding: 0 .4rem;
align-self: center;
}
}

Expand Down
55 changes: 15 additions & 40 deletions assets/sass/stage.scss → assets/sass/search.scss
Original file line number Diff line number Diff line change
@@ -1,42 +1,9 @@
.o-stage > picture {
width: 100%;
max-width: 1320px;
filter: brightness(60%);

img {
border-radius: 0 0 var(--border-radius-l) var(--border-radius-l);
}
}

.o-stage {
display: flex;
justify-content: center;
align-items: center;
}

.o-stage__searchfield {
position: absolute;
width: 60%;
height: 6rem;
background-color: white;
border-radius: var(--border-radius-l);
}

#search {
position: absolute;
width: 80%;
max-width: 1056px; // 1320*0.8
width: 100%;
height: 6rem;
left: 50%;
transform: translate(-50%);
display: flex;
z-index: 2;

@media (min-width: #{$breakpoint-md}) {
width: 60%;
max-width: 792px; // 1320*0.6
}

.pagefind-ui__search-input,
.pagefind-ui__message,
.pagefind-ui__search-clear {
Expand All @@ -46,6 +13,8 @@
.pagefind-ui__search-input {
z-index: 3;
outline: .2rem solid transparent;
border: 0;
box-shadow: var(--box-shadow);

&:focus {
outline: .2rem solid orange;
Expand All @@ -70,6 +39,10 @@
display: none;
}

.pagefind-ui__form::before {
z-index: 4;
}

.pagefind-ui__drawer {
background-color: white;
padding: 0 1rem 1rem 1rem;
Expand All @@ -83,6 +56,7 @@
border-bottom: var(--pagefind-ui-border-width) solid var(--pagefind-ui-border);
border-bottom-left-radius: var(--pagefind-ui-border-radius);
border-bottom-right-radius: var(--pagefind-ui-border-radius);
z-index: 3;
}

.pagefind-ui__result-link {
Expand Down Expand Up @@ -131,10 +105,11 @@
opacity: 0;
}

.curtain:has(~ .o-stage .o-stage__search:focus-within),
.curtain:has(~ .o-stage .pagefind-ui__drawer:not(.pagefind-ui__hidden)),
.curtain:has(~ article .o-aside__mobile-container2.o-aside__mobile-container--open){
opacity: 1;
inset: 0;
position: fixed;
main:has(#search:focus-within),
main:has(.pagefind-ui__drawer:not(.pagefind-ui__hidden)) {
.curtain {
opacity: 1;
position: fixed;
inset: 0;
}
}
4 changes: 4 additions & 0 deletions assets/sass/sidemenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@
margin-bottom: 0;
}
}

.o-related__item img {
border-radius: var(--border-radius-s);
}
Loading
Loading