chore: clean up css — generic styles where they make sense; remove deprecated styles, fragments of utility nonsense etc

This commit is contained in:
Cory Dransfeldt 2024-06-14 14:30:43 -07:00
parent d73d791989
commit 8708b71227
No known key found for this signature in database
54 changed files with 137 additions and 244 deletions

View file

@ -1,24 +1,24 @@
.addon-links {
display: grid;
gap: var(--sizing-sm);
grid-template-columns: repeat(1,minmax(0,1fr));
grid-template-columns: repeat(1, 1fr);
& div > h2 {
margin-top: 0;
}
& div:last-of-type h2 {
& div:last-of-type h2 {
margin-top: var(--sizing-base);
}
&.link-list {
& .link-list {
margin-bottom: 0;
}
}
@media screen and (min-width: 768px) {
.addon-links {
grid-template-columns: repeat(2,minmax(0,1fr));
grid-template-columns: repeat(2, 1fr);
& div:last-of-type h2 {
margin-top: 0;

View file

@ -1,21 +1,21 @@
.badge-grid {
display: grid;
gap: var(--sizing-md);
grid-template-columns: repeat(3,minmax(0,1fr));
grid-template-columns: repeat(3, 1fr);
margin-top: var(--sizing-2xl);
& > * {
& > * {
display: flex;
justify-content: center;
}
img {
& img {
image-rendering: pixelated;
}
}
@media screen and (min-width: 768px) {
.badge-grid {
grid-template-columns: repeat(4,minmax(0,1fr));
grid-template-columns: repeat(4, 1fr);
}
}
}

View file

@ -27,73 +27,41 @@
border-color: var(--gray-light);
}
&.warning {
border-color: var(--warning);
& p a:hover,
& p a:active,
& p a:focus {
color: var(--warning);
}
& svg {
stroke: var(--warning);
}
}
&.error {
border-color: var(--error);
& p a:hover,
& p a:active,
& p a:focus {
color: var(--error);
}
& svg {
stroke: var(--error);
}
}
&.npm {
border-color: var(--brand-npm);
& p a:hover,
& p a:active,
& p a:focus {
color: var(--brand-npm);
}
& svg {
stroke: var(--brand-npm);
}
}
&.github {
border-color: var(--brand-github);
& p a:hover,
& p a:active,
& p a:focus {
color: var(--brand-github);
}
& svg {
stroke: var(--brand-github);
}
}
&.warning,
&.error,
&.npm,
&.github,
&.rss {
border-color: var(--brand-rss);
&.warning {
--border-color: var(--warning);
}
&.error {
--border-color: var(--error);
}
&.npm {
--border-color: var(--brand-npm);
}
&.github {
--border-color: var(--brand-github);
}
&.rss {
--border-color: var(--brand-rss);
}
border-color: var(--border-color);
& p a:hover,
& p a:active,
& p a:focus {
color: var(--brand-rss);
color: var(--border-color);
}
& svg {
stroke: var(--brand-rss);
stroke: var(--border-color);
}
}
}

View file

@ -1,5 +1,5 @@
button {
&:not(.theme-toggle, .share) {
&:not(.theme-toggle) {
border-radius: var(--rounded-full);
padding: var(--sizing-sm) var(--sizing-lg);
margin: 0 var(--sizing-xs) var(--sizing-md) 0;
@ -17,9 +17,9 @@ button {
transition-property: all;
}
&:not(.theme-toggle, .share, .active):hover,
&:not(.theme-toggle, .share, .active):active,
&:not(.theme-toggle, .share, .active):focus {
&:not(.theme-toggle, .active):hover,
&:not(.theme-toggle, .active):active,
&:not(.theme-toggle, .active):focus {
background-color: var(--accent-color-hover);
border-color: var(--accent-color-hover);
transition-timing-function: var(--transition-ease-in-out);
@ -37,9 +37,9 @@ button {
background: transparent;
}
&.secondary:not(.theme-toggle, .share):hover,
&.secondary:not(.theme-toggle, .share):active,
&.secondary:not(.theme-toggle, .share):focus {
&.secondary:not(.theme-toggle):hover,
&.secondary:not(.theme-toggle):active,
&.secondary:not(.theme-toggle):focus {
color: var(--accent-color-hover);
background: transparent;
}

View file

@ -36,7 +36,6 @@ textarea:focus {
list-style: none;
& li {
margin-top: var(--sizing-sm);
margin-bottom: var(--sizing-sm);
margin: var(--sizing-sm) 0;
}
}

View file

@ -1,18 +0,0 @@
.mastodon-post-wrapper {
border-bottom: 1px solid var(--gray-light);
margin-bottom: var(--sizing-base);
padding-bottom: var(--sizing-base);
& dl {
display: flex;
flex-direction: row;
}
& dd {
margin-left: var(--sizing-xs);
&:not(:last-child) {
margin-right: var(--sizing-lg);
}
}
}

View file

@ -43,7 +43,7 @@
content: '';
top: 0;
left: 1px;
box-shadow: inset 0 -70px 50px -40px #000;
box-shadow: inset 0 -70px 50px -40px var(--black);
width: calc(100% - 2px);
height: calc(100% - 1px);
}

View file

@ -2,6 +2,9 @@
margin-bottom: var(--sizing-base);
& .item {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
&:not(:last-of-type) {
@ -15,19 +18,23 @@
& img {
border: 1px solid var(--accent-color);
}
& img {
width: calc(var(--sizing-3xl) * 1.5);
height: calc(var(--sizing-3xl) * 1.5);
}
& .meta {
& .meta,
& .presentation {
justify-content: start;
gap: var(--sizing-md);
width: calc(55% - var(--sizing-lg));
}
& .meta {
display: flex;
flex-direction: row;
align-items: center;
}
& .meta-text {
display: flex;
flex-direction: column;
@ -37,37 +44,28 @@
& .title {
font-weight: var(--font-weight-bold);
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
line-height: 1.5;
}
& .title,
& .subtext,
& .subtext p {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
& .subtext p,
& .timestamp {
line-height: 1.5;
}
& .subtext,
& .timestamp {
font-size: var(--font-size-sm);
}
& .title,
& .subtext,
& .timestamp {
line-height: 1.5;
white-space: nowrap;
}
& .timestamp {
margin-left: var(--sizing-lg);
text-align: right;
white-space: nowrap;
}
& .presentation {
display: flex;
flex-direction: row;
width: calc(55% - var(--sizing-lg));
}
& .count {
@ -79,17 +77,10 @@
}
}
& .item,
& .meta {
display: flex;
flex-direction: row;
align-items: center;
}
&.grid {
display: grid;
gap: var(--sizing-sm);
grid-template-columns: repeat(2,minmax(0,1fr));
grid-template-columns: repeat(2, 1fr);
margin-bottom: var(--sizing-base);
& .item {
@ -127,7 +118,7 @@
}
&.grid {
grid-template-columns: repeat(3,minmax(0,1fr));
grid-template-columns: repeat(3, 1fr);
& .item img {
width: calc(var(--sizing-3xl) * 2);

View file

@ -1,3 +1,3 @@
youtube-video {
margin-block: var(--sizing-base);
margin-bottom: var(--sizing-base);
}