168 lines
3.2 KiB
SCSS
168 lines
3.2 KiB
SCSS
@import 'common/sass/variables';
|
|
@import 'common/sass/mixins';
|
|
|
|
// Prefer pixels of rem in this file, Electron shouldn't be responsive in the
|
|
// same way the content is.
|
|
$branding-spacing-top: 12px;
|
|
$back-spacing: 10px;
|
|
|
|
.ElectronNav {
|
|
transition: transform 300ms ease;
|
|
|
|
&.is-panel-open {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
&-branding {
|
|
position: -webkit-sticky;
|
|
position: sticky;
|
|
top: 0;
|
|
padding-top: $branding-spacing-top;
|
|
background: color(control-bg);
|
|
z-index: 1;
|
|
border-bottom: 1px solid shade-dark(0.1);
|
|
|
|
.is-osx & {
|
|
padding-top: $electron-osx-control-spacing + $branding-spacing-top - 5;
|
|
}
|
|
|
|
&-logo {
|
|
margin-left: -1px;
|
|
height: 35px;
|
|
margin-bottom: 10px;
|
|
background-image: url('~assets/images/logo-mycrypto-transparent.svg');
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: auto 100%;
|
|
cursor: pointer;
|
|
|
|
@include theme(dark) {
|
|
background-image: url('~assets/images/logo-mycrypto.svg');
|
|
}
|
|
|
|
&:hover {
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
&-beta {
|
|
text-align: center;
|
|
letter-spacing: 4px;
|
|
height: 20px;
|
|
line-height: 20px;
|
|
color: color(text-color-inverted);
|
|
background: color(brand-info);
|
|
text-transform: uppercase;
|
|
font-size: 8px;
|
|
opacity: 0.8;
|
|
pointer-events: none;
|
|
|
|
@include theme(dark) {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-links {
|
|
padding: 0;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
&-status {
|
|
margin: 12px 0;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
&-controls {
|
|
margin: 10px 0;
|
|
padding: 0 10px;
|
|
|
|
&-btn {
|
|
@include reset-button;
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
color: shade-dark(0.5);
|
|
font-size: 12px;
|
|
padding: 6px 0;
|
|
|
|
&-icon {
|
|
font-size: 11px;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
&:hover {
|
|
color: shade-dark(0.7);
|
|
}
|
|
}
|
|
}
|
|
|
|
&-panel {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 100%;
|
|
width: 100%;
|
|
z-index: $zindex-navbar - 1;
|
|
|
|
&-back {
|
|
@include reset-button;
|
|
position: sticky;
|
|
top: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: $back-spacing 0 8px $back-spacing;
|
|
color: shade-dark(0.2);
|
|
border-bottom: 1px solid shade-dark(0.05);
|
|
background: color(control-bg);
|
|
|
|
.is-osx & {
|
|
padding-top: $electron-osx-control-spacing + $back-spacing;
|
|
}
|
|
|
|
&-icon {
|
|
font-size: 12px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
&:hover {
|
|
color: color(brand-primary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Styling for common/components/NavigationLink, with custom classname
|
|
.ElectronNavLink {
|
|
display: block;
|
|
margin: 0;
|
|
@include ellipsis;
|
|
|
|
&-link {
|
|
display: block;
|
|
height: 48px;
|
|
line-height: 48px;
|
|
padding: 0 0 0 10px;
|
|
border-bottom: 1px solid shade-dark(0.08);
|
|
color: color(text-color);
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
|
|
&.is-active {
|
|
color: color(link-color);
|
|
background: shade-dark(0.03);
|
|
}
|
|
|
|
&:hover {
|
|
color: color(link-hover-color);
|
|
}
|
|
|
|
&-icon {
|
|
font-size: 12px;
|
|
margin-left: 3px;
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
}
|