Skip to content

Commit 2382c73

Browse files
authored
Merge pull request #335 from MITLibraries/use-319
USE-319: Styling global alert towards our Banner component
2 parents affff5d + 521c453 commit 2382c73

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed
Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
.wrap-notices {
2-
background-color: $blue-bright;
3-
text-align: center;
2+
background-color: $color-bg-information;
43

5-
.title {
6-
font-size: $fs-xlarge;
4+
h1.title {
5+
background-color: $color-bg-information;
6+
color: $color-cyan-50;
7+
font-size: $fs-large;
8+
font-weight: $fw-semibold;
9+
letter-spacing: 0.02em;
710
line-height: 1.4;
11+
text-shadow: none;
12+
13+
a {
14+
color: $color-text-oncolor;
15+
text-decoration-color: $color-cyan-500;
16+
text-underline-offset: 0.5rem;
17+
18+
&:hover {
19+
text-decoration-color: $color-cyan-200;
20+
}
21+
}
822
}
923
}

app/assets/stylesheets/partials/_variables.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ $color-red-600: #e50000;
2626
$color-yellow-500: #FFD700;
2727

2828
// CYAN
29+
$color-cyan-25: #F0FCFF;
30+
$color-cyan-50: #E5F9FF;
31+
$color-cyan-200: #99E9FF;
2932
$color-cyan-500: #00C8FF;
3033
$color-cyan-700: #00A0CC;
34+
$color-cyan-800: #007899;
35+
$color-cyan-975: #00141A;
3136

3237
// BLUE
3338
$color-blue-25: #F0F0FF;
@@ -57,6 +62,9 @@ $color-icon-primary: $color-gray-950;
5762
$color-icon-success: $color-green-800;
5863
$color-icon-danger: $color-red-500;
5964

65+
// BACKGROUNDS
66+
$color-bg-information: $color-cyan-800;
67+
6068
// BORDERS
6169
$color-border-default: $color-gray-400;
6270

@@ -82,6 +90,7 @@ $heading-font: neue-haas-grotesk-display, "Helvetica Neue", Helvetica, Arial, sa
8290
// Font sizes, weights, and line heights
8391
// 1 rem is 10 px...
8492
$fs-base: 1.6rem; // Pentagram originally specified 1.4
93+
$fs-large: 1.8rem;
8594
$fs-xlarge: 2.4rem;
8695
$fs-xxlarge: 3.2rem;
8796
$fs-xxxlarge: 4.2rem; // unused by default

0 commit comments

Comments
 (0)