Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
javierarce committed Sep 27, 2023
1 parent 64449b9 commit 7d639a3
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 61 deletions.
2 changes: 1 addition & 1 deletion _layouts/drawing.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ page.title }}
</div>

<div class="Drawing__image">
<div class="Drawing__image {% if page.fullheight == true -%}is-fullheight{% endif -%}">
{% if page.content %}
<div class="Drawing__content">
{{ page.content }}
Expand Down
70 changes: 10 additions & 60 deletions _sass/Drawing.scss
Original file line number Diff line number Diff line change
@@ -1,59 +1,8 @@
.Drawings.is-v3 {
.Drawings__content {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.Drawing {
}

.Drawing img {
background-repeat: no-repeat;
background-position: center;
object-fit: cover;
background-size: cover;
}

.Drawing__title {
display: block;
}


@media (max-width: 1023px) {
.Drawings__content {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 767px) {
.Drawings__content {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.Drawing img {
width: 100%;
height: auto;
object-fit: contain;
}
}
}

/* -------------------------------------------- */

.Drawings.is-v2 {
.Drawings__content {
column-count: 1;
column-gap: 1.4em;
}
.Drawing img {
width: 100%;
}
.Drawings.is-v1 {
max-width: 1440px;
margin: auto;
}

/* -------------------------------------------- */

.Drawing__content {
margin: 0 0 4em 0;
font-size: 1.2em;
Expand Down Expand Up @@ -109,11 +58,6 @@
margin: 0 auto 2em auto;
}

.Drawings.is-v1 {
max-width: 1440px;
margin: auto;
}

.Drawings__content {
display: grid;
grid-template-columns: repeat(3, 1fr);
Expand Down Expand Up @@ -151,10 +95,16 @@
transform: rotate(5deg);
}

.Drawing__image img {
.Drawing__image.is-fullheight img {
height: auto;
width: 100%;
}

.Drawing__image img {
height: 100vh;
width: auto;
}

@media (max-width: 1294px) {
.Drawing__image img {
height: auto;
Expand Down
1 change: 1 addition & 0 deletions content/_drawings/robot.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ date: "2023-08-22 09:52:00 +0200"
show_title: true
dir: robot
thumb: thumb.png
fullheight: true
filenames:
- 1.png
---
Binary file modified img/drawings/cars/1.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 modified img/drawings/cars/2.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 modified img/drawings/cars/3.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 modified img/drawings/cars/4.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 modified img/drawings/cars/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d639a3

Please sign in to comment.