#CSS
Mastodon Bird UI v1.3.6 released! :neon_skull:
Changelog:
* Fix confirmation modal text color (thanks @jaoler)
* Add more colors to CSS var scope
* Fix relative time color being too bright
Source code: https://github.com/ronilaukkarinen/mastodon-bird-ui
Demo: https://mementomori.social
#OpenSource #Mastodon #MastodonBirdUI #CSS #UI #WebDev #MastoAdmin

Spring is near, time to freshen up what we know about #CSS colors: https://developer.chrome.com/articles/high-definition-css-color-guide/ 🌈
Great weekend read by @argyleink 📚
Checkered background using two lines of code in CSS
https://www.amitmerchant.com/checkered-background-using-only-two-lines-of-code-in-css/
The most exciting thing for me from #bard or #bingchat would be being able to ask about that obscure #css I never use and have it give me an example along with an explanation if I'm trying to use it wrong, it's deprecated, or it's experimental.
Unfortunately both failed miserably today when I asked about line-clamp
This instant classic by @Richr is still the best post about #hyphenation on the Web IMHO. 👏
And Richard updated it in January!
RT Jon Kantner
If the Windows XP shutdown icon buttons were animated
https://codepen.io/jkantner/pen/oNPRMQY @CodePen #CSS #SVG https://t.co/9YOiA14cnW
:sys_twitter: https://twitter.com/jonkantner/status/1641841533929377792

Friends fear he's abusing #CSS again https://css-foolishness.netlify.app/
💡 CSS Tip!
Use the new color-mix() function to generate random colors from your favorite one
✅ A new color on each page load
✅ No contrast issue
✅ Easily control the color range
Demo: https://codepen.io/t_afif/full/eYEQbmg via :codepen: #CodePen



CSS is all fun and games until you run into stacking contexts.
📼 Video up!
Earlier this week, @mikemai2awesome joined me for the first Some Antics stream of 2023! He shared a bunch of practical #typography and #CSS tips you can use today to elevate your own sites! Check it out!
➡️ https://youtu.be/kHgwY5mTHVU
Transcript at https://someantics.dev/great-typography-with-modern-css/
You can _almost_ implement the #SVG `switch` element in pure #HTML + #CSS with something like:
switch > * {
display: none;
}
switch > *:lang(...) {
display: initial
}
with only one issue: there's no way to put in that :lang() pseudo-class “whatever the user asked for”. So you still need some #JavaScript or server-side assistance to bridge the gap between the user language selection and the styling.
So close …
#CSS Masking - Ahmad Shadeed https://ishadeed.com/article/css-masking/
Contains a dozen examples to mask out parts of the content. Including rounded tabs, which I loved 15 years ago 😍


:kitten: One of the nice things with the new conditional syntax in Kitten¹ is that you can have conditional styles in your components :)


Today's lunch video is Useful & Responsive #CSS Layouts, No Media Queries Required: "Here’s 5 quick responsive layouts that you can use, without any media queries! There’s nothing wrong with media queries, and we still need them sometimes, but these can be really handy in the right situation!" https://www.youtube.com/watch?v=p3_xN2Zp1TY

A #CSS selector to highlight clickable elements
https://sebastiandedeyne.com/a-css-selector-to-highlight-clickable-elements/
via @sebdd
When things are explicitly not specified in the #CSS specs (https://w3c.github.io/csswg-drafts/css-backgrounds/#valdef-line-style-double), even seemingly simple things can get a different rendering across Safari, Chrome and Firefox.
For example, `border-style: double` renders very differently for different widths. There are some “safe” sizes like `3px`, but overall you can't really rely on it.
Also, Chrome violates the specs and sets the initial value to `1.5px` instead of the `medium` (maybe only on a retina screen?).




I think this is the reason for the popularity of #TailwindCSS as it brings #CSS tweaking to the average developer. I've learned to not touch nice-looking static site generator theme CSS'es with a 10-foot pole. CSS is wonderful but to do modding in those themes requires a bunch of CSS expertise. I rewrote https://fedi.foundation from #Bootstrap and it was a delight.
Btw, re:comments.. yesterday I bumped into https://utteranc.es
Might be interesting for your #ActivityPub thing.
⚡⌨️ Introducing ZapKeys!
Easy-to-use, quick-to-setup keyboard shortcuts for your websites.
#ZapKeys is a simple JS utility that quickly turns all interactive elements on a page into a key shortcut.
— Home page: https://zapkeys.berbaquero.com
— Announcement post: https://berbaquero.com/posts/2023/03/zapkeys/

Has anyone used #ChatGPT to write custom #CSS to modify basic styling of #Wordpress plugins or ask it to analyze a site and find which code controls the appearance of a plugin (or anything, really)?
I'm setting up #WooCommerce on my site to sell prints. It's built with #Elementor. I think the default Woo add-to-cart plugin is fugly. There are very limited built-in styling options, but Elementor and my Wordpress theme have places to paste in snippets of custom CSS, so I could fix it myself...if I knew CSS.
I don't know how to write CSS but I can kinda sorta read it. Changing basic styling like color or line weight is easy if I know I'm in the right place.
Or, instead of asking ChatGPT, maybe I could pay a human to point me in the right direction?
RT Konstantin Denerz
Create a CSS-based holographic card ✨ using this simple trick from my @CodePen.
✅ Mask-Image 🎭
✅ Linear-Gradient 🌈
🔗 https://codepen.io/konstantindenerz/pen/XWPpvpg
Inspiration: https://twitter.com/drawsgood/status/1630570176037961733
#css #animation #csstrick #holocard https://t.co/PY95qOibLJ
<div class="rsshub-quote">
Drawsgood: Throwback Tuesday to this holographic card made in @rive_app
Check it out in the community here: https://rive.app/community/3515-7963-holo-card/ https://t.co/TbYlSjouVs
</div>
:sys_twitter: https://twitter.com/kdenerz/status/1641179695298523136

🔗 “Using :is() in complex selectors selects more than you might initially think” by @bramus

If I could pick a single technology to focus on working, it would be #CSS. I love playing with it, I love how smart and flexible is and I love CSS community.
#Day12 : Card Hover Reveal
Online demo :
https://teotimepacreau.github.io/Card-Hover-Reveal-Day12-Of-100DaysOfCode/
Source Code : https://github.com/teotimepacreau/Card-Hover-Reveal-Day12-Of-100DaysOfCode
Project goals :
- div overlay up to 100% on hover with transition cubic-bezier
- transform: scale() in order to create the zoom effect
- z-index in order to put lettering above
#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment #WebDevelopment #UIDesign #UITrend #CodingChallenge #LearnCode #LearningDaily

Modern #CSS is extremely powerful and delivers beautiful results. But its also the biggest text adventure I've ever met ;) With unlimited permutations when you care about more than one browser ;) (I am building the CSS for the #serverless #ActivityPub based comment system on https://c4process.org. Serverless, because it is client-only JavaScript ;)
Ten tips for better #CSS transitions and animations: "Users intuitively know when an app’s movement feels good, and when the impression is instead generic or unpolished—even if they can’t explain how or why. So to get a better understanding of what’s giving off those vibes I’ve assembled this collection of things I’ve learned about crafting transitions and animations on the web over the last decade or so." https://joshcollinsworth.com/blog/great-transitions

Laying Out a Print Book With #CSS: "Laying out a 300+ page novel is a different beast. You’ve got page numbers, persistent headings, special cases for first of a chapter, weird paper-sizing, etc. Can CSS do all this? Spoiler: Yes. But you have to push it to the bleeding edge." https://iangmcdowell.com/blog/posts/laying-out-a-book-with-css/
Labels should reverse-inherit all pseudo-classes on the input they refer to.
#css wishlist
Do you use #CSS hyphenation (hyphens: auto) on the websites you build?
Yes? No? Why? How?
#Development #Tools
VS Code has a hidden built-in browser · How to enable live previews inside of the popular code editor https://ilo.im/11zkjq
_____
#VsCode #CodeEditor #Browser #LivePreview #WebDevelopment #WebDev #Backend #Frontend #Code #HTML #CSS #JavaScript
Explore the January 20, 2023 @symfonystation Communiqué of Symfony, Drupal, PHP, and Cybersecurity news. https://www.symfonystation.com/Symfony-Station-Communique-20-January-2023 :symfony: :drupal: :php: :sylius: :mastodon: :magento: #Symfony #PHP #Drupal #Cybersecurity #Sylius #Docker #GitHub #Mastodon #HTML #CSS #SQL #Svelte #Magento #OroCommerece #ThrowbackThursday

🔗 “Sass and Native Nesting” by @nex3
⚓️ https://nicolas-hoizey.com/links/2023/03/30/sass-and-native-nesting/

Make Use Of: Implementing a Layout With the CSS Multi-Column Module https://www.makeuseof.com/css-multi-column-module/ #Tech #MakeUseOf #TechNews #IT via @morganeogerbc #Programming #WebDesign #CSS
#Accessibility #WebDesign tip of the day: A drop-shadow is not a border. It may look like one to you, but all users won’t see it. (E.g. high contrast mode.) Always include a border, even if it’s 0.1px wide and nearly transparent. Accessibility tools knows how to interpret borders, but not your fancy border-like drop-shadow. #CSS
Mastodon Bird UI v1.3.5 released! :neon_skull:
Changelog:
* Fix poll input field colors
* Accessibility: Add focus ring to poll input answer while composing
* Revise follow and unfollow hashtag icons so that the + x are more distinct
Source code: https://github.com/ronilaukkarinen/mastodon-bird-ui
Demo: https://mementomori.social
#OpenSource #Mastodon #MastodonBirdUI #CSS #UI #WebDev #MastoAdmin

#Design #Development #Evolutions
2023 state of design systems and where we take them next · How far design systems have come and where they are heading https://ilo.im/11x65a
“Design systems continue to stick around and will likely stick around until there is a new buzzword for them.” — Ian Frost
_____
#DesignSystem #UiDesign #DigitalDesign #WebDesign #WebDevelopment #WebDev #AI #WebComponents #Frontend #HTML #CSS #JavaScript
New entry on the Sass Blog:
Sass and Native Nesting
#CSS Tip: read the specs. That’s it, that’s the whole tip.
Mastodon Bird UI v1.3.4 released! :neon_skull:
Changelog:
* Accessibility: Fix focus for list toggle (thanks @MerriNet!)
* Accessibility: Fix focus ring on :focus-visible on column-links
* Add follow and unfollow hashtag icons (thanks for the idea @jaoler and @lari)
Source code: https://github.com/ronilaukkarinen/mastodon-bird-ui
Demo: https://mementomori.social
#OpenSource #Mastodon #MastodonBirdUI #CSS #UI #WebDev #MastoAdmin

What is the best way/format to share/sync #DesignTokens between #Figma and #CSS (custom properties)?
Looking to spearhead an approach to bring #DesignSystem stuffs in Figma into site/app development at work.
Hopefully there is a way to use these tokens in Figma through the UI, and also to export them or sync them to a GitHub repo or something - as CSS custom properties or as JSON - or another approach if there is a better one?
Seeing people post about their first encounters with #CSS, I was reminded of my first “aha” moment of it as I scanned the source code of some of Todd Fahrner’s early works. He colored borders of th and td elements to achieve bevels and depths, which was unseen at the time, outside of images based trickery that is.
Adding Dark Mode via CSS Variables
https://www.mirrorful.com/blog/implementing-dark-mode
Discussions: https://discu.eu/q/https://www.mirrorful.com/blog/implementing-dark-mode
Selecting previous siblings with #CSS :has(): "One of the more maddening limitations of CSS was for long its inability to select elements based on their children or preceding siblings. This made it impossible to construct CSS selectors that could target previous siblings of an element, but the has:() pseudo-class has thrown out the old limitations and opened up a new world of possibilities when working with selectors." https://tobiasahlin.com/blog/previous-sibling-css-has/

Some simple ways to make content look good: "Something non-designers understandably struggle with is how to make things look good. One of those things is long form content that’s well set and readable. Luckily, #CSS makes this easy, you just have to know what to change. That’s exactly what we’re going to teach you in this article." https://set.studio/some-simple-ways-to-make-content-look-good/

💡 CSS Tip!
Use the new color-mix() to manipulate the Hue of a color in the HSL color space (until better support for relative color syntax)
Demo: https://codepen.io/t_afif/pen/VwGNQEv via :codepen: #CodePen
