Skip to content

Commit

Permalink
gallery done
Browse files Browse the repository at this point in the history
  • Loading branch information
Iryna Mariiko authored and Iryna Mariiko committed Sep 19, 2024
1 parent 5b70f35 commit e9ff4c8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h1 class="header__title">Художній музей</h1>
</aside>
<div class="page-overlay"></div>

<main class="main">
<main class="main page__main">
<div class="container">
<section class="main__current" id="current-events">
<h1 class="main__title">Актуальні події</h1>
Expand Down
4 changes: 2 additions & 2 deletions src/styles/blocks/gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@
}

[id='radio3']:checked ~ .first {
margin-left: -15%;
margin-left: -16%;
}

[id='radio4']:checked ~ .first {
margin-left: -24%;
margin-left: -20%;
}
}

Expand Down
7 changes: 7 additions & 0 deletions src/styles/blocks/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ body {
.menu:target ~ .header {
background-color: rgba(0, 0, 0, 0.5); /* Якщо хочете, щоб хедер також змінився */
}

.page__main {
--columns: 6;

display: grid;
column-gap: 30px;
}
10 changes: 10 additions & 0 deletions src/styles/utils/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,14 @@
display: grid;
column-gap: 20px;
grid-template-columns: repeat(var(--columns), 1fr);

@include on-tablet {
--columns: 6;

column-gap: 30px;
}

@include on-desktop {
--columns: 12;
}
}

0 comments on commit e9ff4c8

Please sign in to comment.