diff --git a/OpenBench/static/paging.css b/OpenBench/static/paging.css new file mode 100644 index 0000000..53024b2 --- /dev/null +++ b/OpenBench/static/paging.css @@ -0,0 +1,48 @@ +.pagination { + display: inline-flex; + justify-content: center; + align-items: center; +} + +#pagebrowse { + display: flex; + justify-content: center; +} + +.page, .ellipsis { + display: inline-block; + padding: 6px 1rem; + margin: 0; + border-left: 1px solid var(--color1); + border-right: 1px solid var(--color1); + background-color: var(--color2); /* Dark background color */ + color: var(--color-font2); + text-decoration: none; + cursor: pointer; + transition: background-color 0.2s; /* Add a smooth transition effect to background color */ + height: 24px; /* This is just an example, adjust according to your needs */ + line-height: 24px; /* Should be same as height */ + min-width: 1.6rem; + text-align: center; + vertical-align: middle; +} + +.page:hover { + background-color: var(--color3); /* Darker background color on hover */ +} + +.previous { + border-top-left-radius: 7px; + border-bottom-left-radius: 7px; +} + +.next { + border-top-right-radius: 7px; + border-bottom-right-radius: 7px; +} + +.ellipsis, .fa-solid { + /*margin: 0 4px;*/ + pointer-events: none; /* Disable click events on ellipsis */ + vertical-align: middle; /* Ensure icons are vertically centered */ +} diff --git a/OpenBench/static/style.css b/OpenBench/static/style.css index 2329cf0..7ccd6a5 100644 --- a/OpenBench/static/style.css +++ b/OpenBench/static/style.css @@ -45,7 +45,7 @@ body, html, main{ } #content{ - max-width: calc(min(100%,1200px)); + max-width: calc(min(100%,1100px)); width: 100%; white-space: nowrap; display: inline-block; @@ -192,6 +192,14 @@ body, html, main{ background-color: #1C2D40; } +#content .btn-start { + background-color: #384A5F; +} + +#content .btn-preset { + background-color: #046c52; +} + #content .btn-yellow { background-color: #7A4E09; } @@ -208,6 +216,14 @@ body, html, main{ background-color: #2E3F57; } +#content .btn-start:hover { + background-color: #2E3F57; +} + +#content .btn-preset:hover { + background-color: #11a983; +} + #content .btn-yellow:hover { background-color: #9B6B0F; } diff --git a/Templates/OpenBench/Blocks/pagebrowser.html b/Templates/OpenBench/Blocks/pagebrowser.html index a9ffa73..6a292ff 100644 --- a/Templates/OpenBench/Blocks/pagebrowser.html +++ b/Templates/OpenBench/Blocks/pagebrowser.html @@ -1,13 +1,15 @@ -
+
{% if paging.prev != paging.next %} - <-- - {% for page in paging.pages %} - {% if page != "..." %} - {{page}} - {% else %} - {{page}} - {% endif %} - {% endfor %} - --> + {% endif %} -
\ No newline at end of file +
diff --git a/Templates/OpenBench/base.html b/Templates/OpenBench/base.html index b293633..a51897b 100644 --- a/Templates/OpenBench/base.html +++ b/Templates/OpenBench/base.html @@ -8,6 +8,7 @@ + @@ -108,7 +109,7 @@
-
+

OpenBench Testing Framework

{% if error %}
{{error}}
{% endif %} {% block content %} diff --git a/Templates/OpenBench/newTest.html b/Templates/OpenBench/newTest.html index 1398874..9d7a05c 100644 --- a/Templates/OpenBench/newTest.html +++ b/Templates/OpenBench/newTest.html @@ -83,7 +83,7 @@ btn.onclick = function() { set_test_mode(mode); }; {# btn.class = (++index % 2) ? "left-floated" : "right-floated";#} btn.classList.add("anchorbutton") - btn.classList.add("btn-yellow") + btn.classList.add("btn-preset") btn.classList.add("mr-2") btn.classList.add("mt-2") button_div.append(btn); @@ -272,7 +272,7 @@
- +