mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 09:20:12 +02:00
Possible work-around for OSX font issues
This commit is contained in:
parent
3457d1c21e
commit
870636832f
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue