Skip to content

Commit 344873e

Browse files
microbit-henrymicrobit-carlos
authored andcommitted
UI: Fixed button positions in all browsers (#282)
1 parent 6384cef commit 344873e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

python-main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,6 +1683,10 @@ function web_editor(config) {
16831683
// Join up the buttons in the user interface with some functions for
16841684
// handling what to do when they're clicked.
16851685
function setupButtons() {
1686+
if(navigator.platform.match('Win') !== null){
1687+
$(".roundsymbol").addClass("winroundsymbol");
1688+
$("#small-icons .status-icon").addClass("win-status-icon");
1689+
}
16861690
$("#command-download").click(function () {
16871691
doDownload();
16881692
});

static/css/style.css

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,15 @@ h2 {
156156
color: #336699;
157157
background: #FFFFFF;
158158
}
159+
159160
html[data-useragent*='MSIE 10.0'] #small-icons .status-icon {
160161
line-height: 2.15rem;
161162
}
162163

164+
#small-icons .win-status-icon{
165+
line-height: 2.2rem;
166+
}
167+
163168
#small-icons .holder {
164169
width: 56px;
165170
min-width: 56px;
@@ -291,16 +296,7 @@ html[data-useragent*='MSIE 10.0'] #small-icons .status-icon {
291296
background: #FFFFFF;
292297
}
293298

294-
@-moz-document url-prefix() {
295-
.roundsymbol {
296-
line-height: 3.7rem;
297-
}
298-
#small-icons .status-icon {
299-
line-height: 2.15rem;
300-
}
301-
}
302-
303-
html[data-useragent*='MSIE 10.0'] .roundsymbol {
299+
.winroundsymbol {
304300
line-height: 3.7rem;
305301
}
306302

0 commit comments

Comments
 (0)