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