Skip to content

Commit

Permalink
move attempt styles to main css file
Browse files Browse the repository at this point in the history
  • Loading branch information
tangentstorm committed Feb 26, 2024
1 parent 90d4c12 commit fefa0e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 6 additions & 0 deletions tanco/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ a:hover { color: #0162c2ff; background: #f3f0e5; }
.diff pre { display: block; margin: 0; padding: 0; }
.diff del { color: #000; background: #fdd; }
.diff ins { color: #000; background: #dfd; }

/** flexbox with narrow progress in left column, wide test detail in right column */
#attempt { display: flex; }
#progress { flex: 1; max-width: 150px; }
#test-detail { flex: 3; }
#state { width: calc(100% - 230px); }
10 changes: 2 additions & 8 deletions tanco/templates/attempt.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@


<div id="attempt">
<style>
/** flexbox with narrow progress in left column, wide test detail in right column */
#attempt { display: flex; }
#progress { flex: 1; max-width: 150px; }
#test-detail { flex: 3; }
</style>
<!-- list progress (passed tests) -->
<div id="progress">
<h3>passed tests</h3>
Expand All @@ -53,7 +47,7 @@ <h3>passed tests</h3>
</div>
</div>

<div style="width: calc(100% - 230px);">
<div id="state">
{% include "state.html" %}
<div id="buttons" hx-swap="none">
<button disabled class="has-tooltip" hx-post="/a/{{ data.code }}/cmd/test">test
Expand Down Expand Up @@ -89,4 +83,4 @@ <h3>passed tests</h3>

</div>

</span>
</span>

0 comments on commit fefa0e8

Please sign in to comment.