Masthash

#SCSS

Epiphyt
3 weeks ago

As a follow-up to the previous blog post about SCSS color contrast functions, today we’re going to implement such a calculation within #scssphp:

https://epiph.yt/en/blog/2023/wcag-2-compliant-scss-color-contrast-function-with-scssphp/

#SCSS #PHP #WCAG #WCAG2 #accessibility

Epiphyt
3 weeks ago

Im Anschluss an den letzten Blogbeitrag über SCSS-Farbkontrastfunktionen werden wir heute eine solche Berechnung in #scssphp implementieren:

https://epiph.yt/blog/2023/wcag-2-konforme-scss-farbkontrastfunktion-mit-scssphp/

#SCSS #PHP #WCAG #WCAG2 #accessibility #barrierefreiheit

Philipp
3 weeks ago

„When in doubt #BEM it out!“

Watched episode 8 of #KevinGeary‘s #Pagebuilder 101 about #CSS Classes and Styling.

Love that I got into #SCSS, together with BEM I finally have orientation when naming the classes. Big shoutout to the #WordPress Devs from #WPCodebox as well!

https://youtu.be/TMDwPYnJC0g

Epiphyt
1 month ago

At the last #WordPress meetup @wp0711, @bovelett gave a presentation about #accessibility and we took the opportunity to test our websites.

Surprisingly, we had some contrast errors in our buttons despite using a #SCSS function to automatically calculate the correct contrast.

Turns out, most contrast calculation functions for SCSS are incorrect according to the WCAG 2 specifications.

So I found a smooth solution for that:
https://epiph.yt/en/blog/2023/fix-your-scss-color-contrast-function/

Epiphyt
1 month ago

Beim letzten #WordPress Meetup @wp0711 hat @bovelett eine Präsentation über #Barrierefreiheit gegeben und wir haben dies zum Anlass genommen, unsere Websites zu testen.

Erstaunlicherweise hatten wir einige Kontrastfehler in unsere Buttons, obwohl wir eine #SCSS-Funktion zur automatischen Berechnung des richtigen Kontrasts verwenden.

Stellt sich raus: die meisten Funktionen, die man dafür findet, sind nicht WCAG-2-konform.

Zum Glück habe ich eine Lösung dafür gefunden:
https://epiph.yt/blog/2023/korrigiere-deine-scss-farbkontrastfunktion/

hypno
1 month ago

Ready to tackle #TailwindCSS today!🤓 I've heard it's a love-it or hate-it kind of thing. Will I end up on team love or team hate? Stay tuned! 😄 Any tips for someone coming from pure #CSS and #scss

#Frontend #webdev

Eric Scott
1 month ago

It seems like the custom.scss that I wrote and definitely works with quarto preview isn't working when my website is published to #netlify. Anyone else experienced this? I'm probably just doing something wrong. #QuartoPub #scss

CodePen.IO :verify:
2 months ago

RT Jordan Dey
Five lines of code for a colorful gradient effect 🌈🌈🌈
I made a @CodePen to show what we can do with #SCSS loops🌀
Take a look : https://codepen.io/DeyJordan/pen/BaOXNaE
#webdevelopment #frontend #CSS #codinglife #codepen #codingtips #webdesign #programming #CSS3 #HTML #html5 https://t.co/EQz9fVhcOL
<div class="rsshub-quote">
Jordan Dey: Why use loops with just #JavaScript, when you can use them with #SCSS too? Loops can save you a lot of time 🔄
Check out this demo using a #CSS helper for spacing
#webdevelopment #webdeveloper #webdev #codingtips #programming #frontend #webdesign #HTML #sass #CSS3 #html5 https://t.co/wW4CMq4t8D
</div>
:sys_twitter: https://twitter.com/DeyJordan/status/1642955857364221952

Media source: https://pbs.twimg.com/media/FszxL16WIA0KLEf?format=jpg&name=orig
Media source: https://pbs.twimg.com/media/FszxANHX0AAnacn?format=jpg&name=orig
Media source: https://pbs.twimg.com/media/FsukWLHX0AcjznL?format=jpg&name=orig
trovster
3 months ago

And a grubby little so-and-so has directly edited the production-built CSS (via FTP no doubt), which renders the entire #SCSS origination files useless. You *know* they haven't changed those to keep them up to date…

Amarok 🇨🇿🇪🇺
3 months ago

I've just tried out @Codeberg as a Git service and I really like it.
There are some differences compared to GitHub, but considering that Codeberg is not a huge and proprietary service, it's actually *really* great!

My #Bootstrap5 #SCSS #Sass template on #GitHub:
https://github.com/Amarok24/template_bootstrap5_sass_php
-- and now also on #Codeberg:
https://codeberg.org/Amarok24/template_bootstrap5_sass_php

Roni Laukkarinen
3 months ago

Perhaps my favourite browser extension (for both Firefox and Chrome): Live editor for CSS, Less & Sass https://addons.mozilla.org/en-US/firefox/addon/live-editor-for-css-less-sass/

I prefer direct CSS over some fancy pants user style or JavaScript. #CSS #SCSS #Styles #FrontEnd #WebDev

Christian Grobmeier
3 months ago

#CSS nesting will be native, at some point. No more #SCSS needed.
https://www.brycewray.com/posts/2023/02/some-future-now-css/

#frontend #webdev

Cyshini
3 months ago

I just started coding my personal website with #11ty and I'm looking for a (truly) lightweight #SCSS framework with just the basics (grid, text sizes, buttons... all with very few styles to replace / override). Any idea? #help #frontend #ui

For the project I have in #scss, I wanted to have it public today, but it's still basic and I'm figuring out a few errors.

It's for an #obsidian theme I made that piggybacks off the default theme AND can also work (depending on the theme, as a #css snippet).

Everything should be configurable and/or at least able to be toggled via the Style Settings plugin, but that's not the case right now. Further, my settings are disorganized, so I need to group them.

Jon McLaren
4 months ago

There's one important thing you should know about the new CSS Nesting capability. It differs from SCSS in an important and admittedly a little bit annoying way. That said the workaround is very easy.

https://codepen.io/thewebtech/pen/oNMrMJm?editors=1100

#CSS #webdev #nesting #scss

/*
  CSS Nesting will work very similar to SCSS but with 1 very important difference. 
*/

/* The code below will work. */
article {
  .second-paragraph {
    color: red;
  }
}
/* The code below won't work.*/
article {
  p {
    color: blue;
  }
}
/*
  For technical reasons element selectors can't be the item in a child selector. I don't know all the reasons but likely it has to do with CSS properties beig written similarly, and generating the CSSOM. Backward compatibility of CSS, etc.

The solution - honestly is very easy and will make sense if you've used SCSS.
*/

article {
  & p {
    color: rebeccapurple;
  }
}

/* That also let's you do intersting things like this */

article {
  &.featured{
    /* which means article.featured */
    border-color:red;
  }
  & p {
    color: rebeccapurple;
  }
}
Will Stamper
4 months ago

It’s 2023. Is #sass/ #scss/ #sasslang:

Michael
4 months ago

@afilina personally, I just write #css (well, I prefer #scss, but that’s not important)

Somehow none of those frameworks have ever ‘clicked’ with me.

Inushin
4 months ago

I have just discovered #SASS and I have an interesting question for you, guys. I am a backend person but....

#tech #developer #SCSS #CSS #Bootstrap #Tailwind

Charanjit Chana 👋
5 months ago

Falling in love with #CSS & #SCSS all over again lately. Even though I’ve been refactoring a few things, its just a joy to work with.

I have an unofficial format/style which I should formalise and be more rigid about, but other than building interfaces has always been the best part of working on the web for me!

Spencer
5 months ago

I’ve been a bit obsessed lately with #CSS #ColorPalettes and have traditionally relied on strait #SCSS for them. But I’m also becoming obsessed with #CSSCustomProperties. I whipped up this #CodePen that generates several custom property palettes according to the core color relationship algorithms https://codepen.io/oobleck/pen/ZEjYOvR.

You can tweak the seed color at the top of the CSS panel.

Enso
5 months ago

More bird site #migration today.
Just want to do another intro for folks (:

Hi! Welcome to Mastodon. I'm Enso. pronouns are they/them. I'm a #UX student striving to work in #gamedev. I love #scss, #jquery & slowly learning #ReactJS and #python in my free time.

I'd like to have more friends in the #jrpg, #anime, & #manga space too. My favourite jrpgs are Golden Sun & the Trails/Kiseki series. I also play a ton of #GenshinImpact & #Destiny2.

Feel free to give me a shout if you need help

CodeByAlex
5 months ago

Does anyone know of a good #webperf testing tool for linting #css and #scss? Would be great to identify complex selectors and such in an automated way

Michael
6 months ago

After turning up here a couple of weeks or so ago, I figured it's time for an #introduction

I'm a full stack web developer, currently working mostly with #php (#laravel) and Vanilla #javascript and #scss. Still love #cfml too.

Outside of that, my main interests are around #infosec, #fintech, and just learning new stuff.

Husband, father of 2 boys, speaker of #German and #english with some basic understanding of #Arabic

Started running my own instance just for fun, and loving it. #mastoadmin

Called it. I didn't expect "the future" to mean "four days from now", but whatever.

RT @jeff
We're looking for a Mastodon systems administrator and developer

#Debian #Ruby #JavaScript #SCSS #Haml #HTML should all be in your toolkit

Resumes to jeff.brown@fourthestate.org

@danjac One way to deal with that (if you use SCSS/SASS) is with a list.

Ex.: `$z-index: header-banner, menu-lang-panel, overlay, dialog, dialog-close;`

Then in your CSS rule:
`.dialog { z-index: index($z-index, dialog); }`.

So the `.dialog` class will have a `z-index` of `4`. I find the Z axis
is easier to manage this way.

For more clarity, I recommend giving the same name of the class to the
item in the list.

#css #scss

Roni Laukkarinen
7 months ago

@tero_ojala Yes. #SCSS is awesome and my main thing, but only when combined to modern #CSS, for example with CSS variables.

I use SCSS variables only for breakpoints because media queries don't support CSS vars (yet). Everything else is with CSS vars for easier manipulation.

SCSS pros:

- Combining assets and modularity
- Functions
- Mixins and components
- Sensiful nesting
- Sensiful extends
- PostCSS
- Stylelint features that exist only in SCSS

Things like these are the reason why I use SCSS:
https://github.com/digitoimistodude/air-light/blob/47be2803d0d3ca4e8b4f4468378da70bb4e51310/sass/helpers/_aspect-ratio.scss

https://github.com/digitoimistodude/air-light/blob/47be2803d0d3ca4e8b4f4468378da70bb4e51310/sass/global.scss

CodePen.IO :verify:
7 months ago

RT Greg RoBOOleto 👻
Re @CodePen Catching up on making these "making-of" videos. This one required little editing, which made me smile 😀, thinking I am getting more honed at coding these.
🏷️#divtober, #css, #scss, #cssart, #cssanimation
Also available on YouTube:
https://www.youtube.com/watch?v=jcclDHxD2qc

:sys_twitter: https://twitter.com/robleto/status/1581806004693782528

Media source: https://video.twimg.com/ext_tw_video/1581805023150882816/pu/vid/1078x720/3ndEoR245cgvGuxo.mp4?tag=14
7 months ago

@kuketzblog Dracula UI ist inzwischen auch #OpenSource falls jemand den Stil für eigene Projekte haben will. Ich nehm das Farbschema gern für Softwareentwicklung :) https://ui.draculatheme.com/

#webframework #css #scss #draculatheme

CodePen.IO :verify:
8 months ago

RT Greg Robleto
Grills on!
Day 11 of #divtober is "burger"
Learned you can't use a mixin for multiple radial gradients in the same background, so did a lot with variable calcs to make those burger patties.
🏷️ #css #cssart #scss
https://codepen.io/robleto/pres/JjvmLme/5b5568647e5317c6986b95ca71261d5e

:sys_twitter: https://twitter.com/robleto/status/1579831309253627905

Media source: https://pbs.twimg.com/media/Feyva5pWIAAjia4?format=jpg&name=orig
KubikPixel™
9 months ago

Aaarrrrggh!!! Weshalb hat ein #CSS #Framework die Variablen für die #Farben nach deren eigentlichen Farben und nicht deren #Funktion für was sie eingesetzt werden benannt? So suchst du dir dumm und dämlich wo was wie eingefärbt wird - Hach es wäre doch so einfach wenn #SASS / #SCSS auch (nach meinem Empfinden) richtig eingesetzt würde. Ich habe den Verdacht, das gewisse #Entwicklerinnen einfach #Sadisten oder bloß #dumm oder gar beides sind, denn vorausschauend so wie praktisch ist es nicht.

DAT :loading:
10 months ago

a team next to me declared in their coding standards "don't use that class nesting feature of #SCSS"

instinctually wanted to slap someone

then they told me they meant something like:

.foo { &-bar {…} }

https://css-tricks.com/the-sass-ampersand/#aa-modifying-the-ampersand

yeah okay. That's indeed something nobody should ever need to do.

Kent Delante
1 year ago

It has been a while since I last caught up with the latest dart-sass features and I like them. I started adding structure to Egg Hat's #scss and started work on the form for adding recipes.

#100DaysOfCode

https://gitlab.com/kylobytes/egghat-server

And I also reskinned the app by #Bootstrap v5 #scss framework

Random Geek
1 year ago

Specifically, building `main.scss` when `_base.scss` changes

Processing Sass in Eleventy

#Eleventy #SCSS #CSS #Blog
https://randomgeekery.org/post/2022/01/processing-sass-in-eleventy/

KubikPixel™
1 year ago

I don't know if I should switch to #TailwindCSS but always these #NPM dependencies drive me #crazy.

Which #CSS #framework do you use for your #web projects and why or do you write in #SCSS from scratch?

✍️ Please tell me in the comments:

#webdev #dev #frontend #simple

Elis H 🌱
2 years ago

New #blog #post!

How I handle color contrasts to have "the same colors" in a light and a dark theme on a static page without having to pick every color twice and making sure to have a good contrast to make it easy on the eyes to read: https://elis.nu/blog/2021/09/dynamic-css-color-themes-with-similar-contrasts/

#css #web #a11y #accessibility #color #scss #UX #UI

Tykayn
2 years ago

50 nuances de #scss

I just switched my website CSS build system from a simple CSS file (e.g. no build) to SCSS...I wish I had done this sooner. It's so nice to have functions in CSS.

#scss #css

Plus de #scss pour mes projets perso ... Seulement du bon vieux #css et un script shell pour concaténer et trimer les sauts de ligne.
https://hugo.soucy.cc/2021/nt/plus-de-scss.html

#webdev #libsass 😿 #dartsass 🖕

Fionnáin
2 years ago

Just a loose web-dev question:

I have never used Haml or SCSS. They are becoming more common in guides online. Is it worth it? Aside from efficient code (which is definitely a bonus), are there other benefits to these, or other options?

I'm not a designer and don't write more than about 15-20 pages in a year. I achieve what I want with plain old HTML/CSS so far. But I'm making more web-art and see there are tidy ways to do things with SCSS/Haml.

#webDevelopment #html #haml #css #scss

linuxwebdevelopment.com
2 years ago

How to Make a Landing Page using HTML, SCSS, and JavaScript - Full Course #html #scss #sass #webdev #webdevelopment
https://www.youtube.com/watch?v=aoQ6S1a32j8

Ru
3 years ago

After getting comfortable with standards-based #CSS with PostCSS, #SCSS feels super clunky and quirky now. 🤔

Dev Snap (Devsnap.me)
3 years ago

Dev Snap Just Launched!

Dev Snap Is A Website With Tons of Free and Open Source HTML, CSS, and JavaScript Assets for Web Developers.

https://devsnap.me

#html, #css, #javascript, #jquery, #scss, #bootstrap, #bootstrap4, #css3, #react.js, #react, #vue, #vue.js, #devsnap, #devsnap.me

Sam Howell
3 years ago

Many hours consumed by creating a theme toggle ☀️/🌖 for my website (factoring in mistakes, rewrites etc.) People had better end up using this thing... #webdev #website #darkmode #design #JavaScript #SCSS #CSS

Just used Homebrew package manager to install SASS today - totally streamlined... #SASS #SCSS

https://brew.sh/

linuxwebdevelopment.com
4 years ago

I started learning Sass recently. Sass is very powerful, and can speed up your CSS development. I definitely think it's worth learning. #sass #scss #css
Learn SASS in 5 minutes - PART 1
https://www.youtube.com/watch?v=ok3y4E5NEmw&list=PLriKzYyLb28nvORWgaD0hAbBcJUcsxy16&index=1

Christopher Kurth
5 years ago

#SASS & #SCSS 😍

Warum hab ich mir das jetzt erst angeschaut ...