Skip to content

Commit 8828885

Browse files
committed
add styling for banner
1 parent 648b3a2 commit 8828885

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

client/styles/components/_banner.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.banner {
2+
width: 100%;
3+
min-height: 2.2rem;
4+
text-align: center;
5+
padding: 1rem;
6+
background-color: #DFED33; // yellow from p5.js website
7+
border-bottom: 1px solid #000;
8+
9+
a {
10+
color: #000;
11+
}
12+
13+
a:hover {
14+
text-decoration: underline;
15+
}
16+
17+
@media (max-width: 770px) {
18+
min-height: 3.3rem;
19+
}
20+
}
21+
22+
.banner-close-button {
23+
display: flex;
24+
flex-direction: column;
25+
align-items: center;
26+
justify-content: center;
27+
height: 20px;
28+
width:20px;
29+
float: right;
30+
}

client/styles/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
@import 'components/skip-link';
5656
@import 'components/stars';
5757
@import 'components/admonition';
58+
@import 'components/banner';
5859

5960
@import 'layout/dashboard';
6061
@import 'layout/ide';

0 commit comments

Comments
 (0)