Skip to content

Commit b6c35bc

Browse files
committed
added button back and it works on all pages
1 parent 6c49607 commit b6c35bc

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

_includes/nav.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div id="info-banner">
44
<p>ATTENTION ALUMNI & MEMBERS: The 50th Anniversary will be held from April 10th-12th, 2026!</p>
55
<p>Find out more at <a href="https://50th.csh.rit.edu">50th.csh.rit.edu</a></p>
6+
<button id="close-banner" onclick="document.getElementById('info-banner').style.display='none'"></button>
67
</div>
78

89
<div class="container">

assets/css/main.scss

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,30 @@ a.btn {
159159
background-color: #B0197E;
160160
color: #fff;
161161
text-align: center;
162-
padding: 10px 20px;
162+
padding: 10px 40px;
163163
width: 100%;
164164
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
165165
}
166166

167167
#info-banner p {
168168
margin: 0;
169169
display: inline-block;
170+
171+
position: relative;
172+
}
173+
174+
#close-banner {
175+
background: none;
176+
border: none;
177+
font-size: 16px;
178+
cursor: pointer;
179+
margin-left: 10px;
180+
color: #fff;
181+
182+
183+
position: fixed;
184+
top: 10px;
185+
right: 20px;
170186
}
171187

172188
#info-banner a {
@@ -178,6 +194,14 @@ a.btn {
178194
color: white;
179195
}
180196

197+
@media screen and (min-width: 1100px) {
198+
#close-banner {
199+
top: 20px;
200+
right: 30px;
201+
}
202+
}
203+
204+
181205
@import "typography";
182206
@import "nav";
183207
@import "slider";

0 commit comments

Comments
 (0)