Skip to content

Commit

Permalink
Actually, make layouts 770px
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek committed Jul 5, 2024
1 parent 5087449 commit b43e6a8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/CodeEmbed/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const CodeEmbed = (props) => {
initialCode.replace(/\u00A0/g, " "),
);

const largeSketch = props.previewWidth && props.previewWidth > 767 - 60;
const largeSketch = props.previewWidth && props.previewWidth > 770 - 60;

const codeFrameRef = useRef(null);

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/EventLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const relatedEvents =
{
entry.data.featuredImage && entry.data.featuredImageAlt && (
<Image
containerClass="relative h-fit w-fit max-w-[767px]"
containerClass="relative h-fit w-fit max-w-[770px]"
src={entry.data.featuredImage}
alt={entry.data.featuredImageAlt}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/ExampleLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const { Content } = await example.render();
topic="examples"
className="example"
>
<div class="mt-xl mb-4xl lg:mb-3xl max-w-[767px]">
<div class="mt-xl mb-4xl lg:mb-3xl max-w-[770px]">
<div class="rendered-markdown">
<Content />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/PeopleLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ setJumpToState(null);
<Head title={"People"} locale={currentLocale} />

<BaseLayout title={title} variant="item" topic="about" className="about">
<h3 class="mb-xl max-w-[767px]">
<h3 class="mb-xl max-w-[770px]">
{t("peoplePage", "PageDescription")}
</h3>
{
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/ReferenceItemLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const seenParams: Record<string, true> = {};
topic="reference"
className="reference-item"
>
<div class="content-grid mt-0 max-w-[767px]">
<div class="content-grid mt-0 max-w-[770px]">
<div class="col-span-9 xl:min-w-[1000px]">
<div
set:html={description}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/SketchLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const iframeTitle = `OpenProcessing Sketch: ${sketchInfo.title} by ${authorName}
variant="item"
topic={"community"}
>
<div class="max-w-[767px]">
<div class="max-w-[770px]">
<div style={{
position: 'relative',
width: '100%',
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/TextDetailLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ setJumpToState(null);
className={pageTopic}
subtitle={null}
>
<div class="max-w-[767px] [&>*:first-child]:mt-0 rendered-markdown pb-[80px]">
<div class="max-w-[770px] [&>*:first-child]:mt-0 rendered-markdown pb-[80px]">
<Content />
</div>
</BaseLayout>
2 changes: 1 addition & 1 deletion styles/variables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Media query breakpoints
// Intentionally defined as SCSS variables as CSS variables are not supported by media queries.
// These are mirrored in Tailwind.
$breakpoint-tablet: 767px;
$breakpoint-tablet: 770px;
$breakpoint-laptop: 1024px;
$breakpoint-desktop: 1280px;

Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
theme: {
// These values are mirrored in variables.scss
screens: {
md: "767px",
md: "770px",
lg: "1024px",
xl: "1280px",
},
Expand Down

0 comments on commit b43e6a8

Please sign in to comment.