CSS Nesting Is Coming Soon! 🀯 How To Nest Selector Styles TODAY!! (2021)

Channel:
Subscribers:
296,000
Published on ● Video Link: https://www.youtube.com/watch?v=V7Xinz27XQA



Category:
Tutorial
Duration: 9:40
9,337 views
391


🦸 Become A VS Code SuperHero Today: https://vsCodeHero.com
πŸ§‘πŸΎπŸ€πŸ§‘πŸ½ Join my Discord developer community: https://discord.gg/A9CnsVzzkZ

If you're not familiar with Sass or Less, these give you the ability to nest CSS selectors within selectors, allowing you to write more modular and maintainable stylesheets.

For a long time, a big reason to use Sass was that it has the ability to use variables. But now CSS has variables too.

Just like that, CSS will soon have selector nesting as well!

This feature is currently in draft and is not supported by browsers yet. But, in this video, I'll show you how you can use it today.

πŸ“š Resources:
- W3C Draft: https://drafts.csswg.org/css-nesting-1/
- PostCSS Nesting Package: https://github.com/csstools/postcss-nesting
- Vite.js: https://vitejs.dev/
_____________________________________

πŸ’» Visit CodingPhase and get unlimited access to programming courses plus 20% 0FF!!
https://www.codingphase.com/codestackr

🚒 Deploy for FREE on Vercel: https://vercel.com/ambassadors/codestackr
_____________________________________

πŸ› οΈ Tools I use:
🟠 codeSTACKr Theme: https://marketplace.visualstudio.com/items?itemName=codestackr.codestackr-theme
🟠 STACKr Code Font (Exclusive to my VS Code Course - https://vsCodeHero.com)
🟠 SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions
_____________________________________

⏱️ Timestamps ⏱️
00:00 - Intro
00:34 - What is Nesting?
00:57 - The "&"
01:46 - @nest
02:22 - Conditional Rule Nesting (@media)
02:51 - How Can We Use This Today?
03:15 - Vite Set Up
03:59 - Cleanup & HTML / CSS
06:00 - PostCSS Configuration
07:07 - Let's Nest!
_____________________________________

πŸ’– Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________

πŸ‘€ Watch Next:
Playlist: Web Development For Beginners - https://www.youtube.com/watch?v=Ez4yHS2dsN8&list=PLkwxH9e_vrAJ0WbEsFA9W3I1W-g_BTsbt
_____________________________________

🌐 Connect With Me:
Website: https://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr
Facebook: https://facebook.com/codeSTACKr
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#codeSTACKr #CSS #Vitejs




Other Videos By codeSTACKr


2021-06-15Top VS Code Updates | v1.57 Released!! | Tips & Tricks 2021 (Visual Studio Code)
2021-06-13Everything New In React 18!
2021-06-04Who Will Win? No-Code, Low-Code, AI. Should You Be Worried?
2021-05-254 APIs at ONCE! | How To Manage Multiple APIs (Application Programming Interface)
2021-05-22How Core Web Vitals Will Affect Google Rankings in 2021 | Interview :: Lee Robinson
2021-05-21Build Fullstack Apps in Record Time with Blitz.js | Interview :: Brandon Bayer (2021)
2021-05-20Create an Application Backend in Clicks with the Amplify Admin UI | Interview :: Ali Spittel (2021)
2021-05-19The Third Age of JavaScript | Interview :: Swyx (2021)
2021-05-15Can You Code Without A Keyboard?? VS Code Voice ONLY Coding Challenge!
2021-05-08Top VS Code Updates | v1.56 Released!! | Tips & Tricks 2021 (Visual Studio Code)
2021-05-01CSS Nesting Is Coming Soon! 🀯 How To Nest Selector Styles TODAY!! (2021)
2021-04-24Vite 2.0 Crash Course | Super Fast Build Tool for JavaScript, React, Vue, Svelte, & Lit (2021)
2021-04-16Edit Images in VS Code!?! | Luna Paint Extension
2021-04-09Web Development Tutorial (JavaScript, HTML, CSS) Rock Paper Scissors Game
2021-04-07Top VS Code Updates | v1.55 Released!! | Tips & Tricks 2021 (Visual Studio Code)
2021-04-03I QUIT My Job as an Engineer...
2021-03-26Don't Mess Up This Technical Interview Question | Use JavaScript Map() & Set() Objects
2021-03-23😒 STACKr News Canceled?? This Could Be The Last Issue (STACKr News 2021, Issue #11)
2021-03-1910 Things I Wish I Knew Before I Started Programming
2021-03-16[#10] Don't MISS These Amazing Web Dev Videos! (STACKr News 2021, Issue #10)
2021-03-12Top VS Code Updates | v1.54 Released!! | Tips & Tricks 2021 (Visual Studio Code)



Tags:
css nesting
css
vite
vitejs
vite postcss
postcss
postcss nest
postcss nesting
nesting
sass nesting
less nesting
css tutorial
css selectors
web development
css advanced selectors
w3c nesting
w3c draft
html
css tricks
css tricks 2021
css tricks and tips
css selectors tutorial
postcss tutorial
postcss plugin
postcss rollup
postcss nesting not working
postcss nested plugin
postcss nested vs nesting
w3c drafting
html css
html css tutorial