Under the radar CSS features for your CSS reset

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 125

  • @mahiabir6348
    @mahiabir6348 10 місяців тому +60

    This channel has made me appreciate css even more

    • @sara-d
      @sara-d 10 місяців тому +1

      Me too 🎉❤

  • @cavemutt
    @cavemutt 10 місяців тому +4

    It never fails, no matter how much I think I know about a particular aspect of CSS, I know that every time I watch a Kevin Powell video, I WILL learn something new!

  • @Vanoisbe
    @Vanoisbe 10 місяців тому +1

    Reset I also use :
    blockquote, q {quotes: none}
    blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}
    table {border-collapse: collapse;border-spacing: 0}
    button, input[type=submit] {-webkit-appearance: none; -moz-appearance:none; appearance:none ; background: none; border: none; cursor:pointer;}
    button:focus, a:focus, input:focus {outline:0}
    Obviously, blockquote and buttons, need to be styled later on.
    Thanks for all your video Kevin, it's always a pleasure to listen to your advices.

  • @SteveRios-u3i
    @SteveRios-u3i 10 місяців тому +11

    I limit how long my characters go too (roughly 60-80 characters) but I use max-inline-size' instead of max-width; with it being a logical property it'll scale with other writing modes.

  • @devshashtag
    @devshashtag 10 місяців тому +1

    i love how you explain the issue then you teach us how to solve it .

  • @CleverGeneration
    @CleverGeneration 10 місяців тому +1

    Niiice! I never knew scroll-padding-top even existed, I will definitely be using this, thank you Kevin!

  • @_ric
    @_ric 10 місяців тому +2

    Minor thing, although I dislike the look of the hanging-punctuation, would you not be better to set the css value onto the element rather than the , after all is intended for inline quoting and has the { quotes: ' .. ' } css property. I'd link the MDN pages for reference but YT will not allow that.

  • @MiLLo_45
    @MiLLo_45 4 місяці тому

    I also implemented the red border line in my reset,
    when I work on a project I tend to create a red border line around my elements to control the various spacings between items.
    I used this code, which I learned through your videos, instead of repeating the code in each element to create a border line, in this way i applied a class name .border (or .red if you want) and it applies the border to the parent and its children's and childrens and childrens and so on
    .border{border: 1px solid red;}
    .border > *{border: 1px solid red;}
    .border > * > *{border: 1px solid red;}
    .border > * > * > *{border: 1px solid red;}
    .border > * > * > * > *{border: 1px solid red;}

    • @MiLLo_45
      @MiLLo_45 4 місяці тому

      I don't know if there is a better way to simplify

  • @Wrightjamie80
    @Wrightjamie80 10 місяців тому +2

    I would keep the scroll-padding-top outside of the media-query - regardless of whether the user prefers reduced motion, it is still required

    • @Wrightjamie80
      @Wrightjamie80 10 місяців тому

      Should have said, I love putting the smooth scroll into the media query, and the inclusion of the the text-wrap properties.

  • @osawereao
    @osawereao 7 місяців тому

    So Kevin is the best and I say this because he cares about the little things that make huge difference and that is me.

  • @CelliumsBurner
    @CelliumsBurner 10 місяців тому +1

    Happy new year kevin. Very grateful for everything you do for the front end community. I started learning front end web development, and coding in general, in september 2023. I feel like watching your channel has jumpstarted my journey and im learning so fast thanks to your tips and tutorials etc. Thank you!

  • @TamNguyen-eg3pq
    @TamNguyen-eg3pq 10 місяців тому +1

    Happy New Year Kevin! Thanks for all the CSS videos!! I would love for you to share different resets you've seen before and their use cases if possible

  • @EugeneKoshelev
    @EugeneKoshelev 9 місяців тому

    Wow! Smooth scroll is much simpler this way. Thanks!

  • @DasunSenanayake
    @DasunSenanayake 10 місяців тому

    From each and every video i learn something new from your videos. thanks man appreciate 👍

  • @alpaca_growing_kit
    @alpaca_growing_kit 10 місяців тому +4

    I asked gpt4 to make me a really thorough css reset the other day, and I think it actually included most if not all of these tips.

  • @medda86
    @medda86 10 місяців тому

    Thanks for video Kevin!
    Here are some resets I use
    * {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    word-wrap: break-word;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    background: none;
    }
    img {
    width: auto;
    max-width: 100%;
    height: auto;
    }
    button {
    cursor: pointer;
    }
    a *,
    button * {
    pointer-events: none;
    }
    a *, button * is to easier listen to clicks on actual links and buttons, without js have to bubble up to the a/button elements if you click a "svg" in the element...
    Also for accessibility, you might wanna kill all the transitions and animations while you are at it like this:
    @media (prefers-reduced-motion) {
    *,
    *::before,
    *::after {
    transition: none !important;
    animation: none !important;
    }
    }
    Peace and love!

    • @KevinPowell
      @KevinPowell  10 місяців тому

      Nice! Curious what the background none is for 🤔

    • @medda86
      @medda86 10 місяців тому

      Thanks! Yeah me too! 🤪 - maybe to kill the standard bg/bg-color on buttons, dropdowns and some other elements, I'm not sure.@@KevinPowell

    • @medda86
      @medda86 10 місяців тому

      If you use 2 different fonts for headings and paragraphs, which often is the case.... using the "ch" unit, you might end up with different max-widths right? I haven't played around with it, but I think maybe using another relative unit as rem or something might be better for this. I don't know how this scale when zooming or people have other standard rem settings in their browser. Have you tried this out with "ch" unit? ... Though if people zoom or want bigger text, maybe they want it cross their full screen.@@KevinPowell

  • @Gamesaucer
    @Gamesaucer 9 місяців тому

    An interesting inclusion in resets that has been brought to my attention recently is * { min-width: 0; }. That might seem insane at a glance but it makes the implicit way that widths tend to affect each other a lot easier to reason about. It's a little more work to get everything working the way you want to at small sizes after that, but you don't get any of the weird edge cases where things grow outside of their containers when it really seems like they shouldn't and it's really hard to pin down where that behaviour is coming from.

  • @caioliv
    @caioliv 10 місяців тому

    I learn so much from this channel! Thank you so much, Kevin!

  • @vrnehot
    @vrnehot 10 місяців тому

    about hanging punctuation, if it only works with the beginning of a paragraph, then it’s useless, situations happen much more often when the quote is in the middle of a paragraph, but falls at the beginning of the line, if this new feature works with this case, then yes, it’s wonderful

  • @sakaraiba
    @sakaraiba 10 місяців тому

    You made me love css transition to react

  • @montebont
    @montebont 10 місяців тому

    Happy 2024 Kevin and thanks for all your tips !

  • @Web-Dev-Codi
    @Web-Dev-Codi 10 місяців тому

    The ultimate CSS reset. Thank you

    • @KevinPowell
      @KevinPowell  10 місяців тому +1

      Definitely not the ultimate one as there are some other things that probably could be added, but I think they are useful 😃

  • @JeremiahMcCann
    @JeremiahMcCann 9 місяців тому +1

    I've been looking at resets/normalize lately and I've seen people either put the normalization in a layer or use `:where(tag, tag2)` to reduce specificity of the normalization. That way it doesn't get in the way of any other styling.
    I've also seen a hackier, but more supported `tag:not([class])` so the selector won't affect any styles based on class.

  • @tatof2
    @tatof2 10 місяців тому

    Some extra stuff i use in my reset.
    *{
    box-sizing: border-box;
    text-rendering: optimizeSpeed;
    max-height: 999999px;
    }
    ::selection {background: var(--primary-l1); color: #fff;} // Light version of primary color
    ::placeholder{.paragraph; .regular; .font-size(16); color: #908e8e; overflow: visible;}
    ::-ms-clear {display: none !important;}
    ::-webkit-scrollbar {
    width: 16px;
    }
    ::-webkit-scrollbar-track {
    background: #e1e2e4;
    border-radius: 100vw;
    margin: 0;
    }
    ::-webkit-scrollbar-thumb {
    background: darken(#e1e2e4, 28%);
    border: 4px solid #e1e2e4;
    border-radius: 100vw;
    .trans(400);
    }
    ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    }

  • @David-cz9ej
    @David-cz9ej 8 місяців тому

    Saved this reset for future use. Thank you so much! PS: You forgot to add the smooth scrolling part to your codepen code :)

  • @manuelenng
    @manuelenng 10 місяців тому +1

    Everyone is creating their own CSS reset this days. Kevin, don't you think it is time you created yours for public use? I'm definitely trusting yours.

  • @PicSta
    @PicSta 10 місяців тому

    Hello, Kevin, and a belated happy new year. I wish for a new video, where you put all the newer reset ideas together. I have seen all the latest videos, they're all super, but a combined video would help to create your own master reset. Please think about this for an upcoming video. Highly appreciated.

  • @BillyClark-m5k
    @BillyClark-m5k 9 місяців тому

    I want a waitlist for any css reset you might put out!!! I just saw this thing about a min-width: 0 to deal with a bunch of weird overflow issues in flex, I wonder if it will make your reset... 😀

  • @thommy_80
    @thommy_80 10 місяців тому

    Hi Kevin...I loved when I found your channel speaking about CSS (its hard here in my country find videos only speaking about css)
    One thing I did learn recently (and liked) was about:
    * {
    ...
    font-size: 62, 5%;
    ....
    }
    Its easier for me now to use rem
    But I have a doubt about on this video
    Without font-size: 62, 5%; the p max-width is 75ch
    But using font-size: 62, 5% should I change p max-width?? To which value?

  • @AtacamaHumanoid
    @AtacamaHumanoid 10 місяців тому

    Really nice tips!

  • @Lucsy3012
    @Lucsy3012 10 місяців тому

    Again, great stuff that I didn't have on my mind!

  • @avertry9529
    @avertry9529 10 місяців тому

    I use text-wrap: balance; with 4 words, in smaller screen-sizes it wraps evenly as opposed to orphaned words.

    • @SquareballoonCoUk
      @SquareballoonCoUk 10 місяців тому

      I actually dislike the fact it makes the lines so even. I prefer pretty.

  • @Escko
    @Escko 4 місяці тому

    anyone else had issues with @media (prefers-reduce-motion: no-preference)? it does not allow for smoothing scrolling on my end. I checked my windows animation option and it is set to animations on, so.... Not sure why it won't work. Great video Kevin!!!! edit: Got it working. It was likely a misspell on my end. User error 99% of the time. ☺

  • @essaquadry
    @essaquadry 8 місяців тому

    In my reset I would replace the font size with clamp values for fluid type and use something like min(90%, 1600px) to manage the entire page's content width.

  • @JaGaNezhil
    @JaGaNezhil 10 місяців тому

    Happy new year buddy❤

  • @jithinbp7168
    @jithinbp7168 10 місяців тому

    Happy new year Kevin 🎉

  • @Jarrod0067
    @Jarrod0067 10 місяців тому

    h1, h2 etc. I get why they exist (hangovers from a distant past), but isn't there a better way these days?
    I feel in the next spec they need to make a syntactically different but functionally similar element which can have an attribute to denote the level. e.g.:
    Title Goes Here
    That way, resets can target them all with a single selector, but granular and multiple selections can still be done with a pseudo-selector
    h:nesting(>2)

  • @simonswiss
    @simonswiss 10 місяців тому

    Fantastic entry into 2024! 🙏

  • @mukeshodhano4094
    @mukeshodhano4094 10 місяців тому +1

    Even backend developers can center the div if they watch this channel's videos

  • @UmidBek005
    @UmidBek005 10 місяців тому

    Yoo Happy New Year homie

  • @Mr.RobotHead
    @Mr.RobotHead 10 місяців тому +3

    I think `hanging-punctuation` is great on large(r) text, like block quotes, but I find it rather unpleasant on standard text. I'd definitely _not_ use it at such a high level.

    • @QwDragon
      @QwDragon 10 місяців тому

      Large quotes usually have qoute as an icon, so no need to to apply this property anyway.
      Completely agree that moving this quote makes alignment unpleasant.

    • @KevinPowell
      @KevinPowell  10 місяців тому +2

      From a typography standpoint, even on small text it's considered the "correct" way to do it. If you pay attention to it, it can sometimes feel off, but generally if you aren't looking for it, the hanging version stands out less. At least, that's the theory

  • @mh_kohansal
    @mh_kohansal 9 місяців тому

    Thank's Kevin.

  • @maxwebstudio
    @maxwebstudio 10 місяців тому

    Wishing you all the best for 2024 Kevin.

  • @damyandimitrov611
    @damyandimitrov611 10 місяців тому +4

    Have you considered doing HTML canvas course? I am using that at the moment and there are a lot of tiny stuff that aren't mentioned on many places. It would be nice to have a detailed and functional canvas course.

    • @KevinPowell
      @KevinPowell  10 місяців тому +5

      I don't use it very often at all. Could be something to dive into more for 2024 though!

    • @damyandimitrov611
      @damyandimitrov611 10 місяців тому +1

      @@KevinPowell It would be great! I guess I would've some better knowledge after finishing my project with canvas animations, but with each day I find more and more specific stuff for it to be done right

  • @EvanEdwards
    @EvanEdwards 10 місяців тому

    Great video, but the linked Codepen is missing quite a bit of the video, notably the scrolling section.

  • @EricFressange
    @EricFressange 10 місяців тому

    Happy new year 🎉

  • @yrocartist
    @yrocartist 10 місяців тому +1

    Always love your content...but as far as typography goes why no indent on your ul elements? My ocd is going crazy on this lol😂

  • @MyGeorge1964
    @MyGeorge1964 10 місяців тому

    These 'new' features could be used to achieve the perfect news column grid layouts - ever thought of attempting one of those, Kevin?!

  • @hungry_khid1007
    @hungry_khid1007 10 місяців тому +1

    Always the browser support

  • @SquareballoonCoUk
    @SquareballoonCoUk 10 місяців тому +1

    Why wouldn't you do HTML, has:target ?

  • @mdmasudurrahman851
    @mdmasudurrahman851 10 місяців тому

    Hello @KevinPowell, I hope you are doing great. could you please make video about responsive approaches on media-query min-width or max-width,which approach is best and why for large project?

    • @KevinPowell
      @KevinPowell  10 місяців тому +2

      This might be what you're looking for 😊
      ua-cam.com/video/p3k_IrXLNRc/v-deo.html

  • @RaphaelRamos-l8b
    @RaphaelRamos-l8b 10 місяців тому

    Hi. Quick question, would rather use Bootstrap or CSS?

  • @ZazaMasta
    @ZazaMasta 10 місяців тому

    How did you know I'm going through a CSS reset??? Thank you!

  • @ChrisShawUK
    @ChrisShawUK 10 місяців тому +2

    I think I get why these are called resets (because they change some built in browser default). But then when you start adding new stuff, isn't that just a set, rather than a reset?
    I always set a font family and size

  • @wolfskii
    @wolfskii 10 місяців тому

    Thanks for the video. On another note, what webkit browser are you using? I've had problems testing for Safari on Windows recently... :D

  • @ellisj98
    @ellisj98 10 місяців тому +1

    I don’t like putting a max width on all p tags, that really causes problems at some point in a project.

  • @Gamesaucer
    @Gamesaucer 9 місяців тому

    I absolutely _despise_ smooth scrolling, or anything that hijacks page scrolling for even a millisecond. That doesn't mean I also want to turn all motion off everywhere. I can tolerate most effects, but right now it's either all or nothing, and I don't like it.
    Though at least I want to commend you for taking into consideration the prefers-reduced-motion query at all. UA-cam's new rotating like / view numbers simply don't, and it's very annoying.

  • @AaronSchrab
    @AaronSchrab 10 місяців тому +2

    Is there a reason for not doing scroll padding for people who want reduced motion, or was that a mistake since you were adding it to a :has(:target) block that was already limited in that way?

    • @KevinPowell
      @KevinPowell  10 місяців тому +1

      Oh, good point! Probably worth having that outside, thanks for mentioning it 😃

    • @Wrightjamie80
      @Wrightjamie80 10 місяців тому

      @@KevinPowell doh - should have read earlier comments before pointing this out myself!

  • @Venyl
    @Venyl 10 місяців тому +3

    I really like to use * { line-height: calc(1em + 0.5rem); } for good looking line heights at any font size

    • @najmantube
      @najmantube 10 місяців тому +2

      I didn't realise you could combine ems and rems. Could you expand a little on how this works, please?

    • @Venyl
      @Venyl 10 місяців тому

      ​@@najmantube Using a calc() you can combine various units. It works like this:
      - 1em sets the line-height to match the current font-size
      - 0.5rem adds a bit of spacing regardless of the current font-size
      Examples:
      font-size: 0.75rem
      line-height = 0.75rem + 0.5rem = 1.25rem
      font-size: 1rem
      line-height = 1rem + 0.5rem = 1.5rem
      font-size: 5rem
      line-height = 5rem + 0.5rem = 5.5rem
      When using line-height: 1.5 it'd just multiply the font-size and be too small or too big, instead giving us line-heights of 1.125rem, 1.5rem and 7.5rem
      tl;dr it's as if you could do line-height: 1 + 0.5rem

    • @najmantube
      @najmantube 10 місяців тому +1

      @@Venyl Got it, thanks:)

  • @QwDragon
    @QwDragon 10 місяців тому +2

    Why :has(:target) is better than *?
    And actually I think moving punctuation is strange, prefer how it was without hanging-punctuation set.

    • @KevinPowell
      @KevinPowell  10 місяців тому

      As far as the hanging punctuation, that's the standard in typography, so any magazine or book will generally have it and you probably didn't notice since you weren't looking for it! When you aren't looking, it tends to stand out less, or at least that's the theory

    • @KevinPowell
      @KevinPowell  10 місяців тому

      As for the target, could be worth testing. Habit for me not to target everything for something that's only used in specific spaces, but might be totally fine to do it that way!

  • @hedgehogform
    @hedgehogform 10 місяців тому

    Would be cool if you could go in depth to advanced scss.

  • @ghoo_st
    @ghoo_st 10 місяців тому +1

    How can we stay up to date with the newest css features 🎉😢

  • @BogdanisheWOT
    @BogdanisheWOT 10 місяців тому

    html > * for the scrolling support among various browsers?

  • @SvilenIvanov-x4m
    @SvilenIvanov-x4m 8 місяців тому

    min-width:0 removes overflowing. The default is auto.

  • @YunisRajab
    @YunisRajab 10 місяців тому

    You should put up the css file and a sample html on a repo

  • @developerlayton
    @developerlayton 10 місяців тому +1

    What is the reason you dont use the meyerweb reset.css?

  • @whatthepeople
    @whatthepeople 9 місяців тому

    Shouldn't be scroll-padding-top placed out of @media (prefers-reduced-motion: no-preference) {}? This property isn't about motion at all. If you place it there, users with reduced motion won't have any space before elements they're scrolled to.

  • @serychristianrenaud
    @serychristianrenaud 10 місяців тому

    🎉 thanks

  • @najmantube
    @najmantube 10 місяців тому

    What are your thoughts on this reset snippet (which I got from another website some years ago) :
    @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-delay: 0ms !important;
    }
    }
    Do you think your reset should include the animation stuff?

    • @Venyl
      @Venyl 10 місяців тому

      This looks fine

  • @nigam_sharma
    @nigam_sharma 9 місяців тому

    Hlo ji Hitesh Sir suggested your channel ❤

  • @dipeshjoshi9126
    @dipeshjoshi9126 10 місяців тому

    tbh its great small improvement === great changes.

  • @ShariLynnSmith
    @ShariLynnSmith 10 місяців тому

    I'm not seeing all this code in the code pen not sure if I'm just missing it somehow.

  • @fdelaneau
    @fdelaneau 10 місяців тому +1

    Why not include ‘html’ to the selector this would insure a better compatibility for all and the :has(:target) insure that fringe cases are also covered.

    • @KevinPowell
      @KevinPowell  10 місяців тому +2

      I mentioned why not only targetting html 8n the video. If you mean comma separatibg them and selecting both, I'd have to test it, but that could be an option. Invalid selectors can break comma separated rules, but :has might not break it, since the syntax is valid... Worth testing 😃

  • @arozendojr
    @arozendojr 9 місяців тому

    Is there any css reset for android and ios webview?

  • @Noam-Bahar
    @Noam-Bahar 10 місяців тому

    4:14 why not simply do `* {scroll -behavior: smooth; }`?

  • @marciomrb
    @marciomrb 10 місяців тому

    if use :has(:target), html {} bug the scroll?

  • @GavHern
    @GavHern 10 місяців тому

    idk if it counts as a reset feature but I like having an sr-only utility class in my reset. also 8:45 is not a great line out of context haha

    • @KevinPowell
      @KevinPowell  10 місяців тому

      🤣🤣
      I do include a .sr-hidden in my starting CSS too 😊

  • @milanlizriadi
    @milanlizriadi 10 місяців тому +1

    Happy new year Kevin!
    btw am i first? just asking lol

  • @FreakyYas
    @FreakyYas 10 місяців тому

    India time:12:27 pm

  • @hungry_khid1007
    @hungry_khid1007 10 місяців тому +1

    You don't like border box?

    • @KevinPowell
      @KevinPowell  10 місяців тому +1

      I still do it, yeah 😊

  • @Z3ROR
    @Z3ROR 10 місяців тому

    Instead of ":has(:target)" would you be able to use "* > *" as a fallback? I'm not sure.

    • @Venyl
      @Venyl 10 місяців тому +2

      no because the latter selects the child, not the parent like the 1st way

    • @QwDragon
      @QwDragon 10 місяців тому +1

      Just * as * > * won't be applied to html.

  • @nodidog
    @nodidog 10 місяців тому +1

    Do people actually like 'scroll-behavior: smooth'? I think it just looks janky, prefer the browser default.

    • @QwDragon
      @QwDragon 10 місяців тому

      Yes, smoth is much clearer if it's really scrolling, not changing of a tab or smth like that.

    • @KevinPowell
      @KevinPowell  10 місяців тому +1

      I find it more obvious that I haven't changed to a new page 🤷

    • @nodidog
      @nodidog 10 місяців тому

      @@KevinPowell That's reasonable. Thanks for your work ❤️

  • @mykalimba
    @mykalimba 2 місяці тому

    September 2024 and text-wrap: pretty still isn't supported in Firefox. *SIGH*

  • @outpost31737
    @outpost31737 10 місяців тому

    Text wrap balance & pretty isn't supported by Firefox sadly.

  • @Techtalkswithnonny
    @Techtalkswithnonny 10 місяців тому

    🎉🎉🎉

  • @Psyzenn
    @Psyzenn 9 місяців тому

    I make * { min-width:max-content; } Never seen anyone do it.

  • @jasonfyk
    @jasonfyk 10 місяців тому +1

    * { min-width: 0; }

  • @RodrigoNishino
    @RodrigoNishino 10 місяців тому

    Funny hair

  • @strategistaow3520
    @strategistaow3520 10 місяців тому

    css

  • @leechurchill1965
    @leechurchill1965 10 місяців тому

    You know the coding's getting serious when we're using "pretty" as a value.

  • @strategistaow3520
    @strategistaow3520 10 місяців тому

    dd

  • @ZackPyle
    @ZackPyle 10 місяців тому

    Here are some of my resets:
    /* Font smoothing */
    * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    }
    /* Selection styles */
    ::-moz-selection {
    background: rgb(var(--clr-primary-rgb) / 0.75);
    color: white;
    -webkit-text-fill-color: white;
    text-shadow: none;
    }
    ::selection {
    background: rgb(var(--clr-primary-rgb) / 0.75);
    color: white;
    -webkit-text-fill-color: white;
    text-shadow: none;
    }
    /* Reduce Motion */
    @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-delay: 0.01ms !important;
    animation-delay: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    -webkit-transition-delay: 0.01ms !important;
    transition-delay: 0.01ms !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    }
    }