Consolidate and modernize SCSS into global styles
Move component-level styles into src/styles.scss and remove duplicated rules from several component SCSS files (app, topbar, about, algorithms, sorting, imprint, project dialog, projects, babylon-canvas). The global stylesheet now centralizes layout and typography (clamp-based sizing), sorting visualization & canvas rules, topbar/menu overrides, project/swiper styles, and shared utilities. This reduces duplication, improves responsiveness, and simplifies stylesheet management.
This commit is contained in:
@@ -1,10 +1 @@
|
|||||||
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }
|
|
||||||
.app-surface {
|
|
||||||
background: var(--app-bg);
|
|
||||||
color: var(--app-fg);
|
|
||||||
transition: background-color 220ms ease, color 220ms ease;
|
|
||||||
}
|
|
||||||
.foot {
|
|
||||||
border-top: 1px solid rgba(0,0,0,.08);
|
|
||||||
padding: 1rem; text-align: center; opacity: .8;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,83 +1 @@
|
|||||||
.topbar {
|
|
||||||
position: sticky; top: 0; z-index: 100;
|
|
||||||
backdrop-filter: saturate(1.1) blur(8px);
|
|
||||||
background:
|
|
||||||
color-mix(in oklab, var(--app-topbar-bg) 80%, transparent);
|
|
||||||
border-bottom: 1px solid rgba(0,0,0,.08);
|
|
||||||
|
|
||||||
.brand {
|
|
||||||
display:flex; align-items:center; gap:.6rem;
|
|
||||||
color: inherit; text-decoration: none;
|
|
||||||
.logo-dot {
|
|
||||||
width: 48px; height: 48px; border-radius: 50%;
|
|
||||||
}
|
|
||||||
.brand-text { font-weight: 600; letter-spacing:.2px; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav { display:flex; gap:.25rem; margin-left:.5rem; }
|
|
||||||
|
|
||||||
.spacer { flex: 1; }
|
|
||||||
|
|
||||||
.flag-icon { width: 18px; height: 18px; border-radius: 2px; margin-right:.5rem; }
|
|
||||||
|
|
||||||
.menu-section { padding:.25rem .5rem .5rem; }
|
|
||||||
.menu-title { font-size:.75rem; opacity:.75; padding:.25rem .75rem .5rem; }
|
|
||||||
|
|
||||||
.kbd {
|
|
||||||
margin-left:auto; font-size:.7rem; opacity:.65; border:1px solid currentColor;
|
|
||||||
border-radius:4px; padding:0 .35rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep .mat-mdc-menu-item .mdc-list-item__primary-text {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: .5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep .mat-mdc-menu-item .kbd {
|
|
||||||
margin-left: auto;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
||||||
font-size: 11px;
|
|
||||||
line-height: 1.6;
|
|
||||||
padding: 0 .35rem;
|
|
||||||
border: 0px solid currentColor;
|
|
||||||
border-radius: 4px;
|
|
||||||
opacity: .65;
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep .mat-mdc-menu-item .mat-icon {
|
|
||||||
width: 20px; height: 20px; font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep .mat-mdc-menu-item .flag-icon {
|
|
||||||
width: 20px !important;
|
|
||||||
height: 14px !important;
|
|
||||||
object-fit: cover;
|
|
||||||
border-radius: 2px;
|
|
||||||
margin-right: .5rem;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep .mat-mdc-menu-panel {
|
|
||||||
border-radius: 10px !important;
|
|
||||||
border: 1px solid rgba(0,0,0,.14);
|
|
||||||
}
|
|
||||||
.dark ::ng-deep .mat-mdc-menu-panel {
|
|
||||||
border-color: rgba(255,255,255,.06);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive: Collapse navigation to icon if width is smaller than 760px */
|
|
||||||
.nav-menu-btn {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 760px) {
|
|
||||||
.topbar .nav {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-menu-btn {
|
|
||||||
display: inline-flex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,183 +0,0 @@
|
|||||||
.about {
|
|
||||||
display: grid;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hero block: Photo + Intro */
|
|
||||||
.hero {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 425px 1fr;
|
|
||||||
gap: 1.25rem;
|
|
||||||
border-radius: 16px;
|
|
||||||
background: var(--app-card-background);
|
|
||||||
|
|
||||||
.photo {
|
|
||||||
align-items:flex-start; justify-content:center;
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.intro {
|
|
||||||
display:flex; flex-direction:column; gap:.5rem;
|
|
||||||
h1 { margin-top: .25rem }
|
|
||||||
.lead { opacity:.9; margin: .25rem 0 0.5rem; }
|
|
||||||
|
|
||||||
.meta {
|
|
||||||
display:flex; flex-direction:column; gap:.25rem; margin-bottom: 0.5rem;
|
|
||||||
.row {
|
|
||||||
display:flex; align-items:center; gap:.4rem;
|
|
||||||
a { color: inherit; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions {
|
|
||||||
display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.5rem;
|
|
||||||
.mat-icon { margin-right:.25rem; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Skills block */
|
|
||||||
.skills {
|
|
||||||
padding: 5px;
|
|
||||||
h2 { margin-top: .25rem; margin-left: .25rem; }
|
|
||||||
.chip-groups {
|
|
||||||
margin-left: .25rem;
|
|
||||||
display:grid; gap:1rem;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
margin-bottom: .5rem;
|
|
||||||
h3 { margin: .2rem 0 .4rem; font-size: .95rem; opacity:.85; }
|
|
||||||
mat-chip-set {
|
|
||||||
display:flex; flex-wrap:wrap; gap:.4rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Experience block */
|
|
||||||
.experience {
|
|
||||||
padding: 5px;
|
|
||||||
h2 { margin-top: .25rem; margin-left: .25rem; }
|
|
||||||
.xp-item {
|
|
||||||
.xp-head {
|
|
||||||
display:flex; align-items:baseline; gap:.5rem;
|
|
||||||
.time { opacity:.75; font-size:.9rem; }
|
|
||||||
}
|
|
||||||
.xp-sub { opacity:.9; margin-bottom:.25rem; }
|
|
||||||
ul { margin: .25rem 0 .5rem 1.15rem; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Experience block */
|
|
||||||
.projects {
|
|
||||||
padding: 5px;
|
|
||||||
h2 { margin-top: .25rem;margin-left: .25rem; }
|
|
||||||
.xp-list {
|
|
||||||
margin-left: .25rem;
|
|
||||||
display: grid; gap: .75rem;
|
|
||||||
}
|
|
||||||
.xp-item {
|
|
||||||
.xp-head {
|
|
||||||
display:flex; align-items:baseline; gap:.5rem;
|
|
||||||
.time { opacity:.75; font-size:.9rem; }
|
|
||||||
}
|
|
||||||
.xp-sub { opacity:.9; margin-bottom:.25rem; }
|
|
||||||
ul { margin: .25rem 0 .5rem 1.15rem; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Experience block */
|
|
||||||
.education {
|
|
||||||
padding: 5px;
|
|
||||||
h2 { margin-top: .25rem;margin-left: .25rem; }
|
|
||||||
.xp-list {
|
|
||||||
margin-left: .25rem;
|
|
||||||
display: grid; gap: .75rem;
|
|
||||||
}
|
|
||||||
.xp-item {
|
|
||||||
.xp-head {
|
|
||||||
display:flex; align-items:baseline; gap:.5rem;
|
|
||||||
.time { opacity:.75; font-size:.9rem; }
|
|
||||||
}
|
|
||||||
.xp-sub { opacity:.9; margin-bottom:.25rem; }
|
|
||||||
ul { margin: .25rem 0 .5rem 1.15rem; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive */
|
|
||||||
@media (max-width: 900px) {
|
|
||||||
.hero { grid-template-columns: 1fr; }
|
|
||||||
.hero .photo { justify-content: flex-start; }
|
|
||||||
.skills .chip-groups { grid-template-columns: 1fr; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.xp-head-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: calc(48px + .75rem) 1fr; /* 1: Logo, 2: Text */
|
|
||||||
grid-template-rows: auto auto; /* 1: Role/Time, 2: Company */
|
|
||||||
column-gap: .75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-wrap {
|
|
||||||
grid-row: 1 / span 2;
|
|
||||||
grid-column: 1;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.company-logo {
|
|
||||||
width: 48px;
|
|
||||||
height: 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: .5rem 1rem;
|
|
||||||
|
|
||||||
strong {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
.time {
|
|
||||||
opacity: .75; font-size: .9rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.company-row {
|
|
||||||
grid-row: 2;
|
|
||||||
grid-column: 2;
|
|
||||||
margin-top: .1rem;
|
|
||||||
opacity: .85;
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlights {
|
|
||||||
margin-top: .4rem;
|
|
||||||
margin-left: .75rem;
|
|
||||||
padding-left: 1.2rem;
|
|
||||||
|
|
||||||
li {
|
|
||||||
margin: .2rem 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlights-noMargin {
|
|
||||||
margin-top: .4rem;
|
|
||||||
|
|
||||||
li {
|
|
||||||
margin: .2rem 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
.container {
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.category-cards {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 1rem;
|
|
||||||
margin-top: 2rem;
|
|
||||||
|
|
||||||
mat-card {
|
|
||||||
cursor: pointer;
|
|
||||||
min-width: 450px;
|
|
||||||
max-width: 450px;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
.sorting-card {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 1200px;
|
|
||||||
padding: 20px;
|
|
||||||
|
|
||||||
.controls-panel {
|
|
||||||
display: flex;
|
|
||||||
gap: 10px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
align-items: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
mat-form-field {
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.visualization-area {
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-end;
|
|
||||||
height: 300px; /* Max height for bars */
|
|
||||||
border-bottom: 1px solid #ccc;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
gap: 1px;
|
|
||||||
background-color: #f0f0f0;
|
|
||||||
|
|
||||||
.bar {
|
|
||||||
flex-grow: 1;
|
|
||||||
background-color: #424242; /* Default unsorted color */
|
|
||||||
transition: height 0.05s ease-in-out, background-color 0.05s ease-in-out;
|
|
||||||
width: 10px; /* Default width, flex-grow will adjust */
|
|
||||||
min-width: 1px; /* Ensure bars are always visible */
|
|
||||||
|
|
||||||
&.unsorted {
|
|
||||||
background-color: #424242;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.comparing {
|
|
||||||
background-color: #ffeb3b; /* Yellow for comparing */
|
|
||||||
}
|
|
||||||
|
|
||||||
&.sorted {
|
|
||||||
background-color: #4caf50; /* Green for sorted */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-panel {
|
|
||||||
margin-top: 10px;
|
|
||||||
font-size: 0.9em;
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
.imprint {
|
|
||||||
display: grid;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.imprint-card {
|
|
||||||
padding: 1.25rem 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.imprint-title {
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.imprint-section {
|
|
||||||
display: grid;
|
|
||||||
gap: 0.25rem;
|
|
||||||
|
|
||||||
&:not(:last-child) {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.imprint-label {
|
|
||||||
font-size: 0.75rem;
|
|
||||||
letter-spacing: 0.04em;
|
|
||||||
text-transform: uppercase;
|
|
||||||
opacity: 0.7;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: var(--mat-primary);
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,81 +0,0 @@
|
|||||||
.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 {
|
|
||||||
border-radius: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.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: 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
padding-left: 20px;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
mat-chip-set {
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-section {
|
|
||||||
display: flex;
|
|
||||||
gap: 1rem;
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mat-dialog-actions {
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,60 +0,0 @@
|
|||||||
.project-grid {
|
|
||||||
display: grid;
|
|
||||||
gap: 1.5rem;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
||||||
}
|
|
||||||
|
|
||||||
.project-card {
|
|
||||||
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.featured {
|
|
||||||
grid-column: 1 / -1; // Span full width
|
|
||||||
}
|
|
||||||
|
|
||||||
mat-card-header {
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
mat-card-content {
|
|
||||||
flex-grow: 1; // Ensure content area expands
|
|
||||||
padding-top: 1rem;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
mat-chip-set {
|
|
||||||
padding-top: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
mat-card-actions {
|
|
||||||
margin-top: auto; // Push actions to the bottom
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
height: 200px; /* Or a height that fits your design */
|
|
||||||
background-color: #f0f0f0; /* A light background for the icon */
|
|
||||||
}
|
|
||||||
|
|
||||||
.fallback-icon {
|
|
||||||
font-size: 4rem;
|
|
||||||
width: 4rem;
|
|
||||||
height: 4rem;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure images don't exceed the card width and maintain aspect ratio
|
|
||||||
img[mat-card-image] {
|
|
||||||
width: 100%;
|
|
||||||
height: 250px;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
.canvas-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
max-width: 1000px;
|
|
||||||
max-height: 1000px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
canvas {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
aspect-ratio: 1 / 1;
|
|
||||||
|
|
||||||
min-width: 200px;
|
|
||||||
min-height: 200px;
|
|
||||||
max-width: 1000px;
|
|
||||||
max-height: 1000px;
|
|
||||||
|
|
||||||
touch-action: none;
|
|
||||||
border: none;
|
|
||||||
border-radius: 20px;
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|||||||
184
src/styles.scss
184
src/styles.scss
@@ -320,33 +320,175 @@ canvas {
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sorting Visualization */
|
/* Sorting Visualization & Canvas */
|
||||||
.sorting-visualization-area {
|
.sorting-visualization-area, .visualization-area {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
height: 300px; /* Max height for bars */
|
height: clamp(200px, 40vh, 400px);
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid var(--app-fg);
|
||||||
margin-bottom: 20px;
|
margin-bottom: clamp(10px, 3vw, 20px);
|
||||||
gap: 1px;
|
gap: 1px;
|
||||||
background-color: #f0f0f0;
|
background-color: var(--card-bg);
|
||||||
|
|
||||||
.sorting-bar {
|
.sorting-bar, .bar {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
background-color: #424242; /* Default unsorted color */
|
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; /* Default width, flex-grow will adjust */
|
width: 10px;
|
||||||
min-width: 1px; /* Ensure bars are always visible */
|
min-width: 1px;
|
||||||
|
|
||||||
&.unsorted {
|
&.unsorted { background-color: #424242; }
|
||||||
background-color: #424242;
|
&.comparing { background-color: #ffeb3b; }
|
||||||
}
|
&.sorted { background-color: #4caf50; }
|
||||||
|
|
||||||
&.comparing {
|
|
||||||
background-color: #ffeb3b; /* Yellow for comparing */
|
|
||||||
}
|
|
||||||
|
|
||||||
&.sorted {
|
|
||||||
background-color: #4caf50; /* Green for sorted */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- Modern Layouts & Typography (Grid, Flex, Clamp) ---- */
|
||||||
|
|
||||||
|
.layout-container {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: clamp(1rem, 4vw, 2rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-surface {
|
||||||
|
background: var(--app-bg);
|
||||||
|
color: var(--app-fg);
|
||||||
|
transition: background-color 220ms ease, color 220ms ease;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.foot {
|
||||||
|
border-top: 1px solid rgba(0,0,0,.08);
|
||||||
|
padding: clamp(1rem, 2vw, 1.5rem);
|
||||||
|
text-align: center;
|
||||||
|
opacity: .8;
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- Topbar ---- */
|
||||||
|
.topbar {
|
||||||
|
position: sticky; top: 0; z-index: 100;
|
||||||
|
backdrop-filter: saturate(1.1) blur(8px);
|
||||||
|
background: color-mix(in oklab, var(--app-topbar-bg) 80%, transparent);
|
||||||
|
border-bottom: 1px solid rgba(0,0,0,.08);
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
gap: clamp(0.5rem, 2vw, 1rem);
|
||||||
|
padding: clamp(0.5rem, 1vw, 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar .brand {
|
||||||
|
display:flex; align-items:center; gap: clamp(0.4rem, 1vw, 0.6rem);
|
||||||
|
color: inherit; text-decoration: none;
|
||||||
|
}
|
||||||
|
.topbar .brand .logo-dot {
|
||||||
|
width: clamp(36px, 10vw, 48px);
|
||||||
|
height: clamp(36px, 10vw, 48px);
|
||||||
|
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 .nav-menu-btn { display: none; }
|
||||||
|
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
.topbar .nav { display: none; }
|
||||||
|
.topbar .nav-menu-btn { display: inline-flex; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- Menu Overrides ---- */
|
||||||
|
.mat-mdc-menu-item .mdc-list-item__primary-text { display: flex; align-items: center; gap: .5rem; }
|
||||||
|
.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, .imprint { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 425px), 1fr));
|
||||||
|
gap: clamp(1rem, 4vw, 1.5rem);
|
||||||
|
border-radius: var(--card-radius);
|
||||||
|
background: var(--card-bg);
|
||||||
|
padding: clamp(1rem, 3vw, 1.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero .photo { display:flex; align-items:flex-start; justify-content:center; }
|
||||||
|
.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; }
|
||||||
|
.hero .intro { display:flex; flex-direction:column; gap: clamp(0.5rem, 2vw, 1rem); }
|
||||||
|
.hero .intro h1 { margin-top: .25rem; font-size: clamp(1.5rem, 5vw, 2.5rem); }
|
||||||
|
.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); }
|
||||||
|
.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-card { padding: clamp(1rem, 3vw, 1.5rem); }
|
||||||
|
.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 ---- */
|
||||||
|
.project-grid { display: grid; gap: clamp(1rem, 3vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); }
|
||||||
|
.project-card { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; display: flex; flex-direction: column; height: 100%; }
|
||||||
|
.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 ---- */
|
||||||
|
.canvas-container { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 1000px; margin: 0 auto; }
|
||||||
|
.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; }
|
||||||
|
|
||||||
|
.category-cards { display: flex; flex-wrap: wrap; 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: 1200px; 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