Skip to content

Commit 05f0ae2

Browse files
committed
Add warning banner
1 parent ed8d6a0 commit 05f0ae2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

warehouse/static/sass/blocks/_notification-bar.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
.notification-bar {
3838
border-bottom: 2px solid $white;
3939
text-align: center;
40-
background-color: darken($brand-color, 10);
40+
background-color: $brand-color-dark;
4141
color: $white;
4242
padding: ($spacing-unit / 2);
4343
position: relative;
@@ -73,13 +73,23 @@
7373
// notification controller is being used.
7474
&--dismissable {
7575
display: none;
76-
padding-right: 55px;
76+
padding: 15px 55px;
7777
}
7878

7979
&--visible {
8080
display: block;
8181
}
8282

83+
&--warning {
84+
background-color: $warn-color;
85+
color: $warn-text;
86+
border-color: darken($primary-color, 10);
87+
88+
a {
89+
color: $warn-text;
90+
}
91+
}
92+
8393
&--danger {
8494
background-color: $danger-color;
8595
}

warehouse/static/sass/settings/_colours.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
$brand-color: #006dad;
1818
$primary-color: #ffd343;
1919
$success-color: #169428;
20-
$warn-color: #f05d22;
20+
$warn-color: #ffdf76;
21+
$warn-text: #664e04;
2122
$danger-color: #D52D40;
2223
$brand-color-soft: lighten($brand-color, 45);
24+
$brand-color-dark: darken($brand-color, 10);
2325

2426
$white: #fff;
2527
$black: #000;

0 commit comments

Comments
 (0)