Skip to content

Commit

Permalink
build(front): removes content background/shadow at higher breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Nov 7, 2023
1 parent 4458151 commit fbd4336
Show file tree
Hide file tree
Showing 35 changed files with 47 additions and 17 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _ci/backstop/scenarios/post/post_aside_toc_active.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
label: 'Post - Aside TOC Active Item Onload',
url: POST_URL,
viewports: aboveSmallViewports,
delay: 333,
delay: 533,
selectors: ['.post .aside'],
selectorExpansion: false,
misMatchThreshold: 0.2,
Expand Down
28 changes: 24 additions & 4 deletions front/src/lib/styles/base/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@
:root {
--bg-clr: var(--lemon-50);
--bg-light-clr: var(--lemon-25);
--content-bg-clr: var(--dirty-sidewalk);
--bg-gradient: linear-gradient(
190deg,
var(--sunshine),
var(--bg-clr) 333px
);
--content-bg-gradient: linear-gradient(
190deg,
var(--sunshine),
var(--content-bg-clr) 333px
);
--fg-clr: var(--violet);
--fg-clr-o: var(--violet-a90);
--fg-clr-oo: var(--violet-a75);
Expand All @@ -72,7 +78,6 @@
--link-clr: var(--fg-clr-oo);
--link-clr--hover: var(--highlight-clr);
--mark-bg-clr: var(--green);
--content-bg-clr: var(--dirty-sidewalk);
--headshot-filter: sepia(100%) saturate(70%) brightness(85%)
hue-rotate(61deg);
--shadow-color: var(--sunshine-shadow-clr);
Expand Down Expand Up @@ -137,6 +142,12 @@ html.light-theme {
--bg-clr: var(--lemon-50);
--bg-light-clr: var(--lemon-25);
--bg-gradient: linear-gradient(190deg, var(--sunshine), var(--bg-clr) 333px);
--content-bg-clr: var(--dirty-sidewalk);
--content-bg-gradient: linear-gradient(
190deg,
var(--sunshine),
var(--content-bg-clr) 333px
);
--fg-clr: var(--violet);
--fg-clr-o: var(--violet-a90);
--fg-clr-oo: var(--violet-a75);
Expand All @@ -147,7 +158,6 @@ html.light-theme {
--link-clr: var(--fg-clr-oo);
--link-clr--hover: var(--highlight-clr);
--mark-bg-clr: var(--green);
--content-bg-clr: var(--dirty-sidewalk);
--headshot-filter: sepia(100%) saturate(70%) brightness(85%) hue-rotate(61deg);
--shadow-color: var(--sunshine-shadow-clr);
--tag-clr: var(--sand-a50);
Expand Down Expand Up @@ -218,12 +228,17 @@ html.light-theme {
--hardlight-clr: var(--grape);
--bg-clr: var(--rich-black);
--bg-light-clr: var(--oxford-blue);
--content-bg-clr: var(--blue-rock);
--bg-gradient: linear-gradient(
190deg,
var(--moonshine),
var(--bg-clr) 333px
);
--content-bg-clr: var(--blue-rock);
--content-bg-gradient: linear-gradient(
190deg,
var(--moonshine),
var(--content-bg-clr) 333px
);
--shadow-color: var(--moonshine-shadow-clr);
--rim-clr: var(--moonshine);
--link-clr: var(--fg-clr-oo);
Expand Down Expand Up @@ -281,9 +296,14 @@ html.dark-theme {
--fg-clr-oooo: var(--celestial-a30);
--hardlight-clr: var(--grape);
--bg-clr: var(--rich-black);
--content-bg-clr: var(--blue-rock);
--bg-light-clr: var(--oxford-blue);
--bg-gradient: linear-gradient(190deg, var(--moonshine), var(--bg-clr) 333px);
--content-bg-clr: var(--blue-rock);
--content-bg-gradient: linear-gradient(
190deg,
var(--moonshine),
var(--content-bg-clr) 333px
);
--shadow-color: var(--moonshine-shadow-clr);
--rim-clr: var(--moonshine);
--link-clr: var(--fg-clr-oo);
Expand Down
4 changes: 2 additions & 2 deletions front/src/lib/styles/base/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
ol,
ul {
margin: 1rem 0 1rem 0.25rem;
margin: 0.75rem 0 0.75rem 0.25rem;
li {
margin-bottom: 0.75rem;
&:last-of-type {
Expand Down Expand Up @@ -150,7 +150,7 @@ h1.page-heading {
.meat {
ol,
ul {
margin: 1.5rem 0 1.5rem 1.5rem;
margin: 0.75rem 0 0.75rem 1.5rem;
ol,
ul {
margin: 0.75rem 0 0.75rem 0.75rem;
Expand Down
13 changes: 7 additions & 6 deletions front/src/lib/styles/components/Code/Code.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
position: relative;
z-index: 3;
transition: transform 0s;
margin-top: 2.25rem;
margin-bottom: 2.25rem;
margin-top: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-elevation-medium);
border-radius: 0.5rem;
background-color: var(--bg-light-clr);
Expand Down Expand Up @@ -112,8 +112,8 @@
transition-property: scrollbar-color;
transition-timing-function: var(--transition-timing-function);
margin-bottom: -0.5rem;
padding: 4rem 0 0.5rem 0;
overflow-x: auto;
padding: 4.25rem 0 0.5rem 0;
overflow-x: scroll;
scrollbar-color: transparent transparent;
scrollbar-gutter: stable both-edges;
scrollbar-width: thin;
Expand Down Expand Up @@ -154,7 +154,7 @@
transition: scrollbar-color 0.5s;
margin-bottom: -0.5rem;
padding: 3.25rem 0 0.5rem 0;
overflow-x: auto;
overflow-x: scroll;
scrollbar-color: transparent transparent;
scrollbar-gutter: stable both-edges;
scrollbar-width: thin;
Expand Down Expand Up @@ -292,7 +292,7 @@

@media screen and (min-width: 480px) {
.syntax-highlighter {
padding: 0 0.75rem 0.5rem 0.75rem;
padding: 0 0.75rem 0.75rem 0.75rem;
.line-number-wrap {
td:first-child {
display: table-cell;
Expand Down Expand Up @@ -339,6 +339,7 @@
padding: 0 2rem;
> pre {
padding-top: 4.5rem;
padding-bottom: 1.5rem;
}
.line-number-wrap {
padding-top: 4rem;
Expand Down
3 changes: 3 additions & 0 deletions front/src/lib/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ a.scroll-top {
font-size: 1.125rem;
line-height: 1.75rem;
}
}

@media screen and (min-width: 768px) {
.privacy,
.post {
box-shadow: var(--shadow-elevation-high);
Expand Down
14 changes: 10 additions & 4 deletions front/src/lib/styles/pages/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,6 @@
em strong {
font-family: var(--font-psb);
}
&:has(+ ul),
&:has(+ ol) {
padding-bottom: 0;
}
}
a {
transition-duration: var(--transition-duration);
Expand All @@ -271,6 +267,15 @@
margin-left: 0.5rem;
}
}
& + h1.post-heading,
& + h2.post-heading,
& + h3.post-heading,
& + h4.post-heading,
& + h5.post-heading,
& + h6.post-heading,
& + h7.post-heading {
padding-top: 1rem;
}
}
code {
color: var(--fg-clr-o);
Expand Down Expand Up @@ -472,6 +477,7 @@
@media screen and (min-width: 768px) {
.post {
margin-top: 3.5rem;
background: var(--content-bg-gradient);
padding: 2.33rem;
}
.post-hero-wrap {
Expand Down

0 comments on commit fbd4336

Please sign in to comment.