clevermissfox
Explore posts from serversKPCKevin Powell - Community
โขCreated by Dev_HK on 11/17/2024 in #front-end
i wanna know if i'm doing css responsive wrong
Only seven breakpoints is wild ๐ can you link a codepen ? I can damn near guarantee that whatever layout youโre working on could be achieved responsively with 0-2 breakpoints
4 replies
KPCKevin Powell - Community
โขCreated by CDL on 11/13/2024 in #resources
Git tutorial from Primeagen/Bootdev
Had come across a very clear and concise vid about git recently. Itโs nowhere near a 4 hour deep dive but spells out the basics
https://youtu.be/9ToMEN_Hys0?si=g5EXgJKkcL-ia-2D
10 replies
KPCKevin Powell - Community
โขCreated by baba on 11/16/2024 in #front-end
Facing Issues with @container query or container-type
Iโm not clear on the problem but from what I see You are setting a lot of fixed widths and heights. Using inset instead so that the pseudo element matches its relative parent , like using height auto.
Can you explain the goal/what you want from the different elements that youโre not getting?
And try taking off the width and heights from the pseudo elements , give them a bright background or outline so you can see them clearly and experiment with using inset:0, inset-inline: 0 or inset-block:0. Inset:0 is the same as setting top, right, bottom, left to 0. Inset-inline:0 is the same as setting left and right to 0; inset-block:0 is the same as setting top and bottom to 0. Once you understand that behaviour , try inset:1rem them inset:-1rem; etc. make sure to take off any sizing properties from these pseudo elements first though and that position: absolute is set
2 replies
KPCKevin Powell - Community
โขCreated by Xan on 11/17/2024 in #front-end
Nesting media queries in non-media query
Whoops I didnโt know nested media queries are not well supported ! I have some refactoring to doโฆ
16 replies
KPCKevin Powell - Community
โขCreated by FROSTYTIPS on 11/15/2024 in #front-end
Scrolling to an element on the same page - screen size issues
Css scroll-margin and scroll-padding. Iโm not sure of your layout or why different screen sizes would affect it. Scrolling to 1rem above of the section will be 1rem no matter the screen size of the section
3 replies
KPCKevin Powell - Community
โขCreated by Faker on 11/15/2024 in #front-end
Cookies, Sessions and Tokens
Iโve been rolling around in this space trying to understand tokens and cookies and oauth2 myself lately.
Iโm curious how the recent changes browsers have made to third party cookies affect developers. Iโm curious how it used to operate and how the changes affected that , how devs had to alter their approach
106 replies
KPCKevin Powell - Community
โขCreated by Ullas Kunder on 11/14/2024 in #front-end
need help with radial reveal animation like example
Im not seeing a smooth animation , its choppy because Background property is not animatable (its called a discrete property) which is the problem , use
@property
for the values you need to update and animate those not the whole background-image
declaration. Let me find you a KPow video that will show you an example.
You'll want @property
with a <length-percentage>
or you could also use an <angle>
https://youtu.be/-VOUK-xFAyk?si=ZUFFra_DAKc-Yh8I7 replies
KPCKevin Powell - Community
โขCreated by Lexi on 11/15/2024 in #front-end
CSS Grid not resizing on media query with new grid-template-columns
Btw instead of having to redeclare all the grid columns and grid rows in the media query, you can give the children grid-areas and save yourself a lot of grief. Make them more meaningful names but for this example I'll just something generic.
Instead of redeclaring all the children's grid-column or grid-row, you just redeclare the grid-areas in your grids
47 replies
KPCKevin Powell - Community
โขCreated by snxxwyy on 11/15/2024 in #front-end
inset behaviour
Btw inset goes in order: top right bottom left. Same as margin, padding, and border when they have 4 values.
When it's 3 values it's top, left&right(inline), bottom
When it's 2 values, it's top&bottom(block) and left&right(inline)
You can also use inset-inline and inset-block if that's easier to grasp (or margin-inline/margin-block , padding-inline/padding-block, border-inline/border-block).
85 replies
KPCKevin Powell - Community
โขCreated by Dev_HK on 11/14/2024 in #front-end
why isn't overflowX:hidden isn't being applied when toggling device toolbar
Please link your code , preferably in codepen
9 replies
KPCKevin Powell - Community
โขCreated by Ullas Kunder on 11/14/2024 in #front-end
need help with radial reveal animation like example
Theres probably a few approaches for this. Could try using it as mask and a registered custom property @property to transition the radial gradient
7 replies
KPCKevin Powell - Community
โขCreated by โณ๐ฝ๐ฎ๐ฎ๐๐พ โ on 11/12/2024 in #front-end
Radial Progressbar w/Rounded Square Caps?
Could look through something like svgrepo, but easiest would probably be to make your own in a vector software like Figma or illustrator or https://editor.method.ac/
11 replies
KPCKevin Powell - Community
โขCreated by โณ๐ฝ๐ฎ๐ฎ๐๐พ โ on 11/12/2024 in #front-end
Radial Progressbar w/Rounded Square Caps?
Use an SvG in the shape and aspect ratio you want. You can use the svg directly or use as a mask on something like a pseudo element
11 replies
KPCKevin Powell - Community
โขCreated by vinicius! on 11/9/2024 in #front-end
CSS Custom Props Good Practice
Usually Iโll only use inline styles for this if it needs to be dynamically updated on a bunch of items from JavaScript, for example a JavaScript loop if not using SCSS. Eg looping through and setting a hue or degree for positioning or a view-transition name etc.
For your example , I would just define the different
โ_hue
in css
4 replies
KPCKevin Powell - Community
โขCreated by Zempai on 11/7/2024 in #front-end
CSS โ managing grid-template-columns sizes with classes
I would also recommend using grid-areas or named grid lines ; I prefer this so you donโt have to override every childโs
grid-column
in a media query , you just override the grid declaration.
A way to implement this:
then instead of having to override any declarations of grid-column: 2 / 4;
on every child you declared it on, you would just override the grid-template-column on one selector . Not so applicable with this example that basically has one main content column but if you have more columns in the content area it makes it much easier to work with . Otherwise youโre hunting down every grid-column declaration and rewriting it.5 replies
KPCKevin Powell - Community
โขCreated by Ayomide on 11/9/2024 in #front-end
Flex wrap issue
Donโt forget to use semantic html ; from your css it looks like youโre using a div for these elements (.oAuth-logins div); instead use a
Has a ton of the interactivity for a11y baked in.
9 replies
KPCKevin Powell - Community
โขCreated by clevermissfox on 11/9/2024 in #front-end
Testing workflow
Gotcha , will add it to the list
15 replies
KPCKevin Powell - Community
โขCreated by clevermissfox on 11/9/2024 in #front-end
Testing workflow
Windows oS? Like the system font size ? Or windows like browser windows?
15 replies
KPCKevin Powell - Community
โขCreated by clevermissfox on 11/9/2024 in #front-end
Testing workflow
I had tested with increasing browser font size OR zooming but until our last convo about this, hadnโt tested both increased font size AND zoomed screen ๐ค
15 replies
KPCKevin Powell - Community
โขCreated by naiden on 11/6/2024 in #front-end
Help with a CSS selector that targets all elements that have "aria-*" attributes
24 replies