Masthash

#CSS

Roni Laukkarinen
51 minutes ago

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

Screenshot of the mobile interface of Mastodon Bird UI, dark/light theme presented, home feed.
Kirby CMS
3 hours ago

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 📚

Curtis Carter
13 hours ago

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

Matthias Ott
13 hours ago

This instant classic by @Richr is still the best post about #hyphenation on the Web IMHO. 👏

And Richard updated it in January!

#CSS #typography

https://clagnut.com/blog/2395/

CodePen.IO :verify:
14 hours ago
Media source: https://video.twimg.com/ext_tw_video/1641638883094941697/pu/vid/960x720/DG0PtOZJgb6Is0LL.mp4?tag=12
Large Anguish Model
14 hours ago

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

Overview of the CSS code from a demo that doesn't really exist because, you know, it's the 1st of April
A random text
A random text
William Hoggarth
15 hours ago

CSS is all fun and games until you run into stacking contexts.

#programming #css

📼 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/

Oblomov
16 hours ago

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 …

Christian Tietze
18 hours ago

#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 😍

Aral Balkan
20 hours ago

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

¹ https://codeberg.org/kitten/app

#Kitten #SmallWeb #web #dev #js #css #styles #conditionals

Screenshot of code:

export default ({ SLOT, activeSection = '', autoHeading = true}) => html`
  <${Application} layout='settings'>
    <${Navigation} activeSection=${activeSection} />
    <main id='content'>
      <if ${autoHeading}>
        <h2>${activeSection}</h2>
      </if>
      ${SLOT}
    </main>
  </>
Screenshot of code:

// Application layout.
import Footer from './Footer.component.js'

export default ({ layout, SLOT }) => html`
    <div id='application'>
      ${SLOT}
    </div>

    <${Footer} />

    <style>
      …

      #application {
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
      }

      <if ${layout==='settings'}>
        #application {
          display: grid;
          grid-template-areas:
            'navigation  main  '
            'footer      footer';
          grid-template-rows: 1fr fit-content(100%);
          grid-template-columns: fit-content(100%) 1fr;
        }

        /* On narrower screens, use one-column layout. */
        @media screen and (max-width: 660px) {
          #application {
            grid-template-areas:
              'navigation'
              'main'
              'footer';
          }
        }
      </if>
    </style>
  `
Friday Front-End
20 hours ago

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

Roma Komarov
1 day ago

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?).

https://codepen.io/kizu/pen/xxaNWNO

A screenshot of an example.

On the top there is a “Firefox” header, below there is a three by three grid of elements, each captioned by its border-width.

Notable aspect for how Firefox renders things: it attempts to render things in a subpixel space when it is available (like for the retina screens), and for even values like 2px it adds a semi-transparent pixel on the inside of the borders, resulting in a not very “sharp” result.
A screenshot of an example.

On the top there is a “Chrome” header, below there is a three by three grid of elements, each captioned by its border-width.

Notable aspect for how Chrome renders things: similar to Firefox, it seems to take the available subpixels in consideration, so it renders the 2px border with thin lines, but also renders the 1.5px as 2 distinct 0.5px lines (for the initial value that violates the specs).
A screenshot of an example.

On the top there is a “Safari” header, below there is a three by three grid of elements, each captioned by its border-width.

Notable aspect for how Safari renders things: unlike Safari and Firefox, it does not attempt to render the border in the sub-pixel space, so the 2px border looks solid.
A screenshot from the spec for the “double” border-style keyword, showing its text:

“Two parallel solid lines with some space between them. (The thickness of the lines is not specified, but the sum of the lines and the space must equal ‘border-width’.)”

The part “The thickness of the lines is not specified” is highlighted.

@jwildeboer

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.

Josh Bruce
1 day ago

Writing a series about web design and development for absolute beginners.

Hit a point where I'd like to list some static site builders (a la Dreamweaver, RapidWeaver, Blocs) and am curious about what else is out there?

I don't trust search results.

#HTML #CSS #WebDev

⚡⌨️ 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/

#webdev #development #javascript #css #UI #opensource

Demonstration of ZapKeys utility on a webapp. It shows the shortcut key overlays on top of each interactive element of the page, and some of those elements get triggered (clicked on) after pressing the corresponding key-sequence.
Mikal with a k
1 day ago

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?

CodePen.IO :verify:
2 days ago

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

Media source: https://video.twimg.com/ext_tw_video/1641178991984889856/pu/vid/720x720/FKtRbJIafZ_bRGdN.mp4?tag=12
Nicolas Hoizey
2 days ago

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

#CSS

⚓️ https://nicolas-hoizey.com/links/2023/03/30/using-is-in-complex-selectors-selects-more-than-you-might-initially-think/

Screenshot of Using :is() in complex selectors selects more than you might initially think
Bryce Wray
2 days ago

Sass and the coming of native CSS Nesting

As usual, the devil is in the details.

https://www.brycewray.com/posts/2023/03/sass-coming-native-css-nesting/

#WebDev #Sass #SCSS #CSS #Nesting #Chrome #Firefox #Safari

Murat Çorlu
2 days ago

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.

Téotime Pacreau
2 days ago

#100DaysOfCode : #HTML #CSS

#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

a website showcase. Four equal white cards hiding 
Paulus Moreelse paintings under. When you hover the div the undelrying painting appear with a nice transform scale() effect and a cubic bezier transition. A display serif fonts comply with the general gothic style
Jan Wildeboer 😷
2 days ago

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 ;)

Jared White
2 days ago

If you're interested in a particularly 🌶️ spicy take on #Sass and their relationship with native #CSS nesting, you should join The Spicy Web Discord:

https://discord.gg/CUuYVH7Qa9

I have…thoughts. 😅 @vanilla #WebDev

CSS Basics
2 days ago

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

Friday Front-End
2 days ago

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/

James Dreben :mw:
2 days ago

If #HTML were a cake I want to eat then #CSS is more like fondant than icing.

ppk 🇪🇺
2 days ago

Labels should reverse-inherit all pseudo-classes on the input they refer to.

#css wishlist

Matthias Ott
2 days ago

Do you use #CSS hyphenation (hyphens: auto) on the websites you build?

Yes? No? Why? How?

Inautilo
2 days ago

#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

Symfony Station :symfony:
2 days ago

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

Illustration of a spaceship on the rocky surface of an alien planet.
Tech news from Canada
2 days ago

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

Daniel Aleksandersen
2 days ago

#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

Roni Laukkarinen
2 days ago

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

Screenshot of the mobile interface of Mastodon Bird UI, dark/light theme presented, home feed.
Inautilo
2 days ago

#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

Bryce Wray
3 days ago
Roma Komarov
3 days ago

#CSS Tip: read the specs. That’s it, that’s the whole tip.

Roni Laukkarinen
3 days ago

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

Screenshot of the mobile interface of Mastodon Bird UI, dark/light theme presented, home feed.
Jon
3 days ago

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?

Anton Andreasson
3 days ago

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.

Friday Front-End
3 days ago

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/

CSS Basics
3 days ago

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/

Emory L.
3 days ago

@glyph you gotta go responsive i guess 😂 one of my old iterations of my homepage was comically bad on a monitor because i was "mobile first" but had nothing second! #web

#responsiveDesign #css

💡 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

#CSS

Overview of the CSS from the linked demo