Skip to content

Commit

Permalink
style: improved class naming
Browse files Browse the repository at this point in the history
fix: broken css
  • Loading branch information
JasonLovesDoggo committed Dec 5, 2023
1 parent 8560a20 commit ffae7bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/static/core/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ body > nav {
background: var(--cd-bg);
}

#countdown.soon-very1 {
#countdown.ending-5m {
color: #ac8300;
}

#countdown.soon-very2 {
#countdown.ending-1m {
color: #d56500;
}

#countdown.soon-very3 {
#countdown.ending-10s {
color: #f23749;
}

Expand Down Expand Up @@ -113,11 +113,11 @@ a:visited {
list-style: none;
padding: 1rem;
margin: 0.5rem;
.}
}

.imgicon {
height: 3rem;
.}
}

.qrcode {
padding: 1rem;
Expand Down Expand Up @@ -246,7 +246,7 @@ input[type=submit]:active {
background: rgba(255, 255, 255, 0.20)
}

input:placeholder {
input::placeholder {
color: #ccc;
}

Expand Down
3 changes: 3 additions & 0 deletions core/static/core/countdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ const newCalculateTime = (start, end, startsPre, startsPost, endsPre, endsPost,
assertClass(e.classList, "soon-very2", d < 60 && d >= 10)
assertClass(e.classList, "soon-very3", d < 10)
}
assertClass(e.classList, "ending-5m", display < 60*5 && display >= 60)
assertClass(e.classList, "ending-1m", display < 60 && display >= 10)
assertClass(e.classList, "ending-10s", display < 10)
// TODO: js i18n
startsPre = startsPre.startsWith('__') ? '' : startsPre
startsPost = startsPost.startsWith('__') ? '' : startsPost
Expand Down

0 comments on commit ffae7bf

Please sign in to comment.