Skip to content

Commit 0a845b5

Browse files
Merge pull request #1981 from GSA/main
Merge to Staging
2 parents 50aefb4 + 22c42e0 commit 0a845b5

File tree

19 files changed

+118
-62
lines changed

19 files changed

+118
-62
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ commands:
8989
name: Clean node_modules
9090
command: rm -rf node_modules
9191
- nodejs/install:
92-
node-version: "20.10.0"
92+
node-version: "20.20.0"
9393
install-yarn: true
9494
- run:
9595
name: Yarn Install
@@ -366,4 +366,4 @@ workflows:
366366
mysql_version:
367367
- "8.0.40"
368368
node_version:
369-
- 20.10.0
369+
- 20.20.0

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.20.2
1+
20.20.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ENV RAILS_ENV="production" \
1818
BUNDLE_WITHOUT="development"
1919

2020
# Install JavaScript dependencies | Needed in base due coffee-rails gem
21-
ARG NODE_VERSION=20.10.0
21+
ARG NODE_VERSION=20.20.0
2222
ARG YARN_VERSION=latest
2323
ENV PATH=/usr/local/node/bin:$PATH
2424
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
1313
# Workaround for PhantomJS: https://github.com/DMOJ/online-judge/pull/1270
1414
ENV OPENSSL_CONF /etc/ssl/
1515

16-
ENV NODE_VERSION 20.10.0
16+
ENV NODE_VERSION 20.20.0
1717
ENV NVM_DIR=/root/.nvm
1818

1919
COPY package.json yarn.lock ./
Lines changed: 1 addition & 0 deletions
Loading

app/assets/stylesheets/sites/_site_header.less

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
background-color: @white;
33
z-index: @zindexStickyBar;
44
}
5+
56
.l-site-header-inner {
67
.clearfix();
78
border-bottom: 1px solid @siteMainNavBackground;
8-
height: 60px;
9+
height: @siteSelectorHeight;
910
padding-right: 28px;
10-
padding-left: 20px;
11+
12+
&.--is-inactive {
13+
height: @siteSelectorHeightForInactiveSite;
14+
}
1115

1216
.site-display-name {
1317
.muted();
1418
overflow: hidden;
1519
font-size: (@baseFontSize * 1.1);
1620
line-height: 20px;
17-
padding: 20px 0 0;
21+
padding: 1.25rem 0 0;
22+
margin-left: 1.25rem; // Needs to be the same as the left padding of .site-header-inactive
1823
> span.label {
1924
.off-screen-text();
2025
}
@@ -89,3 +94,37 @@
8994
cursor: pointer;
9095
}
9196
}
97+
98+
// Style for the inactive banner
99+
.site-header-inactive {
100+
margin-top: 9px;
101+
color: #1b1b1b;
102+
103+
width: 100%;
104+
105+
border-top: 1px solid #1B2F36;
106+
border-left: .5rem solid #ffbe2e;
107+
background-color: #faf3d1;
108+
109+
padding: .5rem 1.25rem;
110+
111+
p {
112+
margin: 0;
113+
}
114+
115+
.usa-banner__content{
116+
display: inline-flex;
117+
align-items: center;
118+
119+
&::before {
120+
content: "";
121+
display: inline-block;
122+
width: 24px;
123+
height: 24px;
124+
margin-right: 5px;
125+
background: asset-url('uswds/usa-icons/warning.svg');
126+
}
127+
128+
}
129+
130+
}

app/assets/stylesheets/sites/_site_sub_nav_heading.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
padding-left: 28px;
1111
z-index: @zindexStickyBar;
1212

13+
&.--is-inactive {
14+
top: @siteNavTopForInactiveSite;
15+
}
16+
1317
h2 {
1418
color: @textColor;
1519
float: left;

app/assets/stylesheets/sites/_sites.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ a.menu:hover, a.menu:focus {
4242
padding-top: @contentWithoutSiteTop;
4343
}
4444

45+
&.--is-inactive {
46+
padding-top: @contentTopForInactiveSite;
47+
}
4548
.outline-on-focus();
4649
}
4750

app/assets/stylesheets/sites/_variables.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@
1818

1919
@siteSelectorTop: @navbarHeight;
2020
@siteSelectorHeight: 60px;
21+
@siteInactiveHeader: 46px;
22+
@siteSelectorHeightForInactiveSite: (@siteSelectorHeight + @siteInactiveHeader);
2123

2224
@siteNavTop: @navbarHeight + @siteSelectorHeight + 1;
25+
@siteNavTopForInactiveSite: (@siteNavTop + @siteInactiveHeader);
26+
2327
@siteMainNavWidth: 80px;
2428
@siteMainNavItemHeight: 60px;
2529
@siteSubNavWidth: 199px;
@@ -29,6 +33,7 @@
2933

3034
@subNavHeadingHeight: 60px;
3135
@contentTop: (@siteNavTop + @subNavHeadingHeight);
36+
@contentTopForInactiveSite: (@contentTop + @siteInactiveHeader);
3237
@contentWithoutSiteTop: @subNavHeadingHeight;
3338
@zindexStickyBar: 900;
3439

app/assets/stylesheets/sites/modules/_layouts.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ body {
5656
.l-site-wrapper {
5757
position: fixed;
5858
top: @siteNavTop;
59+
60+
&.--is-inactive {
61+
top: @siteNavTopForInactiveSite;
62+
}
5963
}
6064

6165
.l-site-nav {
@@ -82,4 +86,8 @@ body {
8286
margin-left: (@siteMainNavWidth + @siteSubNavWidth + 1);
8387
padding-top: @siteNavTop;
8488
width: auto;
89+
90+
&.--is-inactive {
91+
padding-top: @siteNavTopForInactiveSite;
92+
}
8593
}

0 commit comments

Comments
 (0)