Prevent displacement of nav items when selected. (#35)

This commit is contained in:
Antonio Garro 2020-06-14 21:00:56 +02:00 committed by GitHub
parent e9a24f95ec
commit 7ffa86175c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,6 +367,7 @@ caption {
.patterns { .patterns {
overflow: auto; overflow: auto;
margin-top: 1.5rem; margin-top: 1.5rem;
min-width: max-content;
} }
.patterns * { .patterns * {
margin-top: 0; margin-top: 0;
@ -382,7 +383,6 @@ caption {
list-style: none; list-style: none;
} }
.patterns li + li { .patterns li + li {
margin-top: 0.75rem;
} }
.patterns ul ul { .patterns ul ul {
margin-left: 0.75rem; margin-left: 0.75rem;
@ -394,6 +394,8 @@ caption {
align-items: baseline; align-items: baseline;
font-weight: bold; font-weight: bold;
padding: 0 1rem; padding: 0 1rem;
padding-top: 0.5em;
padding-bottom: 0.5em;
} }
.pattern a:focus { .pattern a:focus {
outline: none; outline: none;
@ -407,8 +409,6 @@ caption {
background-color: #111; background-color: #111;
clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%); clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
color: #fefefe; color: #fefefe;
padding-top: 0.5em;
padding-bottom: 0.5em;
} }
/* Menu button */ /* Menu button */