Simple Spoiler BBCode

Spoiler width reduce - Simple Spoiler BBCode

Spoiler width reduce

by unhappyangel83 » Sun Jul 22, 2018 2:00 pm

hello,
is it possible to reduce the width of the spoiler?
see here: https://i.gyazo.com/a350c44d5742763589c ... 52debd.png

Thanks for the help

MfG Michl
unhappyangel83
Registered User
Posts: 3
Joined: Sun Jul 22, 2018 1:54 pm
Contact:

Re: Spoiler width reduce

by AbaddonOrmuz » Sun Jul 22, 2018 5:50 pm

Of course, however it's that size by design. You can change its size by replacing .spoiler with the following content:

styles/{STYLE}/theme/css/style.css

Code: Select all

.spoiler {
	max-width: 75%;
	border-width: 1px;
	border-style: solid;
	border-radius: 3px;
	margin: 1em auto;
}
Some of my phpBB extensions:
Image Imgur | :chart_with_upwards_trend: SEO Metadata | Image Markdown | :lock: Auto-lock Topics
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user :penguin:
User avatar
AbaddonOrmuz
Recognised Extension Developer
Posts: 1003
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Spoiler width reduce

by unhappyangel83 » Mon Jul 23, 2018 10:13 am

Thank you very much for that.
Now I have the problem that I can't get it left-justified.

Thank you for your help.

MfG Michl
unhappyangel83
Registered User
Posts: 3
Joined: Sun Jul 22, 2018 1:54 pm
Contact:

Re: Spoiler width reduce

by AbaddonOrmuz » Mon Jul 23, 2018 2:07 pm

unhappyangel83 wrote:Thank you very much for that.
Now I have the problem that I can't get it left-justified.
Set margin left and right to 0 instead of auto:

Code: Select all

.spoiler {
	max-width: 75%;
	border-width: 1px;
	border-style: solid;
	border-radius: 3px;
	margin: 1em 0;
}
Some of my phpBB extensions:
Image Imgur | :chart_with_upwards_trend: SEO Metadata | Image Markdown | :lock: Auto-lock Topics
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user :penguin:
User avatar
AbaddonOrmuz
Recognised Extension Developer
Posts: 1003
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Spoiler width reduce

by unhappyangel83 » Mon Jul 23, 2018 3:02 pm

Thank you for your help.

MfG Michl
unhappyangel83
Registered User
Posts: 3
Joined: Sun Jul 22, 2018 1:54 pm
Contact:

Re: Spoiler width reduce

by <<=Aquiles=>> » Sun Oct 27, 2019 6:36 pm

Thank you very much, I also useful this advice.
User avatar
<<=Aquiles=>>
Registered User
Posts: 27
Joined: Thu Oct 03, 2019 8:41 am
Contact: