Newer
Older
.header-nav {
Luke Schoen
committed
// Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container
display: flex;
Luke Schoen
committed
flex-direction: row;
height: 3.5rem;
flex-direction: column;
justify-content: center;
Luke Schoen
committed
}
.header-nav_left {
padding-left: 0.5rem;
}
.header-nav_right {
padding-right: 0.5rem;
Luke Schoen
committed
flex: 1; // https://stackoverflow.com/a/35270047/3208553
Luke Schoen
committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Postfix is component to apply these styles to.
* Explicit list so easy to change incase header
* modified on a specific page
*/
&.-header-accounts,
&.-header-create-account,
&.-header-onboarding,
&.-header-scan-signed-tx,
&.-header-signed-tx-summary,
&.-header-tx-qr-code,
&.-header-txform,
&.-header-unlock,
&.-header-whitelist, {
justify-content: center;
align-items: center;
padding-top: 1rem;
padding-bottom: 1rem;
/* Offset from right when only button on left */
&.-offset-left {
padding-right: 2rem;
}
/* Offset from left when only button on right */
&.-offset-right {
padding-left: 2rem;
}
}
&.-header-tokens {
padding-left: 0.5rem;
}
margin: -0.175rem 0 -0.175rem;
padding: 0.25rem 0.5rem 0.175rem;
display: inline-block;
font-size: ms(0);
color: rgba($black, 0.675);
font-weight: 500;
}
a,
a:link,
a:visited {
color: rgba($black, 0.675);
font-weight: 500;
display: block;
margin: -0.175rem 0 -0.175rem;
padding: 0.25rem 0.5rem 0.175rem;
border-radius: 0.25rem;
&:hover {
color: $black;
}
&.icon {
width: ms(0) * 1.3 + 0.5rem;
height: ms(0) * 1.3 + 0.5rem;
text-indent: -9999rem;
background-size: ms(0) auto;
background-position: center center;
background-repeat: no-repeat;
opacity: 0.675;
&:hover {
opacity: 1;
}
&.-receive {
background-image: url('./assets/img/icons/receive.svg');
background-image: url('./assets/img/icons/gear.svg');
&.-back {
background-image: url('./assets/img/icons/back.svg');
}
&.-close {
background-image: url('./assets/img/icons/close.svg');
}
&.-new {
background-image: url('./assets/img/icons/plus.svg');