Skip to content

876-fix: Update paddings for wide screens #893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/core/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
}
}

@mixin media-desktop-wide {
@media (min-width: #{$content-width + 1px}) {
@content;
}
}

@mixin media-hover {
@media (hover: hover) {
@content;
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/footer/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
background-color: $color-black;

&.content {
padding: 40px 120px;
padding: 40px 80px;

& .desktop-view {
display: flex;
Expand Down
4 changes: 4 additions & 0 deletions src/widgets/header/header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
max-width: 1440px;
height: 100%;
margin: 0 auto;

@include media-desktop-wide {
max-width: 1280px;
}
}

.navbar-content > .menu {
Expand Down