forked from lukevella/rallly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
212 lines (185 loc) · 5.17 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
209
210
211
212
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html,
body,
#__next {
height: 100%;
}
body {
@apply text-base text-slate-600;
}
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 font-medium text-indigo-500 hover:text-indigo-400 hover:underline;
}
label {
@apply mb-1 block text-sm text-slate-800;
}
button {
@apply focus:outline-none focus:ring-indigo-600;
}
#portal {
@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-indigo-500 focus:ring-1 focus:ring-indigo-500;
}
input.input {
@apply h-9;
}
.input-lg {
@apply input px-3 py-3;
}
.input-error {
@apply border-rose-500 bg-rose-50 placeholder:text-rose-500 focus:border-rose-400 focus:ring-rose-500;
}
.checkbox {
@apply h-4 w-4 cursor-pointer rounded border-slate-300 text-indigo-500 shadow-sm focus:ring-indigo-500;
}
.btn {
@apply inline-flex h-9 items-center justify-center whitespace-nowrap rounded-md border px-3 font-medium shadow-sm transition-all focus:outline-none focus:ring-2 focus:ring-offset-1;
}
a.btn {
@apply hover:no-underline;
}
.btn-default {
@apply btn border-gray-300 bg-white text-gray-700 hover:text-indigo-500 focus:border-transparent focus:ring-indigo-500 focus:ring-offset-0 active:bg-gray-100;
}
.btn-danger {
@apply btn border-rose-600 bg-rose-500 text-white hover:bg-rose-600 focus:ring-rose-500;
}
.btn-link {
@apply inline-flex items-center text-indigo-500 underline;
}
.btn-default.btn-disabled {
@apply bg-gray-50;
}
.btn-disabled {
@apply pointer-events-none;
}
.btn-primary {
@apply btn border-indigo-600 bg-indigo-500 text-white hover:bg-opacity-90 focus:ring-indigo-500;
}
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:ring-2 active:bg-slate-100;
}
.segment-button .segment-button-active {
@apply text-indigo-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;
}
[data-popper-placement="bottom"] .tooltip-arrow {
@apply bottom-full border-b-slate-700;
}
[data-popper-placement="top"] .tooltip-arrow {
@apply top-full border-t-slate-700;
}
}
@layer components {
.heading {
@apply text-xl text-indigo-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 {
.contain-paint {
contain: paint;
}
.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;
}