Repository navigation
Expand file tree
/
Copy pathsidebar.css
More file actions
119 lines (104 loc) · 3.2 KB
/
Copy pathsidebar.css
File metadata and controls
119 lines (104 loc) · 3.2 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
/* Angie Sidebar - CSS Variables */
:root {
--angie-sidebar-z-index: 1200; /* below MUI popups, elementor popups and media library modal */
--angie-sidebar-width: 330px;
--angie-sidebar-transition: margin 0.3s ease-in-out, transform 0.3s ease-in-out;
/* Direction-aware transform values for sidebar positioning */
--angie-sidebar-hide-transform: translateX(-100%); /* LTR: hide to the left */
--angie-sidebar-show-transform: translateX(0);
}
/* RTL-specific transform values */
[dir="rtl"] {
--angie-sidebar-hide-transform: translateX(100%); /* RTL: hide to the right */
}
/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
:root {
--angie-sidebar-transition: none;
}
}
/* Apply transitions only when user is actively toggling */
body.angie-sidebar-transitioning {
transition: var(--angie-sidebar-transition) !important;
}
body.angie-sidebar-transitioning #angie-sidebar-container {
transition: var(--angie-sidebar-transition) !important;
}
/* Layout (default) - Push content */
@media (min-width: 768px) {
body.angie-sidebar-active {
padding-inline-start: var(--angie-sidebar-width) !important;
}
#angie-sidebar-container {
position: fixed;
top: 0;
inset-inline-start: 0;
width: var(--angie-sidebar-width);
height: 100vh;
z-index: var(--angie-sidebar-z-index) !important; /* below elementor popups and media library modal */
background: #FCFCFC;
transform: var(--angie-sidebar-hide-transform);
outline: none;
overflow: hidden;
/* No default transition - only when transitioning */
}
/* Resize handle */
#angie-sidebar-container::after {
content: '';
position: absolute;
top: 0;
inset-inline-end: 0;
width: 4px;
height: 100%;
cursor: ew-resize;
background: transparent;
z-index: 1000001;
}
/* Pink border during resize */
#angie-sidebar-container.angie-resizing {
border-inline-end-color: #ff69b4 !important;
border-inline-end-width: 2px !important;
}
/* Disable iframe pointer events during resize */
#angie-sidebar-container.angie-resizing iframe#angie-iframe {
pointer-events: none !important;
}
}
/* Active states */
body.angie-sidebar-active #angie-sidebar-container {
transform: var(--angie-sidebar-show-transform);
}
/* Studio mode - sidebar takes full width */
@media (min-width: 768px) {
html.angie-studio-active body.angie-sidebar-active #angie-sidebar-container {
width: 100%;
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
#angie-sidebar-container {
border-color: #000;
box-shadow: none;
}
}
/* Screen reader only class */
.angie-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Plugin conflict resolution */
body.angie-sidebar-active {
/* Reset common conflicting styles */
box-sizing: border-box !important;
position: relative !important;
}
#angie-sidebar-toggle {
z-index: 99999 !important;
}