Skip to content

Commit b334e6b

Browse files
Add Responsive Image Article
1 parent a5f89fd commit b334e6b

File tree

7 files changed

+249
-5
lines changed

7 files changed

+249
-5
lines changed
Loading
Loading

src/blogComponents/lib/Tangent.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
const { title = "Tangent" } = Astro.props
3-
---
4-
51
<aside class="tangent">
62
<slot />
73
</aside>
@@ -17,4 +13,8 @@ const { title = "Tangent" } = Astro.props
1713
font-size: 0.9em;
1814
color: var(--theme-text-light);
1915
}
16+
17+
:global(.tangent code) {
18+
background-color: var(--theme-tangent-code-inline-bg);
19+
}
2020
</style>

src/blogComponents/responsiveIframeEmbed/ResponsiveIframeEmbed.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ const { url } = Astro.props
3131
overflow: hidden;
3232
width: 600px;
3333
}
34-
</style>
34+
</style>

src/pages/2023-04/html-dialog/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ tags: ["HTML"]
1010

1111
Modals have been a part of web development for decades now, but they have always been a bit of a pain to work with. The main reason modals have been such a pain is because it is difficult to make a truly accessible modal that conforms to all accessibility standards. This is why the new HTML `dialog` element is so exciting. The `dialog` element makes it so much easier to create accessible modals, and in this article I will explain everything you need to know about the `dialog` element to use it in your next project.
1212

13+
_If you prefer to learn visually, check out the video version of this article._
14+
`youtube: ywtkJkxJsdg`
15+
1316
## What Is A Dialog/Modal?
1417

1518
Before we can jump into the new `dialog` element, I need to first explain what a dialog is. A dialog/modal is simply a popup that appears on top of the current page. The main difference between a dialog and a modal is that a modal is supposed to take complete priority over the page and prevent the user from interacting with the page until the modal is closed while a dialog, is just a popup that doesn't take complete priority over the page and should allow the user to interact with the page while the dialog is open.

src/pages/2023-05/responsive-images/index.md

Lines changed: 239 additions & 0 deletions
Large diffs are not rendered by default.

src/styles/theme.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
--theme-popup-bg: var(--color-gray-200);
6161
--theme-tangent-bg: var(--color-gray-200);
6262
--theme-tangent-border: var(--color-gray-300);
63+
--theme-tangent-code-inline-bg: var(--color-gray-400);
6364

6465
--theme-red: var(--color-red);
6566
--theme-blue: var(--color-blue);
@@ -86,6 +87,7 @@
8687
--theme-popup-bg: var(--color-gray-700);
8788
--theme-tangent-bg: var(--color-gray-700);
8889
--theme-tangent-border: var(--color-gray-600);
90+
--theme-tangent-code-inline-bg: var(--color-gray-800);
8991

9092
--theme-red: var(--color-red-dark);
9193
--theme-blue: var(--color-blue-dark);

0 commit comments

Comments
 (0)