Тёмный

5 Modern Features That Make CSS Easy 

Awesome
Подписаться 45 тыс.
Просмотров 13 тыс.
50% 1

An overview of some CSS modern features.
💬 Topics:
- Why CSS vs SASS?
- CSS Nesting;
- CSS Variables;
- has() and is() pseudo-classes;
- Container Queries vs Media Queries;
- CSS Grid.
🥇 Become a Member - / @awesome-coding
✉️ Join the Newsletter - newsletter.awesome.club/
📖 Blog Article - www.awesome.club/blog/2024/5-...

Опубликовано:

 

17 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@JordanHershberger
@JordanHershberger Месяц назад
Grid for dummies please! Especially if there could be a section really covering subgrid!
@awesome-coding
@awesome-coding Месяц назад
Noted! Coming soon!
@FurrerW
@FurrerW Месяц назад
Grid for dummies? Sign me up!
@CoolestPossibleName
@CoolestPossibleName Месяц назад
Sign me up too!
@js3671
@js3671 Месяц назад
Me too
@awesome-coding
@awesome-coding Месяц назад
Noted!
@aravindmuthu5748
@aravindmuthu5748 Месяц назад
I @ this
@irlshrek
@irlshrek Месяц назад
I'm a dummy
@Gornius
@Gornius Месяц назад
1:05 - for me personally nesting is less readable. Just imagine that form section is longer than 30 lines. Suddenly all you see is label section, and you might think this applies to all the labels, and for context you need to read across tens of lines of code.
@awesome-coding
@awesome-coding Месяц назад
You are definitely right. There is always a balance between gaining benefits and overusing a feature.
@4Mulator
@4Mulator Месяц назад
Yes! Grid for dummies, please and thank you!
@jonathanliu-chan238
@jonathanliu-chan238 Месяц назад
Yes keen for the grid deep dive
@awesome-coding
@awesome-coding Месяц назад
Noted!
@ashleyfreebush
@ashleyfreebush Месяц назад
I had no idea about container queries... ;'( Keep posting!!!
@irlshrek
@irlshrek Месяц назад
omg. im so glad you made this video. i said "oooooooh" out loud like 3 times and im not even done with the video lol. its so easy to be out of the loop
@awesome-coding
@awesome-coding Месяц назад
Glad you liked it!!
@aLfRemArShMeLlOw
@aLfRemArShMeLlOw Месяц назад
I can't wait to be able to use container queries in 10 years, when finally all legacy Safari devices will be dead.
@didiercatz
@didiercatz Месяц назад
Container queries are actually supported since Safari 16 (iOS 16) and according to Can I Use, about 92% of all web users support it. Even so it's up to the user to keep their device up to date, and you could always polyfill.
@theklr
@theklr Месяц назад
Then you’re not doing progressive enhancement correctly …
@szpaklabs8893
@szpaklabs8893 Месяц назад
Cool! Thank you for this information. I also used SCSS often, because of nesting, and now it is possible without any extra dependency and this is great. But the most blowing mind feature for me is the `:is` :)
@awesome-coding
@awesome-coding Месяц назад
Glad it was helpful!
@alinghinea98
@alinghinea98 Месяц назад
container queries might be a game changer ✌
@harold.machado
@harold.machado Месяц назад
thanks... Awesome Grid please
@awesome-coding
@awesome-coding Месяц назад
Will do!
@solorsix
@solorsix Месяц назад
Nice work!
@awesome-coding
@awesome-coding Месяц назад
Thank you! Cheers!
@amirhoseinbagheri1999
@amirhoseinbagheri1999 Месяц назад
we are very interested in your deep dive into the grid for dummies
@awesome-coding
@awesome-coding Месяц назад
Noted! Will do!
@fortunembulazi
@fortunembulazi Месяц назад
More details on Grid.
@ArifBillahOnGoogle
@ArifBillahOnGoogle Месяц назад
The only thing that is needed to center a div is display:flex on parent and margin:auto on child, and it will center the child both horizontally AND vertically. Supported across the board as far as I can remember. I don't know why this is even a meme any more.
@patocarrasco6266
@patocarrasco6266 Месяц назад
but then you have more space between elements than between the elements with the border of its respective parent element or the viewport itself. With side elemets being sad about it, in this case, you use `display: flex` and `justify-content: space-evenly`. For sure, that won't help in every case, so you need other 10 ways of doing it and that's why the meme is more alive than ever
@awesome-coding
@awesome-coding Месяц назад
@ArifBillahOnGoogle @patocarrasco6266 😂 case and point
@BensonSappor
@BensonSappor 25 дней назад
Grid for dummies, I'm in
@mandokir
@mandokir Месяц назад
Did not know about :is() or native nesting.
@awesome-coding
@awesome-coding Месяц назад
Glad you learned something new!
@Davi-it3in
@Davi-it3in Месяц назад
Grid for dummies please!!
@awesome-coding
@awesome-coding Месяц назад
Will do!
@vatsalyavigyaverma5494
@vatsalyavigyaverma5494 Месяц назад
15 years wow
@awesome-coding
@awesome-coding Месяц назад
🤦‍♂️ Now it's time to finally learn some actual programming
@jricardoprog
@jricardoprog Месяц назад
I've had a lot of fights with IE6, lol
@awesome-coding
@awesome-coding Месяц назад
😅
@PiyushJain-ct2qq
@PiyushJain-ct2qq Месяц назад
Grid for Dummies please
@awesome-coding
@awesome-coding Месяц назад
Will do!
@Arciiix
@Arciiix Месяц назад
Grid for dummies!
@awesome-coding
@awesome-coding Месяц назад
Noted!
@forno_nicolas
@forno_nicolas Месяц назад
Safari 17 is far from 'any browsers'
@ravigupta1813
@ravigupta1813 Месяц назад
Grid for dummies plzzzzzz 😭😭😭😭
@awesome-coding
@awesome-coding Месяц назад
Noted!
@JeyPeyy
@JeyPeyy Месяц назад
I really dislike when people nest their css too much. Many things become too hard coupled to the html so that you can't move them around without getting rid of all its styling. it also makes the specificity higher than it needs to, making it hard to overrule the settings without using !important. So I wouldn't exactly say that this makes it more modular and maintainable, quite the contrary actually. If used correctly (ie when there are relationships between the elements), it's very nice though.
@nomadshiba
@nomadshiba Месяц назад
people take time to learn programming languages, and paradigms they take no time to learn CSS and how to use it more efficiently, they don't even know which units to pick from. and they wrongly use `px` everywhere.
@awesome-coding
@awesome-coding Месяц назад
That's because CSS is perceived as a "simple" language. So nobody bothers to spend some time learning it.
@QueeeeenZ
@QueeeeenZ Месяц назад
Tailwind - the best CSS feature. It should ship with the browser.
@aravindmuthu5748
@aravindmuthu5748 Месяц назад
really 🙄
@nice-vf4rj
@nice-vf4rj Месяц назад
Then browsers would be unreadable
@pro14ab
@pro14ab Месяц назад
they wrote the same about bootstrap
@allan_archie
@allan_archie Месяц назад
It does. It's called inline styles.
Далее
Learn CSS Subgrid in 14 minutes
14:19
Просмотров 65 тыс.
The Secret Science of Perfect Spacing
9:40
Просмотров 385 тыс.
Ne jamais regarder une fille à la plage 😂
00:10
Просмотров 940 тыс.
CSS Tips And Tricks I Wish I Knew Before
12:12
Просмотров 455 тыс.
Relative colors make so many things easier!
13:16
Просмотров 42 тыс.
I can’t believe they built this in React
16:08
Просмотров 113 тыс.
Use these instead of vh
6:06
Просмотров 493 тыс.
The Story of Next.js
12:13
Просмотров 559 тыс.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
We can now transition to and from display: none
21:20
CSS Tips And Tricks 2 | I Wish Somebody Told Me Before
12:36
Progressive Web Apps in 2024
4:07
Просмотров 39 тыс.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Просмотров 157 тыс.