Skip to content

Commit

Permalink
fix embed
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervonk committed Oct 8, 2022
1 parent e2eea2b commit 1b19fa2
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
49 changes: 49 additions & 0 deletions embed/css/task.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,52 @@ body {
transform: translateX(0%);
}
}
#embed-content {
display: flex;
flex-flow: column;
justify-content: space-between;
}
#top-bar {
flex-basis: 45px !important;
flex-grow: 0;
display: flex;
flex-flow: row nowrap;
width: 100%;
align-items: center;
}
#user-image {
height: 45px;
width: auto;
}
#user-name {
color: var(--on-bg);
font-size: 22px;
font-weight: bold;
height: fit-content;
margin-left: 20px;
}
#user-xp-bar {
background-color: var(--progress-bar-bg);
border-radius: 12px;
height: 30px;
width: 100%;
}
#user-xp-bar-fill {
background-color: var(--progress-fill);
border-radius: 10px;
height: 30px;
width: 0%;
min-width: 50px;
box-sizing: border-box;
display: flex;
flex-flow: row nowrap;
align-items: start;
justify-content: stretch;
}
#user-xp-bar-fill-accent {
background-color: var(--progress-fill-accent);
height: 6px;
margin: 5px 16px 0 9px;
border-radius: 5px;
flex-grow: 1;
}
6 changes: 4 additions & 2 deletions embed/task.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@
<!-- user image & xp bar -->
<div id="top-bar">
<img id="user-image" />
<div id="user-name"></div>
<div id="user-name">Name</div>
</div>
<div id="user-xp-bar">
<div id="user-xp-bar-fill"></div>
<div id="user-xp-bar-fill">
<div id="user-xp-bar-fill-accent"></div>
</div>
</div>
</div>
<!-- decor -->
Expand Down

0 comments on commit 1b19fa2

Please sign in to comment.