Skip to content

Commit

Permalink
Style fixes for several visual issues
Browse files Browse the repository at this point in the history
- Blog page - tablet look without padding, wrong structure of containers
- Horizontal scroll on iPad iOS - Added tweeks to solve these floating Bg's issues
- Logo grid alignment, make it bigger on columns spaces
  • Loading branch information
elad2412 committed Dec 25, 2023
1 parent adf2c54 commit 47daa14
Show file tree
Hide file tree
Showing 7 changed files with 171 additions and 162 deletions.
2 changes: 1 addition & 1 deletion src/markdoc/layouts/Category.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<div class="aw-big-padding-section-level-1">
<div class="aw-big-padding-section-level-2">
<div class="aw-container">
<a class="aw-link aw-u-color-text-secondary" href="/blog">
<a class="aw-link aw-u-color-text-secondary u-cross-baseline" href="/blog">
<span class="aw-icon-chevron-left" aria-hidden="true" />
<span>Back to blog</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/markdoc/layouts/Post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="aw-container" style="--container-size:42.5rem">
<article class="aw-main-article">
<header class="aw-main-article-header">
<a class="aw-link aw-u-color-text-secondary" href="/blog">
<a class="aw-link aw-u-color-text-secondary u-cross-baseline" href="/blog">
<span class="aw-icon-chevron-left" aria-hidden="true" />
<span>Back to blog</span>
</a>
Expand Down
314 changes: 158 additions & 156 deletions src/routes/blog/+page.svelte

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/routes/docs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<enhanced:img src="./blur-1.png" alt="" />
</div>

<main class="aw-main-section u-position-relative" id="main">
<main class="aw-main-section u-position-relative aw-u-overflow-hidden-break1-to-break3" id="main">
<div class="u-position-absolute aw-u-opacity-40-mobile bg-blur">
<img src="/images/bgs/docs-blur-1.svg" alt="" />
</div>
Expand Down
1 change: 1 addition & 0 deletions src/scss/7-components/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
>:nth-child(1) { flex:1.3; }
>:nth-child(2) { flex:1; }
}
@media #{$break1}, #{$break2}, #{$break3} { overflow:hidden; }
}

&.is-no-max-width { max-inline-size:initial; }
Expand Down
6 changes: 3 additions & 3 deletions src/scss/9-grids/_grid-3c-4c-6c.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

.#{$p}-grid-3c-4c-6c {
display: grid;
@media #{$break1} { grid-template-columns: repeat(3, 1fr); gap:pxToRem(20); }
@media #{$break2} { grid-template-columns: repeat(4, 1fr); column-gap:pxToRem(20); row-gap:pxToRem(40); }
@media #{$break3open} { grid-template-columns: repeat(6, 1fr); column-gap:pxToRem(20); row-gap:pxToRem(40); }
@media #{$break1} { grid-template-columns: repeat(3, 1fr); gap:pxToRem(40); }
@media #{$break2} { grid-template-columns: repeat(4, 1fr); column-gap:pxToRem(40); row-gap:pxToRem(40); }
@media #{$break3open} { grid-template-columns: repeat(6, 1fr); column-gap:pxToRem(40); row-gap:pxToRem(40); }

&.is-for-logos {
text-align:center;
Expand Down
6 changes: 6 additions & 0 deletions src/scss/_10-utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
.#{$p}-u-opacity-64 { opacity:0.64!important; }
.#{$p}-u-opacity-90 { opacity:0.9!important; }

.#{$p}-u-overflow-hidden-break1-to-break3 {
@media #{$break1}, #{$break2}, #{$break3} {
overflow:hidden;
}
}

.#{$p}-u-flex-vertical {display:flex!important; flex-direction:column!important; }
.#{$p}-u-flex-vertical-mobile { @media #{$break1} { flex-direction:column!important; } }
.#{$p}-u-flex-vertical-reverse-mobile { @media #{$break1} { flex-direction:column-reverse!important; } }
Expand Down

0 comments on commit 47daa14

Please sign in to comment.