Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
[SOLVED] Wrap Plugin and Stylesheets(CSS) using round and NOT using round
Condition Wrap/Round CSS rendering
Avatar
jattie #1
User title: Engineering Manager, Software Automation
Member since Aug 2016 · 7 posts · Location: Dublin
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED] Wrap Plugin and Stylesheets(CSS) using round and NOT using round
I have managed to figure out the stylesheets and rendering the pages in view and pdf as I want them, but now it keeps on rendering round even if I don't use round.

so case one using round:

<WRAP announcement round blue 60%>
==== About Spain ====
The rain in Spain falls mainly in the plane.
</WRAP>

and case two NOT using round:

<WRAP announcement blue 60%>
==== About Spain ====
The rain in Spain falls mainly in the plane.
</WRAP>

So when I generate a PDF with dw2pdf, I use a custom piece of css in my pdf ccs template file:

.dokuwiki .plugin_wrap h2,
.dokuwiki .plugin_wrap h3,
.dokuwiki .plugin_wrap h4,
.dokuwiki .plugin_wrap h5 {
    border-radius: 1.1em 1.1em 0em 0em;
}

but now it keeps on rounding my top borders regardless. So my css is missing some intelligence to only render a radius when "round" was selected.

something like:
.dokuwiki .plugin_wrap_round h2,

or

.dokuwiki .plugin_wrap.round h2,

[Image: https://forum.dokuwiki.org/forum.php?req=thread&download=58872&inline=1&key=834ED13C]

Any help or pointer are much appreciated.
The author has attached one file to this post:
wrap_round.jpg 55.9 kBytes
You have no permission to open this file.
This post was edited 3 times, last on 2017-12-06, 16:56 by jattie.
Avatar
jattie #2
User title: Engineering Manager, Software Automation
Member since Aug 2016 · 7 posts · Location: Dublin
Group memberships: Members
Show profile · Link to this post
I solved my own problem.

.wrap_round h2,
.wrap_round h3,
.wrap_round h4,
.wrap_round h5 {
    border-radius: 1.1em 1.1em 0em 0em;
}

actually simple when you see the answer.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-23, 15:41:24 (UTC +02:00)