#containerquery — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #containerquery, aggregated by home.social.
-
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - my take on an old problem using modern CSS solutions.Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier told me to be proud of it 😛
#CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween
-
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - my take on an old problem using modern CSS solutions.Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier told me to be proud of it 😛
#CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween
-
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - my take on an old problem using modern CSS solutions.Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier told me to be proud of it 😛
#CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween
-
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - my take on an old problem using modern CSS solutions.Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier told me to be proud of it 😛
#CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween
-
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - my take on an old problem using modern CSS solutions.Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier told me to be proud of it 😛
#CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
#tinyCSStip We can have boolean logic in container queries!
And this works cross-browser!
Live test on @codepen: https://codepen.io/thebabydino/pen/QwbNNpz
More info on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/@container#logical_keywords_in_container_queries
#CSS #cssLayout #containerQuery #coding #web #dev #webDev #webDevelopment #code #frontend
-
Haven't been posting much coding stuff this past week as I've found it difficult to focus on it given the state of things in my country 😞
But... I have a new article out!
Using Container Query Units Relative to an Outer Container https://frontendmasters.com/blog/using-container-query-units-relative-to-an-outer-container/
Sparked by a question @mattwilcox asked here.
#CSS #containerQuery #frontend #coding #web #dev #webDev #webDevelopment #code #containerQueryUnits
-
Here's a quick responsive clover layout on @codepen https://codepen.io/thebabydino/pen/RNwmjEQ?editors=0100
#CSS #layout #cssLayout #containerQuery #cssGrid #code #coding #responsive #web #dev #webDevelopment #webDev #frontend
-
Pretty sure I've posted about this before, but a quick search at the morning hours didn't find it, plus I saw someone ask about it yet again¹, so... fixed aspect-ratio box within variable size container!
Live on @codepen https://codepen.io/thebabydino/pen/ogvZdoZ?editors=1101
¹here https://www.reddit.com/r/css/comments/1hhf4x3/comment/m2s81yr/
#CSS #aspectRatio #code #coding #web #frontend #dev #webDevelopment #webDev #containerQuery #containerQueryUnits #container
-
#tinyCSStip Container queries on the body? Why, when media queries have better support?
Well, container queries make it an IF depending on the width of the body's content-box.
That is, subtracting the scrollbar IF we have one (we can't know).
**Heavily** commented @codepen demo https://codepen.io/thebabydino/pen/ZEgjpYL
#CSS #container #containerQuery #layout #cssLayout #grid #cssGrid #frontend #code #web #dev #webDev #webDevelopment #coding #containerQueryUnits
-
If you're a $5+ patron on Patreon, I've just posted a very special and cool interactive demo. With explanations about the concepts it illustrates + the demo itself is heavily commented as the viewport-adaptive layout part is very interesting too.
https://www.patreon.com/posts/swap-channels-98985162
#svg #svgFilter #css #cssLayout #code #cssSubgrid #containerQuery #cssGrid #coding #webDev #webDevelopment #frontend
-
#Development #Techniques
Rebuilding a comment component with modern CSS · How to craft a state-of-the-art CSS comment section https://ilo.im/13js3h_____
#Comments #WebDevelopment #WebDev #Frontend #CSS #CssSubgrid #ContainerQuery #StyleQuery #LogicalProperty #Layout #TextAlignments #Avatars #Emoji -
#Development #Techniques
Captured custom properties · A noteworthy naming pattern for CSS variables https://ilo.im/15zz5d_____
#CustomProperty #Naming #FeatureDetection #TypeLimitation #ContainerQuery #StyleQuery #WebDev #Frontend #CSS -
#Development #Opportunities
‘Smart’ CSS layouts with container queries · New options we never had with media queries https://ilo.im/15zshu_____
#ModernCSS #Layout #ContainerQuery #MediaQuery #CssGrid #CssFlexbox #WebDev #Frontend #CSS -
#Development #Explorations
What if you used Container Units for… everything? · “Surprise, surprise, that it’s not that easy.” https://ilo.im/15zotb_____
#Layout #ResponsiveDesign #WebDesign #WebDev #CSS #ContainerQuery #ContainerUnit #CssClamp -
#Development #Techniques
Fit-to-width text: A new technique · How modern CSS helps to solve an ancient challenge https://ilo.im/15zk30_____
#ModernCSS #Layout #Typography #WebDev #Frontend #ARIA #HTML #CSS #ContainerQuery #CustomProperty -
#Development #Approaches
How to use CSS Container Queries now · Can Container Queries already be used in production? https://ilo.im/15zdwd_____
#Layout #ResponsiveDesign #ContainerQuery #BrowserSupport #Browser #WebDev #Frontend #CSS #JavaScript -
2⃣ feColorMatrix: swap channels ☆ interactive demo, adaptive layout https://codepen.io/thebabydino/full/QWopRMK
An interactive, responsive demo illustrating how feColorMatrix can be used to swap channels.
#SVG #filter #svgFilter #responsive #filterEffect #code #coding #frontend #webDev #web #dev #cssGrid #containerQuery #webDevelopment
-
#Development #Approaches
Learn CSS grid now, container queries can wait · “Take your time with new CSS, but don’t sleep on the essentials.” https://ilo.im/15z72q_____
#Layout #Browser #CssGrid #CssFlexbox #ContainerQuery #Design #ResponsiveDesign #WebDev #Frontend #CSS -
If you want a fixed aspect-ratio element that always touches either the horizontal or vertical edges of its flexible size and aspect ratio wrapper *which does not coincide with the viewport*, you can make the wrapper a container and use container query units.
Live test on @codepen https://codepen.io/thebabydino/pen/ExzbVmP
#CSS #cssLayout #layout #container #containerQueries #containerQuery #cssUnits #code #coding #frontend #web #dev #webDev
-
#Development #Guides
CSS Container Queries · A contemporary approach to responsive web design https://ilo.im/15z5q7_____
#Browser #ResponsiveDesign #WebDesign #WebDev #Frontend #CSS #MediaQuery #ContainerQuery #StyleQuery -
Extremely annoying #CSS gotcha: container query units seem to be relative to the `content-box` dimensions. And there doesn't seem to be any way to make them relative to the `border-box` dimensions... which is what I need to solve other problems caused by container queries. 😭
#cssWTF #gotcha #layout #cssLayout #wtf #code #coding #containerQueries #containerQuery #frontend #webDev #webDevelopment
-
#tinyCSStip Let's say we want a 90° rotated element (like a range input because rotation is the only way we can make it vertical) to fully cover its flexible size (think `clamp()` using `%` values, grid item on a flexible grid and stuff like that) parent.
We can make this parent a container and use container query units to style our element.
#css #layout #cssLayout #containerQuery #slider #code #coding #frontend #webDev #webDevelopment
-
In the final case, when we use the B channel, the only orange parts that aren't almost fully transparent are the white pith and seeds.
#SVG #filter #svgFilter #CSS #layout #cssLayout #cssGrid #containerQuery #cssVariables #code #coding #frontend #webDev #webDevelopment
-
When we use the G channel, the white orange pith and seeds, as well as the flesh of the less reddish oranges are the least transparent parts. The aquatic blue background is also less transparent in this case, through still more transparent than when we use the B channel.
#SVG #filter #svgFilter #layout #CSS #cssLayout #cssGrid #containerQuery #cssVariables #code #coding #frontend #webDev #webDevelopment
-
When we use the R channel, the oranges are the least transparent (darkest) part (R value higher there as orange is mainly R + some G), especially the whitish pith (which almost maxes out all channels), while the aquatic blue (mostly B + G) background is the most transparent.
#SVG #CSS #filter #svgFilter #layout #cssLayout #cssGrid #containerQuery #cssVariables #code #coding #frontend #webDev #webDevelopment
-
A bit on #CSS container query magic: the layout of the result section depends on its width.
The aspect ratio of the two figures depends on which container width/ layout case we're in and so does the container-query-unit-relative font-size.
#containerQuery #cssLayout #cssGrid #SVG #filter #svgFilter #code #coding #frontend #webDev #webDevelopment
-
Not happy with this, but before I start to cry and redo it a fourth time: alpha masks from RGB channels https://codepen.io/thebabydino/pen/OJqZvQO?editors=1111
#SVG #svgFilter #filter #CSS #cssGrid #responsive #cssLayout #containerQuery #cssVariables #code #coding #frontend #webDev #webDevelopment
-
A lot going on with this in terms of #layout (sections getting rearranged for different viewport widths/ aspect ratios, their internal layouts based on their own widths, icon displayed only if font above a certain size, etc.) so #code is *heavily* commented.
https://mastodon.social/@anatudor/112157559510002242
#CSS #SVG #filter #svgFilter #cssLayout #cssGrid #containerQuery #responsive #coding #frontend #webDev #webDevelopment
-
And the thing got featured! 🥳🎉
#CodePen #interactive #CSS #code #coding #SVG #filter #svgFilter #frontend #webDev #webDevelopment #layout #cssLayout #cssGrid #containerQuery #cssVariables
-
#CSS #layout is difficult, arranging elements that are container queries (so their internal layouts and aspect ratios change too) on the page for different viewport sizes *and* aspect ratios such that the most important info is always in sight. Scrolling is not an option in this case.
It's not the code part of it I struggle with...
#cssLayout #mediaQuery #containerQuery #code #coding #frontend #webDev #webDevelopment
-
#Design #Development #Evolutions
The guide to responsive design in 2023 and beyond · Responsive design isn’t about media queries anymore https://ilo.im/10tc2d“It’s about time we change our mindset and take the full potential of modern CSS.” — Ahmad Shadeed
_____
#UiDesign #WebDesign #ResponsiveDesign #FluidDesign #Frontend #CSS #Grid #Flexbox #MediaQuery #ContainerQuery -
#Development #Techniques
CSS container query units and fluid typography · New ways to create dynamically calculated typography rules https://ilo.im/12enwp_____
#WebDevelopment #WebDev #WebTypography #Frontend #CSS #ContainerQuery #CustomProperties #CssVariables #WebFont -
If you want a fixed aspect-ratio element that always touches either the horizontal or vertical edges of its flexible size and aspect ratio wrapper *which does not coincide with the viewport*, you can make the wrapper a container and use container query units.
Live test on @codepen https://codepen.io/thebabydino/pen/ExzbVmP
#CSS #cssLayout #layout #container #containerQueries #containerQuery #cssUnits #code #coding #frontend #web #dev #webDev
-
If you want a fixed aspect-ratio element that always touches either the horizontal or vertical edges of its flexible size and aspect ratio wrapper *which does not coincide with the viewport*, you can make the wrapper a container and use container query units.
Live test on @codepen https://codepen.io/thebabydino/pen/ExzbVmP
#CSS #cssLayout #layout #container #containerQueries #containerQuery #cssUnits #code #coding #frontend #web #dev #webDev
-
If you want a fixed aspect-ratio element that always touches either the horizontal or vertical edges of its flexible size and aspect ratio wrapper *which does not coincide with the viewport*, you can make the wrapper a container and use container query units.
Live test on @codepen https://codepen.io/thebabydino/pen/ExzbVmP
#CSS #cssLayout #layout #container #containerQueries #containerQuery #cssUnits #code #coding #frontend #web #dev #webDev
-
If you want a fixed aspect-ratio element that always touches either the horizontal or vertical edges of its flexible size and aspect ratio wrapper *which does not coincide with the viewport*, you can make the wrapper a container and use container query units.
Live test on @codepen https://codepen.io/thebabydino/pen/ExzbVmP
#CSS #cssLayout #layout #container #containerQueries #containerQuery #cssUnits #code #coding #frontend #web #dev #webDev
-
#Design #Development #Explorations
On Container Queries, responsive images, and JPEG-XL · Responsive images conflict with Container Queries. Can JPEG-XL help? https://ilo.im/11dfiy_____
#ResponsiveDesign #WebDesign #WebDevelopment #WebDev #Frontend #CSS #ContainerQuery #ResponsiveImage #JpegXL -
If you've looked into using #CSS style queries, you may have stumbled onto this article by @Una (it's the first search result) https://developer.chrome.com/blog/style-queries/
One thing that stood out to me was a note about not having range queries yet.
Well... maybe we do! min() and max() to the rescue!
#CSSvariables #styleQuery #containerQuery #coding #frontend #webDev #webDevelopment