From 6d2c38b09597e8c108aae14d04d7b292737596b1 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 18 May 2023 02:32:47 -0400 Subject: [PATCH] CSS cleanups --- OpenBench/static/base.css | 6 +--- OpenBench/static/form.css | 40 +++++++++++---------- OpenBench/static/style.css | 21 +++++++---- Templates/OpenBench/Blocks/testsummary.html | 8 +++-- Templates/OpenBench/base.html | 9 ++--- Templates/OpenBench/newTest.html | 14 ++++---- 6 files changed, 51 insertions(+), 47 deletions(-) diff --git a/OpenBench/static/base.css b/OpenBench/static/base.css index 11f70fd..71a8f0b 100644 --- a/OpenBench/static/base.css +++ b/OpenBench/static/base.css @@ -1,4 +1,3 @@ -/* Width classes */ .w-25 { width: 25%; } @@ -31,7 +30,6 @@ max-width: 100%; } -/* Margin and Padding classes */ .mt-1 { margin-top: 0.25rem; } @@ -310,6 +308,4 @@ .py-5 { padding-top: 3rem; padding-bottom: 3rem; -} - - +} \ No newline at end of file diff --git a/OpenBench/static/form.css b/OpenBench/static/form.css index 050b996..ea804fd 100644 --- a/OpenBench/static/form.css +++ b/OpenBench/static/form.css @@ -1,11 +1,6 @@ - -#content .form { - -} - #content .form .col { display: inline-block; - width: 50%; + width: 42%; white-space: normal; margin-left: 0; box-sizing: border-box; @@ -22,6 +17,7 @@ } /* Styles for screen widths less than 600px */ + @media (max-width: 1024px) { #content .form .col { display: block; @@ -30,11 +26,12 @@ } #content .form h3 { - font-weight: 700; + font-weight: 500; + font-size: 14px; width: 100%; display: inline-block; box-sizing: border-box; - padding-left: 2rem; + padding-left: 1rem; text-align: left; color: var(--color-font3) } @@ -46,45 +43,51 @@ } #content .row label { + font-size: 14px; width: 25%; min-width: 128px; margin-right: 1rem; text-align: right; - font-weight: 600; + font-weight: 400; color: var(--color-font2) } -#content .row input, -#content .row select { +#content .row input, #content .row select { flex-grow: 1; min-width: 0; border: 1px solid var(--color3); border-radius: 4px; - padding: 6px; + padding: 9px 6px 6px; background-color: var(--color2); - color: var(--color-font2) + color: var(--color-font2); + font-family: "Courier Prime", serif; } + #content .row input[type="file"]{ padding: 2px 2px; } -#content .row input:focus, -#content .row select:focus { +#content .row input:focus, #content .row select:focus { outline: none; border-color: var(--color3); box-shadow: 0 0 0 3px rgba(77, 144, 254, 0.25); background-color: var(--color2); - color: var(--color-font2) + color: var(--color-font2); +} + +#content .row select > option{ + font-family: "Helvetica", serif; } #content .row input[type="file"]::file-selector-button { background-color: var(--color3); border: 1px solid var(--color2); border-radius: 4px; - padding: 4px 6px; + padding: 6px 6px 3px; color: var(--color-font2); cursor: pointer; transition: background-color 0.3s, border-color 0.3s; + font-family: "Courier Prime", serif; } #content .row input[type="file"]::file-selector-button:hover { @@ -101,5 +104,4 @@ #content .form .flex button{ max-width: 100%; -} - +} \ No newline at end of file diff --git a/OpenBench/static/style.css b/OpenBench/static/style.css index a38f80b..2329cf0 100644 --- a/OpenBench/static/style.css +++ b/OpenBench/static/style.css @@ -16,7 +16,7 @@ body { background-color: var(--color1); font-size: 16px; - font-family: "Courier Prime"; + font-family: "Courier Prime", serif; display:flex; } @@ -78,7 +78,7 @@ body, html, main{ } #sidebar li { - padding: 2px 16px; + padding: 4px 16px 2px; font-size: 1.0rem; border-radius: 4px; transition: background-color 0.2s ease-in-out; @@ -179,12 +179,13 @@ body, html, main{ #content .anchorbutton { border-radius: 4px; - padding: 8px; + padding: 8px 8px 6px; border-color: transparent; color: var(--color-font1); display: inline-block; text-align: center; transition: background-color 0.3s ease; + font-family: "Courier Prime", serif; } #content .btn-blue { @@ -239,7 +240,7 @@ body, html, main{ background-color: #CCCCCC; font-family: "Courier New"; border-radius: 4px; - padding: 8px 10px; + padding: 9px 10px 6px; } #content .statblock-green { @@ -254,6 +255,10 @@ body, html, main{ background-color: #FA9696 } +#content .redlink { + color: #FF4D4D; +} + /* Long StatBlock which we can copy */ #content .long-statblock { @@ -286,8 +291,6 @@ body, html, main{ color: var(--color-font1); } - - /* ??? */ td pre { @@ -295,4 +298,10 @@ td pre { padding: 0px; } +#content .error { + color: red; +} +#content .site-title { + color: var(--color-font3); +} \ No newline at end of file diff --git a/Templates/OpenBench/Blocks/testsummary.html b/Templates/OpenBench/Blocks/testsummary.html index 32058e5..e186be3 100644 --- a/Templates/OpenBench/Blocks/testsummary.html +++ b/Templates/OpenBench/Blocks/testsummary.html @@ -2,9 +2,11 @@ {{test.author|capfirst|slice:":6"}} {{test.engine}} - {% if test.error %} [x] {{test|prettyDevName}} - {% elif test|testIsFRC %} {{test|prettyDevName}}[FRC] - {% else %} {{test|prettyDevName}} {% endif %} + + {{test|prettyDevName}} + {% if test.error %} * {% endif %} + {% if test|testIsFRC %} [FRC] {% endif %} + diff {{test.timecontrol}} {{test|shortStatBlock|linebreaksbr}} diff --git a/Templates/OpenBench/base.html b/Templates/OpenBench/base.html index cb5d2fb..b293633 100644 --- a/Templates/OpenBench/base.html +++ b/Templates/OpenBench/base.html @@ -44,12 +44,6 @@ - - {% if error %} -
-
{{error}}
-
- {% endif %}