Skip to content

Commit

Permalink
CTPL-242: Updates to alerts, typography styles
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhagon committed Nov 20, 2024
1 parent 74811a1 commit 85dea48
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 1 deletion.
68 changes: 68 additions & 0 deletions app/assets/stylesheets/nla/_alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@charset "UTF-8";
@import "variables";
@import "nla-custom-bootstrap";

.alert {
border-width: 0;
border-left-style: solid;
border-left-width: 0.25rem;
color: $grey-700;
padding-left: 3rem;
position: relative;

&:before {
position: absolute;
top: 1rem;
left: 1rem;
width: 1rem;
height: 1rem;
font: var(--fa-font-regular);
}

}


.alert-success {
background: $success-light;
border-left-color: $success-dark;

&:before {
content: "\f058";
color: $success-dark;
}
}

.alert-info {
background: $info-light;
border-left-color: $info-dark;

&:before {
content: "\f05a";
color: $info-dark;
}
}

.alert-warning {
background: $warning-light;
border-left-color: $warning-dark;

&:before {
content: "\f06a";
color: $warning-dark;
}
}

.alert-error {
background: $error-light;
border-left-color: $error-dark;

&:before {
content: "\f057";
color: $error-dark;
}
}


.alert p {
margin-bottom: 0;
}
4 changes: 4 additions & 0 deletions app/assets/stylesheets/nla/_dark-mode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
}
}

h1 {
color: $body-color-dark;
}

.al-show-breadcrumb,
.title-container,
.sidebar-section {
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/nla/_nla-arclight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@import "record";
@import "typography";
@import "repository";
@import "alert";

//@import "./components/show_actions";
@import "./components/bookmarks";
Expand Down
12 changes: 12 additions & 0 deletions app/assets/stylesheets/nla/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,16 @@ a.page-link {
&:active {
box-shadow: none;
}
}

h1 {
font-family: $font-family-serif;
color: $body-color;
font-weight: 400;
}

.blacklight-bookmarks {
h1 {
margin-top: 3rem;
}
}
2 changes: 1 addition & 1 deletion app/views/bookmarks/_clear_bookmarks_widget.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
turbo_method: :delete,
turbo_confirm: t('blacklight.bookmarks.clear.action_confirm')
},
class: 'clear-bookmarks btn btn-outline-primary' %>
class: 'clear-bookmarks btn btn-link' %>

0 comments on commit 85dea48

Please sign in to comment.