Skip to content

Commit c391862

Browse files
author
Stephen Gutekanst
committed
Perfecting WebGPU/Dawn native graphics for Zig
Fixes hexops/mach#498 Fixes hexops/mach#189 Signed-off-by: Stephen Gutekanst <[email protected]>
1 parent dd6bb51 commit c391862

File tree

4 files changed

+386
-1
lines changed

4 files changed

+386
-1
lines changed

assets/main.scss

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,37 @@ article .category:hover {
267267
.single .imglink>img {
268268
margin: 0;
269269
}
270-
.single img {
270+
.single picture img {
271+
width: 100%;
272+
height: 100%;
273+
max-width: 100%;
274+
}
275+
.single img, .single picture {
271276
align-self: center;
272277
margin-bottom: 0;
273278
margin-top: 1rem;
274279
max-height: 25rem;
275280
max-width: 80%;
281+
}
282+
.single picture {
283+
width: 100%;
284+
height: 100%;
285+
}
286+
.single img {
276287
height: auto;
277288
width: auto;
278289
}
290+
.video-container {
291+
display: flex;
292+
width: 100%;
293+
flex-direction: column;
294+
}
295+
.single video {
296+
align-self: center;
297+
margin-top: 1rem;
298+
max-height: 25rem;
299+
max-width: 80%;
300+
}
279301
.single iframe, .twitter-tweet {
280302
width: 720px;
281303
height: 480px;

config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ mainSections = ['2021', '2022']
2121

2222
[taxonomies]
2323
category = "categories"
24+
25+
[mediaTypes]
26+
[mediaTypes.'video/mp4']
27+
suffixes = ['mp4']
28+
[mediaTypes.'video/ogg']
29+
suffixes = ['ogv']
30+
[mediaTypes.'video/webm']
31+
suffixes = ['webm']

0 commit comments

Comments
 (0)