Css now uses variables for all its colors

This commit is contained in:
ari 2025-04-21 00:57:42 -04:00 committed by Astra
parent 5da1494081
commit 824fcf2575
No known key found for this signature in database
4 changed files with 46 additions and 34 deletions

View file

@ -24,10 +24,10 @@
display: flex;
text-align: start;
align-items: center;
background-color: #12082b;
background-color: var(--background-color);
padding: 0px;
margin-bottom: 15px;
border: 1px solid #8054f0;
border: 1px solid var(--border-color);
}
#accountName {
margin-left: 10px;
@ -43,6 +43,6 @@
width: 50px;
height: 50px;
margin: 0px;
border-right: #8054f0 1px solid;
border-right: var(--border-color) 1px solid;
}
</style>

View file

@ -77,8 +77,8 @@
<a
id="postLink"
href="{Config.FRONTEND_URL}/profile/{post.authorDid}/post/{post.recordName}"
>{moment(post.timenotstamp).isBefore(moment().subtract(1, 'month'))
? moment(post.timenotstamp).format('MMM D, YYYY')
>{moment(post.timenotstamp).isBefore(moment().subtract(1, "month"))
? moment(post.timenotstamp).format("MMM D, YYYY")
: moment(post.timenotstamp).fromNow()}</a
>
</p>
@ -145,14 +145,15 @@
</div>
<style>
a:hover {
text-decoration: underline;
}
#postContainer {
display: flex;
flex-direction: column;
border: 1px solid #8054f0;
background-color: black;
border: 1px solid var(--border-color);
background-color: var(--background-color);
margin-bottom: 15px;
overflow-wrap: break-word;
}
@ -161,29 +162,29 @@
flex-direction: row;
align-items: center;
justify-content: start;
background-color: #1f1145;
background-color: var(--header-background-color);
padding: 0px 0px;
height: fit-content;
border-bottom: 1px solid #8054f0;
border-bottom: 1px solid var(--border-color);
font-weight: bold;
overflow-wrap: break-word;
height: 60px;
}
#displayName {
color: white;
color: var(--text-color);
font-size: 1.2em;
padding: 0;
margin: 0;
}
#handle {
color: #8054f0;
color: var(--border-color);
font-size: 0.8em;
padding: 0;
margin: 0;
}
#postLink {
color: #8054f0;
color: var(--border-color);
font-size: 0.8em;
padding: 0;
margin: 0;
@ -193,8 +194,8 @@
text-align: start;
flex-direction: column;
padding: 10px;
background-color: #0d0620;
color: white;
background-color: var(--content-background-color);
color: var(--text-color);
overflow-wrap: break-word;
}
#replyingText {
@ -224,7 +225,7 @@
height: 100%;
margin: 0px;
margin-left: 0px;
border-right: #8054f0 1px solid;
border-right: var(--border-color) 1px solid;
}
#carouselContainer {
position: relative;
@ -249,16 +250,16 @@
.indicator {
width: 8px;
height: 8px;
background-color: #4a4a4a;
background-color: var(--indicator-inactive-color);
}
.indicator.active {
background-color: #8054f0;
background-color: var(--indicator-active-color);
}
#prevBtn,
#nextBtn {
background-color: rgba(31, 17, 69, 0.7);
color: white;
border: 1px solid #8054f0;
color: var(--text-color);
border: 1px solid var(--border-color);
width: 30px;
height: 30px;
cursor: pointer;