[TW5] Translucent Tiddlers

瀏覽次數:116 次
跳到第一則未讀訊息

charleyc...@gmail.com

未讀,
2017年8月8日 下午5:19:462017/8/8
收件者:TiddlyWiki
How do I make tiddlers translucent?

Thank you in advance!

Mat

未讀,
2017年8月8日 下午5:55:422017/8/8
收件者:TiddlyWiki
Because a tiddler consists of several fields (e.g  on for the title, one for the tags, etc), I suggest you post a screen shot of a tiddler and mark out exactly which parts you want transparent so it would be easier to give an answer. Or maybe you want "everything that is white" to be transparent?

<:-)

charleyc...@gmail.com

未讀,
2017年8月9日 清晨5:14:052017/8/9
收件者:TiddlyWiki
Everything white being translucent. Or dark grey, in my case (custom palette).

Mat

未讀,
2017年8月9日 清晨7:44:552017/8/9
收件者:TiddlyWiki
charleyc...@gmail.com wrote:
Everything white being translucent. Or dark grey, in my case (custom palette).

Ok, then you can go to that custom palette and simply locate the color fields that have that dark gray color code, and exchange the color code for the word transparent. I think that should work. Because the changes apply "live", you'll see exactly which parts of the tiddlers that are affected.

If you want your transparent palette to be a separate palette, as opposed to modifying your current custom one, you can locate the custom palette itself and make a copy that you rename to transluscent, apply it, and make the changes there instead.

<:-)

RichardWilliamSmith

未讀,
2017年8月9日 上午8:20:352017/8/9
收件者:TiddlyWiki
Hi Mat,

What would you put it if you wanted it only 50% transparent (~translucent). It seems like 4/8 digit codes (with alpha channel in the last 1/2) are part of the css 4 spec, but don't seem to be implemented right now (?)

Richard.

RichardWilliamSmith

未讀,
2017年8月9日 上午8:50:342017/8/9
收件者:TiddlyWiki
I'll answer my own question :) one way is to use 'rgba', like this - rgba(52,200,52,0.2) where the last value it the alpha. Should also be able to use 'hsl' but that doesn't seem to work (?)

Eric Shulman

未讀,
2017年8月9日 上午9:08:232017/8/9
收件者:TiddlyWiki
On Wednesday, August 9, 2017 at 5:50:34 AM UTC-7, RichardWilliamSmith wrote:
I'll answer my own question :) one way is to use 'rgba', like this - rgba(52,200,52,0.2) where the last value it the alpha. Should also be able to use 'hsl' but that doesn't seem to work (?)

The values for HSL are 
  hue = 0 to 360
  saturation = 0% to 100%
  lightness = 0% to 100%

Like this:
   hsl(240,50%,90%)

You can also use HSLA, which includes an "alpha channel" value between 0 and 1 to specify the opacity:

Like this:
   hsla(240,50%,90%,0.5)

* tested and confirmed on tiddlywiki.com

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals

RichardWilliamSmith

未讀,
2017年8月9日 上午9:19:362017/8/9
收件者:TiddlyWiki
Thanks Eric! I was missing the 'a' in hsla when I tried it. I prefer this way to rgb(a)
回覆所有人
回覆作者
轉寄
0 則新訊息