Possible work-around for OSX font issues

This commit is contained in:
David Rowe 2016-03-31 10:45:57 +13:00
parent 3457d1c21e
commit 870636832f
2 changed files with 8 additions and 1 deletions

View file

@ -368,6 +368,7 @@ input[type=checkbox]:checked + label:hover {
width: 100%;
margin: 22px -12px 0 -12px;
padding: 14px 12px 0 12px;
font-family: Raleway-Regular;
font-size: 12px;
color: #afafaf;
height: 28px;
@ -397,8 +398,8 @@ input[type=checkbox]:checked + label:hover {
.section-header span {
font-family: HiFi-Glyphs;
float: right;
font-size: 20px;
float: right;
position: absolute;
top: 9px;
right: 12px;

View file

@ -1244,6 +1244,8 @@
var div = elDropdowns[i].parentNode;
var dl = document.createElement("dl");
// FIXME: Test with Qt 5.6 and remove li.style setting if no longer needed; style is set in CSS.
dl.style = "font-family:FiraSans-SemiBold;" // For OSX
div.appendChild(dl);
var dt = document.createElement("dt");
@ -1258,6 +1260,8 @@
dt.appendChild(span);
var span = document.createElement("span");
// FIXME: Test with Qt 5.6 and remove li.style setting if no longer needed; style is set in CSS.
span.style = "font-family:HiFi-Glyphs"; // For OSX
span.textContent = "5"; // caratDn
dt.appendChild(span);
@ -1269,6 +1273,8 @@
for (var j = 0; j < options.length; j++) {
var li = document.createElement("li");
li.style = "font-family:FiraSans-SemiBold;" // For OSX
// FIXME: Test with Qt 5.6 and remove li.style setting if no longer needed; style is set in CSS.
li.setAttribute("value", options[j].value);
li.textContent = options[j].firstChild.textContent;
li.addEventListener("click", setDropdownValue);