Skip to content

Commit 5131a7c

Browse files
Merge pull request #1914 from yadvirkaur/overlayLogo
Fix: Ensure consistent logo display across Bani Overlay layouts
2 parents 9a47c7b + 424573d commit 5131a7c

File tree

2 files changed

+13
-31
lines changed

2 files changed

+13
-31
lines changed

www/obs/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
}
206206
}
207207

208-
document.querySelectorAll('.content-top, .content-bottom').forEach(el => {
208+
document.querySelectorAll('.content-top, .content-bars-bottom').forEach(el => {
209209
// Clear styles added by other overrides
210210
document.querySelectorAll('span.o-gurbani, span.o-translation').forEach(spanEl => {
211211
spanEl.style.backgroundColor = 'transparent';
@@ -305,6 +305,9 @@
305305
<div><span class="gurmukhi o-gurbani"> </span></div>
306306
<div><span class="o-translation"> </span></div>
307307
</div>
308+
<div class="logo-wrapper" >
309+
<img alt="SikhiToTheMax" src="./sikhi-max-logo-white.png" class="sttm-logo-white" />
310+
</div>
308311
</div>
309312
<div class="other-layouts">
310313
<div class="content-top">
@@ -321,7 +324,6 @@
321324
</div>
322325
</div>
323326
<div class="logo-wrapper">
324-
<img alt="SikhiToTheMax" src="./sikhi-max-logo.png" class="sttm-logo" />
325327
<img alt="SikhiToTheMax" src="./sikhi-max-logo-white.png" class="sttm-logo-white" />
326328
</div>
327329
</div>

www/src/scss/obs/styles.scss

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ body {
8989
}
9090

9191
.layout-top {
92-
.content-top {
93-
padding-top: 3vh;
94-
}
95-
9692
.o-gurbani,
9793
.o-translation {
9894
padding: 0.5% 3vw;
@@ -109,16 +105,6 @@ body {
109105
position: absolute;
110106
}
111107

112-
.content-top {
113-
.content-bar {
114-
padding-top: 8px;
115-
}
116-
}
117-
118-
.content-bottom {
119-
padding-bottom: 3vh;
120-
}
121-
122108
.o-gurbani,
123109
.o-translation {
124110
padding: 0.5% 3vw;
@@ -143,7 +129,6 @@ body {
143129
width: auto;
144130
}
145131
.logo-wrapper {
146-
border-radius: 2px;
147132
top: 2vh;
148133
}
149134

@@ -185,14 +170,12 @@ body {
185170
}
186171

187172
.logo-wrapper {
188-
background: transparent;
189173
display: block;
190174
height: 100px;
191175
position: relative;
176+
right: 0;
192177
width: 100%;
193-
.sttm-logo {
194-
display: none;
195-
}
178+
196179
.sttm-logo-white {
197180
display: block;
198181
margin: auto;
@@ -244,11 +227,15 @@ body {
244227
}
245228

246229
.logo-wrapper {
247-
border-radius: 0;
248230
bottom: 0;
249231
height: 100%;
250232
position: absolute;
251233
right: 0;
234+
235+
.sttm-logo-white {
236+
display: block;
237+
margin: auto;
238+
}
252239
}
253240
}
254241

@@ -354,23 +341,16 @@ body {
354341
}
355342

356343
.logo-wrapper {
357-
align-items: center;
358-
background: #fff;
359-
border-radius: 5px;
360344
display: inline-flex;
361-
justify-content: center;
345+
filter: drop-shadow(1px 1px rgba(0, 0, 0, 1));
362346
padding: 2vh 2vw;
363347
position: fixed;
364348
right: 2vh;
365349

366-
.sttm-logo,
367350
.sttm-logo-white {
351+
display: block;
368352
width: 12vw;
369353
}
370-
371-
.sttm-logo-white {
372-
display: none;
373-
}
374354
}
375355

376356
.logo-off {

0 commit comments

Comments
 (0)