mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
fix webview button alignment on Linux
caused by the height: specification inside webview.py
This commit is contained in:
parent
e2e7128385
commit
e4bbba4ec1
2 changed files with 26 additions and 22 deletions
|
@ -282,11 +282,10 @@ border-radius:5px; font-family: Helvetica }"""
|
|||
fontspec = 'font-size:14px;font-family:"%s";' % family
|
||||
widgetspec = """
|
||||
/* Buttons */
|
||||
button{ -webkit-appearance:none; outline:0;
|
||||
background-color: %(color_btn)s; border:1px solid rgba(0,0,0,.2);
|
||||
border-radius:2px; height:24px; font-family:"%(family)s"; }
|
||||
button{
|
||||
background-color: %(color_btn)s;
|
||||
font-family:"%(family)s"; }
|
||||
button:focus{ border-color: %(color_hl)s }
|
||||
button:hover{ background-color:#fff }
|
||||
button:active, button:active:hover { background-color: %(color_hl)s; color: %(color_hl_txt)s;}
|
||||
/* Input field focus outline */
|
||||
textarea:focus, input:focus, input[type]:focus, .uneditable-input:focus,
|
||||
|
|
|
@ -1,5 +1,28 @@
|
|||
@use 'vars';
|
||||
|
||||
.isWin {
|
||||
button {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.isMac {
|
||||
button {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.isLin {
|
||||
button {
|
||||
font-size: 14px;
|
||||
|
||||
-webkit-appearance: none;
|
||||
border-radius: 3px;
|
||||
padding: 5px;
|
||||
border: 1px solid vars.$day-border;
|
||||
}
|
||||
}
|
||||
|
||||
.nightMode {
|
||||
button {
|
||||
-webkit-appearance: none;
|
||||
|
@ -20,21 +43,3 @@
|
|||
background: vars.$fusion-button-hover-bg;
|
||||
}
|
||||
}
|
||||
|
||||
.isWin {
|
||||
button {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.isMac {
|
||||
button {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.isLin {
|
||||
button {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue