Skip to content

Commit

Permalink
Merge pull request #1914 from yadvirkaur/overlayLogo
Browse files Browse the repository at this point in the history
Fix: Ensure consistent logo display across Bani Overlay layouts
  • Loading branch information
Gauravjeetsingh authored Jul 31, 2024
2 parents 9a47c7b + 424573d commit 5131a7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 31 deletions.
6 changes: 4 additions & 2 deletions www/obs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
}
}

document.querySelectorAll('.content-top, .content-bottom').forEach(el => {
document.querySelectorAll('.content-top, .content-bars-bottom').forEach(el => {
// Clear styles added by other overrides
document.querySelectorAll('span.o-gurbani, span.o-translation').forEach(spanEl => {
spanEl.style.backgroundColor = 'transparent';
Expand Down Expand Up @@ -305,6 +305,9 @@
<div><span class="gurmukhi o-gurbani"> </span></div>
<div><span class="o-translation"> </span></div>
</div>
<div class="logo-wrapper" >
<img alt="SikhiToTheMax" src="./sikhi-max-logo-white.png" class="sttm-logo-white" />
</div>
</div>
<div class="other-layouts">
<div class="content-top">
Expand All @@ -321,7 +324,6 @@
</div>
</div>
<div class="logo-wrapper">
<img alt="SikhiToTheMax" src="./sikhi-max-logo.png" class="sttm-logo" />
<img alt="SikhiToTheMax" src="./sikhi-max-logo-white.png" class="sttm-logo-white" />
</div>
</div>
Expand Down
38 changes: 9 additions & 29 deletions www/src/scss/obs/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ body {
}

.layout-top {
.content-top {
padding-top: 3vh;
}

.o-gurbani,
.o-translation {
padding: 0.5% 3vw;
Expand All @@ -109,16 +105,6 @@ body {
position: absolute;
}

.content-top {
.content-bar {
padding-top: 8px;
}
}

.content-bottom {
padding-bottom: 3vh;
}

.o-gurbani,
.o-translation {
padding: 0.5% 3vw;
Expand All @@ -143,7 +129,6 @@ body {
width: auto;
}
.logo-wrapper {
border-radius: 2px;
top: 2vh;
}

Expand Down Expand Up @@ -185,14 +170,12 @@ body {
}

.logo-wrapper {
background: transparent;
display: block;
height: 100px;
position: relative;
right: 0;
width: 100%;
.sttm-logo {
display: none;
}

.sttm-logo-white {
display: block;
margin: auto;
Expand Down Expand Up @@ -244,11 +227,15 @@ body {
}

.logo-wrapper {
border-radius: 0;
bottom: 0;
height: 100%;
position: absolute;
right: 0;

.sttm-logo-white {
display: block;
margin: auto;
}
}
}

Expand Down Expand Up @@ -354,23 +341,16 @@ body {
}

.logo-wrapper {
align-items: center;
background: #fff;
border-radius: 5px;
display: inline-flex;
justify-content: center;
filter: drop-shadow(1px 1px rgba(0, 0, 0, 1));
padding: 2vh 2vw;
position: fixed;
right: 2vh;

.sttm-logo,
.sttm-logo-white {
display: block;
width: 12vw;
}

.sttm-logo-white {
display: none;
}
}

.logo-off {
Expand Down

0 comments on commit 5131a7c

Please sign in to comment.