From f43dd2a7d8694f9ce1e0b096e67eaf2b92d6bcf6 Mon Sep 17 00:00:00 2001 From: rain Date: Thu, 25 May 2023 00:23:55 -0500 Subject: [PATCH] Redid styles and colors to be more appealing --- app/static/css/style.css | 84 ++++++++++++++++++++++++++-------------- app/templates/home.html | 2 +- 2 files changed, 56 insertions(+), 30 deletions(-) diff --git a/app/static/css/style.css b/app/static/css/style.css index 909c34e..f5b29a5 100755 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -1,6 +1,15 @@ +:root { + --accent-color: #105E26; + --dark-accent-color: #105E26; + --header-text: #ffffff; + --odd-color: #252728; + --even-color: #2f3133; + --active-color: #e2d0a2; +} + body{ background-color: black; - color: black; + color: #ffffff; font-family: Arial, Helvetica, sans-serif; text-align:center; margin:2% 5% 0 5%; @@ -11,21 +20,48 @@ h2{ padding-bottom:0; } -#scan-table{ +.scan-table { + border-collapse: collapse; + margin: 25px 0; + font-size: 1.2em; + min-width: 400px; + border-radius: 5px 5px 0 0; + overflow: hidden; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); width: 100%; height: 100%; } -th{ - padding:5px; +.scan-table thead tr { + background-color: var(--accent-color); + color: var(--header-text); + font-weight: bold; } -tr{ - border:1px solid white; - background-color: #E8EDFF; + +.scan-table th, +.scan-table td { + padding: 12px 15px; } -td{ - padding:5px; - font-size:1vw; + +tbody { + background-color: var(--odd-color); +} +tbody tr { + border-bottom: 1px solid #dddddd; +} +tbody tr:nth-of-type(even) { + background-color: var(--even-color); +} +tbody tr:nth-of-type(odd) { + background-color: var(--odd-color); +} +tbody tr:last-of-type { + border-bottom: 2px solid var(--dark-accent-color); +} + +tr td:first-child{ + background-color: var(--dark-accent-color); + width:1px; } tr td:last-child{ text-align: left; @@ -39,25 +75,14 @@ tr td:last-child{ tbody tr:hover td { background-color: #FFEFC6; + font-weight: bold; + color: var(--accent-color); cursor: pointer; } - tbody tr.active td { - background-color: #FFEFC6; -} - -table tr:last-child td:first-child { - border-bottom-left-radius: 10px; -} -table tr:first-child th:first-child { - border-top-left-radius: 10px; -} - -table tr:last-child td:last-child { - border-bottom-right-radius: 10px; -} -table tr:first-child th:last-child { - border-top-right-radius: 10px; + background-color: var(--active-color); + font-weight: bold; + color: var(--accent-color); } a:hover, a:link, a:visited, a:active{ @@ -67,6 +92,7 @@ a:hover, a:link, a:visited, a:active{ input[type=text]{ background: transparent; + color: var(--header-text); border: 0; width: 100%; height: 100%; @@ -74,12 +100,12 @@ input[type=text]{ font-size:1.2vw; } ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ - color: black; + color: var(--header-text); opacity: 1; /* Firefox */ } :-ms-input-placeholder { /* Internet Explorer 10-11 */ - color: black; + color: var(--header-text); } ::-ms-input-placeholder { /* Microsoft Edge */ - color: black; + color: var(--header-text); } \ No newline at end of file diff --git a/app/templates/home.html b/app/templates/home.html index 073a419..15fb396 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -4,7 +4,7 @@

GutterBox

Organize your NMAP!

- +