Skip to content

Commit

Permalink
Merge pull request #13006 from Jim-Dillon/adjust-footer-size
Browse files Browse the repository at this point in the history
Adjust footer size on small screens
  • Loading branch information
anthonydillon committed Jul 12, 2023
2 parents ab175bb + 12680a3 commit e6bef80
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions static/sass/_pattern_footer.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
// Footer pattern styling
@mixin footer-title {
color: $color-mid-dark;
line-height: 1.5;
line-height: 1.25;
margin-bottom: 0;

@media only screen and (max-width: $breakpoint-small) {
cursor: pointer;
}

@media only screen and (min-width: $breakpoint-small) {
line-height: 1.5;
}
}

@mixin ubuntu-p-footer {
Expand Down Expand Up @@ -97,8 +101,8 @@
background-size: 13px 13px;
border-top: 1px solid $color-mid-light;
color: $color-dark;
font-size: 1.2rem;
font-weight: 300;
font-size: 1rem;
font-weight: 400;
margin-top: 0;
max-width: inherit;

Expand Down Expand Up @@ -167,6 +171,7 @@
border-bottom: 1px solid $color-mid-dark;
display: block;
left: auto;
line-height: 2.3;
margin-bottom: -1px;
max-width: inherit;
padding: $sp-small 0 $sp-small $sp-x-large;
Expand All @@ -178,19 +183,18 @@
}

a {
color: $color-mid-dark;
color: $color-x-dark;
}
}

.p-footer--secondary {
padding: $sp-large $sp-small 0;

@media only screen and (min-width: $breakpoint-small) {
padding: 0;
}

@media only screen and (max-width: $breakpoint-small - 1px) {
margin-top: 0;
padding: $sp-large $sp-small 0 $sp-medium !important;
}

a:hover {
Expand All @@ -208,7 +212,7 @@

li {
a {
color: $color-mid-dark;
color: $color-dark;
}
}
}
Expand All @@ -225,12 +229,14 @@
border-top: 1px solid $color-mid-light;
color: $color-dark;
display: block;
font-size: 1.2rem;
font-size: 1rem;
line-height: 1.25;
padding: $sp-medium;

@media only screen and (min-width: $breakpoint-small) {
border: 0;
font-size: 0.8125rem;
line-height: 1.5rem;
padding: 0;
}
}
Expand Down Expand Up @@ -299,6 +305,7 @@

.p-footer--secondary .p-inline-list__item {
display: block;
margin-top: 0.5rem;

@media only screen and (min-width: $breakpoint-small) {
display: inline-block;
Expand Down

0 comments on commit e6bef80

Please sign in to comment.