Set up CV base layout
This commit is contained in:
parent
098b8b8e0d
commit
04d1096d2e
4 changed files with 34 additions and 9 deletions
|
@ -16,11 +16,11 @@ $white: #fff;
|
||||||
// ----- DIMENSIONS
|
// ----- DIMENSIONS
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
$content-width-xs: min(100%, 40rem); // => 640px
|
$content-width-xs: 40rem; // => 640px
|
||||||
$content-width-s: min(100%, 60rem); // => 960px
|
$content-width-s: 60rem; // => 960px
|
||||||
$content-width-m: min(100%, 80rem); // => 1280px
|
$content-width-m: 80rem; // => 1280px
|
||||||
$content-width-l: min(100%, 100rem); // => 1600px
|
$content-width-l: 100rem; // => 1600px
|
||||||
$content-width-xl: min(100%, 120rem); // => 1920px
|
$content-width-xl: 120rem; // => 1920px
|
||||||
|
|
||||||
// Sidebar
|
// Sidebar
|
||||||
$sidebar-padding-x: clamp(0.75rem, -0.75rem + 3.125vw, 3rem); // Viewport range: 48rem <=> 120rem
|
$sidebar-padding-x: clamp(0.75rem, -0.75rem + 3.125vw, 3rem); // Viewport range: 48rem <=> 120rem
|
||||||
|
|
|
@ -43,10 +43,11 @@ body {
|
||||||
#app {
|
#app {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto 1fr;
|
grid-template-columns: 1fr minmax(min-content, $content-width-m) 1fr;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
width: $content-width-xl;
|
width: 100%;
|
||||||
|
max-width: $content-width-xl;
|
||||||
|
|
||||||
header {
|
header {
|
||||||
grid-column: 1;
|
grid-column: 1;
|
||||||
|
@ -79,6 +80,9 @@ body {
|
||||||
|
|
||||||
main {
|
main {
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
padding: calc(($sidebar-padding-y * 2) + ($logo-portrait-width * 2)) 0;
|
padding: calc(($sidebar-padding-y * 2) + ($logo-portrait-width * 2)) 0;
|
||||||
|
|
||||||
@media (orientation: landscape) {
|
@media (orientation: landscape) {
|
||||||
|
|
|
@ -6,5 +6,27 @@
|
||||||
|
|
||||||
.cv {
|
.cv {
|
||||||
|
|
||||||
.cv__content {}
|
.cv__content {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
column-gap: 0.5rem;
|
||||||
|
row-gap: 1rem;
|
||||||
|
max-width: $content-width-s;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
grid-column: 1 / span 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
grid-column: 1 / span 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
grid-column: 1 / span 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
grid-column: 2 / span 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
width: $content-width-m;
|
|
||||||
|
|
||||||
.home__gallery-item {
|
.home__gallery-item {
|
||||||
display: table;
|
display: table;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue