Search results
The Sass if() syntax is deprecated in favor of the modern CSS syntax.
https://sass-lang.com/documentation/breaking-changes/if-function/
https://sass-lang.com/documentation/breaking-changes/if-function/
In 2010, shortly after adding the boolean value type, Sass added the global if() function as a way to easily use booleans in a single expression without having to write out an entire @if rule. This function had the signature if($condition, $if-true, $if-false) and returned $if-true if $condition was truthy and $if-false otherwise.
At the time, browsers didn’t even support @media queries and we never imagined that CSS might support its own if() function someday. But fifteen years later, support for the CSS if() function began landing in browsers and we had to do so as well in order to remain fully CSS-compatible.
요약하자면, "우리가 if()함수를 전역으로 넣을 때까지만 해도 CSS에 if 함수가 도입될거라곤 상상도 못했어"
대안으로 제시하는 문법은 아직 사용하지 못하는 곳이 있을테니 당분간 @if and @else 규칙 쓰는게 나을듯. #scss #css
Today was the first time in my career I've actually used the <ruby> tag.
Granted I'm not using it exactly what it was designed for, but it's a decent compromise in having a fat icon accompanied by a small explanatory text, as opposed to doing this with a lot more CSS and some other semantically uninteresting containers.
Mastodon Bird UI support for Mastodon v4.6.0 with CSS properties is coming soon. The theme will also be modularized using SCSS partials to match Mastodon's new style infrastructure.
The build process will include npm scripts and Parcel, making the theme ultra-portable for any Mastodon instance, whether added through the Custom CSS textarea or directly by a Mastodon admin.
I'll also create a simple bash script for Mastodon admins to enable the theme as a selectable option more easily than the current fork-and-cut method.
This is no easy feat, but definitely worth it.
GitHub: https://github.com/ronilaukkarinen/mastodon-bird-ui
Progress in the nightly branch.
#MastodonBirdUI #CSS #OpenSource #MastoAdmin #Theming #BirdUI #Mastodon #BuildInPublic
Y’all. I made this cute little animation to show that a link was successfully copied. I use it on my writing site.
It’s not monumental, but I really like it. My son said it feels “very satisfying.”
#Design #CSS #Javascript #HTML #UI #Animation #InteractionDesign #WebDesign
They said Fizz Buzz using CSS (and HTML), but what about a pure CSS version with no HTML? It's possible!
https://css-tip.com/fizz-buzz/
A fun CSS-only experiment using modern features.
#CSS `@custom-media` feature flags
create your own true or false media queries
https://nerdy.dev/custom-media-feature-flags
Fizz Buzz in CSS
Link: https://susam.net/fizz-buzz-in-css.html
Discussion: https://news.ycombinator.com/item?id=46166708
CSS now has an if() conditional function
Link: https://caniuse.com/?search=if
Discussion: https://news.ycombinator.com/item?id=46092198
💡 CSS Tip!
How many selectors do you know for the HTML element? Only two, right? There are more!
It's time to discover the hidden selectors of the HTML element.
https://css-tip.com/root-selectors/
Are they useful? Probably not, but it's a fun exploration of CSS selectors. Did I miss another cool selector?
In the last ~6 months someone linked to their blog about using JS-free custom elements for page structure and style in place of a methodology like BEM, e.g. using `<my-element>`/`my-element {}` instead of `<div class="my-element">`/`.my-element {}`. Might have referenced [HUG CSS](https://gomakethings.com/hug-css-how-i-approach-css-architecture/) as well. I'm sure I bookmarked it but I'll be darned if I can find it again. Pointers please?
[update: found it, or close enough. https://mastodon.peterjanes.ca/@me/115653576216161384]

HUG CSS, how I approach CSS architecture
Yesterday, I wrote about classless vs. class-based CSS design systems. In the article, I noted… There’s a middle ground between classless and class-based design systems. My favorite CSS boilerplates/frameworks/whatever include base styles for various HTML elements, some component styles for commonly used components (like nav menus and things), and some utility classes for nudging and tweaking the UI. I don’t know if you’d call them classless+ or Class-based-lite or what, but they sit somewhere in the middle.
gomakethings.com
Link author:
Chris Ferdinandi ⚓️@cferdinandi@mastodon.social
RE: https://front-end.social/@css/115649823613658406
そうか、corner-shape 使えるようになるとこういうことが clip-path 使わなくても出来るようになるか!
💡 CSS Tip!
Another classic component made easy using corner-shape. A gallery of skewed images with a hover effect.
https://css-tip.com/skewed-images/
It can be done with old features, but this one is direction-aware! One code for both directions (left-to-right and right-to-left)
長いこと
デスクトップでは
* 下部のステータスバーにアドレスバーの機能をマージ
* アドレスバーは下部に配置&基本非表示(メールの時だけ表示される)
という設定にしてたけど、
タブバーもアドレスバーも上部にない状態だと、
* デフォルトでは #macOS デフォルトのウインドウに表示されるタイトルバーが表示されてしまう
* それを #CSS で隠したとしても左上の信号ボタン 🔴🟡🟢 だけは消せない
という状態になっちゃうので、
* 左サイドに置いたタブバーの上部に 🔴🟡🟢 を表示するためのスペースを空ける
* 左サイドにタブバーがない時(自分はタブバーをけっこうな頻度で隠す)は Web ページ領域に 🔴🟡🟢 が重なることを許容する
と言う工夫・妥協が必要だったので、思いきって逆にステータスバーを非表示にして、上部に表示したアドレスバーにステータスバーの機能もマージする、という感じにしてみた。
こうすることで
* 基本的にはアドレスバーは非表示にすることはないので 🔴🟡🟢 がWeb ページとかに重なることが少なくなる
ので、不自然な見え方になるケースが減るのではないかという仮説を検証していく生活にこれから入っていく。
How to use #CSS to fix the irradiation illusion /
How to adjust perceived font weight in dark mode without layout shift
https://nerdy.dev/adjust-perceived-typepace-weight-for-dark-mode-without-layout-shift
#CSS isn’t real, they have played us for absolute fools https://cssisntreal.com
It is OK to Say “CSS Variables” Instead of (or Alongside) “Custom Properties” via
@DanOpcodeDaniel Jonsson https://lobste.rs/s/li0ido #css
https://blog.kizu.dev/css-variables/
💡 CSS Tip!
A direction-aware arrow is good, but what about a generic way to make any CSS Shapes direction-aware? It's possible!
https://css-tip.com/direction-aware-shapes/
The code is simple and doesn't require any modern features, so it's well-supported.
love seeing all the #CSS `subgrid` excitement in my timeline!! def Josh Comeau post inspired 🤘🏻
now that your `subgrid` interest is piqued, checkout a post I made too‽ maybe even just for the long list of resource examples at the end
Brand New Layouts with CSS Subgrid
Link: https://www.joshwcomeau.com/css/subgrid/
Discussion: https://news.ycombinator.com/item?id=46047053
💡 CSS Tip!
Use modern CSS to create an arrow shape that adjusts according to the direction and writing mode. A direction-aware shape!
Another cool use case of corner-shape
An interactive demo: https://codepen.io/t_afif/full/YPqezLv via
@codepen
It is ok to say "CSS variables" instead of "custom properties"
Link: https://blog.kizu.dev/css-variables/
Discussion: https://news.ycombinator.com/item?id=46048229
It is OK to Say “CSS Variables” Instead of (or Alongside) “Custom Properties”
TPAC 2025 just ended, and I am positively tired. Attending it remotely, my sleep schedule is chaotic right now. I have many ideas for CSS-related posts in my list of ideas for November, but almost all of them require at least some amount of research and crafting demos. Well! I found one note that I wanted to expand on, and which sounds tiny enough to be able to finish it in my altered state.
blog.kizu.dev
Link author:
Roma Komarov@kizu@front-end.social
💡 CSS Tip!
Use modern CSS to create an arrow shape that adjusts according to the direction and writing mode. A direction-aware shape!
Another cool use case of corner-shape
An article about triangles and CSS. I have always said that using borders to draw triangles with CSS is a hacky solution and shouldn't be used... but there are exceptions.
https://alvaromontoro.com/blog/68086/drawing-triangles-with-css-using-borders-an-exception
Spoiler alert: they involve logical properties... and most places that suggest using borders still use physical properties instead.
`superellipse(1.25)` pills are ill,
what a fresh shape #CSS
The new winner of the color generators is here. This tool is just insanely cool! Thank you
@royalfigRyan Feigenbaum , incredible project!
Today in thieves, cheats and grifters on the internet.
So Talent500, who have a gold check account on twitter (which as far as I know, costs a shit ton of money, $1000 is way more than I make in a GOOD month) copied a few bits of my article that I worked for three weeks on.
Could not even be bothered to copy enough to get to a working solution, stopped at intermediary steps. And "forgot" to give credit. And somehow come first in search results.
Another demo using Anchor Positioning and tooltips. This time, the arrow will get stretchy 👀
https://css-tip.com/tooltip-anchor-4/
Still 100% CSS magic! 🪄
This date picker run-down is excellent - thank you
@dbDavid Bushell ☕
Saw that my css joy webring neighbor has a guest book. Pretty cool! :) now I want to say hi to other neighbors…
#elk
@elk が今年の1月のリリースを最後に更新が止まっていて、もうメンテナンスされていないんじゃないかという噂が。
シンプルで可愛いデザインで一時期使っていたので残念&心配ではあるけど、 #Mastodon
のデフォルトの Web UI も大分デザインがこなれてきたし、 #TangerineUI とか #MastodonBirdUI みたいな
のカスタム #CSS も出てきたので、相対的に #Elk の存在意義みたいなものが薄れてしまっていた状況というのはあったような気はする。
#Phanpy のように、機能面でデフォルトの
の Web UI を超えるいろんな機能(外部サーバーからの見た目を一時的にエミュレートできたり、CatchUP 器用や、独自の投稿ドラフトの自動保存機能とか、複数アカウント切り換え機能とか)があれば差別化できたんだろうけど、その点 #Elk はそこまで通常の
Web UI と比較してリッチな機能が追加されてるわけじゃないからな…
いっそのこと、
のカスタム CSS テーマとしてリブートするみたいなほうがメンテナンスコストは小さくなりそう 
💡 CSS Tip!
Using modern CSS to create a responsive list of stacked images. The overlap will automatically adjust based on the available space and the number of images.
https://css-tip.com/responsive-stacked-img/
No hardcoded values, no magic numbers, and the gap is transparent!
😅 So I did not fully appreciate the power of hashtags on this place when I wrote my #introduction, so I'm giving it a second go.
• I'm a front-end web developer in Spokane, WA. I work for Red Hat on Ansible Controller using #react, #javascript, #typescript. I don't write so much #CSS here as I have at previous gigs, but, I'm okay at that too…
• I'm the author of CSS in Depth 📘 https://www.manning.com/books/css-in-depth
• I enjoy mixing #cocktails and have my recipes available in a #PWA : https://sidecar.us
📚 It's here! CSS in Depth Second Edition is now available in print! 📘
Use code pbgrant3 to get 45% off and get up to date with the latest CSS has to offer: https://shortener.manning.com/a1Qx
やはり CSS でスタイリングされるオンスクリーンメディアの UI デザインするなら、素の CSS を書きたい。
┏━━━┓╭━╮ #css
┃css┃┃그┃
┃는어렵지않아요┃ 것
┗━━━┛┃이┃
┃c s s
┃니┃
┃까┃
╰━╯<div class="clearfix"></div>
New blog post: “Named Container Presence Check”
https://blog.kizu.dev/named-container-presence-check/
I was doing some #CSS recently, and I wanted to know if my element was inside a certain container.
While I could reuse the same selector that I used to apply the container with, this did not feel right: what if I were to apply the same container via a different selector? Or have a version of that element where the container is removed via some modifier?
Can we somehow use just the container’s name for this?
Named Container Presence Check
I was doing some styling recently, and I wanted to know if my element is inside a certain container. While I could reuse the same selector that I used to apply the container with, this did not feel right: what if I would apply the same container via a different selector? Or have a version of that element where the container is removed via some modifier? Can we somehow use just the container’s name for this?
blog.kizu.dev
Link author:
Roma Komarov@kizu@front-end.social
📢 #w3cTPAC
The
@w3cWorld Wide Web Consortium "Hackathon TPAC 2025: Kobe Edition" is underway, and participants have 1.5 hours to tackle one of two available challenges!
▶️ https://www.w3.org/2025/11/TPAC/hackathon/
#hackathon #CSS #developers #dashboard #Kobe #Japan
I’ve seen one-time passcode (“OTP”) interfaces cause undue stress in otherwise level-headed #WebDev teams.
Thankfully, it doesn’t have to be complicated: https://cloudfour.com/thinks/simple-one-time-passcode-inputs/
SASS: The CSS Preprocessor That Survived the Apocalypse https://lobste.rs/s/pkktfc #css
https://en.andros.dev/blog/e9ded1a5/sass-the-css-preprocessor-that-survived-the-apocalypse/
Mastodon Bird UI v3.0.0 is now released! 🎉
Most notable changes:
- Support for Mastodon stable 4.5.0
- Fix profile links and alignment
- Re-style Quote Posts
- Improved UI for the new quote posts popper
- Improve status__quote--error being to high, update min-height
- Remove the separator dot redundant since 4.3
- Fix performance-expensive transitions
- Fix audio embed overflow
- Improve the accesibility of modals
Full changelog and download: https://github.com/ronilaukkarinen/mastodon-bird-ui/releases/tag/3.0.0
#MastodonBirdUI #BirdUI #Mastodon #MastoAdmin #CSS #UI #OpenSource
Springs and Bounces in Native CSS
Link: https://www.joshwcomeau.com/animation/linear-timing-function/
Discussion: https://news.ycombinator.com/item?id=45744518
Show HN: A CSS-Only Terrain Generator
Link: https://terra.layoutit.com
Discussion: https://news.ycombinator.com/item?id=45811093
High-Performance Syntax Highlighting with CSS Highlights API via
@vale https://lobste.rs/s/gobl4t #css #web
https://pavi2410.com/blog/high-performance-syntax-highlighting-with-css-highlights-api/
I am working on a small #css framework (more soon), and I am very prod of how the tables look :D




























