mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-16 01:21:40 -07:00
Add beta site banner (#802)
* Add new BetaBanner and remove legacy Alerts - add BetaBanner component and test - update AboutCard test - remove AlertWrapper component, copy and tests - remove AlertWrapper from all pages - add BetaBanner copy and intl - update logo and color - add styles using USWDS tokens to globals.scss * Add Beta pill to header - refactor Header to use Grid and USWDS - refactor global.scss to use Grid and USWDS - updates snapshots * Move styles from global to modules - move BetaBanner styles from global to modules - move J40Header to a folder component and module styles - add J40Header unit test - add a design-system.scss file that allows USWDS styles in modules - updates snapshots * Update en.json file * Trigger Build * Add initial Spanish content - add README for translation team - add createSpanishJson script - add initial version of es.json - add a spanish string variable to test translation * Add retry and timeout config to stalled test * Remove redundant test cases for AboutCard - update snapshot * Update BetaBanner description
This commit is contained in:
parent
e64e7fda60
commit
b1adc1f69f
42 changed files with 2122 additions and 925 deletions
9
client/src/styles/design-system.scss
Normal file
9
client/src/styles/design-system.scss
Normal file
|
@ -0,0 +1,9 @@
|
|||
@import '../styles/theme/_uswds-theme-general.scss';
|
||||
@import '../styles/theme/_uswds-theme-typography.scss';
|
||||
@import '../styles/theme/_uswds-theme-spacing.scss';
|
||||
@import '../styles/theme/_uswds-theme-color.scss';
|
||||
@import '../styles/theme/_uswds-theme-utilities.scss';
|
||||
|
||||
@import '../styles/uswds-settings.scss';
|
||||
|
||||
@import '../../node_modules/uswds/src/stylesheets/packages/_required.scss';
|
|
@ -20,11 +20,9 @@ There are 3 things that should be included in this file:
|
|||
Instead of having a separate file for these styles, all styles are being placed here.
|
||||
- Global styles
|
||||
- Layout styles
|
||||
-- Header styles
|
||||
-- Main content styles
|
||||
-- Footer styles
|
||||
- Component styles
|
||||
-- Alert styles
|
||||
-- Map styles
|
||||
-- Timeline/process list styles
|
||||
-- About styles
|
||||
|
@ -101,93 +99,9 @@ p.flush {
|
|||
This section will outline styles for components that are on each page. These
|
||||
components include:
|
||||
|
||||
- header styles
|
||||
- main content styles
|
||||
- footer styles
|
||||
|
||||
******************************
|
||||
* HEADER STYLES
|
||||
******************************
|
||||
*/
|
||||
.j40-header,
|
||||
.j40-primary-nav,
|
||||
.j40-header > li > a {
|
||||
|
||||
// Todo color: remove this global
|
||||
// May be able to place importance like this: u-bg('red-warm-50v', !important)
|
||||
color: $primary-color !important;
|
||||
z-index: 5;
|
||||
|
||||
.usa-nav-container {
|
||||
max-width: 76rem;
|
||||
}
|
||||
|
||||
span {
|
||||
// make sure the open close chevron is colored correctly
|
||||
color: $primary-color; // Todo color: remove this global
|
||||
}
|
||||
|
||||
// this is the title
|
||||
@include at-media("desktop") {
|
||||
.j40-title {
|
||||
font-size: 0.9em;
|
||||
padding-bottom: 0; // allows vertical centering on logo and text
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.usa-navbar {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
// this actual site logo
|
||||
.sitelogo {
|
||||
float: left; // allows vertical centering on logo and text
|
||||
margin-right: 0.5rem; // space between logo and text
|
||||
width: 4rem;
|
||||
padding: 0.5rem; // this will change the size of the logo too
|
||||
}
|
||||
|
||||
// nav menu item font
|
||||
.usa-nav__primary {
|
||||
.usa-nav__primary-item {
|
||||
a {
|
||||
margin-bottom: 0.5em; // how far menu is from bottom edge of nav
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// this is forcing the whole toolbar much taller
|
||||
.usa-logo {
|
||||
margin-top: 1.2rem;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include at-media("mobile") {
|
||||
.usa-logo__text {
|
||||
padding-top: 3px; // allows vertical centering on logo and text
|
||||
padding-bottom: 0; // allows vertical centering on logo and text
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.usa-navbar {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.j40-sitelogo {
|
||||
float: left; // allows vertical centering on logo and text
|
||||
margin-right: 0.5em; // space between logo and text
|
||||
width: 3em;
|
||||
padding: 0.4em; // this will change the size of the logo too
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.usa-tag.j40 {
|
||||
background: orange;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
/*
|
||||
******************************
|
||||
|
@ -242,49 +156,9 @@ components include:
|
|||
/***************** COMPONENT STYLES **************************************************************
|
||||
This section will outline styles that are component specific
|
||||
|
||||
- alert
|
||||
- map
|
||||
- timeline
|
||||
- about
|
||||
- accordion
|
||||
|
||||
/*
|
||||
******************************
|
||||
* ALERT STYLES
|
||||
******************************
|
||||
*/
|
||||
|
||||
.j40-sitealert {
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
min-height: 2.5em;
|
||||
margin: 0;
|
||||
|
||||
.j40-sitealert-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.usa-alert {
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.usa-alert__body {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.usa-alert__text {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
******************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue