Skip to content

Commit e8134d1

Browse files
committed
Define heading font-sizes, tweak active link styles
1 parent 55a2bc0 commit e8134d1

File tree

3 files changed

+40
-6
lines changed

3 files changed

+40
-6
lines changed

assets/_sass/base/_typography.scss

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ul {
5050
font-size: 1rem;
5151

5252
@media (min-width: $bp-md) {
53-
font-size: 18px;
53+
font-size: rem-calc(18px);
5454
}
5555
}
5656

@@ -66,7 +66,41 @@ h5,
6666
h6 {
6767
font-weight: 700;
6868
line-height: 1.25em;
69-
margin: 0 0 0.6em 0;
69+
margin: 0 0 0.3em 0;
70+
}
71+
72+
h1,
73+
.h1 {
74+
font-size: rem-calc(28px);
75+
@media (min-width: $bp-md) { font-size: rem-calc(35px);}
76+
}
77+
78+
h2,
79+
.h2 {
80+
font-size: rem-calc(22px);
81+
@media (min-width: $bp-md) { font-size: rem-calc(28px);}
82+
}
83+
84+
h3,
85+
.h3 {
86+
font-size: rem-calc(22px);
87+
@media (min-width: $bp-md) { font-size: rem-calc(24px);}
88+
}
89+
90+
h4,
91+
.h4 {
92+
font-size: rem-calc(18px);
93+
@media (min-width: $bp-md) { font-size: rem-calc(20px);}
94+
}
95+
96+
h5,
97+
.h5 {
98+
font-size: rem-calc(18px);
99+
}
100+
101+
h6,
102+
.h6 {
103+
font-size: rem-calc(16px);
70104
}
71105

72106
////////////////////
@@ -76,13 +110,15 @@ h6 {
76110
a {
77111
color: $teal;
78112
text-decoration: underline;
79-
text-underline-offset: 2px;
80113
text-decoration-color: transparent;
114+
text-underline-offset: .15em;
115+
text-decoration-thickness: .1em;
81116
transition: 0.2s all ease-in-out;
82117
transition-property: color, text-decoration;
83118
}
84119

85120
a:hover,
86-
a:focus {
121+
a:focus,
122+
a.active {
87123
text-decoration-color: currentColor;
88124
}

assets/_sass/component/_footer.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ main { flex: 1; }
7575
&:hover,
7676
&:focus {
7777
color: $white;
78-
text-decoration: underline;
7978
}
8079
}
8180

assets/_sass/component/_navigation.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ $nav-zindex: 10;
114114
&:focus,
115115
&.active {
116116
color: $teal;
117-
text-decoration: underline;
118117
}
119118
}
120119
}

0 commit comments

Comments
 (0)