|
103 | 103 | } |
104 | 104 | } |
105 | 105 |
|
106 | | -/* Fix for desktop layout overlap - make sidebar wider */ |
| 106 | +/* Fix for desktop layout overlap - force sidebar to be wider */ |
107 | 107 | @media screen and (min-width: 769px) { |
108 | | - /* Increase sidebar width to accommodate content */ |
| 108 | + /* Force increase sidebar width to accommodate content */ |
109 | 109 | header { |
110 | | - position: fixed; |
111 | | - left: 0; |
112 | | - top: 0; |
113 | | - width: 320px; /* Increased from 270px to fit the buttons */ |
114 | | - padding: 50px 30px 50px 30px; /* Add more horizontal padding */ |
| 110 | + position: fixed !important; |
| 111 | + left: 0 !important; |
| 112 | + top: 0 !important; |
| 113 | + width: 340px !important; /* Wider to fit buttons comfortably */ |
| 114 | + padding: 50px 20px !important; |
115 | 115 | } |
116 | 116 |
|
117 | | - /* Add left margin to main content to match new sidebar width */ |
| 117 | + /* Force main content to move right to avoid overlap */ |
118 | 118 | .wrapper { |
119 | | - width: auto; |
120 | | - margin-left: 380px; /* Sidebar width (320px) + spacing (60px) */ |
121 | | - margin-right: 50px; |
122 | | - padding-right: 20px; |
123 | | - max-width: none; |
| 119 | + width: auto !important; |
| 120 | + margin-left: 380px !important; /* Sidebar width + spacing */ |
| 121 | + margin-right: 50px !important; |
| 122 | + padding-right: 20px !important; |
| 123 | + max-width: none !important; |
| 124 | + } |
| 125 | + |
| 126 | + /* Make sure sidebar content has room */ |
| 127 | + header .inner { |
| 128 | + width: 100% !important; |
124 | 129 | } |
125 | 130 | } |
126 | 131 |
|
127 | 132 | /* For medium-width screens */ |
128 | 133 | @media screen and (min-width: 769px) and (max-width: 1100px) { |
129 | 134 | header { |
130 | | - width: 300px; |
131 | | - padding: 50px 25px 50px 25px; |
| 135 | + width: 320px !important; |
132 | 136 | } |
133 | 137 |
|
134 | 138 | .wrapper { |
135 | | - margin-left: 350px; |
136 | | - margin-right: 30px; |
| 139 | + margin-left: 360px !important; |
| 140 | + margin-right: 30px !important; |
137 | 141 | } |
138 | 142 | } |
139 | 143 |
|
140 | 144 | /* For very wide screens */ |
141 | 145 | @media screen and (min-width: 1400px) { |
142 | 146 | .wrapper { |
143 | | - margin-left: 380px; |
144 | | - margin-right: 100px; |
| 147 | + margin-left: 380px !important; |
| 148 | + margin-right: 100px !important; |
145 | 149 | } |
146 | 150 | } |
147 | 151 |
|
148 | 152 | /* Ensure mobile layout is unaffected */ |
149 | 153 | @media screen and (max-width: 768px) { |
150 | 154 | header { |
151 | | - position: relative; |
152 | | - width: 100%; |
153 | | - padding: 20px; |
| 155 | + position: relative !important; |
| 156 | + width: 100% !important; |
| 157 | + padding: 20px !important; |
154 | 158 | } |
155 | 159 |
|
156 | 160 | .wrapper { |
157 | | - width: auto; |
158 | | - margin: 0; |
159 | | - padding: 0 20px; |
160 | | - max-width: 100%; |
| 161 | + width: auto !important; |
| 162 | + margin: 0 !important; |
| 163 | + padding: 0 20px !important; |
| 164 | + max-width: 100% !important; |
161 | 165 | } |
162 | 166 | } |
163 | 167 |
|
|
0 commit comments