Skip to content

Commit

Permalink
Add more styling to the 'rendered preview' badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Feb 18, 2024
1 parent 910faac commit ca2aaba
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions webapp/public/style_domjudge.css
Original file line number Diff line number Diff line change
Expand Up @@ -635,3 +635,14 @@ blockquote {
margin-right: 2em;
font-weight: normal;
}

.rendered-preview-badge {
position: relative;
float: right;
background-color: Gainsboro;
padding-left: 6px;
padding-right: 6px;
border-radius: 4px;
font-style: italic;
font-size: smaller;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="mb-3">
<div class="card">
<div class="card-body">
<label class="form-label text-muted"><small>rendered preview</small></label>
<label class="rendered-preview-badge">rendered preview</label>
<div id="messagepreview">Start typing to see a preview of your message</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion webapp/templates/team/clarification_add.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="mb-3">
<div class="card">
<div class="card-body">
<label class="form-label text-muted"><small>rendered preview</small></label>
<label class="rendered-preview-badge">rendered preview</label>
<div id="messagepreview">Start typing to see a preview of your message</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion webapp/templates/team/clarification_add_modal.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="mb-3">
<div class="card">
<div class="card-body">
<label class="form-label text-muted"><small>rendered preview</small></label>
<label class="rendered-preview-badge">rendered preview</label>
<div id="messagepreview">Start typing to see a preview of your message</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="mb-3">
<div class="card">
<div class="card-body">
<label class="form-label text-muted"><small>rendered preview</small></label>
<label class="rendered-preview-badge">rendered preview</label>
<div id="messagepreview">Start typing to see a preview of your message</div>
</div>
</div>
Expand Down

0 comments on commit ca2aaba

Please sign in to comment.