Customizing spoiler
3 posters
Page 1 of 1
Customizing spoiler
Hello!
I've searched this forum a lot, to find some topics regarding my problem, but I couldn't find anything similar. If there is, I apologize for creating my own topic.
So, now I'm customizing a new theme for my forum. I came up to customizing code/quote/spoiler fields ant then I got stuck. I wanted to add a border around those fields. Code and quote seem to work the way I wanted them to, but I have some problems with spoiler. This is what my closed spoiler looks like now:
As you can see, spoiler has an extra line at the bottom. When it's open, spoiler looks fine:
The CSS code I use for that is
Also, as you can see from the second picture, text in spoiler is bold. The code I use affects spoiler only:
I've searched this forum a lot, to find some topics regarding my problem, but I couldn't find anything similar. If there is, I apologize for creating my own topic.
So, now I'm customizing a new theme for my forum. I came up to customizing code/quote/spoiler fields ant then I got stuck. I wanted to add a border around those fields. Code and quote seem to work the way I wanted them to, but I have some problems with spoiler. This is what my closed spoiler looks like now:
As you can see, spoiler has an extra line at the bottom. When it's open, spoiler looks fine:
The CSS code I use for that is
- Code:
.codebox dd {
border: 1px solid #1D4F75;
border-bottom-left-radius: 20px;
border-top-right-radius: 20px;
padding: 0px 15px;
}
Also, as you can see from the second picture, text in spoiler is bold. The code I use affects spoiler only:
- Code:
.spoiler {
font-weight:bold;
font-size:11px;
}
Re: Customizing spoiler
Hello try using this to hide that border :
- Code:
.spoiler_closed { border-bottom:none !important }
Re: Customizing spoiler
Try this :
It looks like the dd isn't hidden when the spoiler is closed, so its border is still showing.
It looks like the dd isn't hidden when the spoiler is closed, so its border is still showing.
- Code:
.codebox.spoiler dd { border:none }
Re: Customizing spoiler
The code you gave removed all borders from spoiler, so I just changed it to this:
and there is no border at the bottom at all, when open:
- Code:
.codebox.spoiler dd { border-bottom:none }
and there is no border at the bottom at all, when open:
Re: Customizing spoiler
well this isnt posible with css
but u can try this script not 100% sure it will work
acp>modules>javascript management>
create a new javascript
title:whatever
placement:all pages
code
but u can try this script not 100% sure it will work
acp>modules>javascript management>
create a new javascript
title:whatever
placement:all pages
code
- Code:
$(function(){
$('.spoiler_content.hidden').parent().css('border', '0px');
$('.spoiler_closed.hidden').next('dd').css('border', '1px solid #1D4F75');
});
Re: Customizing spoiler
Thank you, it worked! Unfortunately, when I open the spoiler, again there are no borders at all. But if it's not possible by any kind of coding, then I'll be okay with what I have now
Does anybody know/have some ideas on how can I make text in spoiler unbolded?
Does anybody know/have some ideas on how can I make text in spoiler unbolded?
Re: Customizing spoiler
im sure ange will hook u up when he gets on im just not that good in scripting yet
Re: Customizing spoiler
See if this works :
- Code:
.spoiler_closed + dd { border:none !important }
.spoiler_closed.hidden + dd { border:1px solid #1D4F75 !important }
Similar topics
» Customizing the search box
» Customizing the calendar?
» Customizing Topic Posts
» Customizing the News Widget
» How can I get my spoiler to look like this?
» Customizing the calendar?
» Customizing Topic Posts
» Customizing the News Widget
» How can I get my spoiler to look like this?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum