forked from hashdocs/hashdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
214 lines (183 loc) · 4.13 KB
/
globals.css
File metadata and controls
214 lines (183 loc) · 4.13 KB
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
@tailwind base;
@tailwind components;
@tailwind utilities;
.tooltip {
border-radius: 6px;
color: rgb(200, 50, 100);
}
@media print {
.no-print {
display: none;
}
}
@tailwind base;
*,
html,
body {
@apply font-sans outline-blue-700;
}
input,
input[type],
select,
select[multiple],
textarea {
@apply placeholder:text-gray-400 focus:border-blue-700 focus:ring-blue-700;
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
@apply m-0 appearance-none;
}
[type='checkbox']:focus,
[type='radio']:focus {
outline: none;
box-shadow: none;
/* removing custom properties as well, if not required elsewhere */
--tw-ring-offset-shadow: 0 0 0 0 transparent;
--tw-ring-shadow: 0 0 0 0 transparent;
}
.hashdocs-scrollbar {
@apply overflow-auto;
}
::-webkit-scrollbar {
width: 8px;
height: 8px; /* width of the entire scrollbar */
}
/* For the track (progress bar) of the scrollbar */
::-webkit-scrollbar-track {
background: transparent; /* color of the tracking area */
}
/* For the handle (movable part) of the scrollbar */
::-webkit-scrollbar-thumb {
background: #e5e7eb;
border-radius: 4px; /* color of the scroll thumb */
}
/* When hovering over the scroll thumb */
::-webkit-scrollbar-thumb:hover {
background: #d5d7db; /* color when hovering over the scroll thumb */
}
.fixed-layout {
table-layout: fixed;
}
.icon path {
stroke: currentColor;
}
.no-select {
user-select: none;
}
/* ----------------------------- Rotating border ---------------------------- */
@keyframes rotate-spin {
from {
transform: translate(-50%, -50%) rotate(0);
}
to {
transform: translate(-50%, -50%) rotate(360deg);
}
}
.rotating-border {
--border-radius: 1rem;
--border-size: 0.5rem;
--border-bg: conic-gradient(red);
--padding: 1rem;
position: relative;
overflow: hidden;
font-size: 2rem;
padding: calc(var(--padding) + var(--border-size));
border-radius: var(--border-radius);
display: inline-block;
}
.rotating-border::before {
content: '';
display: block;
background: var(--border-bg);
width: calc(150%);
height: calc(250%);
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 0.75rem;
z-index: -2;
animation: rotate-spin 10s linear infinite;
}
.rotating-border::after {
content: '';
position: absolute;
inset: var(--border-size);
z-index: -1;
background: #fcfcfc;
border-radius: 0.75rem;
backdrop-filter: blur(20px);
}
.rotating-border--google {
--border-radius: 0.5rem;
--border-size: 0.25rem;
--border-bg: conic-gradient(
#e5e7eb00 0turn 0.125turn,
#e5e7eb00 0.125turn 0.25turn,
#e5e7eb00 0.25turn 0.375turn,
#e5e7eb00 0.375turn 0.5turn,
#e5e7eb00 0.5turn 0.625turn,
#e5e7eb00 0.625turn 0.75turn,
#e5e7eb00 0.75turn 0.875turn,
#15803d 0.99turn 1turn
);
}
/* ---------------------------------- PULSE --------------------------------- */
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* --------------------------------- SHIMMER -------------------------------- */
.shimmer-effect {
animation: shimmer 1.5s infinite;
background: linear-gradient(
to right,
var(--shimmer-from, #f9fafb) 0%,
#f3f4f6 20%,
var(--shimmer-from, #f9fafb) 40%,
var(--shimmer-from, #f9fafb) 100%
);
background-size: 800px 104px;
position: relative;
}
@keyframes shimmer {
0% {
background-position: -468px 0;
}
100% {
background-position: 468px 0;
}
}
.animate-pulse-slow {
animation: pulse 4s infinite; /* 4s is the total animation time for all components */
}
/* --------------------------- BACKGROUND BLINK --------------------------- */
.bg-blink {
animation: blink 0.5s linear 2;
}
@keyframes blink {
0% {
@apply bg-transparent;
}
50% {
@apply bg-gray-200;
}
100% {
@apply bg-transparent;
}
}
.calendly-popup {
min-height: 700px !important;
}
.text-gray-gradient {
background: linear-gradient(to right, rgb(107, 114, 128), rgb(55, 65, 81), rgb(55, 65, 81));
background-clip: text;
color: transparent;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}