mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Railroad plugin: Use message box colours so that they change with the palette
This commit is contained in:
parent
17fb43bd6f
commit
152125f53b
@ -1,25 +1,31 @@
|
|||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock
|
||||||
|
|
||||||
/* CSS modified for TiddlyWiki */
|
/* CSS modified for TiddlyWiki */
|
||||||
|
|
||||||
svg.railroad-diagram {
|
svg.railroad-diagram {
|
||||||
background-color: hsl(30,20%,98%);
|
background-color: <<colour background>>;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
svg.railroad-diagram:hover {
|
svg.railroad-diagram:hover {
|
||||||
background-color: hsl(30,20%,96%);
|
background-color: hsl(30,20%,96%);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
svg.railroad-diagram path,
|
svg.railroad-diagram path,
|
||||||
svg.railroad-diagram rect {
|
svg.railroad-diagram rect {
|
||||||
stroke-width: 2;
|
stroke-width: 2;
|
||||||
stroke: #333;
|
stroke: <<colour message-border>>;
|
||||||
}
|
}
|
||||||
svg.railroad-diagram path {
|
svg.railroad-diagram path {
|
||||||
fill: rgba(0,0,0,0);
|
fill: <<colour background>>;
|
||||||
}
|
}
|
||||||
svg.railroad-diagram rect {
|
svg.railroad-diagram rect {
|
||||||
fill: hsl(120,100%,90%);
|
fill: <<colour message-background>>;
|
||||||
}
|
}
|
||||||
svg.railroad-diagram text {
|
svg.railroad-diagram text {
|
||||||
font: 14px monospace;
|
font: 14px monospace;
|
||||||
text-anchor: middle;
|
text-anchor: middle;
|
||||||
|
fill: <<colour message-foreground>>;
|
||||||
}
|
}
|
||||||
svg.railroad-diagram text.label {
|
svg.railroad-diagram text.label {
|
||||||
text-anchor: start;
|
text-anchor: start;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
"file": "railroad-diagrams.css",
|
"file": "railroad-diagrams.css",
|
||||||
"fields": {
|
"fields": {
|
||||||
"type": "text/css",
|
"type": "text/vnd.tiddlywiki",
|
||||||
"title": "$:/plugins/tiddlywiki/railroad/railroad-diagrams.css",
|
"title": "$:/plugins/tiddlywiki/railroad/railroad-diagrams.css",
|
||||||
"tags": "$:/tags/Stylesheet"
|
"tags": "$:/tags/Stylesheet"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user