Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions app/assets/stylesheets/libraries-global.css
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ hr {
}

.wrap-gridband,
.wrap-notice,
.wrap-header,
.wrap-header-local,
.wrap-breadcrumb,
Expand All @@ -230,6 +231,7 @@ hr {
padding: 10px 4%;
}
.wrap-gridband:after,
.wrap-notice:after,
.wrap-header:after,
.wrap-header-local:after,
.wrap-breadcrumb:after,
Expand Down Expand Up @@ -639,6 +641,9 @@ form .disabled {
.alert p {
margin-bottom: .2rem;
}
.alert.info {
color: #111;
}
.alert.success {
color: #43926a;
}
Expand All @@ -649,6 +654,25 @@ form .disabled {
color: #AC1D22;
}

/* global app style alerts and notices */
.wrap-notices {
background-color: #f3f3f3;
color: #111;
font-size: 1.2rem;
}
.wrap-notices.info {
border-top: 2px solid #ccc;
}
.wrap-notices.success {
border-top: 2px solid #43926a;
}
.wrap-notices.warning {
border-top: 2px solid #faa933;
}
.wrap-notices.error {
border-top: 2px solid #AC1D22;
}

.alert-banner {
display: block;
margin-bottom: 2rem;
Expand Down
8 changes: 8 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

<div class="wrap-page">

<div class="wrap-notices info layout-band">
<div class="wrap-notice">
<div class="alert alert-global" role="alert">
<p>This is a beta service. Try it out or <a href="http://libraries.mit.edu">return to our main site</a>.</p>
</div>
</div>
</div>

<%= render partial: "layouts/site_header" %>

<div class="wrap-outer-content layout-band">
Expand Down