forked from yearn/ySync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
executable file
·138 lines (118 loc) · 3.57 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/* This will load Tailwindcss + all the overwrite from Yearn lib */
@import '@yearn-finance/web-lib/dist/style.css';
@font-face {
font-family: 'Menlo Regular';
font-style: normal;
font-weight: normal;
src: local('Menlo Regular'), url('/Menlo-Regular.woff') format('woff');
}
/* 🔵 - Yearn Finance ******************************************************
** Shorthand for some group of style used across the application
**************************************************************************/
.component--switchCard-wrapper {
@apply flex flex-row justify-between p-2 space-x-2 w-full cursor-pointer md:p-0 md:space-x-6 md:w-max
}
.image-align-middle > img {
object-position: 0 70%;
}
:root body[data-theme="light"],
:root body[data-theme="dark"] {
--color-red-900: 3 73% 47%
}
:root body[data-theme="light"] {
& .yearn--card {
@apply border border-transparent !shadow-none;
}
& .label {
@apply border-transparent;
}
& .project--kbar-wrapper {
@apply rounded-lg opacity-60 bg-neutral-300/70 hover:bg-neutral-300 transition-colors;
}
}
:root body[data-theme="dark"] {
--color-neutral-0: 225 50% 27%;
--color-neutral-100: 225 51% 23%;
--color-neutral-200: 225 47% 21%;
--color-neutral-300: 219 60% 16%;
--color-neutral-400: 0 0% 100%;
--color-neutral-500: 230 27% 87%;
--color-neutral-700: 0 0% 100%;
--color-primary-100: 226 50% 18%;
--color-primary-200: 225 47% 41%;
@apply bg-neutral-200;
background-image: linear-gradient(180deg,transparent 0,#293e81 80vh);
& .yearn--button[data-variant="light"] {
@apply text-neutral-900 bg-primary-200 hover:bg-primary-100;
&:not(:disabled):not([aria-busy="true"]):hover {@apply bg-primary-100;}
}
& .yearn--card {
@apply border border-neutral-200 !shadow-none;
}
& .yearn--searchBox-wrapper {
--searchBox-text-color: hsl(var(--color-neutral-500));
--searchBox-border-color: hsl(var(--color-neutral-300));
--searchBox-bg-color: hsl(var(--color-neutral-0));
--searchBox-border-width: 1px;
}
& .yearn--searchBox {
@apply focus-within:border-neutral-200;
}
& .yearn--banner {
--banner-bg-color: hsl(var(--color-primary-100));
--banner-text-color: hsl(var(--color-neutral-700));
--banner-border-color: hsl(var(--color-neutral-200));
--banner-border-width: 2px;
}
& .yearn--elementWithActions {
--elementWithActions-text-color: hsl(var(--color-neutral-700));
--elementWithActions-action-color: hsl(var(--color-primary-500));
--elementWithActions-action-color-hover: hsl(var(--color-primary-600));
}
& .project--kbar-wrapper {
@apply rounded-lg opacity-60 bg-neutral-100/70 hover:bg-neutral-100 transition-colors;
}
}
.yearn--modal {
@apply md:max-w-4xl;
}
.prism-code {
@apply p-4 rounded-lg my-4 overflow-x-scroll;
}
.token {
@apply text-xs;
font-family: 'Menlo Regular', monospace;
}
.yearn--select-reset {
@apply bg-transparent p-0 border-none;
&:focus {
outline: none;
box-shadow: none;
}
}
.yearn--select-no-arrow {
-webkit-appearance: none;
-moz-appearance: none;
background-image: none;
}
.yearn--select-no-arrow::-ms-expand {
display: none;
}
.yearn--input {
@apply rounded-default w-full border-0 border-transparent bg-neutral-100 text-neutral-900 focus:ring-0 transition-colors pr-10 h-10;
&[data-focused='true'] {
@apply bg-neutral-200 border-primary-500 transition-colors;
& ~ .yearn--input-caption {
@apply text-primary-500;
}
}
&[aria-invalid="true"] {
@apply border-red-900;
}
& > input {
@apply w-full border-0 bg-transparent text-neutral-900 focus:ring-0 h-10 p-2;
}
& ~ .yearn--input-caption {
@apply mt-1 pl-2 text-xs transition-colors text-neutral-900
}
}