Pico CSS Help with a button targeting

I have a button inside a form and I can't get the border-radius to work properly. I've tried multiple ways of targeting from going by .layout .main .former .btn to .main .former .btn to .btn to .former .btn and none of these approaches work. Not sure if Pico is stopping it or not. Here is my code pen https://codepen.io/MD-2016/pen/PoxWwRL
27 Replies
b1mind
b1mindā€¢2y ago
I don't see a .btn style I see you gave the element the class but nothing in the css
MD
MDOPā€¢2y ago
I fixed it
b1mind
b1mindā€¢2y ago
.btn {
border-radius: 20px;
}
.btn {
border-radius: 20px;
}
works just fine
MD
MDOPā€¢2y ago
ok that doesnt make sense
b1mind
b1mindā€¢2y ago
So does yours now
MD
MDOPā€¢2y ago
the firefox browser with live server doesn't show it weird I kept trying .btn before and it never changed on refresh
b1mind
b1mindā€¢2y ago
You can also
button {
--border-radius: 1rem;
}
button {
--border-radius: 1rem;
}
You can just change the custom property scoped too like target .btn and use the var šŸ˜‰ PicoCSS is just like a reset you should not have issues
MD
MDOPā€¢2y ago
idk why but nothing was changing for a bit live server might be too buggy
b1mind
b1mindā€¢2y ago
Which extension are you using? Are you also using Vite?
MD
MDOPā€¢2y ago
nah this project only has go, html, css, and sqllite
b1mind
b1mindā€¢2y ago
which live server? I'd use the official one now.. but honeslty I don't like either
MD
MDOPā€¢2y ago
next level of it is using a frontend framework
b1mind
b1mindā€¢2y ago
I'm too used to HMR I'll use it even for vanilla Vite is amazing also handles more for you but šŸ¤·ā€ā™‚ļø
MD
MDOPā€¢2y ago
im using the vs code live server extension
b1mind
b1mindā€¢2y ago
Live Preview - Visual Studio Marketplace
Extension for Visual Studio Code - Hosts a local server in your workspace for you to preview your webpages on.
b1mind
b1mindā€¢2y ago
Use this one its lighter/faster and official from MS you can use it in vsc even or external browser so
MD
MDOPā€¢2y ago
nice this should help I use vscode on linux so I can get the extentsion
b1mind
b1mindā€¢2y ago
Also you can use Edge and make live changes if you were that cool >.>;;
MD
MDOPā€¢2y ago
do you just do "show preview" to use it?
b1mind
b1mindā€¢2y ago
idk I don't use it again I always use Vite these days HMR is way nicer I don't like having to hit refresh, or leave focus from vsc to do so.
MD
MDOPā€¢2y ago
im thinking svelte for frontend on next version but idk if I'll need vite or webpack goal is to finish this first
b1mind
b1mindā€¢2y ago
I'm pretty sure this Live Preview does have live reload again idk cause I have not used it, I just know its better lol (have heard it is)
Live Refreshing See the changes as you make them. By default, changes appear as you make them in the editor. You can also change this in settings to refresh the preview on save or not at all.
I think that might be only the in window one šŸ¤·ā€ā™‚ļø Oh it wants you to use the Edge extension hah dope
b1mind
b1mindā€¢2y ago
Microsoft Edge Tools for VS Code - Visual Studio Marketplace
Extension for Visual Studio Code - Use the Microsoft Edge Tools from within VS Code to see your site's runtime HTML structure, alter its layout, fix styling issues as well as see your site's network requests.
MD
MDOPā€¢2y ago
GitHub
GitHub - MD-2016/Weather-App: A weather app using a third party api...
A weather app using a third party api with the goal being a build upon project with additional features as time goes on. - GitHub - MD-2016/Weather-App: A weather app using a third party api with t...
MD
MDOPā€¢2y ago
this is current current progress ive made a better looking readme too
b1mind
b1mindā€¢2y ago
Show me when its done sir closing this post you are solved ya?
MD
MDOPā€¢2y ago
when I get through this version i'll be making a post about the front end stuff yes thank you šŸ™‚
Want results from more Discord servers?
Add your server