forked from lukevella/rallly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
208 lines (180 loc) · 5.36 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
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
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html {
@apply h-full overflow-auto bg-slate-50 text-base text-slate-600;
}
body,
#__next {
@apply h-full;
}
p {
@apply mb-4;
}
h1,
h2,
h3,
h4,
h5 {
@apply mb-4 font-sans font-semibold text-slate-700;
}
h1 {
@apply text-2xl;
}
h2 {
@apply text-xl;
}
input {
@apply outline-none;
}
a {
@apply rounded-sm font-medium text-primary-500 outline-none hover:text-primary-500 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-1;
}
label {
@apply mb-1 block text-sm text-slate-800;
}
button {
@apply cursor-default outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-1;
}
#floating-ui-root {
@apply absolute z-50 w-full;
}
}
@layer components {
.formField {
@apply mb-4;
}
.input {
@apply appearance-none rounded-md border border-gray-200 px-2 py-1 text-slate-700 shadow-sm placeholder:text-slate-400 focus:border-primary-500 focus:ring-1 focus:ring-primary-500;
}
input.input {
@apply h-9;
}
.input-lg {
@apply input px-3 py-3;
}
.input-error {
@apply border-rose-500 ring-1 ring-rose-400 focus:border-rose-400 focus:ring-rose-500;
}
.checkbox {
@apply h-4 w-4 rounded border-slate-300 text-primary-500 shadow-sm focus:ring-primary-500;
}
.btn {
@apply inline-flex h-9 cursor-default select-none items-center justify-center whitespace-nowrap rounded-md border px-3 font-medium shadow-sm transition-all;
}
a.btn {
@apply cursor-pointer hover:no-underline;
}
.btn-default {
@apply btn bg-white text-slate-700 hover:bg-slate-100/10 active:bg-slate-500/10;
}
a.btn-default {
@apply hover:text-primary-500;
}
.btn-danger {
@apply btn border-rose-600 bg-rose-500 text-white hover:bg-rose-600 focus-visible:ring-rose-500;
}
.btn-link {
@apply inline-flex items-center text-primary-500 underline;
}
.btn.btn-disabled {
text-shadow: none;
@apply pointer-events-none border-gray-200 bg-slate-500/5 text-gray-400 shadow-none;
}
.btn-primary {
text-shadow: rgb(0 0 0 / 20%) 0px 1px 1px;
@apply btn border-primary-600 bg-primary-500 text-white hover:bg-opacity-90 focus-visible:ring-primary-500 active:bg-primary-600;
}
a.btn-primary {
@apply text-white;
}
.segment-button {
@apply flex h-9 text-center shadow-sm;
}
.segment-button button {
@apply inline-flex grow items-center justify-center border-t border-b border-r bg-white px-4 font-medium transition-colors first:rounded-l first:border-l last:rounded-r hover:bg-slate-50 focus:z-10 focus-visible:ring-2 focus-visible:ring-offset-0 active:bg-slate-100;
}
.segment-button .segment-button-active {
@apply text-primary-500;
}
.menu {
@apply relative;
}
.menu-items {
@apply absolute z-30 mt-1 overflow-hidden rounded border bg-white shadow-md focus:outline-none;
}
.menu-item {
@apply block w-full cursor-default select-none truncate px-4 py-2 text-left;
}
button[disabled] {
@apply cursor-not-allowed;
}
.card {
@apply border-y bg-white p-4 shadow-sm md:rounded-lg md:border;
}
}
@layer components {
.heading {
@apply text-xl text-primary-500;
}
.subheading {
@apply mb-16 text-4xl font-bold text-slate-800;
}
.heading-sm {
@apply text-xl font-bold text-slate-700;
}
.text {
@apply text-lg leading-relaxed text-slate-500;
}
}
@layer utilities {
.bg-pattern {
background-color: #f9fafb;
background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%239C92AC' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
}
}
.rbc-time-view {
@apply border-0 border-t border-b border-slate-100;
}
.rbc-today {
@apply bg-blue-50 bg-opacity-50;
}
.rbc-day-slot .rbc-time-slot {
@apply border-gray-100;
}
.rbc-time-content > * + * > * {
@apply border-gray-200;
}
.rbc-time-header.rbc-overflowing,
.rbc-time-header-content,
.rbc-header {
@apply border-gray-200;
}
.rbc-time-content {
@apply border-t-0;
}
.rbc-time-view .rbc-allday-cell {
@apply hidden;
}
.rbc-label.rbc-time-header-gutter {
@apply border-b;
}
.rbc-current-time-indicator {
@apply bg-rose-400;
}
.rbc-header + .rbc-header {
@apply border-l-0;
}
.rbc-header a {
@apply block h-full w-full p-1 no-underline hover:text-gray-700;
}
.rbc-day-slot .rbc-events-container {
@apply mr-2;
}
.rbc-slot-selection {
@apply rounded-sm bg-green-50 text-green-500;
}
.rbc-header.rbc-today {
@apply bg-white text-rose-600;
}