Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit e277e5f

Browse files
committed
giving app bar alternate style to non mac platforms
1 parent e15ee05 commit e277e5f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

css/obBase.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ form {
218218
top: 8px;
219219
}
220220

221-
.platform-win #appBar .windowControls {
221+
html:not(.platform-mac) #appBar .windowControls {
222222
left: auto;
223223
right: 8px;
224224
top: 8px;
@@ -2034,27 +2034,27 @@ margin: auto;
20342034
position: relative;
20352035
}
20362036

2037-
.platform-win .btn.btn-win {
2037+
html:not(.platform-mac) .btn.btn-win {
20382038
background-color: transparent;
20392039
border-radius: 0;
20402040
width: 19px;
20412041
height: 19px;
20422042
box-shadow: none;
20432043
}
20442044

2045-
.platform-win .btn.btn-winClose {
2045+
html:not(.platform-mac) .btn.btn-winClose {
20462046
float: right;
20472047
margin-left: 6px;
20482048
}
20492049

2050-
.platform-win .btn.btn-win .btn-win-icon {
2050+
html:not(.platform-mac) .btn.btn-win .btn-win-icon {
20512051
display: block;
20522052
top: -3px;
20532053
font-size: 21px;
20542054
color: #fff;
20552055
}
20562056

2057-
.platform-win .btn.btn-winMax {
2057+
html:not(.platform-mac) .btn.btn-winMax {
20582058
float: right;
20592059
margin-left: 6px;
20602060
border: 1px solid #fff;
@@ -2063,8 +2063,8 @@ margin: auto;
20632063
top: 3px;
20642064
}
20652065

2066-
.platform-win .btn.btn-winMax .btn-win-icon,
2067-
.platform-win .btn.btn-win.btn-winMax:hover .btn-win-icon {
2066+
html:not(.platform-mac) .btn.btn-winMax .btn-win-icon,
2067+
html:not(.platform-mac) .btn.btn-win.btn-winMax:hover .btn-win-icon {
20682068
display: none;
20692069
}
20702070

js/templates/appBar.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="windowControls ctrlGroup">
2-
<a class="btn btn-win btn-winClose js-navClose tooltip <% ob.platform === 'win32' && print('tooltip-left') %>" data-tooltip="<% print(polyglot.t(ob.launchedFromInstaller ? 'ClosingOpenBazaar' : 'ClosingOpenBazaarNonInstaller')) %>">
2+
<a class="btn btn-win btn-winClose js-navClose tooltip <% ob.platform !== 'darwin' && print('tooltip-left') %>" data-tooltip="<% print(polyglot.t(ob.launchedFromInstaller ? 'ClosingOpenBazaar' : 'ClosingOpenBazaarNonInstaller')) %>">
33
<div class="btn-win-icon ion-ios-close-empty"></div>
44
</a>
5-
<a class="btn btn-win btn-winMin js-navMin tooltip <% ob.platform === 'win32' && print('tooltip-left') %>" data-tooltip="<%= polyglot.t('Minimize') %>">
5+
<a class="btn btn-win btn-winMin js-navMin tooltip <% ob.platform !== 'darwin' && print('tooltip-left') %>" data-tooltip="<%= polyglot.t('Minimize') %>">
66
<div class="btn-win-icon ion-ios-minus-empty"></div>
77
</a>
8-
<a class="btn btn-win btn-winMax js-navMax tooltip <% ob.platform === 'win32' && print('tooltip-left') %>" data-tooltip="<%= polyglot.t('Maximize') %>">
8+
<a class="btn btn-win btn-winMax js-navMax tooltip <% ob.platform !== 'darwin' && print('tooltip-left') %>" data-tooltip="<%= polyglot.t('Maximize') %>">
99
<div class="btn-win-icon ion-ios-plus-empty"></div>
1010
</a>
1111
</div>

0 commit comments

Comments
 (0)