Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
[BUG?] CSS width: calc(100% - 350px) Not Working
Avatar
pxwee5 #1
Member since Aug 2014 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: [BUG?] CSS width: calc(100% - 350px) Not Working
While using userall.css, I noticed that width: calc(100% - 350px); does not work in dokuwiki.

When I used Chrome's "inspect element" to manually inject in the css property into the class, the page produces the desired result. 

However if I refreshed the page with the above code written in userall.css, it doesnt work.

The result returned was width: calc(-250%);

Could this be a bug that might have occurred when Dokuwiki parses userall.css file?
Avatar
Dr-Yukon #2
User title: Rainbow_Spike
Member since Jun 2012 · 31 posts · Location: Russia, Primorsky Kray
Group memberships: Members
Show profile · Link to this post
Use dirt hack
width: calc(~"100% - "350px);
https://comicslate.org
Avatar
andi (Administrator) #3
User title: splitbrain
Member since May 2006 · 3423 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yeah our less parser (which parses all of the css) is a bit limited sometimes.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Michaelsy #4
Member since Jun 2015 · 890 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
A trick (workaround) to insert (nearly) every unparsed code in LESSPHP:

https://github.com/splitbrain/dokuwiki/issues/2254#issueco…
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited 2 times, last on 2018-05-16, 14:47 by Michaelsy.
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-05-26, 18:19:06 (UTC +02:00)