Ensure all content scales with base font-size
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
.avatar {
|
||||
border-radius: 5px;
|
||||
border-radius: var(--space-xxs);
|
||||
transition: filter var(--transition-md) ease-out;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
}
|
||||
|
||||
.content a:focus img {
|
||||
box-shadow: 0 0 0 2px #fff, 0 0 0 6px var(--color-light-blue);
|
||||
box-shadow: var(--image-focus);
|
||||
filter: brightness(125%);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
.content .wp-caption {
|
||||
background-color: #fff;
|
||||
border: 1px solid var(--color-light-grey);
|
||||
border-radius: 4px;
|
||||
border-radius: var(--space-xxs);
|
||||
display: inline-block;
|
||||
margin: 0 0 var(--space-sm);
|
||||
padding: var(--space-sm);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -26,7 +26,7 @@
|
||||
}
|
||||
|
||||
.logo__link:focus {
|
||||
box-shadow: 0 0 0 2px #fff, 0 0 0 6px var(--color-light-blue);
|
||||
box-shadow: var(--image-focus);
|
||||
}
|
||||
|
||||
.logo__link:before {
|
||||
@@ -36,7 +36,7 @@
|
||||
background-size: 100%;
|
||||
content: "";
|
||||
display: block;
|
||||
filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5));
|
||||
filter: drop-shadow(0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.5));
|
||||
padding-bottom: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.menu {
|
||||
background-color: var(--color-dark-blue);
|
||||
border-radius: 50%;
|
||||
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
|
||||
box-shadow: 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.25);
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: var(--menu-size);
|
||||
|
||||
46
css/nav.css
46
css/nav.css
@@ -26,7 +26,7 @@
|
||||
.nav__content {
|
||||
background-color: var(--color-dark-blue);
|
||||
bottom: 0;
|
||||
box-shadow: 6px 0 4px rgba(0, 0, 0, 0.25);
|
||||
box-shadow: 0.25rem 0 0.25rem rgba(0, 0, 0, 0.25);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -57,8 +57,8 @@
|
||||
.nav__title-link {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
width: var(--icon-size-xl);
|
||||
height: var(--icon-size-xl);
|
||||
border-radius: 50%;
|
||||
transition: box-shadow var(--transition-fs) ease-out;
|
||||
}
|
||||
@@ -71,7 +71,7 @@
|
||||
}
|
||||
|
||||
.nav__title-link:focus {
|
||||
box-shadow: 0 0 0 2px var(--color-dark-blue), 0 0 0 4px #fff;
|
||||
box-shadow: 0 0 0 0.1rem var(--color-dark-blue), 0 0 0 0.2rem #fff;
|
||||
}
|
||||
|
||||
.nav__title-link-image {
|
||||
@@ -85,41 +85,41 @@
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 32px;
|
||||
height: var(--icon-size-sm);
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 15px;
|
||||
right: var(--space-sm);
|
||||
top: var(--space-sm);
|
||||
transition:
|
||||
box-shadow var(--nav-transition-duration) ease-out,
|
||||
filter var(--nav-transition-duration) ease-out;
|
||||
width: 32px;
|
||||
width: var(--icon-size-sm);
|
||||
}
|
||||
|
||||
.nav__close:focus {
|
||||
box-shadow: 0 3px 0 0 #fff;
|
||||
box-shadow: 0 0.1rem 0 0 #fff;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.nav__close:hover {
|
||||
filter: drop-shadow(0 0 2px #fff);
|
||||
filter: drop-shadow(0 0 0.1rem #fff);
|
||||
}
|
||||
|
||||
.nav__close-bar {
|
||||
background-color: #fff;
|
||||
border-radius: 2px;
|
||||
height: 4px;
|
||||
left: 4px;
|
||||
border-radius: 8%;
|
||||
height: 8%;
|
||||
position: absolute;
|
||||
transition: transform var(--nav-transition-duration) ease-out var(--nav-transitionDuration);
|
||||
top: 14px;
|
||||
width: 24px;
|
||||
left: 0;
|
||||
transition: transform var(--nav-transition-duration) ease-out var(--nav-transition-duration);
|
||||
transform: translateY(-50%);
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nav__close-text {
|
||||
left: -10000px;
|
||||
position: absolute;
|
||||
top: -10000px;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,11 +149,11 @@
|
||||
}
|
||||
|
||||
.nav__link:hover {
|
||||
text-shadow: 0 0 2px #fff;
|
||||
text-shadow: 0 0 0.1rem #fff;
|
||||
}
|
||||
|
||||
.nav__link:focus {
|
||||
box-shadow: 0 3px 0 0 #fff;
|
||||
box-shadow: 0 0.1rem 0 0 #fff;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -177,11 +177,11 @@
|
||||
}
|
||||
|
||||
.nav__social-link:focus {
|
||||
box-shadow: 0 3px 0 0 #fff;
|
||||
box-shadow: 0 0.1rem 0 0 #fff;
|
||||
}
|
||||
|
||||
.nav__social-link:hover {
|
||||
filter: drop-shadow(0 0 2px #fff);
|
||||
filter: drop-shadow(0 0 0.1rem #fff);
|
||||
}
|
||||
|
||||
.nav.is-open .nav__content {
|
||||
@@ -189,9 +189,9 @@
|
||||
}
|
||||
|
||||
.nav.is-open .nav__close-bar:nth-of-type(1) {
|
||||
transform: rotate(45deg);
|
||||
transform: translateY(-50%) rotate(45deg);
|
||||
}
|
||||
|
||||
.nav.is-open .nav__close-bar:nth-of-type(2) {
|
||||
transform: rotate(-45deg);
|
||||
transform: translateY(-50%) rotate(-45deg);
|
||||
}
|
||||
|
||||
@@ -22,16 +22,7 @@
|
||||
.pagination__current {
|
||||
font-weight: 700;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pagination__current:after {
|
||||
background-color: var(--color-light-blue);
|
||||
bottom: -1px;
|
||||
content: '';
|
||||
left: 0;
|
||||
height: 2px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
box-shadow: var(--link-focus);
|
||||
}
|
||||
|
||||
.pagination__link,
|
||||
|
||||
@@ -12,8 +12,9 @@
|
||||
border-radius: 0;
|
||||
color: var(--color-near-black);
|
||||
font-family: var(--heading-font-family);
|
||||
max-width: 150px;
|
||||
padding: 10px;
|
||||
font-size: var(--size-body-small);
|
||||
max-width: 8rem;
|
||||
padding: var(--space-xs);
|
||||
}
|
||||
|
||||
.search__submit {
|
||||
@@ -21,5 +22,6 @@
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-family: var(--heading-font-family);
|
||||
min-width: 100px;
|
||||
font-size: var(--size-body-small);
|
||||
min-width: 5rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user