Avoiding CSS Code Redundancy -- SASS Extend Tutorial

  Рет қаралды 17,584

DesignCourse

DesignCourse

Күн бұрын

Пікірлер: 83
@DesignCourse
@DesignCourse 4 жыл бұрын
What other topics do you want to see me cover?
@xrishi20
@xrishi20 4 жыл бұрын
CSS 3D Animations (Parallax)
@shubham-jha
@shubham-jha 4 жыл бұрын
Saw someone hiding behind your back 😂
@quartzer4008
@quartzer4008 4 жыл бұрын
Example websites to do for improving css skills
@debabratasen6955
@debabratasen6955 4 жыл бұрын
gsap
@fzmdev
@fzmdev 4 жыл бұрын
Oh this is gonna be fantastic : Developing a multi admin user application using firebase and angular.
@WebfulCreations
@WebfulCreations 4 жыл бұрын
Probably your Daughter behind you :) She was able to put smile on my face . Hello to her! :)
@jundi4865
@jundi4865 4 жыл бұрын
same lol
@simplymusical4583
@simplymusical4583 4 жыл бұрын
Gave a me a scare loll
@beinyourguard
@beinyourguard 4 жыл бұрын
Holy crap, I must say, I got frightened at 0:24 lmao
@JivanPal
@JivanPal 4 жыл бұрын
Just a minor note at 8:15 - `&` is not necessary there, since it is at the start and is immediately followed by a space. That is, `& > p` is equivalent to `> p`.
@t-consult
@t-consult 4 жыл бұрын
Great SASS Tutorial! I am taking a bootcamp and you videos on SASS are incredibly helpful! Thanks!
@NbaLive4ever
@NbaLive4ever 4 жыл бұрын
The video barely started and I already got a laugh in right from the intro 😂
@banoulka
@banoulka 4 жыл бұрын
Absolutely love every single one of these videos honestly they’ve helped me so much lately
@RodrigoMendoza7
@RodrigoMendoza7 4 жыл бұрын
Is there a "sidebar" tag in HTML? 😐 I only know about "aside".
@DesignCourse
@DesignCourse 4 жыл бұрын
You didn't see that 🤣
@hiwayshoes
@hiwayshoes 4 жыл бұрын
Hi Gary! Great tutorial as always, your videos are never a waste of time! Thanks for all your helpful content. Would you consider covering images in an upcoming video? I like using my own images as opposed to stock photos, and I can’t seem to wrap my head around what image sizes I should be using. I know how to resize them for both file size and resolution, and also keeping the aspect ratio, but then I get stuck wondering how to tell if I should use (for example, using a 4:3 aspect ratio here) a 1920x1440 banner vs a 1600x1200 banner, or on smaller images if I should use 800x600 or 640x480 or 480x360, etc. I hope you consider publishing a tutorial on this. I’ve read a ton on this subject but nothing seems to click. Thanks again for all you do... Cheers!
@antusaha6823
@antusaha6823 4 жыл бұрын
Hey Gary, you can just turn off the setting for Live Sass Compiler so that it won't pop up every time you compile(or save in this case). :)
@JivanPal
@JivanPal 4 жыл бұрын
By default, it only pops up when there was a compilation error, in order to show you the error. You then have to manually close it.
@hamidrezaashkiyan
@hamidrezaashkiyan 4 жыл бұрын
You could disable sass compiler output in vs code setting. there is a check box for it. I had same issue. And thanks again for great contents.
@ademineshat
@ademineshat 4 жыл бұрын
Very nice and clear! Just schrink that command line down, even if it pops up, it will be small 😂
@maxkinli
@maxkinli 4 жыл бұрын
0:40 OMG i almost die from heart attack xD
@edwardtofan8783
@edwardtofan8783 4 жыл бұрын
"if you click on this text, it's montserrat, OF COURSE" :)) Good content there Gary, keep it up!
@devilreaper8543
@devilreaper8543 4 жыл бұрын
which one is better for learning sass or scss...???
@pax4698
@pax4698 4 жыл бұрын
Hey Gary! Love your channel, thank you so much for all of the great content.. I was wondering what LED light you use to light your room in the background? Thank you kindly!
@dgeldridge
@dgeldridge 4 жыл бұрын
Why would one choose to use extends over BEM classes and components? Or are there instances where one is preferable to another? About to do a big refractor and want to start mapping out an approach. Thanks!
@me_rinta
@me_rinta 4 жыл бұрын
What’s the difference between using “extend” and “include” with mixins?
@TheElexec
@TheElexec 4 жыл бұрын
Hi, SASS'es extend adds the class you extended from to the selectors from the class in which you extended. % extends (Placeholder extends) does the same, but leaves the original class, the one which you extend from, out of the compiled css. Mixins are inlined *every time* you use them into the css. This can make css files lengthy. Their advantage is that you can pass parameters and calculate styles based on them, which you can not do with extends. Conclusion: Use extend whenever you have no arguments. Use %extend whenever you do not want the base class included into your compiled css. Do not use extend when your scss is deeply nested
@me_rinta
@me_rinta 4 жыл бұрын
Munsu Thank you for the descriptive answer!
@1111kz
@1111kz 4 жыл бұрын
What about the redundancy of this approach after gzip production css?
@omeralsoma_
@omeralsoma_ 4 жыл бұрын
I think JavaScript will be nice cause you don't have video on it for little while JavaScript in general
@alinawaz4034
@alinawaz4034 4 жыл бұрын
Don't Hold (ALT + Tab) just Press (ALT + Tab) and leave it will automatically change your window to the old one.
@NihilismEnjoyer98
@NihilismEnjoyer98 4 жыл бұрын
Cool. Am new to sass, correct me if I'm wrong but we could've used a mixin with fixed values to do the same, right? It's just that mixin can be seen as more like a function which was created for using same properties but desired values given as parameters so, they just created another thing to just help us define uniform properties with values across different elements.
@mrleblanc
@mrleblanc 4 жыл бұрын
Mixins will repeat the code, extends will create a combined selector. This can be usefull when you share a lot of CSS and don't want to make your stylesheet to heavy
@NihilismEnjoyer98
@NihilismEnjoyer98 4 жыл бұрын
@@mrleblanc Thanks for replying but i still don't understand how will mixin need to repeat it? Isn't it like using include instead of extend... And it will change for all of em once we change mixin.
@mrleblanc
@mrleblanc 4 жыл бұрын
Akshay Sharma If your mixin create 10 CSS rule and you use it 100 time, it will create 1000 line of CSS. If you use extend, it will create 11 lines (10 for the rules and one big line for the compounded selector)
@NihilismEnjoyer98
@NihilismEnjoyer98 4 жыл бұрын
@@mrleblanc oh! Thanks for explanation :) i get it now.
@alexchiu
@alexchiu 4 жыл бұрын
neat. ive started trying to write atomic css which seems similar to this.
@parthkumarchaudhary
@parthkumarchaudhary 4 жыл бұрын
Whatever I loved that brake in intro *ss one, #lol
@techtipsuk
@techtipsuk 4 жыл бұрын
Called a group selector. Better just giving them the same class and using BEM as you taught in your previous lesson.
@duckmasterflex
@duckmasterflex 4 жыл бұрын
I was always told that using extend was an anti-pattern in sass and to use mixins instead
@joseflinha
@joseflinha 4 жыл бұрын
Mixins and extending is anti-pattern :-D
@duckmasterflex
@duckmasterflex 4 жыл бұрын
Having your daughter peak into the video added a tun to the enjoyment of the video
@DaggieBlanqx
@DaggieBlanqx 3 жыл бұрын
Pair programming is cool, your daughter was there to help you debug... haha!
@StefanMetze
@StefanMetze 4 жыл бұрын
THX for this tutorial 👍🏻
@iUmerFarooq
@iUmerFarooq 4 жыл бұрын
Is that possible that we make *.exe* file of *WebApps*?
@0xDEAD_Inside
@0xDEAD_Inside 4 жыл бұрын
Electron..?
@msvmanikantasrivishnu7788
@msvmanikantasrivishnu7788 4 жыл бұрын
Nice thumbnail..❤
@vatsalyasinghi438
@vatsalyasinghi438 4 жыл бұрын
Hi Gary.. as a backend developer , I find it difficult to write UI code .. as in I understand what the tags mean but styling them is all Greek and Latin .. Hope you understand what I am trying to convey.. How do I learn which styling to use and when ? Please help and Thanks !!
@parthkumarchaudhary
@parthkumarchaudhary 4 жыл бұрын
Wait for some time. Gery is going to launch UI course. Also if you want to learn basics then please check 2020 Crash Course by Gery.
@Collidedatoms
@Collidedatoms 4 жыл бұрын
Start by learning selectors, background color, and color. That's it. Nothing else. You can even embed the css between a pair of tags in the head. Then learn how to use divs and spans if you don't know already to layout your html. Then learn css grid and flexbox. Then learn fonts. Then learn positioning. Once you know that, it gets easier and the syntax seems really straightforward. Once you understand css, you can learn sass.
@vatsalyasinghi438
@vatsalyasinghi438 4 жыл бұрын
@@Collidedatoms Thank you ! Will try this 👍😊
@georgettebeulah4427
@georgettebeulah4427 4 жыл бұрын
This is so true and make more sense .
@cmnweb
@cmnweb 3 жыл бұрын
Plot twist..your daughter is whispering you the code, jeje greetings from México
@anand.prasad502
@anand.prasad502 3 жыл бұрын
0:24 who's there
@cenation319
@cenation319 4 жыл бұрын
.gary{ z-index: 1 } .daughther{ z-index:0 }
@MikeElmore
@MikeElmore 4 жыл бұрын
Don't look behind you but there is something there...
@piyushkaushik7445
@piyushkaushik7445 4 жыл бұрын
that lady behind gave me creeps. And SASS is just Smart Ass.
@oraogavran3115
@oraogavran3115 3 жыл бұрын
You literally used extend with only one example dislike!
@juraev0056
@juraev0056 4 жыл бұрын
Hello again :)
@vintprox
@vintprox 4 жыл бұрын
Tailwind classes with tree-shaking to the rescue! P. S.: Ah, so the child decided to "extend" you :)
@hamedhatami518
@hamedhatami518 4 жыл бұрын
There's a ghost behind you 😁😁
@chikkiidehalvi5561
@chikkiidehalvi5561 4 жыл бұрын
such a sweet cute ghost :)
@usaava
@usaava 4 жыл бұрын
0:43 a supper cute girl behind you
@TangoIndiaMike144
@TangoIndiaMike144 4 жыл бұрын
and at 0:23 lol
@Collidedatoms
@Collidedatoms 4 жыл бұрын
She's like creeping up on him. There was a news blooper like that where this lady had like a nutso look on her face creeping up behind the news caster and she saw it in the monitor and broke down laughing and crazy lady lost it too. It was hilarious.
@MaxWeir
@MaxWeir 4 жыл бұрын
Weirdo
@rennesinternet3872
@rennesinternet3872 4 жыл бұрын
ouch, i readed ass instead of sass !
@usaava
@usaava 4 жыл бұрын
First comment :D
@sunstrike8943
@sunstrike8943 4 жыл бұрын
I crush on ur daughter 😹😹
@ErrorDebug
@ErrorDebug 4 жыл бұрын
ur sick.
@JoseMVelazquez
@JoseMVelazquez 4 жыл бұрын
wth?
@MaxWeir
@MaxWeir 4 жыл бұрын
Freak
@sunstrike8943
@sunstrike8943 4 жыл бұрын
Just kidding brother
You Probably Need BEM CSS in Your Life (Tutorial)
18:47
DesignCourse
Рет қаралды 166 М.
Stop using an extension to compile Sass
21:39
Kevin Powell
Рет қаралды 130 М.
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,1 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 2,9 МЛН
STOP The CSS Grid Confusion - 2 Ways to GRID!
26:09
DesignCourse
Рет қаралды 178 М.
How to Properly Layout A Website (For Beginners)
14:50
The Website Architect
Рет қаралды 645 М.
Sass Crash Course
48:05
Traversy Media
Рет қаралды 404 М.
Awesome UI Interactions with the CSS Clip Path Property
16:15
DesignCourse
Рет қаралды 340 М.
SASS Tutorial (build your own CSS library) #18 - Using @extend
10:35
Stop using @import with Sass | @use and @forward explained
13:13
Kevin Powell
Рет қаралды 251 М.
Learn CSS Grid the easy way
37:04
Kevin Powell
Рет қаралды 930 М.
10 modern layouts in 1 line of CSS
21:39
Chrome for Developers
Рет қаралды 1,1 МЛН
Animated Responsive Navbar with CSS - Plus Other Useful Tricks
11:40
Learn Sass in this Free Crash Course - Give your CSS Superpowers!
46:26
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24