Full Dark Mode with only 1 CSS PROPERTY?!

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024

ความคิดเห็น • 282

  • @DesignCourse
    @DesignCourse  4 ปีที่แล้ว +158

    Do you dark mode every layout?

    • @LabhamJain
      @LabhamJain 4 ปีที่แล้ว +12

      Yeah! I Love Making Themes Muhha!😘😘😘

    • @DesignCourse
      @DesignCourse  4 ปีที่แล้ว +7

      @@LabhamJain It really is fun.

    • @LabhamJain
      @LabhamJain 4 ปีที่แล้ว +7

      Wait I've Mind Bowling Idea For Figma... Open Your Prototype (design) Then Open Devtools With Menu Bar Of Browser Select HTML tag click element style paste this... boom 💥💥💥💥💥 😂😂😂😂

    • @mudrank4184
      @mudrank4184 4 ปีที่แล้ว

      No mucg

    • @ianthehunter3532
      @ianthehunter3532 4 ปีที่แล้ว +2

      I make it so it's unique and not too bright

  • @Itschotsch
    @Itschotsch 4 ปีที่แล้ว +400

    The property is:
    .dark-mode {
    filter: invert(1) hue-rotate(180deg)
    }

  • @DevProTips
    @DevProTips 4 ปีที่แล้ว +40

    The real tip is to use:
    html, img, video, {
    filter: invert(1) hue-rotate(180deg)
    }
    That way everything is inverted, but images and embedded content don't get messed up.

    • @berenboden
      @berenboden 4 ปีที่แล้ว

      Thanks

    • @creedolala6918
      @creedolala6918 4 ปีที่แล้ว +7

      This seems to only invert the unwanted stuff. What you can do is html { filter:invert(1) } then on a separate line
      img, video, { filter: invert(1)}.
      I thought the images and videos needed something like invert(0) to "uninvert" but it turns out they just need to be 'double inverted' to return to normal.

    • @ceptember.
      @ceptember. 2 ปีที่แล้ว

      🌟

  • @thmsmlr
    @thmsmlr 4 ปีที่แล้ว +646

    1 line of CSS, 12 minute video 🤣

    • @greenshaheen6716
      @greenshaheen6716 4 ปีที่แล้ว +66

      That's why i don't like his channel

    • @farhan787
      @farhan787 4 ปีที่แล้ว +26

      1 CSS property, not 1 line

    • @fauxcallingme9561
      @fauxcallingme9561 4 ปีที่แล้ว +6

      You are el stupido

    • @laoblue9302
      @laoblue9302 4 ปีที่แล้ว +14

      @@greenshaheen6716 yeah, fireship's better ;)

    • @greenshaheen6716
      @greenshaheen6716 4 ปีที่แล้ว +1

      @@laoblue9302 yes. Brad traversy too

  • @stefanschlipfinger5916
    @stefanschlipfinger5916 4 ปีที่แล้ว +148

    The new Edge Browser is Chromium based 😅

    • @maabed1022
      @maabed1022 4 ปีที่แล้ว +12

      @Xero Garbage? It's pretty decent to me.

    • @maabed1022
      @maabed1022 4 ปีที่แล้ว +4

      @@MuhammadHosny0 Exactly! And to be completely honest , the channel's owner sounded a bit condescending when he mentioned edge's compatibility. Albeit, I think it came from a place of ignorance rather that dumb hatred.

    • @ukn4
      @ukn4 4 ปีที่แล้ว

      maabed sj calm down you guys, it’s just a meme

    • @maabed1022
      @maabed1022 4 ปีที่แล้ว +6

      ​@Xero lol what gives? How's Google any different?

    • @michaelbitzer7295
      @michaelbitzer7295 4 ปีที่แล้ว +3

      @Xero lol why do you even use TH-cam if you are concerned about privacy

  • @minecrap5256
    @minecrap5256 4 ปีที่แล้ว +32

    By the way, the new microsoft edge is based on chromium . This means that everything that works in chrome (including extensions) works in edge aswell.

    • @MrTHEO9911
      @MrTHEO9911 4 ปีที่แล้ว +11

      Yeah just recently complete moved to edge, it just feels faster and smoother than chrome and now I can import passwords, settings and extensions. I was sold

    • @nagyszabolcs9451
      @nagyszabolcs9451 4 ปีที่แล้ว +2

      Thank you, just wanted to say the same, he should pin this comment lol

  • @Tortuex_
    @Tortuex_ 4 ปีที่แล้ว +54

    Maybe a simple ".dark-mode::not(.inverted)" would work?
    It would only invert and change the hue of the elements that are not tagged with the "inverted" class (if I keep the same name than in your example).
    That would allow to *remove any JavaScript* (except for the enter switch in this case) and *keep it all CSS based* and *only within one single line* .

    • @z-aru
      @z-aru 4 ปีที่แล้ว +2

      Neat Solution

    • @Tortuex_
      @Tortuex_ 4 ปีที่แล้ว +1

      @@z-aru thanks ^^

    • @szegedigergely
      @szegedigergely 4 ปีที่แล้ว +6

      "filter" is applied to the ".dark-mode" container itself, so whatever there is inside that, gets inverted, you cannot exclude elements like that. However, you can reverse the effect by re-applying it like ".dark-mode, .dark-mode .inverted { filter: invert(1) hue-rotate(180deg) }"

    • @Tortuex_
      @Tortuex_ 4 ปีที่แล้ว +2

      @@szegedigergely good to know :)

    • @iyedbouazdia3594
      @iyedbouazdia3594 4 ปีที่แล้ว +1

      @@szegedigergely So like a double no is a yes.

  • @HostDotPromo
    @HostDotPromo 4 ปีที่แล้ว +1

    It's great to see this. I have been managing a dark / light mode and it can be a bit if a pain to manage. But it's a really great feature for users.

  • @tcroft
    @tcroft 4 ปีที่แล้ว +6

    This is actually really interesting, you could try just applying that class to all img tags instead of manually adding an inverted class. The hue rotate is a really clever way of bypassing dodgy inversions which is cool

  • @ArtsandGadgetsStuff
    @ArtsandGadgetsStuff 4 ปีที่แล้ว +8

    The thing I am waiting for a long time!! Thank you

  • @javiarenas
    @javiarenas 4 ปีที่แล้ว +12

    So you’re telling me that in order to keep some things unchanged, the way you recommend is to change them, then applying a script to loop trough each element that has a given class, to then reapply the same change you did in the first place so that it comes back to original? That seems efficient

    • @FlySoloG
      @FlySoloG 4 ปีที่แล้ว

      Whats your solution

    • @FlySoloG
      @FlySoloG 4 ปีที่แล้ว +1

      This solution by @Tortuex in the comments seems like the best:
      Maybe a simple ".dark-mode::not(.inverted)" would work?
      It would only invert and change the hue of the elements that are not tagged with the "inverted" class (if I keep the same name than in your example).
      That would allow to remove any JavaScript (except for the enter switch in this case) and keep it all CSS based and only within one single line .

  • @edoardoguido1688
    @edoardoguido1688 4 ปีที่แล้ว +4

    For images, you can also use the :not(img) selector, so that the filter does not apply for every image element!

  • @davidfitcher2953
    @davidfitcher2953 4 ปีที่แล้ว +16

    0:56 when the bell hits the throat

  • @josipmuzic2733
    @josipmuzic2733 3 ปีที่แล้ว

    Hey i just thought of two things u might want to know
    1. You probably already know, but, you can press the new file button and write css/style.css. This will quickly create the necessary folders as well as the file.
    2. I didn't personally test this, but I feel like it should work. Why even do a for each loop in javascript for reversing the css filter property, why not just in the css write
    .dark-mode .invert {
    // That invert css line
    }

  • @TheHermitHacker
    @TheHermitHacker 4 ปีที่แล้ว

    I love just how creative people can be. This is great!

  • @andresrivasa
    @andresrivasa 4 ปีที่แล้ว

    Sin Palabras
    Grandioso Video, Thanks!

  • @rockers451
    @rockers451 4 ปีที่แล้ว

    Loved the music towards the end, haha. Great content btw!

  • @sehajpreetsingh4177
    @sehajpreetsingh4177 4 ปีที่แล้ว +1

    JS noob here.
    Gary, I assume when you double invert, you are wasting CPU cycles. Is there a better way to do it?
    Or is this method just a quick and dirty hack?

  • @LucXX36
    @LucXX36 4 ปีที่แล้ว

    Didn't know about that property. Thanks Badboy

  • @Peter-A
    @Peter-A 4 ปีที่แล้ว +21

    Edge is chromium based not IE based.
    Technically it's rebadged google chrome.

    • @mxdanger
      @mxdanger 4 ปีที่แล้ว +2

      Technically Edge is rebadged Chromium, such as Google Chrome is rebadged Chromium.

    • @astitva5002
      @astitva5002 4 ปีที่แล้ว

      almost all browsers currently are chromium based, it's just simple and open source enough to just work

  • @blazi_0
    @blazi_0 3 ปีที่แล้ว

    This video was so helpful for me . Dark mode is headache to implement with css and javascript.
    But this method can be very very useful and effective with some extra work 💪

  • @IAmSamuelCharpentier
    @IAmSamuelCharpentier 4 ปีที่แล้ว

    Don’t be surprised it works in Edge as it is a mere ms copy of Chrome. Safari would be a great place to check if it works, along with mobile browsers

  • @abdellahmeridja7794
    @abdellahmeridja7794 4 ปีที่แล้ว +1

    Edge is based on Chromium which means anything that works on Chrome works on Edge ... Great Video

  • @robin_miller_music
    @robin_miller_music 3 ปีที่แล้ว

    I'm a complete noob in css, so please don't hammer me if this is wrong! Could you do it as, for example:
    html {
    filter: invert(1) hue-rotate(180deg)
    img, etc, etc, etc {
    filter: invert(1) hue-rotate(180deg)
    }
    }
    on the basis that img is a child of (and so relative to) html, therefore automatically switching it back for all img tags?? Or is that completely wrong??

  •  4 ปีที่แล้ว +4

    Perhaps you might add a "data-revert" (Or something like that) to personalize the degre of invertion for specific elements

  • @artaizen1613
    @artaizen1613 4 ปีที่แล้ว +7

    IE : "I'll ruin this trick.... oh also almost every css js anything you throw at me, unless.... I approve of it"

  • @frankiefab
    @frankiefab 4 ปีที่แล้ว

    Just at the right time. Thanks

  • @ClashForYou
    @ClashForYou 4 ปีที่แล้ว

    Crazy, great video thanks a bunch.

  • @RanjanKumar-bu7ws
    @RanjanKumar-bu7ws 4 ปีที่แล้ว +2

    The firefox bug can be solved by explicitly adding background-color : white to the root pseudo class

  • @julianavar3836
    @julianavar3836 4 ปีที่แล้ว

    I know this isnt what the video is about, but you should write `e = e ?? window.event` I'm not sure if `??=` is wildly supported yet, but we worked hard for the `??` operator.

  • @dominikdorfi
    @dominikdorfi 4 ปีที่แล้ว +1

    Actually the Edge Browser is based on Chromium. So showing the working example is a bit redundand.

  • @andresfuenzalida869
    @andresfuenzalida869 4 ปีที่แล้ว +5

    I noticed that you can play with the hue-rotate value and it will change a little bit the colors. Nice video!

  • @birsingh5388
    @birsingh5388 4 ปีที่แล้ว +9

    10:33 looks like you are watching lots of Ed's videos these days 😂

  • @goldfishbrainjohn2462
    @goldfishbrainjohn2462 4 ปีที่แล้ว

    very useful! Thank you

  • @outofboundsbro
    @outofboundsbro 4 ปีที่แล้ว

    Heyyy I noticed you have a bass and guitar hanging on your wall. I am new to this channel so I don't know if you answered this. But as a fellow musician who is trying to start his freelance web dev business. What music do you like to play and how often do you play?

  • @aldifarzum3290
    @aldifarzum3290 4 ปีที่แล้ว

    Can you make the video about your setup device and application you are use for make your youtube video ? I was so admire with each video your make. Its like so smooth and i cant find the bad thing in every 1 second in video.

  • @williamherring
    @williamherring 4 ปีที่แล้ว +2

    Anything can be done with one line of code. It’s just gonna take a lotta side scrolling...

  • @maits18
    @maits18 4 ปีที่แล้ว

    It works on MS Edge as the base of that browser is Chromium. Just an FYI for those who are asking

  • @siddhantjain2402
    @siddhantjain2402 4 ปีที่แล้ว +1

    Well, Microsoft Edge is actually a repackaged Chromium browser (the open-source version of Google Chrome) so everything that works in Chrome should technically work in Edge too.

  • @Telladriel
    @Telladriel 4 ปีที่แล้ว +13

    Lmao I could see the fear in his eyes when he wrote that one line that all viewers will click off the video cause they got what they came for. Gotta pump up that watch time tho

  • @lunarorbit
    @lunarorbit 4 ปีที่แล้ว +1

    Why would you be surprised that it works in Edge? It's basically the same browser as Chrome now.

  • @Populartiktox
    @Populartiktox 3 ปีที่แล้ว

    that is really cool dude

  • @balus143
    @balus143 4 ปีที่แล้ว

    Nice video.. learnt something cool feature.. ✌️

  • @MARIUTSKI13897
    @MARIUTSKI13897 4 ปีที่แล้ว

    I used .dark-mode, .dark-mode *.inverted{ filter: invert(1) hue-rotate(180deg); } instead of doing it in the js on my layout to optimize it a little bit. Great video!

    • @AtheistReligionIsCancer
      @AtheistReligionIsCancer 4 ปีที่แล้ว +2

      W3C f..ed things up from back when they implemented functionality in CSS via :hover... I swear, you can build a fully functional site without javascripot in many cases, because functionality has been built into both HTML and CSS. Think about tags like / and css like pointer-event: also

  • @juanmolinas
    @juanmolinas 4 ปีที่แล้ว

    nice trick Gary, regards from Paraguay..

  • @shivammakwan6409
    @shivammakwan6409 4 ปีที่แล้ว

    You are the linode!

  • @yadneshkhode3091
    @yadneshkhode3091 4 ปีที่แล้ว

    Awesome dude !!!! keep it up

  • @R4pepeArts
    @R4pepeArts 4 ปีที่แล้ว

    I don't know if it's already fixed, but in Mozilla Firefox, the body background is fixed by manually adding a background to the body.

  • @aspiesoft4144
    @aspiesoft4144 4 ปีที่แล้ว +2

    After seeing this video, I made a small JavaScript to automate the idea :)
    you can find the source code on github: github.com/AspieSoft/toggle-darkmode-js
    Simply add the script (and jQuery), and everything runs automatically.
    It auto detects the brightness of each color, and detects "prefers-color-scheme" to set the right mode (including live updates)

  • @frmcf
    @frmcf 4 ปีที่แล้ว

    I can see the use of this for very quick mockups, as you and the original blog post said. In the real world, though, how do you design 'dark mode' implementations? I've never done one, but I'd imagine CSS custom properties are the way forward, right?

  • @yannisgoogleapps9249
    @yannisgoogleapps9249 3 ปีที่แล้ว

    Isn't the JS and CSS on Chrome the same as on MS Edge? They both are based on Chromium, right?

  • @ic3xiii
    @ic3xiii 4 ปีที่แล้ว

    hmm a bit finicky in converting solid yellows and greens on logos and backgrounds back to the original (using Chrome 85). needed to put more effort in excluding these images, svgs, and component with yellow and green background colors from the application of the filter effect. as said in the video, if you are not strict with brand colors, this will suffice. if your CSS framework supports dark mode, I think that's better.

  • @TheFlexy95
    @TheFlexy95 4 ปีที่แล้ว +12

    The new edge is based on chrome 😅 so it’s using webkit Now.
    Good vid anyway 👍🏼

    • @ownadi
      @ownadi 4 ปีที่แล้ว +2

      Chrome doesn’t use webkit

    • @TheFlexy95
      @TheFlexy95 4 ปีที่แล้ว

      @@ownadi You're right, it uses 'blink' now, in the past chrome used Webkit :P

  • @neerajmalhotra8277
    @neerajmalhotra8277 4 ปีที่แล้ว

    You can also use :not(.inverted) psudo selector to ignore inverted class.

  • @bySterling
    @bySterling 4 ปีที่แล้ว

    Amazing!

  • @termidesign
    @termidesign 4 ปีที่แล้ว

    its perfect, thanks

  • @aravindhhere
    @aravindhhere 4 ปีที่แล้ว

    i have a doubt, which is apart from this Context, but garry, can you explain, how you bring your speaking thumbnail to the footer of the video, without a square background, but your body shaped crop... I need this badly, Pls HELP

  • @otesunki
    @otesunki 4 ปีที่แล้ว

    I've used this for a long time myself.
    filter: invert(100%) hue-rotate(180deg)

  • @alex-suciu
    @alex-suciu 4 ปีที่แล้ว

    since you are on windows, you can use windows button and V, when paste. it will enable copy clipboard. 😎

  • @LisekLucek
    @LisekLucek 4 ปีที่แล้ว

    I think that it's not working in Firefox because body in it may be actualy transparent instead of white.

    • @LisekLucek
      @LisekLucek 4 ปีที่แล้ว

      Maybe if you set body background to #fff it will work.

  • @simontrichereau136
    @simontrichereau136 4 ปีที่แล้ว

    You should not do the js loop to add a new class, you can use the css selector ".dark-mode .inverted {" instead

  • @guypersson
    @guypersson 2 ปีที่แล้ว

    This method is very slow on lower-end computers. I tried it on a laptop with an Intel i3-6100U, 4GB RAM (running an Arch-based distro) and the smoothness of my bare bones website went from smooth to choppy. Maybe I'll do something else for it.

  • @CreativeB34ST
    @CreativeB34ST 4 ปีที่แล้ว +3

    The new Microsoft Edge is actually really good right now. Microsoft realized they're bad at making their own browsers so they implemented made one built upon Chromium. It should have same compatibilities as Chrome itself.

  • @XavierChanth
    @XavierChanth 4 ปีที่แล้ว +1

    Last time I checked Edge had better support than firefox, and its based on the same engine as chrome.

  • @kvdhar5041
    @kvdhar5041 4 ปีที่แล้ว

    Awesome quick demo.
    Could you share the Bulma video you mentioned at 2:26

  • @ayushmanbt
    @ayushmanbt 4 ปีที่แล้ว

    I have previously used inverted for my own profile page... But using this methode turns out to be a bit heavier for the computer as it is calculating realtime. That's why I had to ditch this method for the favour of performance. Otherwise it is cool for quick demo.
    For me the problem turned out to be the scroll became sluggish

  • @Misfit-nd3zk
    @Misfit-nd3zk 3 ปีที่แล้ว

    Hey i need a help, i want to make checkbox which toggles dark mode, how can i use this property , i will be waiting for the response, Thank You

  • @k4m924_
    @k4m924_ 4 ปีที่แล้ว +1

    Катюха - красава 😘

  • @michalbacinski6700
    @michalbacinski6700 4 ปีที่แล้ว

    I'm asking... Where is the support for IE11? 😂😂 I just kidding. I think is the best of last videos! Thank you Gary!

  • @dankmemes4068
    @dankmemes4068 3 ปีที่แล้ว

    you could just invert the black and white, find and replace swap

  • @BlueJDev
    @BlueJDev 4 ปีที่แล้ว

    Just to nit pick, .dark-mode .inverted{ filter....} Would work better than foreach'ing, as you are already adding the class to elements. Great snippet though, didn't know about this one. Thx

  • @ryanmmbale8993
    @ryanmmbale8993 2 ปีที่แล้ว

    Hi I loved the content. But again how do we fix that issue of about fire fox not giving dark background

  • @soniablanche5672
    @soniablanche5672 4 ปีที่แล้ว

    why not select the body with document.body instead of whatever you did

  • @IAmOxidised7525
    @IAmOxidised7525 4 ปีที่แล้ว

    Edge is chrome with windows label, so yes it will work with it

  • @joepvandijk
    @joepvandijk 4 ปีที่แล้ว

    Tip: If you create a file called css/main.css it'll create a folder named css with a file called main.css

  • @fredrikstrm-larsen7803
    @fredrikstrm-larsen7803 4 ปีที่แล้ว +1

    What if you used brightness(10%) on the last "boxes" or the images where invert() doesn't look good?

  • @dae2530
    @dae2530 4 ปีที่แล้ว

    Firefox has default white background in HTML tag. Edge is based on Chrome, so...

  • @xenon-x54
    @xenon-x54 4 ปีที่แล้ว

    Very useful !!!!!!!!!!!!!

  • @ABMedia83
    @ABMedia83 4 ปีที่แล้ว

    That's a nice trick, but I wouldn't use it on the regular. For me, it's not that hard to make a web page in Dark Mode. (It probably also help's that I use Sass to develop my stylesheet)

    • @AtheistReligionIsCancer
      @AtheistReligionIsCancer 4 ปีที่แล้ว +1

      Wouldn't it be easier in the long run to use CSS variables?
      My thinking is, that it should be very rare that you need more than three different colors, and can you not just define them at the very top?
      It is a neat trick nevertheless, and I would assume it will be used not necessarily for dark mode, but for those pages where you need a dark background to put other content on top, for example image galleries

    • @ABMedia83
      @ABMedia83 4 ปีที่แล้ว

      @@AtheistReligionIsCancer Yes true, CSS variable's are useful, and you shouldn't need more than three colors. I mainly use Sass now to Structure my CSS file. I do the Sass stuff on the local machine and just upload the css file to server once I compile it.

  • @rubikspixel
    @rubikspixel 4 ปีที่แล้ว +2

    Or you could use css variables and switch the colour palette correctly (either with a theme switch or prefers-color-scheme), this hue rotation is just messy 👎🏻

    • @DesignCourse
      @DesignCourse  4 ปีที่แล้ว +3

      Right, like I said in the video, it could be useful for a really simple page, or just prototyping.

    • @simontrichereau136
      @simontrichereau136 4 ปีที่แล้ว

      Or you can change the color of each element with JS... There's plenty of solutions but one line css is really faster...

  • @TheBash52
    @TheBash52 4 ปีที่แล้ว

    Why not just use css's ":not(.invertproof)" instead of js to keep anything you dont want to get inverted?
    Thanks for the content btw👍

  • @wachufchwiyaldekjiha2422
    @wachufchwiyaldekjiha2422 4 ปีที่แล้ว

    The Music in background uffff

  • @kevkong
    @kevkong 4 ปีที่แล้ว

    The fact that I can not find a single comment pointing out that JS for toggle the "inverted" class is not necessary at all and could be solved using CSS selectors, everyone stopped watching after the trick was revealed :D

  • @小笼包-m3o
    @小笼包-m3o 4 ปีที่แล้ว

    hello sir, is your UI design course out?

  • @aethar5519
    @aethar5519 4 ปีที่แล้ว +1

    “It works in edge!”
    👀 Edge being built in chromium

  • @Xyoni_htklv
    @Xyoni_htklv 4 ปีที่แล้ว +1

    Edge is running on Chromium Engine so anything work on Google Chrome works on Edge.

  • @androiddeveloper3222
    @androiddeveloper3222 3 ปีที่แล้ว

    sir when i open dropdown menu and i used marquee text marquee text shown over dropdown how can i solve it

  • @guilhermeraposo6080
    @guilhermeraposo6080 4 ปีที่แล้ว

    Why not .dark-mode:not(img):not(button *)

  • @omaryassir5885
    @omaryassir5885 4 ปีที่แล้ว

    Awesome Awesome stuff

  • @wahsand5118
    @wahsand5118 4 ปีที่แล้ว

    nice one..

  • @gabrielflorin7505
    @gabrielflorin7505 3 ปีที่แล้ว

    and if i have a background img in the body tag haw can i invert that img to look normaly?

  • @PossessWithin
    @PossessWithin 4 ปีที่แล้ว

    Here is what you're looking for @3:52
    :root{ filter: invert(100%)}

  • @vishefresco
    @vishefresco 4 ปีที่แล้ว +2

    Из пальца высосал 12 минут
    Пока костыли пишешь для исправления инвертирования, на выходе столько же кода, как при стандартных подходах выйдет

  • @billionbd
    @billionbd 4 ปีที่แล้ว

    He even remembered his own code. Seriously.

  • @druiznyc
    @druiznyc 4 ปีที่แล้ว

    You could still make this one line if you used the :not() selector. .dark-mode :not(img):not(.inverted){ filter: invert(100%) }

  • @simonwillover4175
    @simonwillover4175 4 ปีที่แล้ว

    It doesn't work on text shadows, font color, border colors , or gradients though.

  • @hunghuy2156
    @hunghuy2156 4 ปีที่แล้ว

    very helpful

  • @justingolden21
    @justingolden21 4 ปีที่แล้ว

    Instead of applying it twice, you could just apply it once to all elements EXCEPT the ".invert" class elements, using ":not(.invert)"

    • @Anton-cv2ti
      @Anton-cv2ti 4 ปีที่แล้ว

      Nope. You would be reverting the color multiple times for nested elements, making a for a real schwifty color scheme.

    • @justingolden21
      @justingolden21 4 ปีที่แล้ว

      @@Anton-cv2ti you're saying in the case there's a parent and child that both have the invert class? There's no reason for the child to have that class then.

  • @AlexM-me4vz
    @AlexM-me4vz 4 ปีที่แล้ว

    Good content

  • @Bradford1040
    @Bradford1040 4 ปีที่แล้ว

    Contact Dropbox support! They could use the help for their Android app lol,
    Good video BTW, very informative!