BEM 101: How to Make Web Design Organized & Scalable

Поделиться
HTML-код
  • Опубликовано: 6 июн 2024
  • This is one of those tutorials that will 100% change how you develop websites, so don't sleep on it!
    Too many sites out there are "good looking," but when you look at the underlying page and component structure, CSS, etc. you realize that it's actually a nightmare in terms of scalability and maintainability.
    Styling is just haphazardly tossed around to achieve an initial objective with zero thought put into future-proofing the design and layout.
    This is a huge failure. It doesn't matter how pretty a website is, if it can't be easily maintained and scaled, you've failed as a developer.
    In this training you'll learn a specific methodology called BEM (Block, Element, Modifier) for organizing your website's styling. The benefits of BEM are enormous:
    • Organization
    • Scalability
    • Semantic accuracy & readability
    • Avoiding class name collisions
    • Easier writing
    • Easier debugging
    • Easier modification
    • Avoid specificity issues
    • Faster rendering
    • "Self-documenting code"
    Never again will your sites fail what I call the 3-month or 6-month rule. Never again will you develop a pretty website that has a horrific styling architecture underneath.
    Not enough people take pride in building sites with a clean, efficient, concise, organized structure. In my opinion, this should be one of the main goals because scalability and maintainability is everything.
    Want to go deeper? Join my Inner Circle: digitalambition.co/inner-circle/
    00:00 Context & Black Belt Development
    05:20 Why BEM?
    08:38 Examples of Bad Dev
    23:34 How BEM Works (Structure)
    35:05 Example CSS
    36:22 Real-World Example
    39:07 Adding the HTML Elements
    41:03 Adding the BEM Classes
    43:36 Styling the Component
    54:24 Adding a Modifier (Dark Component)
    1:00:00 Final Thoughts

Комментарии • 250

  • @Gearyco
    @Gearyco  2 года назад +16

    Just realized I never showed what the grid of 6 cards was for in the beginning. Too much to cover! It was to show how global styling changes work to highlight one of the main goals of scalability. But I forgot about them. Oh well! You end up seeing global styling control in the end example anyway.

    • @AntiAtheismIsUnstoppable
      @AntiAtheismIsUnstoppable Год назад

      What about custom variables instead of using modifier classes?
      I like that settings are always at the top, and that can be done with custom variables.
      All the modifiers are then set in custom variables in the dark theme class itself.
      You can then make all sorts of custom themes of the card very easily, and all the settings are at the top.
      Custom variables are good especially with colors, because you want to keep track of what colors you use, for documentation purpose also. Usually I would try to make all the colors needed available in the :root, I think that's where they belong, and then any modified color will be taken from that list.

  • @alyssadotson246
    @alyssadotson246 2 года назад +21

    I am new to web development, and I have blown through your videos over the past week. I NEVER comment on here, but I am genuinely thankful for your content. Will be joining the inner circle soon, thanks for taking your time to create these tutorials for us!

    • @Gearyco
      @Gearyco  2 года назад

      🙌

    • @jasonvargas4798
      @jasonvargas4798 2 года назад +1

      Join it! It is fantastic. I actually landed a job through the community and it has been amazing.

  • @davidnickson5043
    @davidnickson5043 10 месяцев назад +3

    My lord I’ve heard you talking about bem for ages and I sort of knew it, but I’m so glad I found this old tutorial! 100% know how to structure everything now and the dark card was a bonus! Cheers legend!

  • @bluefuzecom
    @bluefuzecom Год назад +3

    Been a designer for 22 years now, and I feel like I have been doing this in my own unique way. But it’s really cool to see some kind of formalized system here. Nice work!

  • @jameswthrasher
    @jameswthrasher Год назад +1

    Finally got around to watching this one. So good, and clarifies the “why”. Excellent as always, Kevin.

  • @alineduchesne6422
    @alineduchesne6422 2 года назад +2

    This video was perfect timing. I purchased Oxygen quite some time ago and it was too in-depth for me as a newbie. I've dabbled with various themes and when I got the email about the new Oxygen, I decided to jump back in since I've learned quite a bit since my first purchase. Watching this made quite a few things click and I immediately knew what some of my past mistakes were. Very well done. Looking forward to checking out some of your other videos.

  • @ReubenHochstetler
    @ReubenHochstetler 2 года назад +1

    The BEM naming system has been a real game changer. I don't recall where I first heard about it (probably one of Kevin's other videos) but I always had a little bit of confusion around the element and the modifier. Now it's perfectly clear. Thanks Kevin for another great tutorial!

  • @SimonAngel
    @SimonAngel 2 года назад

    I had been running into reusability issues with classes and this BEM explanation really helped

  • @francesgonzales4547
    @francesgonzales4547 Год назад +1

    I went thru a junior front-end developer interviews where one interviewer said that my CSS is not structured and organised but my Front-end is close enough to the mock-up. I came across BEM and glad to learn it from this video first-hand. Your video is easy to understand from concept of BEM to practical usability is on point. Now I will structure my CSS in a whole new perspective. Thanks, Kevin for this!

  • @salsh4937
    @salsh4937 Год назад

    OMG you are a life saver i am a newbie and I found you as my mentor I am starting from this video I am getting the best practices i love this content how is this on youtube this invalueable and only 6000 views... this is gold in web development which make your foundation to be a good and best developer

  • @arpitgupta8838
    @arpitgupta8838 6 дней назад

    I was trying to implement bem technology but i didn't know what it was. I came across your video and the way you explained was crystal clear. Thank you for the great content and you just earned a subscriber!!

    • @Gearyco
      @Gearyco  6 дней назад

      Glad it helped!

  • @richardc1925
    @richardc1925 11 месяцев назад

    Kevin, I am watching your Page Builder 101 course (loving it) and watching this really helped me. This make so much sense and is helping me build better sites! Thank you so much!

    • @Gearyco
      @Gearyco  11 месяцев назад

      Glad it was helpful!

  • @GavinDavidson
    @GavinDavidson Год назад

    Great vid, made so much sense! I learned a lot about CSS, not only BEM. I have been using BEM, but not in the correct way all the time, and now I know why. Yip, the border has a major lag, it's not only you. Thanks for another great tut!

  • @yuwownly8630
    @yuwownly8630 5 месяцев назад +1

    Thank you very much Kevin for this detailed BEM architecture course!!😊👌

  • @brianrougeau
    @brianrougeau 10 месяцев назад

    Thank you Kevin. Very helpful information. Very much appreciate the work you do for the community. All the very best.

  • @jkarel-brovisuals
    @jkarel-brovisuals 2 года назад

    Definetly love this tutorial, Kevin! Thank you for sharing and explaining BEM !

  • @eucalyptech
    @eucalyptech 2 года назад

    Thank you Kevin ! I love so much your deep tutorials because they really help to improve web development.

  • @tlohangmotsokotsi9503
    @tlohangmotsokotsi9503 Год назад

    This was amazing to watch. Can't wait to see more videos.

  • @Leavventuredifrucci
    @Leavventuredifrucci 2 года назад

    I started using BEM since I discovered your videos, very useful tecnique. Thanks to this tutorial I realized that the Modifier could be used in a more efficient way (changing it only on the block element, dark card). Thank you Kevin!!

  • @chelofonte3942
    @chelofonte3942 2 года назад +2

    FANTASTIC Kevin, this is something so necessary for me, you probably can realize it due to my recurrent questions in the Inner-Circle, you don't know how much I appreciate this video.

    • @Gearyco
      @Gearyco  2 года назад

      You're very welcome

  • @VeriousSmithIII
    @VeriousSmithIII 9 месяцев назад

    Very cool. Been writing css since 2001 and hadn't ventured into BEM. Thank you

  • @davidwalls2304
    @davidwalls2304 Год назад

    Kevin, I've already "liked & subscribed" to this video and the channel. This is the second time viewing the BEM 101 video. This is a new concept for me but what a way to keep things easily maintainable, easily customizable, and a whole lot less random across a website. Thank you for opening my eyes to this approach.

  • @c28ccd0e
    @c28ccd0e 5 месяцев назад

    This is the best `BEM` tutorial on the planet!!!. Thanks for sharing

  • @cabolove89
    @cabolove89 2 года назад

    This is amazing…I never stop learning from your platform…keep it up please I benefit a lot.

  • @morozara4962
    @morozara4962 Год назад

    I am amateur learning as I go. Thank you so very much. I am so glad . I became a member. At first I thought I would be lost but your style of teaching is incredible. AGAIN THANK YOU SO VERY MUCH

  • @rickheijster9316
    @rickheijster9316 2 месяца назад

    Thanks Kevin! I will be applying this to all my projects starting today.

  • @juliewilliams3461
    @juliewilliams3461 Год назад

    Thank you. This was very helpful I'll be making changes to our company website and your structure is great. I have tried to use a naming structure for software development and this is very easy to follow for Oxygen classes.

  • @Hellboua
    @Hellboua 2 года назад

    Didn't know about BEM till now. I wish all teachers were as instructive as you are ! Keep up the good work. Joevin, fresh inner circle member.

    • @Gearyco
      @Gearyco  2 года назад +1

      Glad to have you on board!

  • @larryfarr
    @larryfarr 10 месяцев назад

    Thank you for taking the time to make this excellent video. So well explained. It cleared up so much for me and I appreciate it very much!

    • @Gearyco
      @Gearyco  10 месяцев назад +1

      Glad it was helpful!

  • @omdollars
    @omdollars 9 дней назад

    Kevin, thanks, now I am one step closer to choosing acss. Feeling confident. Thanks!

  • @burner918
    @burner918 2 года назад +1

    I had heard of BEM but being new to Wordpress, i didn’t understand what the big deal was or why I’d go through the trouble until I found myself in class hell. This is one of the best explanations I’ve seen on why it’s important and how to use it. Thank you so much for this awesome video. 🙏🏼

  • @marinastanic
    @marinastanic Год назад

    This was TURBO awesome!!! Looove the neatness, orderliness and clarity of BEM application. Thanks Kevin - I've learned so much from this video 🎊🤩 Simply pure value!

    • @Gearyco
      @Gearyco  Год назад +1

      Great to hear! Hope to have you as a subscriber :)

  • @blcksgnota
    @blcksgnota 3 месяца назад

    2 Years later and i found this gem!
    Thanks Kevin :)

  • @derekshort
    @derekshort Год назад

    Thanks again for another great video! I’ve been using this style of coding for a while but not to this high degree. Thanks for the lesson. 😁🙌🏻

  • @dynamic-homepages
    @dynamic-homepages Год назад

    Excellent, never heard of it before. But I really love it, and it makes a lot more sense. I recently started a project; just waiting for Bricks 1.5. Then I'm gonna start using BEM and reorganizing my Elements. Thanks a lot =)

  • @MrAverageViewer
    @MrAverageViewer Год назад +1

    Your tutorial was outstanding!! I've combed the web, trying to find a cohesive & in-depth explanation of BEM, and after having viewed your tutorial, I finally understand the concepts, and the rationale behind the concepts. Thanks for giving a thorough, yet concise walkthrough of BEM!!

    • @Gearyco
      @Gearyco  Год назад +1

      Glad it helped!

    • @Gearyco
      @Gearyco  Год назад +1

      Glad it helped!

  • @kevinfisher1059
    @kevinfisher1059 2 года назад

    I am a complete newbie to oxygen, understanding CSS, etc but I really want to learn. The organizational structure makes perfect sense. Great tutorial, thank you.

    • @Gearyco
      @Gearyco  2 года назад

      Definitely stick with it. The sooner you implement this kind of stuff the better!

  • @martynpage4823
    @martynpage4823 2 года назад

    Hi Kevin! been a bit busy with other stuff....loved this video..really well put together...

  • @VRudhraksh
    @VRudhraksh Год назад

    This is more than just gold. I'll be joining the Inner Circe soon. Looking forward to you. Thank you very much for this video. I cannot appreciate it enough.

  • @ricardopurep056
    @ricardopurep056 Год назад

    Amazing content.. even after a year, its really helpful to me. Thank you

  • @jasonetaylor
    @jasonetaylor 4 месяца назад

    Great tutorial. I've used BEM in the past but now realize I wasn't using it 100% correctly.

  • @liviustanciu165
    @liviustanciu165 2 года назад

    Hi, Kevin. Would have been very interesting to add to this video a hover tutorial too. Like having the - - dark version on hover. I knew what BEM is, but the way you explain things is out of this world. Thank you for having the idea to become a digital marketer :)

  • @daansitters3531
    @daansitters3531 2 года назад

    Great tutorial Kevin! I will try it out BEM. Thanks a lot!

  • @progress8888
    @progress8888 Год назад

    thank you!
    i really like your style that how you supply the information, this hour for me was like about 10 minutes duration lol
    +1 like/subscriber

  • @OneBrokeBloke
    @OneBrokeBloke 3 месяца назад

    This is my life now. Watching 1 hour videoes about BEM

  • @robertturner1550
    @robertturner1550 2 года назад +1

    I would love to see the ACSS version of this. I'll be using BEM from now on. I really love the way you did the dark card version. This will definitely save time and money when developing sites.

    • @Gearyco
      @Gearyco  2 года назад +2

      I show the ACSS version in most of my tutorials. But also, just created a new ACSS RUclips channel and it’ll be shown a lot there. RUclips.com/automaticcss

  • @sujit_webdev
    @sujit_webdev Год назад

    This is a very good explanation of BEM! Thanks a lot, Kevin!

  • @pablobarrientos2071
    @pablobarrientos2071 Год назад

    Thanks to much for the class, i learned a lot! I´m already knew about BEM but i coudn´t use it to efficient as you demostrate. Now i have to practice!
    pd: i was using the class with the modifier at the same time because i learned that was necesary, and that made me troubles.
    Thanks again and pls forgive me for my english if i made a mistake. Peace ✌

    • @Gearyco
      @Gearyco  Год назад +1

      All good my friend!

  • @petrajovkov8622
    @petrajovkov8622 2 года назад

    Thank you Kevin for all your effort! I was using BEM for a little while now. Also made the "mistake" to use nested BEM and found out that it is not working for me at all.

  • @art-paintshop1684
    @art-paintshop1684 Год назад

    Great tutorial!

  • @muldermediatube
    @muldermediatube 2 года назад

    Thank you for these clear practical insights, it is much appreciated.

    • @Gearyco
      @Gearyco  2 года назад

      You are very welcome

  • @SinisaSinjori
    @SinisaSinjori 2 года назад

    Great tutorial Kevin! Thanks a lot!

  • @bjon3048
    @bjon3048 7 месяцев назад

    super valuable and professionell content! I never used BEM. Makes maintaining and changing existing websites a piece of cake.
    What I find really terrible is that if one makes a chump video explaining how Elementor works, there are thousands of views. But professional content, which is much more valuable, unfortunately not. It's just that most flies sit on the dog pile :)

  • @patmatt8283
    @patmatt8283 Год назад

    ANOTHER awesome tutorial Kevin. Thanks a million. Am I the only one that thinks to themselves "I hope this never get's deleted"?😂

  • @mihai-circea
    @mihai-circea 2 года назад

    Been waiting for this video for so long. I am finally sure that I'm not supposed to be nesting elements. I can confirm that the borders window inside of Oxygen is insane. How is this still not solved yet...
    Hope we're gonna see some vids on Zaraz, Plausible, and maybe Motion Page. The later looks amazing, even for just creating some nice hover styles.

  • @GrantAmbrose
    @GrantAmbrose Год назад

    Very helpful! My CSS is all over the place, I'm definitely going to give this a go. I was wondering - if you have multiple blocks that share common styling like 2em padding / white bg / dropshadow... do you define these same rules in each block's css class, or would you create a new css class like .box and then stack this onto the other css class you create for each block.. if that makes sense

    • @Gearyco
      @Gearyco  Год назад +1

      There might be different types of cards that have shared styles. The shared styles go on the main .card class. The other styles go on modified card classes.

  • @vickydeclasca
    @vickydeclasca 2 года назад

    Hello Kevin, thanks for this video. I didn’t know hiw bem worked so this been really helpfull. I thought it was mofe powerfull to work with general classes. I will try it out

  • @ced888
    @ced888 Год назад

    Very useful and interesting tutorial. Thanks for sharing.

  • @Pxwahid
    @Pxwahid Год назад

    Nice video. Maybe already answered. But the sr-only class in the card is mainly used for screen readers only.

  • @Bublelicious
    @Bublelicious 2 года назад

    Thanks as usual for another fantastic tutorial, you make things so easy to understand!! Off-topic question : what are you using to change the look of Oxygen interface?

    • @Gearyco
      @Gearyco  2 года назад

      Thanks! Not using anything this is oxy 4.0.

  • @tjveach
    @tjveach 2 года назад

    Great Job!! I was using similar withing Webflow... hence why I am watching this..>!!

  • @warrenaddison8422
    @warrenaddison8422 2 года назад

    This was awesome. All your tutorial videos are awesome. What plans do you have for a version of this tutorial but instead of using vanilla Oxygen show best practices with how to combine BEM and ACSS?

    • @Gearyco
      @Gearyco  2 года назад +1

      There will be a lot of them both here and on the ACSS youtube channel. Make sure you're subscribed there, too: ruclips.net/user/automaticcss

  • @smithbenites5409
    @smithbenites5409 2 года назад

    I loved the tutorial Kevin, I had heard before about BEM, I used it in a very "cabernicola" way and not correctly, but this helped me to understand better the use of double hyphen, I had no idea what it was for. And also trying to learn how to use AutomaticCCS, I still get frustrated when I'm trying to recreate a design made in figma because I tend to be very stubborn in having the exact measurements in the design, that everything goes to the pixel hahaha. Anyway I love the tutorial and I comment that about the use of borders in Oxygen does not get slow or I have not felt it. I use windows on a decent laptop.

    • @Gearyco
      @Gearyco  2 года назад +2

      Thanks for commenting on the borders field. I’ll keep trying to track down the problem.
      Im writing an article about the era of pixel perfect design being dead, so that may help you :)

    • @smithbenites5409
      @smithbenites5409 2 года назад

      Great! excited for it to come out now 🙌

  • @CodeFusion
    @CodeFusion 5 дней назад

    This video alone elevate my skill level Thanks a lot Its a Gem

  • @loukaskouros2582
    @loukaskouros2582 Год назад

    Kevin I really love your explanation and thank you for your content to give us.
    When i use ACCSS framework can i do the same or i can use your existing class?
    Every time i was wondering how can i create a Card with ACCSS.

    • @Gearyco
      @Gearyco  Год назад +1

      For reusable components you would want to create custom classes. You can use ACSS variables to style those classes.

  • @robertturner1550
    @robertturner1550 2 года назад

    Another great one Gary.

  • @toby-green
    @toby-green 6 месяцев назад

    Great tutorial, like the ordered approach to CSS nomenclature. Did you do a video on using BEM with frames? Having seen this video I can see why there are so many classes with each imported frame. Managing the classes when the frame is used multiple times with different styling on different views is what I'm thinking about - how best to rename classes when wanting to change them or is it best to add css outside the class?

    • @Gearyco
      @Gearyco  5 месяцев назад +1

      We have a Frames livestream on Thursday this week for full Q&A and demos. Come join us!

    • @Gearyco
      @Gearyco  5 месяцев назад +1

      It's on the ACSS channel.

  • @jaimematos6457
    @jaimematos6457 2 года назад

    It would be awesome to see you covering how to properly build a Design System in Oxygen, following a grid guide and things like that!

    • @Gearyco
      @Gearyco  2 года назад

      ACSS has a style guide page you can add to every website in seconds. ui.automaticcss.com/

  • @workarea7407
    @workarea7407 2 года назад

    Thank you very much, very useful for me.

  • @simonepagnini6735
    @simonepagnini6735 2 года назад

    Very helpful as usual! Thanx for sharing! A question: when do you write these classes? I mean during the project of the web site (mockup for example, when you see the elements) or you write on the go while "translating" the sketch to real website blocks, sections and so on? Thanx!

    • @Gearyco
      @Gearyco  2 года назад

      They're decided during dev.

  • @olithompson5218
    @olithompson5218 2 года назад

    Another great tutorial!

  • @Kaos9696
    @Kaos9696 6 месяцев назад

    I really love this video! It's helping me so much! I was wondering though, what if i always want every social icon on my website to be the same size? Would i still have a separate social icon class for the team card? Or would I have a block of social icon and also an element team card social icon?

    • @Gearyco
      @Gearyco  6 месяцев назад

      var(-social-icon-size)

  • @AlexArce
    @AlexArce 2 года назад

    Kevin great video, it filled a lot gaps in my knowledge.
    One question
    How do you name section that aren’t a Component. Like a hero section for example.
    Is the whole hero section consider a block and naming goes as follows
    .hero
    .hero_heading
    Etc
    Also, what if you have a couple of hero section designs. How would name them?
    Thanks Kevin for all the work you do. Your content help me leveled up my game.

  • @guioz1652
    @guioz1652 Год назад

    excellent content s2

  • @andrew.schaeffer4032
    @andrew.schaeffer4032 2 года назад

    Thanks for the video! I mostly use the WET naming convention: write everything twice -jk. I do my best with BEM, but it is tricky to name stuff.

    • @Gearyco
      @Gearyco  2 года назад

      lmao. It's definitely and art + science. There's no linear set of instructions to follow each and every time.

  • @kuba32110
    @kuba32110 2 года назад

    About borders - if you switch from all to, for example, top border, there's no such lag and i think is even faster to make 4 borders this way instead of all

    • @Gearyco
      @Gearyco  2 года назад

      That’s still annoying. Shouldn’t have to do that.

  • @cabolove89
    @cabolove89 2 года назад

    Thanks for the brilliant tutorial
    you rock

  • @ClaireSingson
    @ClaireSingson Год назад

    i watch this video because im having problems with naming css .. and i want to make my css better , more better .. thanks for this tutorial ..

  • @gagegogan4062
    @gagegogan4062 2 года назад

    FYI sr-only typically means only show in the screen reader. Typically you would make something like a skip to content button sr-only

  • @ceciliatabbi4218
    @ceciliatabbi4218 8 месяцев назад

    Finally found this video and understand what BEM is ^_^

  • @Syphronix
    @Syphronix 2 года назад

    Awesome video - what Oxygen add on(s) plugin are you using/ would recommend? Cheers!

    • @Gearyco
      @Gearyco  2 года назад

      As of right now only automatic.css and oxyextras. Those are the only oxygen specific plugins I use.

  • @mathisbeltran7190
    @mathisbeltran7190 Месяц назад

    Thank you!

  • @williamalake
    @williamalake Год назад

    Awesome video. I learned a lot. Thanks! A quick question, how about consistency with other parts of the website. What if, for example, you used the same font styling in other parts of the website which are not team cards. Would you create the CSS class for each one or would you use a more global class which covered them all. How would you handle that with BEM? Because if I followed BEM in this instance, and then wanted to change the font size, I'd have to change it in multiple places.

    • @Gearyco
      @Gearyco  Год назад

      No this is why all font sizes are created from a base size and a math scale. You still have complete global control.

    • @williamalake
      @williamalake Год назад

      @@Gearyco thanks for your reply. I'm shocked you're still replying to messages after all this time! I'm not sure I explained myself clearly. I meant, what if in the team card name, I decided I wanted to use 1.2rem because I had used it in a "service catd" too. But then I thought that actually, I want both of those to be the same, always. So, now I have 2 classes with the same font size. I want all the other text to stay the same size and not change. Now I want both classes to have 1.3 rem. So I have to change them both? Is it better to change them both indivially to 1.3 or give them a separate class which controls them both? I might have 4, 5 or even 6 places that use that particular styling? I'd have to edit 4,5 or 6 classes to keep them all the same or is there a better way? Sorry, if I'm not explaining it clearly!

  • @JaysonRivest
    @JaysonRivest Год назад

    Thanks, Kevin! Hadn’t heard of BEM before and always struggled with class organization. This makes a lot of sense to me. I’d be curious how you would recommend implementing BEM and ACSS on the same site. I’m currently developing on Bricks, but am familiar with Oxygen too, so it wouldn’t necessarily have to be builder specific.

    • @Gearyco
      @Gearyco  Год назад

      I show the exact process in a lot of my videos.

  • @justinluethke
    @justinluethke 9 месяцев назад

    This video was greatly helpful for me! Very on point. The BEM naming convention has always scared me kinda xD. But thanks to this video, I am now pleasantly surprised at how easy this actually is. Thank you very much... Another question, because I got interested in seeing more videos from you: Is the Pagebuilder 101 Course also interesting for people who are learning and want to code websites with HTML, CSS, and JS?😀

    • @Gearyco
      @Gearyco  9 месяцев назад +1

      You can do it!

  • @asthon9241
    @asthon9241 2 года назад

    Always best Kevin!!!

  • @vickydeclasca
    @vickydeclasca 2 года назад

    I loved the dark version specifier

  • @atomicpx
    @atomicpx 2 года назад

    I'm glad I watched this, it clarified some questions I had about naming conventions. Who says BEM aint sexy? :-)

  • @CartridgeBros
    @CartridgeBros Год назад

    New web dev here and I've built a couple small sites already. Would you recommend going back and fixing the classes on those to align with BEM or should I just focus on using it in the future?

    • @Gearyco
      @Gearyco  Год назад

      Just going forward probably

  • @tonifrisch1075
    @tonifrisch1075 2 года назад

    Hi Kevin, you should maybe check your browser extentions if they lead to the lag problem on the border settings. I dont have this issue in all of my oxygen sites.

    • @Gearyco
      @Gearyco  2 года назад

      We found out what it is. Oxygen add ons that add features to the panel. Specifically oxyextras and wp grid builder oxygen extension. Seems to be an oxy bug. We reported it.

  • @adrianjabascal4749
    @adrianjabascal4749 Год назад

    Oh damn. I needed to see this.

  • @Zp00kie
    @Zp00kie 10 месяцев назад

    This was extremely BEMeficial! Thank you.

  • @vodafone_germany
    @vodafone_germany 2 года назад

    fantastic tutorial. thanks from ❤. Please more dev stuff like metabox cloneable fields rending on frontend and so on 🎉

  • @RobCooper
    @RobCooper 3 месяца назад

    In grade 10, my final project for my Apple Basic class, I had more lines of comment than code. There was a lot of code too but more comments. Classmates asked me to write their code for them and I said the teacher would recognize my logic and comments

  • @filmgenius2
    @filmgenius2 Год назад

    Could you do this with bricks, but with query loop? How would you use the modifier if the card you’re trying to change is a copy of the first by query

    • @Gearyco
      @Gearyco  Год назад

      For a query loop you have to use nth-child or data attributes

  • @vitspisek
    @vitspisek 2 года назад

    Great schtuff as always! You've touched a few pain points of mine. And I am certainly guilty of the "block-ception" of "block__within-block___of-another-block--variant__element" naming 🙂
    I wish there was a better way to target and organize the elements of the modified variants (such as ".card--dark .card__heading") in 1 place instead of having the original set within the Oxygen GUI and the more specific variant in custom stylesheets. Recoda's class suggestion is helpful when writing the custom CSS in the stylesheet, but I still lose precious seconds when I click an element, check the default class properties in Oxygen GUI get puzzled by not seeing the properties/values only to realize that it's part of a modified parent block and its properties are set via stylesheet (or Selector Inspector or whatever tool which lets you create/select specific classes is called - which is good for organizing/listing, but pain to create).
    And yes, the border settings stutter for me too (Win + FF Dev). And I'd swear it started when you mentioned it in one of your previous videos 😀
    Maybe it was not doing it in previous versions of Oxygen, I can't imagine I would not have noticed earlier.

    • @Gearyco
      @Gearyco  2 года назад +1

      Oxygen needs to dramatically improve how stylesheets are accessed. For one, we should be able to edit stylesheets without opening the builder. Two, we should be able to open a floating stylesheets panel in the builder that doesn't block our access to other controls. That way we can easily pull it up whenever needed, add/change, and then minimize it again.

    • @vitspisek
      @vitspisek 2 года назад

      ​ @Digital Ambition Exactly. I am not having the common problems some people complain about: My Oxygen loading times are bearable, I got used to the (sometimes) clunky structure pane and the fact that I occasionally need to tripple-click things when renaming, etc. Once I chiseled my workflow a bit (which you greatly contributed to!), the experience of creating websites with Oxygen became very pleasant and efficient. But there are still areas in the UI which need improvement. Recoda is an amazing tool for improving the editor and the workflow in my opinion btw.

  • @dzulhelmi81
    @dzulhelmi81 Год назад

    I am halfway thru this video, I see many classes use owl- name, is this owl classes is part of any css framework? The swaytheme you show when I inspect in the browser also use owl as the div class name

    • @Gearyco
      @Gearyco  Год назад

      Yes, they're part of automaticcss.com ... but they're deprecated now. You can just use gap.

  • @alexander-van-aken
    @alexander-van-aken 2 года назад

    Kevin, you used stylesheets to use the dark modifier. Isnt the state button on an element also a way to target all the other classes inside the dark modifier? Or is it too much hastle instead of a stylesheet. Good idea by the way to make a stylesheet per content type.

    • @Gearyco
      @Gearyco  2 года назад +1

      you want to avoid adding those types of selectors manually to the selectors area in Oxygen because they are a nightmare to edit and keep organized.

    • @alexander-van-aken
      @alexander-van-aken 2 года назад

      @@Gearyco yeah indeed. Thanks

  • @dzulhelmi81
    @dzulhelmi81 Год назад

    When you do the modifier dark to the center card, you add a new class to the card. Actually how many classes we can assign to an element/div?

    • @Gearyco
      @Gearyco  Год назад

      Not sure how to answer that. You want to use as few as possible.

  • @ClaireSingson
    @ClaireSingson Год назад

    sir, is it advisable to use BEM if you're creating from with many radio button, label.. , many div container to use? i used BEM but im having trouble with radion button and label using div to group them ..

    • @Gearyco
      @Gearyco  Год назад

      Not necessarily. I’d need to see what you’re working on.