1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Railroad plugin: Use message box colours so that they change with the palette

This commit is contained in:
Jeremy Ruston 2020-01-30 12:16:29 +00:00
parent 17fb43bd6f
commit 152125f53b
2 changed files with 11 additions and 5 deletions

View File

@ -1,25 +1,31 @@
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock
/* CSS modified for TiddlyWiki */
svg.railroad-diagram {
background-color: hsl(30,20%,98%);
background-color: <<colour background>>;
border-radius: 5px;
}
/*
svg.railroad-diagram:hover {
background-color: hsl(30,20%,96%);
}
*/
svg.railroad-diagram path,
svg.railroad-diagram rect {
stroke-width: 2;
stroke: #333;
stroke: <<colour message-border>>;
}
svg.railroad-diagram path {
fill: rgba(0,0,0,0);
fill: <<colour background>>;
}
svg.railroad-diagram rect {
fill: hsl(120,100%,90%);
fill: <<colour message-background>>;
}
svg.railroad-diagram text {
font: 14px monospace;
text-anchor: middle;
fill: <<colour message-foreground>>;
}
svg.railroad-diagram text.label {
text-anchor: start;

View File

@ -3,7 +3,7 @@
{
"file": "railroad-diagrams.css",
"fields": {
"type": "text/css",
"type": "text/vnd.tiddlywiki",
"title": "$:/plugins/tiddlywiki/railroad/railroad-diagrams.css",
"tags": "$:/tags/Stylesheet"
}