Skip to content

Instantly share code, notes, and snippets.

View jensgro's full-sized avatar

Jens Grochtdreis jensgro

View GitHub Profile

Your State of HTML 2024 Reading List

HTML Media Capture

Capture input from the user’s camera.

The capture attribute specifies that, optionally, a new file should be captured, and which device should be used to capture that new media of a type defined by the accept attribute.

@jensgro
jensgro / custom-property-nutzung.css
Last active October 5, 2024 22:27
Ein Detail-Asprekt der Nutzung von Custom Properties
/* ========= nicht so praktisch ========= */
p {
font-size: var(--fs-xs);
}
@media (min-width: 800px) {
p {
font-size: var(--fs-sm);
}
}
@jensgro
jensgro / css-broken-grid-demo.markdown
Created September 27, 2024 21:28
CSS Broken Grid Demo
@jensgro
jensgro / css-2024-reading-list.md
Last active October 5, 2024 22:28
State of CSS 2024 Reading List

CSS 2024 Reading List

lvh / lvw / lvmin / lvmax, sv*, dv*, etc.

The CSS data type represents a distance value. Lengths can be used in numerous CSS properties, such as width, height, margin, padding, border-width, font-size, and text-shadow.

Anchor Positioning

  • Future CSS: Anchor Positioning (kizu.dev)
@jensgro
jensgro / selectors.css
Created September 10, 2024 06:43
neue Selektoren
:where(label:has(> input:disabled), label:has(+ input:disabled)) { cursor : not-allowed;}
.row:has(.topic-tags-block) {}
:where(button) { all : unset;}
footer:has(.broadcastinfo) {}
a:has(.lead) {}
.teaser:has(.topline[style="display: none;"]) .hgroup a:before {}
.media-liveblog:has(.topline) .topline:before {}
@jensgro
jensgro / index.html
Created August 5, 2024 13:27
text-clamp
<div class="wrapper">
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sint quas aliquid in nesciunt eveniet alias quis aspernatur dicta! Ad eos, asperiores, at, veritatis dolores ullam officia impedit facilis ab velit aut excepturi voluptate fugiat quidem est quod dolor ducimus. Facilis nobis sed et omnis incidunt tenetur hic possimus quae quaerat itaque quas iure cupiditate, odit impedit. Quaerat, aliquam? Eaque odio accusamus minima vel molestias, illo ab dolorem. Soluta ab numquam ea temporibus voluptas eos amet blanditiis, in quaerat repudiandae distinctio eum quasi inventore provident vel at voluptate commodi molestias nisi consequatur. Fugiat, hic modi. Iste dolor velit in cum assumenda?</p>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Porro vel quas quo nemo maiores labore atque harum itaque placeat repellat. Aliquam expedita alias vel quas fuga quod quos debitis cum labore possimus ipsum, maiores nisi dolor beatae animi voluptatibus cumque veritatis velit, laborum iure
@jensgro
jensgro / 11ty-conference-videos.md
Created May 24, 2024 14:06
The videos of the first online conference of the 11ty-community - in schedule order.
@jensgro
jensgro / base.css
Created April 30, 2024 15:16
Eine Art Reset-Normalisierung :-)
*,
::after,
::before {
box-sizing: border-box;
}
html {
font-size: 16px;
}