Refactor CSS State classes

This commit is contained in:
2018-02-26 19:10:56 +00:00
parent 59f7f7b623
commit 84e1c2cc72
5 changed files with 13 additions and 9 deletions

View File

@@ -8,7 +8,7 @@
.Logo-image { .Logo-image {
filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5)); filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5));
max-width: 360px; max-width: 320px;
transition: filter var(--transitionMd) ease-in; transition: filter var(--transitionMd) ease-in;
} }

View File

@@ -48,11 +48,11 @@
top: -10000px; top: -10000px;
} }
.Menu--visible { .Menu.is-visible {
transform: translateX(0); transform: translateX(0);
} }
.Menu--minimized { .Menu.is-minimized {
opacity: 0.5; opacity: 0.5;
transform: translateX(-20px) translateY(-20px); transform: translateX(-20px) translateY(-20px);
} }

View File

@@ -10,6 +10,10 @@
.Metadata { .Metadata {
border-bottom: none; border-bottom: none;
} }
.Metadata.is-locked {
position: fixed;
}
} }
.Metadata-date { .Metadata-date {

View File

@@ -87,7 +87,7 @@
margin-top: 0; margin-top: 0;
} }
.Nav--open::after { .Nav.is-open::after {
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;
} }
@@ -130,15 +130,15 @@
filter: drop-shadow(0 0 2px #fff); filter: drop-shadow(0 0 2px #fff);
} }
.Nav--open .Nav-content { .Nav.is-open .Nav-content {
transform: translateX(0); transform: translateX(0);
} }
.Nav--open .Nav-closeBar:nth-of-type(1) { .Nav.is-open .Nav-closeBar:nth-of-type(1) {
transform: rotate(45deg); transform: rotate(45deg);
} }
.Nav--open .Nav-closeBar:nth-of-type(2) { .Nav.is-open .Nav-closeBar:nth-of-type(2) {
transform: rotate(-45deg); transform: rotate(-45deg);
} }

View File

@@ -1,6 +1,6 @@
<section class="Logo"> <section class="Logo">
<a class="Logo-link" href="<?php echo home_url(); ?>"> <a class="Logo-link" href="<?php echo home_url(); ?>">
<img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="Logo" class="Logo-image"> <img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="Logo" class="Logo-image">
</a> </a>
</section> </section>