-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathstyle.base.css
227 lines (207 loc) · 5.17 KB
/
style.base.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
@import '@rainbow-me/rainbowkit/styles.css';
@tailwind base;
body {
@apply text-neutral-900;
}
h1 {
@apply text-xl font-bold text-neutral-900;
}
h4 {
@apply text-lg font-bold text-neutral-700;
}
h6 {
@apply text-base font-bold text-neutral-700;
}
small {
@apply text-xxs font-normal text-neutral-600 block;
}
#__next {
@apply w-full h-full;
}
/***************************************************************************
** Overwritting the defaults to match our needs
**************************************************************************/
* {
@apply scroll-smooth font-sans;
}
input::placeholder {
@apply text-neutral-400 not-italic;
}
textarea::placeholder {
@apply text-neutral-400 not-italic;
}
input[type=file], /* FF, IE7+, chrome (except button) */
input[type=file]::-webkit-file-upload-button {
/* chromes and blink button */
cursor: pointer;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset;
transition: background-color 5000s ease-in-out 0s;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type='number'] {
-moz-appearance: textfield;
}
label[aria-invalid='true'] {
@apply text-neutral-600 transition-colors;
& > form > div {
@apply border-[#FE0000] focus-within:border-[#FE0000] text-[#FE0000] focus-within:text-[#FE0000];
}
& > p {
@apply text-[#FF0000];
}
}
:focus {
outline-width: 0px;
outline-offset: 0px;
outline: none;
outline-color: transparent;
}
/* -- Button.tsx ------------------------------------------------------- */
.smol--input-wrapper {
@apply flex h-10 w-full items-center rounded-md border border-neutral-200 bg-neutral-0 transition-colors;
&:has(input:focus) {
@apply border-primary;
}
}
.smol--input {
@apply w-full overflow-x-scroll border-none bg-transparent text-sm outline-none scrollbar-none p-2;
}
select.smol--input {
@apply pr-7 truncate;
}
/***************************************************************************
** Then, we import the tailwind class. They will be able to overwrite all
** the previous classes, not the next ones directly.
**************************************************************************/
@tailwind components;
@tailwind utilities;
/***************************************************************************
** Some accessibilities fixes
**************************************************************************/
.scrollbar-none::-webkit-scrollbar {
display: none;
}
.scrollbar-none {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.hover-fix::before {
display: block;
content: attr(title);
font-weight: bold;
height: 0;
overflow: hidden;
visibility: hidden;
}
.font-number {
@apply font-mono tabular-nums;
}
[type='text']:focus,
[type='email']:focus,
[type='url']:focus,
[type='password']:focus,
[type='number']:focus,
[type='date']:focus,
[type='datetime-local']:focus,
[type='month']:focus,
[type='search']:focus,
[type='tel']:focus,
[type='time']:focus,
[type='week']:focus,
[multiple]:focus,
textarea:focus,
select:focus {
outline: none;
outline-width: 0px;
box-shadow: none;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.TooltipContent[data-state='delayed-open'],
.PopoverContent[data-state='open'] {
animation: fadeIn 100ms ease-out;
}
.TooltipContent[data-state='closed'],
.PopoverContent[data-state='closed'] {
animation: fadeOut 100ms ease-in;
}
.DropdownMenuContent {
width: var(--radix-dropdown-menu-trigger-width);
max-height: var(--radix-dropdown-menu-content-available-height);
}
.skeleton-lg {
@apply animate-pulse rounded-lg bg-neutral-400;
}
.skeleton-full {
@apply animate-pulse rounded-full bg-neutral-400;
}
.skeleton-md {
@apply animate-pulse rounded-md bg-neutral-400;
}
.withRing:focus-visible {
@apply ring-2 ring-primary ring-offset-2;
}
.button {
@apply cursor-pointer px-5 flex justify-center items-center h-14 text-base transition-all relative rounded-lg;
@apply withRing;
&[data-variant='filled'] {
@apply text-neutral-900 bg-primary font-normal border border-transparent;
&:disabled {
@apply bg-neutral-600 opacity-40;
}
&:not(:disabled):not([aria-busy='true']):hover {
@apply bg-primaryHover;
}
}
&[data-variant='light'] {
@apply text-neutral-900 bg-neutral-300 font-normal border border-transparent;
&:disabled {
@apply opacity-40;
}
&:not(:disabled):not([aria-busy='true']):hover {
@apply bg-neutral-400;
}
}
&[aria-busy='true'] {
@apply cursor-wait;
color: transparent !important;
}
&:disabled {
@apply cursor-not-allowed;
}
}
.input {
@apply w-full rounded-lg bg-transparent py-3 px-4 text-base;
@apply text-neutral-900 placeholder:text-neutral-600 caret-neutral-700;
@apply focus:placeholder:text-neutral-300 placeholder:transition-colors;
@apply focus:border-neutral-600 disabled:bg-neutral-300 transition-colors;
@apply border-neutral-400 disabled:border-transparent;
}