Skip to content

Commit 8ff4236

Browse files
authored
Fix CSS to center the text in transition banner (Cloud-CV#4741)
1 parent ad75d29 commit 8ff4236

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

frontend/src/css/modules/main-header.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
box-shadow: 0 0 10px $light-black;
4040
}
4141
}
42-
4342
.announcement-banner {
4443
position: fixed;
4544
top: 0;
@@ -49,8 +48,13 @@
4948
z-index: 1000;
5049
background-color: $dark-gray;
5150
color: $light-gray;
52-
padding: 10px 0;
5351
text-align: center;
52+
53+
display: flex;
54+
justify-content: center;
55+
/* horizontally center */
56+
align-items: center;
57+
/* vertically center */
5458
}
5559

5660
@media only screen and (max-width: $med-screen) {

0 commit comments

Comments
 (0)