-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
125 lines (111 loc) · 2.74 KB
/
Copy pathstyle.css
File metadata and controls
125 lines (111 loc) · 2.74 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
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
/* Main container for the unicorn scene - full viewport coverage */
#unicorn-root {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #f5f5f5;
z-index: 1;
overflow: hidden;
}
/* Let UnicornStudio canvas fill the entire viewport */
#unicorn-root canvas {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
height: 100vh !important;
object-fit: cover !important; /* Fill viewport completely, crop if needed */
display: block !important;
}
/* Fluid typography and spacing using clamp() for smooth scaling */
:root {
--fluid-spacing: clamp(1rem, 2.5vw, 3rem);
--fluid-text: clamp(0.875rem, 1.5vw, 1.125rem);
}
/* Responsive optimizations - force full coverage */
@media (orientation: portrait) {
#unicorn-root canvas {
/* Force full coverage in portrait */
width: 100vw !important;
height: 100vh !important;
object-fit: cover !important;
}
}
@media (orientation: landscape) {
#unicorn-root canvas {
/* Force full coverage in landscape */
width: 100vw !important;
height: 100vh !important;
object-fit: cover !important;
}
}
/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
#unicorn-root {
/* Enhanced rendering for retina displays */
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
}
}
/* Loading state with fluid scaling */
#unicorn-root:empty::before {
content: "Loading Sandro Clinic...";
color: #666;
font-size: var(--fluid-text);
text-align: center;
padding: var(--fluid-spacing);
}
/* Error state styling */
#unicorn-root .error-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: var(--fluid-spacing);
max-width: 90vw;
}
#unicorn-root .error-container h2 {
font-size: clamp(1.25rem, 3vw, 2rem);
margin-bottom: 1rem;
color: #333;
}
#unicorn-root .error-container p {
font-size: var(--fluid-text);
color: #666;
margin-bottom: 0.5rem;
}
/* Hide scrollbars completely */
body::-webkit-scrollbar {
display: none;
}
body {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* Touch optimization for mobile devices */
@media (hover: none) and (pointer: coarse) {
#unicorn-root {
/* Optimize touch interactions */
touch-action: manipulation;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
}