Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit de78239

Browse files
committed
Add 18F logo to header
1 parent 37c045b commit de78239

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

_data/header.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ type: extended
2525
# alt: 18F
2626
# external: true
2727

28+
title: Accessibility Guide
29+
30+
logo:
31+
src: /images/18f-logo-black.svg
32+
alt: 18f
33+
2834
# this is a key into _data/navigation.yml
2935
# primary:
3036
# links: primary
@@ -33,4 +39,4 @@ type: extended
3339
primary:
3440
links: primary
3541
secondary:
36-
links: secondary
42+
links: secondary

_sass/_uswds-theme-custom-styles.scss

+22
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ $color-gray-divider: color("gray-20");
1919

2020
$color-gray-border: color("base-dark");
2121

22+
$logo-size-lg: 3rem;
23+
$logo-size-md: 2rem;
2224

2325
// Typography
2426
.usa-prose{
@@ -76,6 +78,26 @@ a:hover {
7678
display: none;
7779
}
7880

81+
// logo
82+
.usa-header.usa-header--extended .usa-logo-img {
83+
height: $logo-size-md;
84+
}
85+
86+
.usa-logo__text {
87+
line-height: $logo-size-md;
88+
}
89+
90+
91+
@include at-media('desktop') {
92+
.usa-header.usa-header--extended .usa-logo-img {
93+
height: $logo-size-lg;
94+
}
95+
96+
.usa-logo__text {
97+
line-height: $logo-size-lg;
98+
}
99+
}
100+
79101
// usa-sidenav
80102

81103
.usa-sidenav a {

0 commit comments

Comments
 (0)