Update styles.scss
This commit is contained in:
652
src/styles.scss
652
src/styles.scss
@@ -1,15 +1,13 @@
|
|||||||
@use '@angular/material' as mat;
|
@use '@angular/material' as mat;
|
||||||
|
|
||||||
// ---- Themes ----
|
// ---- Themes ----
|
||||||
$light-theme: mat.define-theme((
|
$light-theme: mat.define-theme((color: (theme-type: light, primary: mat.$cyan-palette, tertiary: mat.$orange-palette ),
|
||||||
color: ( theme-type: light, primary: mat.$cyan-palette, tertiary: mat.$orange-palette ),
|
typography: (brand-family: 'Inter, Roboto, Arial, sans-serif', bold-weight: 600),
|
||||||
typography: ( brand-family: 'Inter, Roboto, Arial, sans-serif', bold-weight: 600 ),
|
density: (scale: 0),
|
||||||
density: ( scale: 0 ),
|
));
|
||||||
));
|
|
||||||
|
|
||||||
$dark-theme: mat.define-theme((
|
$dark-theme: mat.define-theme((color: (theme-type: dark, primary: mat.$cyan-palette, tertiary: mat.$orange-palette ),
|
||||||
color: ( theme-type: dark, primary: mat.$cyan-palette, tertiary: mat.$orange-palette ),
|
));
|
||||||
));
|
|
||||||
|
|
||||||
// ---- Core + Components ----
|
// ---- Core + Components ----
|
||||||
@include mat.core-theme($light-theme);
|
@include mat.core-theme($light-theme);
|
||||||
@@ -37,9 +35,10 @@ $dark-theme: mat.define-theme((
|
|||||||
--link-color: #38a7ff;
|
--link-color: #38a7ff;
|
||||||
--link-color-hover: #66bfff;
|
--link-color-hover: #66bfff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
--app-topbar-bg: #{mat.get-theme-color($dark-theme, surface-container-highest)};
|
--app-topbar-bg: #{mat.get-theme-color($dark-theme, surface-container-highest)};
|
||||||
--app-bg: #{mat.get-theme-color($dark-theme,surface-variant)};
|
--app-bg: #{mat.get-theme-color($dark-theme,surface-variant)};
|
||||||
--app-fg: #{mat.get-theme-color($dark-theme, on-surface)};
|
--app-fg: #{mat.get-theme-color($dark-theme, on-surface)};
|
||||||
--app-card-background: #313131;
|
--app-card-background: #313131;
|
||||||
--app-logo-bg: #313131;
|
--app-logo-bg: #313131;
|
||||||
@@ -51,7 +50,11 @@ $dark-theme: mat.define-theme((
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ---- global background and tests ---- */
|
/* ---- global background and tests ---- */
|
||||||
html, body { height: 100%; }
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: Inter, Roboto, Arial, sans-serif;
|
font-family: Inter, Roboto, Arial, sans-serif;
|
||||||
@@ -62,10 +65,14 @@ body {
|
|||||||
|
|
||||||
.material-symbols-outlined {
|
.material-symbols-outlined {
|
||||||
font-variation-settings:
|
font-variation-settings:
|
||||||
"FILL" 0, /* 0 oder 1 */
|
"FILL" 0,
|
||||||
"wght" 400, /* 100..700 */
|
/* 0 oder 1 */
|
||||||
"GRAD" 0, /* -50..200 */
|
"wght" 400,
|
||||||
"opsz" 24; /* 20..48 */
|
/* 100..700 */
|
||||||
|
"GRAD" 0,
|
||||||
|
/* -50..200 */
|
||||||
|
"opsz" 24;
|
||||||
|
/* 20..48 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* smooth transition between theme change */
|
/* smooth transition between theme change */
|
||||||
@@ -113,7 +120,7 @@ a {
|
|||||||
|
|
||||||
&.container {
|
&.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 1200px;
|
max-width: 1920px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -148,7 +155,8 @@ a {
|
|||||||
.mat-accordion .mat-expansion-panel {
|
.mat-accordion .mat-expansion-panel {
|
||||||
border-radius: var(--card-radius) !important;
|
border-radius: var(--card-radius) !important;
|
||||||
background: var(--card-bg) !important;
|
background: var(--card-bg) !important;
|
||||||
overflow: hidden; /* ok */
|
overflow: hidden;
|
||||||
|
/* ok */
|
||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,6 +284,7 @@ a {
|
|||||||
canvas {
|
canvas {
|
||||||
border: 1px solid lightgray;
|
border: 1px solid lightgray;
|
||||||
display: block;
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -294,17 +303,49 @@ canvas {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
|
||||||
&.start { background-color: green; }
|
&.start {
|
||||||
&.end { background-color: red; }
|
background-color: green;
|
||||||
&.wall { background-color: black; }
|
}
|
||||||
&.visited { background-color: skyblue; }
|
|
||||||
&.path { background-color: gold; }
|
&.end {
|
||||||
&.empty { background-color: lightgray; }
|
background-color: red;
|
||||||
&.alive { background-color: black; }
|
}
|
||||||
&.L1 { background-color: yellow; }
|
|
||||||
&.L2 { background-color: magenta; }
|
&.wall {
|
||||||
&.M1 { background-color: red; }
|
background-color: black;
|
||||||
&.M2 { background-color: green; }
|
}
|
||||||
|
|
||||||
|
&.visited {
|
||||||
|
background-color: skyblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.path {
|
||||||
|
background-color: gold;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.empty {
|
||||||
|
background-color: lightgray;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.alive {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.L1 {
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.L2 {
|
||||||
|
background-color: magenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.M1 {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.M2 {
|
||||||
|
background-color: green;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,7 +362,8 @@ canvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Sorting Visualization & Canvas */
|
/* Sorting Visualization & Canvas */
|
||||||
.sorting-visualization-area, .visualization-area {
|
.sorting-visualization-area,
|
||||||
|
.visualization-area {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
height: clamp(200px, 40vh, 400px);
|
height: clamp(200px, 40vh, 400px);
|
||||||
@@ -330,16 +372,25 @@ canvas {
|
|||||||
gap: 1px;
|
gap: 1px;
|
||||||
background-color: var(--card-bg);
|
background-color: var(--card-bg);
|
||||||
|
|
||||||
.sorting-bar, .bar {
|
.sorting-bar,
|
||||||
|
.bar {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
background-color: #424242;
|
background-color: #424242;
|
||||||
transition: height 0.05s ease-in-out, background-color 0.05s ease-in-out;
|
transition: height 0.05s ease-in-out, background-color 0.05s ease-in-out;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
min-width: 1px;
|
min-width: 1px;
|
||||||
|
|
||||||
&.unsorted { background-color: #424242; }
|
&.unsorted {
|
||||||
&.comparing { background-color: #ffeb3b; }
|
background-color: #424242;
|
||||||
&.sorted { background-color: #4caf50; }
|
}
|
||||||
|
|
||||||
|
&.comparing {
|
||||||
|
background-color: #ffeb3b;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.sorted {
|
||||||
|
background-color: #4caf50;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -347,7 +398,7 @@ canvas {
|
|||||||
|
|
||||||
.layout-container {
|
.layout-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 1200px;
|
max-width: 1920px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: clamp(1rem, 4vw, 2rem);
|
padding: clamp(1rem, 4vw, 2rem);
|
||||||
}
|
}
|
||||||
@@ -362,7 +413,7 @@ canvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.foot {
|
.foot {
|
||||||
border-top: 1px solid rgba(0,0,0,.08);
|
border-top: 1px solid rgba(0, 0, 0, .08);
|
||||||
padding: clamp(1rem, 2vw, 1.5rem);
|
padding: clamp(1rem, 2vw, 1.5rem);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: .8;
|
opacity: .8;
|
||||||
@@ -371,46 +422,114 @@ canvas {
|
|||||||
|
|
||||||
/* ---- Topbar ---- */
|
/* ---- Topbar ---- */
|
||||||
.topbar {
|
.topbar {
|
||||||
position: sticky; top: 0; z-index: 100;
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 100;
|
||||||
backdrop-filter: saturate(1.1) blur(8px);
|
backdrop-filter: saturate(1.1) blur(8px);
|
||||||
background: color-mix(in oklab, var(--app-topbar-bg) 80%, transparent);
|
background: color-mix(in srgb, var(--app-topbar-bg) 65%, transparent);
|
||||||
border-bottom: 1px solid rgba(0,0,0,.08);
|
border-bottom: 1px solid rgba(0, 0, 0, .08);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: clamp(0.5rem, 2vw, 1rem);
|
|
||||||
padding: clamp(0.5rem, 1vw, 1rem);
|
padding: clamp(0.5rem, 1vw, 1rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar .brand {
|
.topbar .brand {
|
||||||
display:flex; align-items:center; gap: clamp(0.4rem, 1vw, 0.6rem);
|
display: flex;
|
||||||
color: inherit; text-decoration: none;
|
align-items: center;
|
||||||
|
gap: clamp(0.4rem, 1vw, 0.6rem);
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
flex: 1;
|
||||||
|
/* push nav to center */
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar .brand .logo-dot {
|
.topbar .brand .logo-dot {
|
||||||
width: clamp(36px, 10vw, 48px);
|
width: clamp(36px, 10vw, 48px);
|
||||||
height: clamp(36px, 10vw, 48px);
|
height: clamp(36px, 10vw, 48px);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
.topbar .brand .brand-text { font-weight: 600; letter-spacing:.2px; font-size: clamp(1rem, 3vw, 1.2rem); }
|
|
||||||
|
|
||||||
.topbar .nav { display:flex; flex-wrap: wrap; gap: clamp(0.25rem, 1vw, 0.5rem); margin-left:auto; }
|
.topbar .brand .brand-text {
|
||||||
.topbar .nav-menu-btn { display: none; }
|
font-weight: 600;
|
||||||
|
letter-spacing: .2px;
|
||||||
|
font-size: clamp(1rem, 3vw, 1.2rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .nav {
|
||||||
|
display: flex;
|
||||||
|
gap: clamp(0.25rem, 1vw, 0.5rem);
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .nav-menu-btn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .spacer {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 760px) {
|
@media (max-width: 760px) {
|
||||||
.topbar .nav { display: none; }
|
.topbar .nav {
|
||||||
.topbar .nav-menu-btn { display: inline-flex; }
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .nav-menu-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .brand {
|
||||||
|
flex: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Allow brand to sit properly if nav falls back to menu button */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- Menu Overrides ---- */
|
/* ---- Menu Overrides ---- */
|
||||||
.mat-mdc-menu-item .mdc-list-item__primary-text { display: flex; align-items: center; gap: .5rem; }
|
.mat-mdc-menu-item .mdc-list-item__primary-text {
|
||||||
.mat-mdc-menu-item .kbd { margin-left: auto; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; padding: 0 .35rem; opacity: .65; }
|
display: flex;
|
||||||
.mat-mdc-menu-item .mat-icon { width: 20px; height: 20px; font-size: 20px; }
|
align-items: center;
|
||||||
.mat-mdc-menu-item .flag-icon { width: 20px !important; height: 14px !important; object-fit: cover; border-radius: 2px; margin-right: .5rem; vertical-align: middle; }
|
gap: .5rem;
|
||||||
.mat-mdc-menu-panel { border-radius: 10px !important; border: 1px solid rgba(0,0,0,.14); }
|
}
|
||||||
.dark .mat-mdc-menu-panel { border-color: rgba(255,255,255,.06); }
|
|
||||||
|
.mat-mdc-menu-item .kbd {
|
||||||
|
margin-left: auto;
|
||||||
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||||
|
font-size: 11px;
|
||||||
|
padding: 0 .35rem;
|
||||||
|
opacity: .65;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-mdc-menu-item .mat-icon {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-mdc-menu-item .flag-icon {
|
||||||
|
width: 20px !important;
|
||||||
|
height: 14px !important;
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 2px;
|
||||||
|
margin-right: .5rem;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-mdc-menu-panel {
|
||||||
|
border-radius: 10px !important;
|
||||||
|
border: 1px solid rgba(0, 0, 0, .14);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .mat-mdc-menu-panel {
|
||||||
|
border-color: rgba(255, 255, 255, .06);
|
||||||
|
}
|
||||||
|
|
||||||
/* ---- About Page Sections ---- */
|
/* ---- About Page Sections ---- */
|
||||||
.about, .imprint { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }
|
.about,
|
||||||
|
.imprint {
|
||||||
|
display: grid;
|
||||||
|
gap: clamp(1rem, 3vw, 1.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -421,74 +540,385 @@ canvas {
|
|||||||
padding: clamp(1rem, 3vw, 1.5rem);
|
padding: clamp(1rem, 3vw, 1.5rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero .photo { display:flex; align-items:flex-start; justify-content:center; }
|
.hero .photo {
|
||||||
.hero .photo img { display:block; width: 100%; height: auto; max-width: 425px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.25); object-fit: cover; }
|
display: flex;
|
||||||
.hero .intro { display:flex; flex-direction:column; gap: clamp(0.5rem, 2vw, 1rem); }
|
align-items: flex-start;
|
||||||
.hero .intro h1 { margin-top: .25rem; font-size: clamp(1.5rem, 5vw, 2.5rem); }
|
justify-content: center;
|
||||||
.hero .intro .lead { opacity:.9; margin: .25rem 0 0.5rem; font-size: clamp(1rem, 2.5vw, 1.15rem); }
|
}
|
||||||
.hero .intro .meta { display:flex; flex-direction:column; gap:.25rem; margin-bottom: 0.5rem; }
|
|
||||||
.hero .intro .meta .row { display:flex; align-items:center; flex-wrap: wrap; gap:.4rem; }
|
|
||||||
.hero .intro .actions { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.5rem; }
|
|
||||||
|
|
||||||
.skills, .experience, .projects, .education { padding: clamp(5px, 2vw, 15px); }
|
.hero .photo img {
|
||||||
.skills h2, .experience h2, .projects h2, .education h2 { margin-top: .25rem; margin-left: .25rem; font-size: clamp(1.2rem, 4vw, 1.8rem); }
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
max-width: 425px;
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
.skills .chip-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(0.5rem, 2vw, 1rem); margin-left: .25rem; margin-bottom: .5rem; }
|
.hero .intro {
|
||||||
.skills .chip-groups h3 { margin: .2rem 0 .4rem; font-size: .95rem; opacity:.85; }
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: clamp(0.5rem, 2vw, 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
.xp-list { margin-left: .25rem; display: grid; gap: clamp(0.75rem, 2vw, 1rem); }
|
.hero .intro h1 {
|
||||||
.xp-item .xp-head { display:flex; flex-wrap: wrap; align-items:baseline; gap:.5rem; }
|
margin-top: .25rem;
|
||||||
.xp-item .xp-head .time { opacity:.75; font-size: clamp(0.85rem, 2vw, 0.95rem); }
|
font-size: clamp(1.5rem, 5vw, 2.5rem);
|
||||||
.xp-item .xp-sub { opacity:.9; margin-bottom:.25rem; }
|
}
|
||||||
.xp-item ul { margin: .25rem 0 .5rem 1.15rem; }
|
|
||||||
|
|
||||||
.xp-head-grid { display: grid; grid-template-columns: calc(clamp(32px, 8vw, 48px) + .75rem) 1fr; grid-template-rows: auto auto; column-gap: clamp(0.5rem, 2vw, .75rem); }
|
.hero .intro .lead {
|
||||||
.logo-wrap { grid-row: 1 / span 2; grid-column: 1; display: flex; align-items: center; }
|
opacity: .9;
|
||||||
.company-logo { width: clamp(32px, 8vw, 48px); height: clamp(32px, 8vw, 48px); object-fit: contain; opacity: .9; border-radius: 10%; background-color: var(--app-logo-bg); }
|
margin: .25rem 0 0.5rem;
|
||||||
.head-row { grid-row: 1; grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(0.25rem, 1vw, 0.5rem) 1rem; }
|
font-size: clamp(1rem, 2.5vw, 1.15rem);
|
||||||
.head-row strong { font-size: clamp(0.95rem, 2.5vw, 1.1rem); }
|
}
|
||||||
.head-row .time { opacity: .75; font-size: clamp(0.85rem, 2vw, 0.95rem); }
|
|
||||||
.company-row { grid-row: 2; grid-column: 2; margin-top: .1rem; opacity: .85; font-size: clamp(0.85rem, 2vw, 1rem); }
|
.hero .intro .meta {
|
||||||
.highlights { margin-top: .4rem; margin-left: clamp(0.25rem, 1vw, .75rem); padding-left: clamp(0.8rem, 2vw, 1.2rem); }
|
display: flex;
|
||||||
.highlights li, .highlights-noMargin li { margin: .2rem 0; font-size: clamp(0.9rem, 2vw, 1rem); }
|
flex-direction: column;
|
||||||
|
gap: .25rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero .intro .meta .row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: .4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero .intro .actions {
|
||||||
|
display: flex;
|
||||||
|
gap: .5rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-top: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills,
|
||||||
|
.experience,
|
||||||
|
.projects,
|
||||||
|
.education {
|
||||||
|
padding: clamp(5px, 2vw, 15px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills h2,
|
||||||
|
.experience h2,
|
||||||
|
.projects h2,
|
||||||
|
.education h2 {
|
||||||
|
margin-top: .25rem;
|
||||||
|
margin-left: .25rem;
|
||||||
|
font-size: clamp(1.2rem, 4vw, 1.8rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills .chip-groups {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
|
||||||
|
gap: clamp(0.5rem, 2vw, 1rem);
|
||||||
|
margin-left: .25rem;
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skills .chip-groups h3 {
|
||||||
|
margin: .2rem 0 .4rem;
|
||||||
|
font-size: .95rem;
|
||||||
|
opacity: .85;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xp-list {
|
||||||
|
margin-left: .25rem;
|
||||||
|
display: grid;
|
||||||
|
gap: clamp(0.75rem, 2vw, 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.xp-item .xp-head {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xp-item .xp-head .time {
|
||||||
|
opacity: .75;
|
||||||
|
font-size: clamp(0.85rem, 2vw, 0.95rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.xp-item .xp-sub {
|
||||||
|
opacity: .9;
|
||||||
|
margin-bottom: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xp-item ul {
|
||||||
|
margin: .25rem 0 .5rem 1.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xp-head-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: calc(clamp(32px, 8vw, 48px) + .75rem) 1fr;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
|
column-gap: clamp(0.5rem, 2vw, .75rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-wrap {
|
||||||
|
grid-row: 1 / span 2;
|
||||||
|
grid-column: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.company-logo {
|
||||||
|
width: clamp(32px, 8vw, 48px);
|
||||||
|
height: clamp(32px, 8vw, 48px);
|
||||||
|
object-fit: contain;
|
||||||
|
opacity: .9;
|
||||||
|
border-radius: 10%;
|
||||||
|
background-color: var(--app-logo-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.head-row {
|
||||||
|
grid-row: 1;
|
||||||
|
grid-column: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: clamp(0.25rem, 1vw, 0.5rem) 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.head-row strong {
|
||||||
|
font-size: clamp(0.95rem, 2.5vw, 1.1rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.head-row .time {
|
||||||
|
opacity: .75;
|
||||||
|
font-size: clamp(0.85rem, 2vw, 0.95rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.company-row {
|
||||||
|
grid-row: 2;
|
||||||
|
grid-column: 2;
|
||||||
|
margin-top: .1rem;
|
||||||
|
opacity: .85;
|
||||||
|
font-size: clamp(0.85rem, 2vw, 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlights {
|
||||||
|
margin-top: .4rem;
|
||||||
|
margin-left: clamp(0.25rem, 1vw, .75rem);
|
||||||
|
padding-left: clamp(0.8rem, 2vw, 1.2rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlights li,
|
||||||
|
.highlights-noMargin li {
|
||||||
|
margin: .2rem 0;
|
||||||
|
font-size: clamp(0.9rem, 2vw, 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
/* ---- Imprint ---- */
|
/* ---- Imprint ---- */
|
||||||
.imprint-card { padding: clamp(1rem, 3vw, 1.5rem); }
|
.imprint-card {
|
||||||
.imprint-title { margin: 0 0 1rem; font-size: clamp(1rem, 3vw, 1.2rem); font-weight: 600; }
|
padding: clamp(1rem, 3vw, 1.5rem);
|
||||||
.imprint-section { display: grid; gap: 0.25rem; margin-bottom: 1rem; }
|
}
|
||||||
.imprint-label { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; margin: 0; }
|
|
||||||
|
.imprint-title {
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
font-size: clamp(1rem, 3vw, 1.2rem);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imprint-section {
|
||||||
|
display: grid;
|
||||||
|
gap: 0.25rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imprint-label {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
opacity: 0.7;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* ---- Projects Page & Dialog ---- */
|
/* ---- Projects Page & Dialog ---- */
|
||||||
.project-grid { display: grid; gap: clamp(1rem, 3vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); }
|
.project-grid {
|
||||||
.project-card { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; display: flex; flex-direction: column; height: 100%; }
|
display: grid;
|
||||||
.project-card:hover { transform: translateY(-5px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
|
gap: clamp(1rem, 3vw, 1.5rem);
|
||||||
.project-card.featured { grid-column: 1 / -1; }
|
grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
|
||||||
.project-card mat-card-header { padding-bottom: 1rem; }
|
}
|
||||||
.project-card mat-card-content { flex-grow: 1; padding-top: 1rem; padding-bottom: 1rem; }
|
|
||||||
.project-card mat-chip-set { padding-top: clamp(0.5rem, 2vw, 1rem); }
|
|
||||||
.project-card mat-card-actions { margin-top: auto; }
|
|
||||||
.icon-container { display: flex; justify-content: center; align-items: center; height: clamp(150px, 20vw, 200px); background-color: #f0f0f0; }
|
|
||||||
.fallback-icon { font-size: clamp(3rem, 8vw, 4rem); width: clamp(3rem, 8vw, 4rem); height: clamp(3rem, 8vw, 4rem); color: #666; }
|
|
||||||
img[mat-card-image] { width: 100%; height: clamp(150px, 25vw, 250px); object-fit: cover; }
|
|
||||||
|
|
||||||
.my-swiper { border-radius: 12px; }
|
.project-card {
|
||||||
.my-swiper::part(button-prev), .my-swiper::part(button-next) { width: 35px; height: 35px; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.5); color: white; display: flex; align-items: center; justify-content: center; }
|
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
||||||
.my-swiper::part(button-prev):hover, .my-swiper::part(button-next):hover { background: rgba(0,0,0,.75); }
|
display: flex;
|
||||||
.my-swiper::part(pagination) { bottom: 12px; }
|
flex-direction: column;
|
||||||
swiper-slide { border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background-color: #222; }
|
height: 100%;
|
||||||
.slide-img { width: 100%; height: auto; max-height: clamp(300px, 60vh, 512px) !important; object-fit: contain; display: block; flex-shrink: 0; }
|
}
|
||||||
.slide-source { font-size: 0.75rem; color: #aaa; background: #2a2a2a; padding: 0.5rem; text-align: right; border-top: 1px solid #444; }
|
|
||||||
.link-section { display: flex; gap: clamp(0.5rem, 2vw, 1rem); margin-top: 1.5rem; flex-wrap: wrap; }
|
.project-card:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card.featured {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card mat-card-header {
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card mat-card-content {
|
||||||
|
flex-grow: 1;
|
||||||
|
padding-top: 1rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card mat-chip-set {
|
||||||
|
padding-top: clamp(0.5rem, 2vw, 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card mat-card-actions {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: clamp(150px, 20vw, 200px);
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fallback-icon {
|
||||||
|
font-size: clamp(3rem, 8vw, 4rem);
|
||||||
|
width: clamp(3rem, 8vw, 4rem);
|
||||||
|
height: clamp(3rem, 8vw, 4rem);
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
img[mat-card-image] {
|
||||||
|
width: 100%;
|
||||||
|
height: clamp(150px, 25vw, 250px);
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.my-swiper {
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.my-swiper::part(button-prev),
|
||||||
|
.my-swiper::part(button-next) {
|
||||||
|
width: 35px;
|
||||||
|
height: 35px;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: rgba(0, 0, 0, .5);
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.my-swiper::part(button-prev):hover,
|
||||||
|
.my-swiper::part(button-next):hover {
|
||||||
|
background: rgba(0, 0, 0, .75);
|
||||||
|
}
|
||||||
|
|
||||||
|
.my-swiper::part(pagination) {
|
||||||
|
bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
swiper-slide {
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background-color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slide-img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
max-height: clamp(300px, 60vh, 512px) !important;
|
||||||
|
object-fit: contain;
|
||||||
|
display: block;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slide-source {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: #aaa;
|
||||||
|
background: #2a2a2a;
|
||||||
|
padding: 0.5rem;
|
||||||
|
text-align: right;
|
||||||
|
border-top: 1px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-section {
|
||||||
|
display: flex;
|
||||||
|
gap: clamp(0.5rem, 2vw, 1rem);
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
/* ---- Shared Elements ---- */
|
/* ---- Shared Elements ---- */
|
||||||
.canvas-container { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 1000px; margin: 0 auto; }
|
.canvas-container {
|
||||||
.canvas-container canvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; min-width: 200px; max-width: 1000px; touch-action: none; border: none; border-radius: clamp(10px, 2vw, 20px); outline: none; }
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1000px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.category-cards { display: flex; flex-wrap: wrap; gap: clamp(0.5rem, 2vw, 1rem); margin-top: clamp(1rem, 3vw, 2rem); }
|
.canvas-container canvas {
|
||||||
.category-cards mat-card { cursor: pointer; flex: 1 1 300px; min-width: 300px; max-width: 450px; }
|
display: block;
|
||||||
.category-cards mat-card:hover { transform: translateY(-5px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
min-width: 200px;
|
||||||
|
max-width: 1000px;
|
||||||
|
touch-action: none;
|
||||||
|
border: none;
|
||||||
|
border-radius: clamp(10px, 2vw, 20px);
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
.sorting-card { width: 100%; max-width: 1200px; padding: clamp(10px, 3vw, 20px); }
|
.category-cards {
|
||||||
.sorting-card .controls-panel { display: flex; gap: clamp(5px, 2vw, 10px); margin-bottom: clamp(10px, 3vw, 20px); align-items: center; flex-wrap: wrap; }
|
display: flex;
|
||||||
.sorting-card .controls-panel mat-form-field { width: clamp(150px, 20vw, 200px); }
|
flex-wrap: wrap;
|
||||||
.sorting-card .info-panel { margin-top: 10px; font-size: 0.9em; }
|
gap: clamp(0.5rem, 2vw, 1rem);
|
||||||
|
margin-top: clamp(1rem, 3vw, 2rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-cards mat-card {
|
||||||
|
cursor: pointer;
|
||||||
|
flex: 1 1 300px;
|
||||||
|
min-width: 300px;
|
||||||
|
max-width: 450px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-cards mat-card:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sorting-card {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1920px;
|
||||||
|
padding: clamp(10px, 3vw, 20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sorting-card .controls-panel {
|
||||||
|
display: flex;
|
||||||
|
gap: clamp(5px, 2vw, 10px);
|
||||||
|
margin-bottom: clamp(10px, 3vw, 20px);
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sorting-card .controls-panel mat-form-field {
|
||||||
|
width: clamp(150px, 20vw, 200px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sorting-card .info-panel {
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user