Skip to content

Commit 3ece046

Browse files
authored
Merge pull request #62 from MITLibraries/rdi-207-global-alert-styles
Adds timdex-ui styles for global alert
2 parents dfa0f1b + 24fb5f8 commit 3ece046

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ change as part of the work.
4949

5050
## Optional Environment Variables
5151

52-
- TBD
52+
- `GLOBAL_ALERT`: The main functionality for this comes from our theme gem, but when set the value will be rendered as
53+
safe html above the main header of the site.
54+
- `TIMDEX_SOURCES`: Comma-separated list of sources to display in the advanced-search source selection element. This
55+
overrides the default which is set in ApplicationHelper.
5356

5457
### Test Environment-only Variables
5558

app/assets/stylesheets/application.css.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@import "partials/_variables";
88
@import "partials/_alerts";
99
@import "partials/_facets";
10+
@import "partials/_global_alerts";
1011
@import "partials/_pagination";
1112
@import "partials/_panels";
1213
@import "partials/_search";
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.wrap-notices {
2+
background-color: $blue-bright;
3+
text-align: center;
4+
5+
.title {
6+
font-size: $fs-xlarge;
7+
line-height: 1.4;
8+
}
9+
}

0 commit comments

Comments
 (0)