Skip to content

Commit 042c81a

Browse files
authored
Merge branch 'main' into action
2 parents 985190c + a7bb573 commit 042c81a

File tree

251 files changed

+2339
-3071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+2339
-3071
lines changed

libs/ui/src/scss/tailwind.scss renamed to assets/css/tailwind.css

Lines changed: 44 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
2+
3+
@config "../../tailwind.config.ts";
4+
5+
@custom-variant dark (&:where(.dark, .dark *));
6+
7+
/*
8+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
9+
so we've added these compatibility styles to make sure everything still
10+
looks the same as it did with Tailwind CSS v3.
11+
12+
If we ever want to remove these styles, we need to add an explicit border
13+
color utility to any element that depends on these defaults.
14+
*/
15+
@layer base {
16+
*,
17+
::after,
18+
::before,
19+
::backdrop,
20+
::file-selector-button {
21+
border-color: var(--color-gray-200, currentcolor);
22+
}
23+
}
24+
25+
@utility text-shadow-border {
26+
text-shadow:
27+
1px 1px 0 rgb(var(--text-color)),
28+
1px -1px 0 rgb(var(--text-color)),
29+
-1px 1px 0 rgb(var(--text-color)),
30+
-1px -1px 0 rgb(var(--text-color)),
31+
1px 0px 0 rgb(var(--text-color)),
32+
0px 1px 0 rgb(var(--text-color)),
33+
-1px 0px 0 rgb(var(--text-color)),
34+
0px -1px 0 rgb(var(--text-color)),
35+
4px 4px rgb(var(--text-color));
36+
}
37+
38+
@utility container-fluid {
39+
@apply grow relative w-full max-w-none mx-auto my-0 md:px-10 px-5;
40+
}
441

542
@layer base {
643
:root {
@@ -10,10 +47,11 @@
1047
--steps-active-color: 97 136 231;
1148
}
1249

13-
// global variables
1450
:root {
15-
--navbar-desktop: 80px; // $navbar-desktop-min-height
16-
--navbar-mobile: 64px; // $navbar-mobile-min-height
51+
/* $navbar-desktop-min-height */
52+
--navbar-desktop: 80px;
53+
/* $navbar-mobile-min-height */
54+
--navbar-mobile: 64px;
1755
}
1856

1957
:root,
@@ -70,7 +108,6 @@
70108
--green-border-color: #04af00;
71109
--blue-accent-bg-color: #b6cbff;
72110
--blue-light-hover-color: #e8edfb;
73-
--blue-light-cards: #e9eefc;
74111
--card-hover-opacity: 0.85;
75112
--separator-line-color: #cccccc;
76113
--toggle-primary: #ff7ac3;
@@ -140,21 +177,3 @@
140177
border: 0 solid currentColor;
141178
}
142179
}
143-
144-
@layer utilities {
145-
.text-shadow-border {
146-
text-shadow: 1px 1px 0 rgb(var(--text-color)),
147-
1px -1px 0 rgb(var(--text-color)),
148-
-1px 1px 0 rgb(var(--text-color)),
149-
-1px -1px 0 rgb(var(--text-color)),
150-
1px 0px 0 rgb(var(--text-color)),
151-
0px 1px 0 rgb(var(--text-color)),
152-
-1px 0px 0 rgb(var(--text-color)),
153-
0px -1px 0 rgb(var(--text-color)),
154-
4px 4px rgb(var(--text-color));
155-
}
156-
157-
.container-fluid {
158-
@apply grow relative w-full max-w-none mx-auto my-0 md:px-10 px-5;
159-
}
160-
}

assets/styles/components/_connect-wallet.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@
2222
position: fixed;
2323
top: 0;
2424
right: 0;
25-
@apply h-[calc(100%-theme(spacing.navbar-desktop))] mt-[theme(spacing.navbar-desktop)];
25+
height: calc(100% - var(--navbar-desktop));
26+
margin-top: var(--navbar-desktop);
2627
max-width: 360px;
2728
width: 100%;
2829

29-
@apply bulma-mobile:inset-0 bulma-mobile:border-l-0 bulma-mobile:max-w-full
30-
bulma-mobile:h-[calc(100%-theme(spacing.navbar-mobile))] bulma-mobile:mt-[theme(spacing.navbar-mobile)];
30+
@media screen and (max-width: 768px) {
31+
inset: 0;
32+
border-left: none;
33+
max-width: 100%;
34+
height: calc(100% - var(--navbar-mobile));
35+
margin-top: var(--navbar-mobile);
36+
}
3137

3238
background: var(--background-color);
3339
border-left: 1px solid var(--border-color);
@@ -38,7 +44,7 @@
3844
background-color: var(--background-color);
3945

4046
hr {
41-
@apply bg-k-shade2 #{!important};
47+
background-color: var(--k-shade2) !important;
4248
}
4349
}
4450

@@ -55,7 +61,11 @@
5561
.wallet-menu-item {
5662
width: 100%;
5763
.button {
58-
@apply w-full text-xl rounded-none border-none transition-none;
64+
width: 100%;
65+
font-size: 1.25rem;
66+
border-radius: 0;
67+
border: none;
68+
transition: none;
5969
background: unset;
6070
box-shadow: none !important;
6171
> span {

assets/styles/components/_nft-card.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
.nft-card {
2-
@apply relative h-full bg-background-color border border-card-border-color;
2+
position: relative;
3+
height: 100%;
4+
background-color: var(--background-color);
5+
border: 1px solid var(--card-border-color);
36

47
.border-stacked {
58
border-color: var(--card-border-color-light) !important;
@@ -30,7 +33,7 @@
3033
.show-on-hover,
3134
.show-always {
3235
display: flex !important;
33-
@apply z-10;
36+
z-index: 10;
3437
}
3538
}
3639

@@ -56,7 +59,10 @@
5659
}
5760

5861
.card-icon {
59-
@apply absolute z-[1] right-4 top-4;
62+
position: absolute;
63+
z-index: 1;
64+
right: 1rem;
65+
top: 1rem;
6066
}
6167

6268
.nft-media {

assets/styles/global.scss

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ main {
2626
}
2727

2828
body {
29-
@apply text-text-color;
29+
color: rgb(var(--text-color));
3030

3131
a {
32-
@apply text-text-color hover:text-link-hover;
32+
color: rgb(var(--text-color));
33+
&:hover {
34+
color: var(--link-hover);
35+
}
3336
}
3437

3538
strong,
@@ -94,7 +97,9 @@ body {
9497

9598
/* move to global */
9699
.is-ellipsis {
97-
@apply overflow-hidden whitespace-nowrap text-ellipsis;
100+
overflow: hidden;
101+
white-space: nowrap;
102+
text-overflow: ellipsis;
98103
}
99104

100105
.collapseHidden {
@@ -133,16 +138,20 @@ hr {
133138
}
134139

135140
.snackbar {
136-
@apply text-text-color bg-background-color border border-border-color shadow-primary;
141+
color: rgb(var(--text-color));
142+
background-color: var(--background-color);
143+
border: 1px solid var(--border-color);
144+
box-shadow: var(--primary-shadow);
137145

138146
.button {
139-
@apply bg-k-accent-light-2 text-text-color;
147+
background-color: var(--k-accent-light-2);
148+
color: rgb(var(--text-color));
140149
}
141150
}
142151

143152
// global table css
144153
table th {
145-
@apply text-text-color #{!important};
154+
color: rgb(var(--text-color)) !important;
146155
}
147156

148157
.fluid-padding-left {
@@ -167,11 +176,12 @@ table th {
167176

168177
// Transak
169178
.transak_modal-overlay {
170-
@apply z-[999] #{!important};
179+
z-index: 999 !important;
171180
}
172181

173182
.transak_modal {
174-
@apply z-[1000] max-h-[600px] #{!important};
183+
z-index: 1000 !important;
184+
max-height: 600px !important;
175185
}
176186

177187
#transakOnOffRampWidget {

components/ColorModeSwitch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<NeoDropdown
1111
v-else
1212
v-model="preference"
13-
position="top-left"
13+
position="top-right"
1414
:close-on-click="true"
1515
aria-role="list"
1616
@change="onChange"

components/CookieBanner.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
useCookies()
2121
</script>
2222

23-
<style lang="scss">
23+
<style>
24+
@reference '@/assets/css/tailwind.css';
25+
2426
/* Custom Cookie #Bar */
2527
.cookieControl__Bar {
2628
font-family: 'Work Sans', sans-serif;
@@ -52,7 +54,7 @@ button.cookieControl__ModalClose {
5254
@apply invisible absolute top-3 right-0 h-0 w-0;
5355
}
5456
button.cookieControl__ModalClose:after {
55-
@apply absolute top-1 right-5 text-xs text-text-color font-medium bg-background-color hover:bg-gray-100 hover:text-gray-800 rounded-lg px-4 py-2.5 duration-300 transition-colors focus:outline-none visible;
57+
@apply absolute top-1 right-5 text-xs text-text-color font-medium bg-background-color hover:bg-gray-100 hover:text-gray-800 rounded-lg px-4 py-2.5 duration-300 transition-colors focus:outline-hidden visible;
5658
content: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22currentColor%22%20class%3D%22bi%20bi-x-lg%22%20viewBox%3D%220%200%2016%2016%22%3E%0A%20%20%3Cpath%20d%3D%22M2.146%202.854a.5.5%200%201%201%20.708-.708L8%207.293l5.146-5.147a.5.5%200%200%201%20.708.708L8.707%208l5.147%205.146a.5.5%200%200%201-.708.708L8%208.707l-5.146%205.147a.5.5%200%200%201-.708-.708L7.293%208z%22%2F%3E%0A%3C%2Fsvg%3E');
5759
}
5860
.cookieControl__ModalButtons {

components/ExploreLayoutWithSidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div
33
class="container-fluid"
4-
:class="{ '!pl-0': isSidebarOpen }"
4+
:class="{ 'pl-0!': isSidebarOpen }"
55
>
66
<slot />
77
</div>

components/Navbar.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
}"
99
>
1010
<div
11-
class="grow relative mx-auto my-0 max-lg:!px-0 items-stretch block md:flex min-h-[3.25rem] w-full"
12-
:class="{ 'w-full max-w-none md:!px-10 !px-5': !isTouch }"
11+
class="grow relative mx-auto my-0 max-lg:px-0! items-stretch md:flex min-h-[3.25rem] w-full"
12+
:class="{ 'w-full max-w-none md:px-10! px-5!': !isTouch }"
1313
>
1414
<!-- BRAND -->
1515
<div class="navbar-brand md:ml-[-0.75rem]">
@@ -24,7 +24,7 @@
2424
>
2525
</nuxt-link>
2626
<div
27-
class="lg:!hidden flex flex-grow items-center justify-end"
27+
class="lg:hidden! flex grow items-center justify-end"
2828
@click="closeBurgerMenu"
2929
>
3030
<NeoButton
@@ -44,11 +44,11 @@
4444
<Search
4545
ref="mobilSearchRef"
4646
hide-filter
47-
class="flex-grow"
47+
class="grow"
4848
/>
4949
<NeoButton
5050
variant="text"
51-
class="p-3 !shadow-none border-0 capitalize sm:hidden"
51+
class="p-3 shadow-none! border-0 capitalize sm:hidden"
5252
@click="hideMobileSearchBar"
5353
>
5454
{{ $t('cancel') }}
@@ -86,9 +86,9 @@
8686
<div class="navbar-item is-expanded flex justify-center">
8787
<Search
8888
v-if="!isTouch"
89-
class="search-navbar flex-grow pb-0 max-lg:!hidden"
89+
class="search-navbar grow pb-0 max-lg:hidden!"
9090
hide-filter
91-
search-column-class="flex-grow"
91+
search-column-class="grow"
9292
/>
9393
</div>
9494
</div>
@@ -116,7 +116,7 @@
116116
<MobileExpandableSection
117117
v-if="isExplorerVisible"
118118
v-slot="{ onCloseMobileSubMenu }"
119-
class="lg:!hidden"
119+
class="lg:hidden!"
120120
:title="$t('explore')"
121121
>
122122
<NavbarExploreOptions
@@ -130,7 +130,7 @@
130130
</MobileExpandableSection>
131131
<NavbarExploreDropdown
132132
v-if="isExplorerVisible"
133-
class="navbar-explore custom-navbar-item max-lg:!hidden"
133+
class="navbar-explore custom-navbar-item max-lg:hidden!"
134134
data-testid="explore"
135135
/>
136136

@@ -153,7 +153,7 @@
153153

154154
<MobileExpandableSection
155155
v-slot="{ onCloseMobileSubMenu }"
156-
class="lg:!hidden"
156+
class="lg:hidden!"
157157
no-padding
158158
:title="$t('chainSelect', [chainName])"
159159
>
@@ -168,7 +168,7 @@
168168
</MobileExpandableSection>
169169
<ChainSelectDropdown
170170
id="NavChainSelect"
171-
class="navbar-chain custom-navbar-item max-lg:!hidden"
171+
class="navbar-chain custom-navbar-item max-lg:hidden!"
172172
data-testid="chain-select"
173173
/>
174174

@@ -178,7 +178,7 @@
178178
@close-burger-menu="showMobileNavbar"
179179
/>
180180

181-
<div class="lg:!hidden">
181+
<div class="lg:hidden!">
182182
<template v-if="!account">
183183
<ColorModeButton class="navbar-item" />
184184
<NavbarCookiesButton @select="showMobileNavbar" />
@@ -217,7 +217,7 @@
217217

218218
<NavbarProfileDropdown
219219
id="NavProfile"
220-
class="max-lg:!hidden"
220+
class="max-lg:hidden!"
221221
:chain="urlPrefix"
222222
data-testid="navbar-profile-dropdown"
223223
@close-burger-menu="closeBurgerMenu"

components/TheFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="footer-container px-6 py-12"
44
data-testid="footer-container"
55
>
6-
<div class="footer-container-inner flex items-start justify-between">
6+
<div class="footer-container-inner flex md:justify-between">
77
<section class="footer-container-subs flex flex-col">
88
<h2 class="subtitle is-5">
99
{{ $t('footer.subscribe') }}

0 commit comments

Comments
 (0)