Jump to content

add radius to all buttons.


Recommended Posts

I have been told by several people my site would look nicer if all the buttons and boxes were radius corners instead of sharp corners. I have tried to go into css files and add radius to buttons, but it does not seem to change any buttons.

So my first question is how do I know which css file to change for what?

Second question is do I need to do more or just change the css file?

Link to comment
Share on other sites

If your skin is based on the Foundation platform, there is already the CSS necessary to give radius corners.

See:

https://get.foundation/sites/docs-v5/components/buttons.html

See the last example in 'Button Sizing'.

Edit the template to affect one button. Then, using the Developer Tools for your browser, examine the CSS rules that Foundation applies to class="button radius".

Edit the skin CSS file 'cubecart.common.css' and add, at the bottom of that file, those same CSS rule(s) to make the corners have a radius, but for all buttons, not just for .button.radius.

Alternatively, we can make a code snippet to load in a custom CSS file -- which will survive an upgrade if using the stock Foundation skin.

Link to comment
Share on other sites

Thanks b,

I have been reading and trying to figure out how to apply what you suggest, but I do not follow something. Actually I just dont know how to do any of it. But I do like knowing about the foundation info.

Link to comment
Share on other sites

I am on standard Foundation. My site is dllpdf.com

I have just got a dev site setup as well from AL, but haven't worked in there yet.

Oh crap, I bet I lost the awesome export stuff you did for me with the last update :( note to self have to fix that again as well as width

 

Link to comment
Share on other sites

Edit the skin CSS file 'cubecart.common.css' and add, at the bottom of that file, this:

button, .button { border-radius: 10px; }

Save and have CubeCart clear its internal cache.

Link to comment
Share on other sites

Posted (edited)

Using what I learned above with the buttons, I have also been able to round the input boxes. But I have not found the way for the dropdowns. Is there a "word" for them as there is for .buttons and .input?

this is what I tried

button, .button { border-radius: 50px 5px 50px 5px; }
 input, .input{border-radius: 50px 5px 50px 5px; }
 selectBox, .selectBox{border-radius: 50px 5px 50px 5px; }

Please see this test site:

https://dev.dllpdf.com/build-plates

Nevermind , I finally fount it, it is called select

so

button, .button { border-radius: 50px 5px 50px 5px; }
 input, .input{border-radius: 50px 5px 50px 5px; }
 select, .select{border-radius: 50px 5px 50px 5px; }

works all good. Now to move the layout around to look more like minimaliser.

 

Edited by cqpbert
added code
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...