Good evening,
I’m trying to make all the buttons on my forum more rounded square. I’ve used the CSS within CSS/HTML:
.btn { border-radius: 5px; }
This works in the preview tab, but it doesn’t work in the live forum after including the component on these themes.
Currently on the forum:
After using CSS:
Here on Meta, using the Fully theme, the buttons are rounded. However, using this theme on my forum, they are not.
3 לייקים
Heliosurge
(Dan DeMontmorency)
17 ביולי, 2024, 7:47pm
2
Try this theme-component
This one will add options to round other things like quotes, images and more
Created a very simple component to change the borders of images, oneboxes, blockquotes and staff notices shown in topics.
Allows change of the following settings
set image rounding intensity
set image border width
set image border color
set onebox rounding intensity
change onebox border width
change onebox border color
change onebox background color
set rounding blockquotes intensity
remove left border from blockquotes
set ‘staff color’ rounding intensity
topic thumbnail support for:
list ro…
6 לייקים
My God! I’m always telling my users to use the search function before creating a topic!
Now I’m guilty of the same thing! I was searching for “rounded buttons.” I was more complex than it needed to be. I should have just searched for “buttons.”
2 לייקים
Heliosurge
(Dan DeMontmorency)
17 ביולי, 2024, 7:52pm
4
Well I used this search term.
"#theme-component Round"
לייק 1
You can also do
:root {
--d-button-border-radius: 5px
}
or
:root {
--d-border-radius: 5px;
}
if you really want rounded corners everywhere
3 לייקים
Hmm… again, both only seem to work in preview mode, even after refreshing the forum and logging in and out.
Jagster
(Jakke Lehtonen)
17 ביולי, 2024, 8:05pm
7
Aaron Walsh:
use the search function
Open wound on sight… where is my salt
Fifth hit:
Sorry mate, I just couldn’t resist the temptation
לייק 1
Heliosurge
(Dan DeMontmorency)
17 ביולי, 2024, 8:08pm
8
After you install a component & To apply it you need to add to your themes, then need to refresh the page.
After that is should be visible logged in or not
Preview is just for testing without any themes active
לייק 1
Moin
17 ביולי, 2024, 8:10pm
9
Did you add any other components that also customize the buttons?
like Rounded Image Borders
לייק 1
Sorry, I was responding to @awesomerobot ’s post with the CSS.
לייק 1
Heliosurge
(Dan DeMontmorency)
17 ביולי, 2024, 8:11pm
11
Same with creating a custom component. After you save it you need to add it to your themes.
Done this also.
Just looking at @Moin ’s response and can’t see anything that will conflict with the custom component. I’ll take a deep dive into “Discourse Button Style.” I did have this before, and to be honest, there were a lot of empty boxes, and my ADHD brain couldn’t cope with it, haha! Just a simple CSS would work for me (if it did).
I do have this, yes. So this is conflicting with the custom component?
So I’ll have to manually create CSS for the buttons, avatar, and images that I’m wanting/looking at.
Moin
17 ביולי, 2024, 8:28pm
14
There is a setting button settings enabled
, so probably
לייק 1
I need to make sure I check all options before moving to another component.
Both
Button corner intensity
Category style box corner intensity
were set to 0px.
Sorry for wasting time! But good teamwork!
לייק 1
MarcP
(MarcP)
19 ביולי, 2024, 4:59pm
16
This is nice. I think my component currently covers most buttons but I didn’t know about this approach, thanks.
2 לייקים
system
(system)
נסגר ב־
18 באוגוסט, 2024, 5:00pm
17
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.