mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-13 08:16:05 +00:00
Add language toolbar button
Also adds flag icon for each language. One limitation is that the language button doesn’t work properly when accessed via the “more” menu of the page controls. @BramChen - could you help me choose the most appropriate flags to use for the variants of Chinese?
This commit is contained in:
@@ -238,7 +238,7 @@ a.tw-tiddlylink-external:hover {
|
||||
** Buttons
|
||||
*/
|
||||
|
||||
button svg {
|
||||
button svg, button img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
@@ -408,6 +408,10 @@ button svg {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tw-page-controls img {
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
.tw-page-controls svg {
|
||||
fill: <<colour sidebar-controls-foreground>>;
|
||||
}
|
||||
@@ -618,7 +622,7 @@ button svg {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.tw-tiddler-controls button svg {
|
||||
.tw-tiddler-controls button svg, .tw-tiddler-controls button img {
|
||||
height: 0.75em;
|
||||
fill: <<colour tiddler-controls-foreground>>;
|
||||
}
|
||||
@@ -839,7 +843,7 @@ canvas.tw-edit-bitmapeditor {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.btn-dropdown svg {
|
||||
.btn-dropdown svg, .btn-dropdown img {
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
fill: <<colour muted-foreground>>;
|
||||
@@ -852,6 +856,8 @@ canvas.tw-edit-bitmapeditor {
|
||||
padding: 7px 0 7px 0;
|
||||
margin: 4px 0 0 0;
|
||||
white-space: nowrap;
|
||||
text-shadow: none;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.tw-drop-down button svg {
|
||||
@@ -872,6 +878,7 @@ canvas.tw-edit-bitmapeditor {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
color: <<colour foreground>>;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.tw-drop-down a:hover, .tw-drop-down button:hover {
|
||||
|
Reference in New Issue
Block a user