Skip to content

Commit 4d6b6d2

Browse files
authored
fix: modified header styling for mobile devices (#782)
* fix: updated connect button * fix: added separator at the top of assets page for mobile devices * fix: updated header background for mobile devices * fix: updated margin size inheader
1 parent 58ddf6e commit 4d6b6d2

5 files changed

Lines changed: 65 additions & 8 deletions

File tree

src/components/assets/Assets.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
22
<div v-if="!isLoading" class="wrapper--assets">
3+
<div class="separator--top">
4+
<div class="separator" />
5+
</div>
36
<div class="container--assets">
47
<div>
58
<span class="text--xl">

src/components/assets/styles/assets.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
}
2323
}
2424

25+
.separator--top {
26+
margin-top: 20px;
27+
margin-bottom: 20px;
28+
@media (min-width: $lg) {
29+
display: none;
30+
}
31+
}
32+
2533
.separator {
2634
border-bottom: 1px solid;
2735
border-image: linear-gradient(

src/components/header/ConnectButton.vue

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<slot />
55
</astar-icon-base>
66
<template v-if="width >= screenSize.sm">
7-
{{ $t('connect') }}
7+
<span class="text--connect">
8+
{{ $t('connect') }}
9+
</span>
810
</template>
911
</button>
1012
</template>
@@ -37,44 +39,83 @@ export default defineComponent({
3739
align-items: center;
3840
padding: 8px 16px 8px 16px;
3941
background: transparent;
40-
border: 1px solid $navy-3;
4142
border-radius: 16px;
4243
margin-left: 8px;
4344
transition: all 0.3s ease 0s;
45+
border: 1px solid $gray-4;
46+
47+
@media (min-width: $lg) {
48+
border: 1px solid $navy-3;
49+
}
50+
51+
@media (min-width: $sm) {
52+
margin-left: 16px;
53+
}
4454
}
4555
.btn--connect:hover {
46-
background: #fff;
56+
background: $astar-blue !important;
57+
border: 1px solid transparent;
58+
.iconbase {
59+
color: $gray-1;
60+
}
61+
@media (min-width: $lg) {
62+
background: transparent !important;
63+
border: 1px solid $gray-4;
64+
.iconbase {
65+
color: $gray-5;
66+
}
67+
}
4768
}
4869
4970
.m-btn--connect {
5071
padding-left: 10px;
5172
width: 32px;
5273
height: 32px;
53-
border: 1px solid $navy-3;
74+
background: transparent;
75+
border: 1px solid $gray-4;
5476
border-radius: 16px;
5577
margin-left: 16px;
5678
transition: all 0.3s ease 0s;
79+
@media (min-width: $lg) {
80+
border: 1px solid $navy-3;
81+
}
5782
}
5883
.m-btn--connect:hover {
59-
background: #fff;
84+
background: $astar-blue;
85+
border: 1px solid transparent;
86+
@media (min-width: $lg) {
87+
background: #fff;
88+
}
89+
.iconbase {
90+
color: $gray-1;
91+
}
6092
}
6193
.iconbase {
62-
color: $navy-3;
94+
color: $gray-4;
6395
width: rem(20);
6496
height: rem(20);
6597
margin-left: -4px;
6698
margin-right: 4px;
6799
transition: all 0.3s ease 0s;
68100
}
69101
102+
.text--connect {
103+
font-weight: 400;
104+
font-size: 14px;
105+
color: $gray-1;
106+
@media (min-width: $lg) {
107+
color: $navy-1;
108+
}
109+
}
110+
70111
.body--dark {
71112
.btn--connect {
72113
background: transparent;
73114
color: #fff;
74115
border: 1px solid $gray-4;
75116
}
76117
.btn--connect:hover {
77-
background: $astar-blue;
118+
background: $astar-blue !important;
78119
border: 1px solid transparent;
79120
.iconbase {
80121
color: $gray-1;
@@ -96,5 +137,8 @@ export default defineComponent({
96137
color: $gray-1;
97138
}
98139
}
140+
.text--connect {
141+
color: $gray-1;
142+
}
99143
}
100144
</style>

src/components/header/Header.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,14 @@ export default defineComponent({
180180
@import 'src/css/quasar.variables.scss';
181181
.wrapper {
182182
z-index: 100;
183+
background-color: $navy-2;
183184
@media (min-width: $lg) {
184185
width: 100%;
185186
position: absolute;
186187
top: 0;
187188
left: 224px;
188189
padding-right: 224px;
190+
background-color: transparent;
189191
}
190192
}
191193

src/components/sidenav/styles/sidebar-mobile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
display: flex;
77
justify-content: space-between;
88
height: 48px;
9-
background: #0e101d;
9+
background: $navy-2;
1010
}
1111

1212
.tabs {

0 commit comments

Comments
 (0)