chore: cleanup
This commit is contained in:
parent
9e73dbe4c1
commit
28fe4b21f2
19 changed files with 134 additions and 187 deletions
|
@ -22,7 +22,7 @@ button,
|
|||
color: var(--text-color-inverted);
|
||||
background-color: var(--accent-color);
|
||||
appearance: none;
|
||||
transition-property: border;
|
||||
transition: color var(--transition-duration-default) var(--transition-ease-in-out);
|
||||
}
|
||||
|
||||
&:not(.theme-toggle, .active):hover,
|
||||
|
@ -31,7 +31,5 @@ button,
|
|||
&:not(.theme-toggle, .active):focus-within {
|
||||
background-color: var(--accent-color-hover);
|
||||
border-color: var(--accent-color-hover);
|
||||
transition-timing-function: var(--transition-ease-in-out);
|
||||
transition-duration: var(--transition-duration-default);
|
||||
}
|
||||
}
|
|
@ -17,12 +17,12 @@ textarea {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
form:has(+ *),
|
||||
label:has(input):has(+ *) input,
|
||||
input[type="text"]:has(+ *),
|
||||
input[type="email"]:has(+ *),
|
||||
input[type="search"]:has(+ *),
|
||||
textarea:has(+ *),
|
||||
form:has(+ *) {
|
||||
textarea:has(+ *) {
|
||||
margin-bottom: var(--spacing-base);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
|
||||
& a:hover .item::after,
|
||||
& a:active .item::after {
|
||||
border-color: var(--accent-color-hover)
|
||||
border-color: var(--accent-color-hover);
|
||||
}
|
||||
|
||||
& .meta-text {
|
||||
|
|
|
@ -3,17 +3,28 @@ menu {
|
|||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
& .menu-primary {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.menu-primary {
|
||||
position: absolute;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
gap: var(--spacing-md);
|
||||
top: 0;
|
||||
left: 0;
|
||||
gap: 0;
|
||||
margin-top: calc(var(--spacing-3xl) * 2.25);
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
z-index: 3;
|
||||
|
||||
& > li {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: var(--spacing-sm) 0;
|
||||
width: 100%;
|
||||
color: var(--text-color);
|
||||
background: var(--background-color);
|
||||
|
||||
& a {
|
||||
text-decoration: none;
|
||||
|
@ -21,96 +32,46 @@ menu {
|
|||
|
||||
& .icon > svg,
|
||||
& .active > svg {
|
||||
display: block;
|
||||
display: none;
|
||||
}
|
||||
|
||||
& .icon > span,
|
||||
& .active > span {
|
||||
display: none;
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& .menu-button-container {
|
||||
display: none;
|
||||
margin-left: var(--spacing-md);
|
||||
|
||||
& svg {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:hover svg,
|
||||
&:focus svg,
|
||||
&:focus-within svg,
|
||||
&:active svg {
|
||||
stroke: var(--accent-color-hover);
|
||||
}
|
||||
}
|
||||
|
||||
& #menu-toggle {
|
||||
#menu-toggle {
|
||||
display: none;
|
||||
|
||||
&:checked + .menu-button-container {
|
||||
& .menu-closed {
|
||||
.menu-closed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
& .menu-open {
|
||||
.menu-open {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:checked) + .menu-button-container {
|
||||
& .menu-closed {
|
||||
.menu-closed {
|
||||
display: block;
|
||||
}
|
||||
|
||||
& .menu-open {
|
||||
.menu-open {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.menu-primary {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
gap: 0;
|
||||
margin-top: calc(var(--spacing-3xl) * 2.25);
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
z-index: 3;
|
||||
|
||||
& > li {
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0;
|
||||
padding: var(--spacing-sm) 0;
|
||||
width: 100%;
|
||||
color: var(--text-color);
|
||||
background: var(--background-color);
|
||||
|
||||
& .icon > svg,
|
||||
& .active > svg {
|
||||
display: none;
|
||||
}
|
||||
|
||||
& .icon > span,
|
||||
& .active > span {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#menu-toggle ~ .menu-primary li {
|
||||
& ~ .menu-primary li {
|
||||
height: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#menu-toggle:checked ~ .menu-primary li {
|
||||
&:checked ~ .menu-primary li {
|
||||
border-bottom: var(--border-gray);
|
||||
height: calc(var(--sizing-3xl) * 1.5);
|
||||
|
||||
|
@ -123,11 +84,64 @@ menu {
|
|||
font-size: var(--font-size-lg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-button-container {
|
||||
display: unset;
|
||||
width: var(--sizing-svg-base);
|
||||
height: var(--sizing-svg-base);
|
||||
|
||||
& svg {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.menu-primary {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin: 0;
|
||||
gap: var(--spacing-md);
|
||||
position: relative;
|
||||
top: unset;
|
||||
left: unset;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.menu-primary > li {
|
||||
width: auto;
|
||||
height: auto;
|
||||
padding: 0;
|
||||
background: none;
|
||||
|
||||
& .icon > svg,
|
||||
& .active > svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
& .icon > span,
|
||||
& .active > span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#menu-toggle ~ .menu-primary li {
|
||||
height: unset;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#menu-toggle:checked ~ .menu-primary li {
|
||||
height: unset;
|
||||
border: none;
|
||||
|
||||
&:first-child {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-button-container {
|
||||
display: unset;
|
||||
width: var(--sizing-svg-base);
|
||||
height: var(--sizing-svg-base);
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -48,11 +48,9 @@
|
|||
.modal-toggle,
|
||||
.modal-close {
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
vertical-align: middle;
|
||||
|
||||
& svg {
|
||||
cursor: pointer;
|
||||
stroke: var(--accent-color);
|
||||
|
||||
&:hover,
|
||||
|
|
|
@ -65,19 +65,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
& .meta {
|
||||
justify-content: start;
|
||||
gap: var(--spacing-md);
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
width: calc(80% - var(--sizing-lg));
|
||||
}
|
||||
}
|
||||
|
||||
& .meta {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
width: calc(75% - var(--sizing-lg));
|
||||
|
|
|
@ -1,27 +1,25 @@
|
|||
.pagination {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
& button {
|
||||
background: none;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.pagination button {
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
& a {
|
||||
display: flex;
|
||||
}
|
||||
.pagination a {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
& p {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
.pagination p {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
& span.disabled svg[data-tablericon-name^="arrow-"] {
|
||||
cursor: not-allowed;
|
||||
stroke: var(--gray-medium);
|
||||
stroke-width: var(--stroke-width-default);
|
||||
}
|
||||
.pagination span.disabled svg[data-tablericon-name^="arrow-"] {
|
||||
cursor: not-allowed;
|
||||
stroke: var(--gray-medium);
|
||||
stroke-width: var(--stroke-width-default);
|
||||
}
|
Reference in a new issue