MC23
KPCKevin Powell - Community
•Created by MC23 on 12/20/2024 in #front-end
Card "flip animation" without position absolute
The problem is that I don't understand why it works like that, and I don't wanna use code I don't understand. Anyway I found another way for my use case that solved the proble. The grid solution seems interesting so I'll try it someday, thanks
3 replies
KPCKevin Powell - Community
•Created by MC23 on 12/12/2024 in #front-end
Make big image fit to canvas
Yeah it's possible
16 replies
KPCKevin Powell - Community
•Created by MC23 on 12/12/2024 in #front-end
Make big image fit to canvas
Oh sorry, I forget to check if I'm not pinged. As I said
background-size: cover;
worked, on my website too after I recompiled my scss16 replies
KPCKevin Powell - Community
•Created by MC23 on 12/12/2024 in #front-end
Make big image fit to canvas
background-size: cover;
seems to work, but it doesn't on my actual site :\16 replies
KPCKevin Powell - Community
•Created by MC23 on 12/12/2024 in #front-end
Make big image fit to canvas
Ok I'll try, btw both the hidden pic and the hiding pic will have the exact same size and aspect ratio of 1:1
16 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
Yeah I'll try to apply this method
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
Thank you that's really helpful :Prayge:
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
Too complex for this base case, but I'll keep it in mind
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
I see. Your approach is needed to address the problem that I have now: I can't use defined SCSS variables inside :root unless I declared them outside
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
I see, but I can't generate SCSS variables right?
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
Yeah I'm trying to understand the concept
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
Wouldn't this be needed for complex projects? Atm I only have a single SCSS file because I'm working on a very simple landing page. Also this file is not really used since I can only use CSS file in GitHub pages. So I just compile it and then use the generated CSS. I'm kinda familiar with the 7-1 pattern, which I use in Angular
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
So if I got things correctly, I should prefer CSS variables when I want something that can be edited at runtime via JS for example, correct?
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
I wanted to generate dynamic variables to use, but I don't think I can generate SCSS ones but only CSS ones...
I'll make an example of two approaches for my font-sizes:
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
So, when I use SASS how can I use the variables inside this function? Do I need to interpolate them?
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
I'm not setupping a customizable / complex theme like Angular Material or something like that
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
It does allow that, this is a partial CSS. There will be a part of the UI where the user can choose the light/dark/system theme, and regarding the colors: it's a landing page, I only need black and white colors :)
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
In my case it's for a very simple portfolio page so I don't really have many elements, but yeah that approach would work well
56 replies
KPCKevin Powell - Community
•Created by MC23 on 11/23/2024 in #front-end
Best strategy for light/dark theme using light-dark() function
Yeah it seems pretty flexible to me
56 replies
KPCKevin Powell - Community
•Created by Natejoestev on 11/23/2024 in #front-end
desktop/mobile reactive website
Did you check the responsive layouts course yet? It's free (although it unlocks only 1 lesson per day, which can be a bummer for some people): https://courses.kevinpowell.co/view/courses/conquering-responsive-layouts
6 replies