Skip to content

Commit a1d9fab

Browse files
committed
chore: remove hardcode css to hide site banner
fix: rollback top banner styles
1 parent 063e5ca commit a1d9fab

File tree

4 files changed

+64
-24
lines changed

4 files changed

+64
-24
lines changed

summit/scss/general-summit-landing-page.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ footer {
145145
@media (min-width: 767px) {
146146
.top-site-banner {
147147
height: 78px;
148-
position: fixed; }
148+
}
149149
.top-site-banner .container {
150150
flex-direction: row;
151151
justify-content: space-between;

themes/openstack/scss/combined.scss

Lines changed: 61 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,24 +2599,47 @@ ul.resource-links li a:hover {
25992599

26002600
/* site banner */
26012601

2602+
.top-site-banner-button {
2603+
border-radius: 5px;
2604+
border: 1px solid #2f729c;
2605+
font-size: 90%;
2606+
padding: 3px 10px 3px;
2607+
background-color: #2f729c;
2608+
display: inline-block;
2609+
color: white;
2610+
text-transform: uppercase;
2611+
}
2612+
2613+
.top-site-banner-button:visited{
2614+
color: white;
2615+
}
2616+
2617+
.top-site-banner-button:hover {
2618+
text-decoration: none;
2619+
background-color: #F0F9FE;
2620+
color: #2f729c;
2621+
}
2622+
26022623
.top-site-banner {
26032624
position: relative;
2604-
top: 40px;
26052625
left: 0;
26062626
z-index: 20;
2607-
width: 100vw;
2608-
background-color: black;
2609-
height: 174px;
2610-
display: none;
2627+
background-color: #4D96C7;
2628+
color: #F0F9FE;
26112629
}
26122630

26132631
.top-site-banner .container {
26142632
display: flex;
2615-
flex-direction: column;
2616-
padding: 20px 0;
2633+
padding: 10px 0;
26172634
margin: 0 auto;
2618-
text-align: center;
2619-
max-width: 400px;
2635+
flex-direction: row;
2636+
text-align: left;
2637+
max-width: unset;
2638+
}
2639+
2640+
.top-site-banner .button{
2641+
margin-left: 20px;
2642+
margin-top: -2px;
26202643
}
26212644

26222645
.top-site-banner .container:before {
@@ -2628,7 +2651,7 @@ ul.resource-links li a:hover {
26282651
}
26292652

26302653
.top-site-banner .logo {
2631-
width: 180px;
2654+
width: 40px;
26322655
margin: 0 auto;
26332656
}
26342657

@@ -2660,18 +2683,41 @@ ul.resource-links li a:hover {
26602683
margin: 10px 0;
26612684
}
26622685

2686+
@media (max-width: 767px) {
2687+
.top-site-banner .text{
2688+
margin: 10px 0 10px 5px;
2689+
}
2690+
.top-site-banner .button {
2691+
margin-top: 8px;
2692+
}
2693+
.top-site-banner .container{
2694+
padding: 0;
2695+
}
2696+
}
2697+
2698+
@media (max-width: 574px) {
2699+
.top-site-banner .text{
2700+
line-height: unset;
2701+
}
2702+
.top-site-banner-button{
2703+
width: 100px;
2704+
margin: 5px
2705+
}
2706+
.top-site-banner .button {
2707+
margin-top: 8px;
2708+
}
2709+
}
2710+
26632711
@media (min-width: 767px) {
26642712
.top-site-banner {
2665-
height: 78px;
2666-
position: fixed;
2713+
height: 40px;
26672714
}
26682715

26692716
.top-site-banner .container {
26702717
flex-direction: row;
2671-
justify-content: space-between;
26722718
text-align: left;
26732719
max-width: unset;
2674-
padding: 14px 0;
2720+
padding: 10px 0;
26752721
}
26762722

26772723
.top-site-banner .logo {
@@ -2680,7 +2726,6 @@ ul.resource-links li a:hover {
26802726

26812727
.top-site-banner .text {
26822728
margin: 0;
2683-
max-width: 400px;
26842729
}
26852730

26862731
.top-site-banner .btn {
@@ -2690,7 +2735,7 @@ ul.resource-links li a:hover {
26902735

26912736
@media (min-width: 991px) {
26922737
.top-site-banner .logo {
2693-
width: 246px;
2738+
width: 50px;
26942739
}
26952740

26962741
.top-site-banner .btn {
@@ -2700,7 +2745,6 @@ ul.resource-links li a:hover {
27002745

27012746
.top-site-banner .text {
27022747
font-size: 16px;
2703-
max-width: 525px;
27042748
}
27052749
}
27062750

themes/openstack/scss/home-page.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3688,7 +3688,6 @@ ul.resource-links li a:hover {
36883688
width: 100vw;
36893689
background-color: black;
36903690
height: 174px;
3691-
display: none;
36923691
@media (max-width: 768px) {
36933692
top:0;
36943693
}

themes/openstack/templates/Layout/Includes/SiteBanner.ss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
77
<!-- End Google Tag Manager (noscript) -->
88
<div class="top-site-banner">
99
<div class="container">
10-
<div class="logo">
11-
<img src="/themes/openstack/home_images/Logos/OpenInfra-Berlin2022.svg" />
12-
</div>
1310
<div class="text">
14-
Now you can watch the keynotes that took place during the OpenInfra Summit in Berlin!
11+
OpenInfra Foundation Board Announces Intent to Join the Linux Foundation
1512
</div>
1613
<div class="button">
17-
<a href="https://www.openstack.org/videos/summits/berlin-2022" class="btn btn-default">WATCH NOW!</a>
14+
<a href="https://openinfra.org/blog/openinfra-linux-foundation-collaboration" target="_blank" class="top-site-banner-button">Learn More</a>
1815
</div>
1916
</div>
2017
</div>

0 commit comments

Comments
 (0)