𝗦𝗛𝗔𝗗𝗢𝗪
𝗦𝗛𝗔𝗗𝗢𝗪
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/24/2024 in #front-end
Responsive screens should to be based in the height also?
For example, I have a container that should take 100% of the viewport height, but some components aren't shrinking well because I'm using a grid, and I don't know a better way to do it. What should I do?
4 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
@nilaallj thanks you so much! : D it worked for me, I am very grateful
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
I don't understand, I'll see if has something affecting my result
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
yes, the border is calculated as 2px, the border also is applied as transparent, I don't understand the reason for it don't work
.element-with-gradient-border {
--border-width: 2px;
position: relative;
border: var(--border-width) solid transparent;
@apply origin-center bg-origin-border;

&::before {
content: '';
position: absolute;
inset: calc(var(--border-width) * -1);
border: inherit;
border-radius: 24px;
background: linear-gradient(white,red) border-box;
mask:
linear-gradient(#000 0 0) padding-box exclude,
linear-gradient(#000 0 0);
pointer-events: none;
}
}
.element-with-gradient-border {
--border-width: 2px;
position: relative;
border: var(--border-width) solid transparent;
@apply origin-center bg-origin-border;

&::before {
content: '';
position: absolute;
inset: calc(var(--border-width) * -1);
border: inherit;
border-radius: 24px;
background: linear-gradient(white,red) border-box;
mask:
linear-gradient(#000 0 0) padding-box exclude,
linear-gradient(#000 0 0);
pointer-events: none;
}
}
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
No description
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
it work! I just don't know why the border of the component is over the border with the gradient
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
I'm using tailwind and react, I don't know how to configure it in the Codepen : (
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
i think which it's a problem in my code I'll try to see it in my browser. I'm applying a border in my button
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
No description
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
oh, it's cool
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
No description
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
Yes, it works! Can you explain how I can understand it? I've never used a mask for this purpose before oh, I'm sorry, was a mistaken
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
I'm not sure if it's a good template https://codepen.io/pen?template=WNVXQq
26 replies
KPCKevin Powell - Community
Created by 𝗦𝗛𝗔𝗗𝗢𝗪 on 10/23/2024 in #front-end
How apply this border gradient?
I'll to make one (sorry if I don't to speak so correcty, I don't speak english so well)
26 replies