mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Move parameters out of the …_message components
This commit refactors the `email_message` and `sms_message` UI components to take fewer parameters. `name`, `edit_link` and anything to do with versions are identical for both text and email messages so I’ve moved them to the pages where you choose a template or see the versions. This commit also tidies up the wording and styling of the template history stuff.
This commit is contained in:
38
app/assets/stylesheets/components/message.scss
Normal file
38
app/assets/stylesheets/components/message.scss
Normal file
@@ -0,0 +1,38 @@
|
||||
.message {
|
||||
|
||||
&-name {
|
||||
@include bold-24;
|
||||
margin: 20px 0 5px 0;
|
||||
}
|
||||
|
||||
&-updated-at {
|
||||
@include copy-16;
|
||||
color: $secondary-text-colour;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
&-use-links {
|
||||
|
||||
@include copy-16;
|
||||
margin-top: -7px;
|
||||
color: $secondary-text-colour;
|
||||
|
||||
a {
|
||||
@include core-19;
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.primary {
|
||||
@include bold-19;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user