Skip to content

Commit

Permalink
Mixin for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
bartKarb committed Feb 19, 2024
1 parent 22585c1 commit 65c3270
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 140 deletions.
12 changes: 5 additions & 7 deletions src/styles/blocks/header.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
@use '../utils/mixins' as *;

.header {
background-color: black;
background-image: url(/src/images/header-background.jpg);
background-repeat:no-repeat;
background-size: cover;

// display: flex;
// flex-direction: column;
// justify-content: space-between;

min-height: 100vh;
padding: 0 20px 80px;
box-sizing: border-box;
Expand All @@ -19,7 +17,7 @@
grid-template-rows: 1fr 1fr;
gap: 20px;

@media (min-width: 1020px) {
@include for-desktop{
grid-template-columns: repeat(12, 63px);
grid-template-rows: 1fr 1fr;
gap: 24px;
Expand All @@ -30,7 +28,7 @@
grid-column: 1 / 3;
grid-row : 1 / 2;

@media (min-width: 1020px) {
@include for-desktop {
grid-column: 1 / 13;
}
}
Expand All @@ -40,7 +38,7 @@
grid-column: 1 / 3;
grid-row: 2 / 3;

@media (min-width: 1020px) {
@include for-desktop {
grid-column: 1 / 13;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/styles/utils/extends.css

This file was deleted.

1 change: 0 additions & 1 deletion src/styles/utils/extends.css.map

This file was deleted.

1 change: 0 additions & 1 deletion src/styles/utils/mixins.css

This file was deleted.

1 change: 0 additions & 1 deletion src/styles/utils/mixins.css.map

This file was deleted.

7 changes: 7 additions & 0 deletions src/styles/utils/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
@mixin for-desktop() {
@media (min-width: 1020px) {
@content;
}
}


@mixin hover($_property, $_toValue) {
transition: #{$_property} 0.3s;
&:hover {
Expand Down
126 changes: 0 additions & 126 deletions src/styles/utils/reset.css

This file was deleted.

1 change: 0 additions & 1 deletion src/styles/utils/reset.css.map

This file was deleted.

1 change: 0 additions & 1 deletion src/styles/utils/vars.css

This file was deleted.

1 change: 0 additions & 1 deletion src/styles/utils/vars.css.map

This file was deleted.

0 comments on commit 65c3270

Please sign in to comment.