diff options
| author | Paul-Christian Volkmer | 2024-01-09 18:09:44 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2024-01-09 18:09:44 +0100 |
| commit | f98c9703488f04667fa30fc3172ca28b686f8bf3 (patch) | |
| tree | 6a649dc88ded6ecd5d73ae13c3eda95444e77e32 /src/main/resources/static/style.css | |
| parent | 75872a149f85e92ace8e82b2aa53e887e3043035 (diff) | |
chore: layout and style changes
Diffstat (limited to 'src/main/resources/static/style.css')
| -rw-r--r-- | src/main/resources/static/style.css | 152 |
1 files changed, 96 insertions, 56 deletions
diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 73fa08a..f3266e2 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -1,5 +1,6 @@ :root { - --table-border: rgba(96, 96, 96, 1); + --text: #333; + --table-border: rgba(16, 24, 40, .1); --bg-blue: rgb(0, 74, 157); --bg-blue-op: rgba(0, 74, 157, .35); @@ -19,49 +20,78 @@ --bg-gray-op: rgba(112, 128, 144, .35); } +html { + background: linear-gradient(-5deg, var(--bg-blue-op), transparent 10em); + min-height: 100vh; + overflow-y: scroll; +} + body { - margin: 0; + margin: 0 0 5em 0; font-family: sans-serif; font-size: .8rem; - color: #333; + color: var(--text); + + min-height: 100vh; + + background: url(bg.jpeg) no-repeat; + background-size: contain; } nav { margin: 0 auto; - background: #d5dad5; - height: 3rem; + padding: 2em 0; + + line-height: 1.5rem; max-width: 1140px; + + border-bottom: 1px solid var(--table-border); } -nav a { - color: #004a8f; - text-transform: uppercase; +nav > a.nav-home { + float: left; + + color: var(--text); + line-height: 1.5em; text-decoration: none; - line-height: 2rem; - font-weight: 700; + + font-size: 1.5em; + font-weight: bold; } -nav a:hover { - text-decoration: underline; +nav > a.nav-home > img { + width: 1.5em; + vertical-align: middle; } nav > ul { - margin: 0 3rem; + margin: 0 0 0 auto; padding: 0; + + width: max-content; } nav > ul > li { - background: #fbfbfb; - display: block; - float: left; - padding: 2px 1rem; - border-left: 1px solid #d5dad5; + display: inline-block; + padding: 0 1rem; + border-left: 1px solid var(--table-border); } nav > ul > li:first-of-type { border-left: none; } +nav li a { + color: #004a8f; + text-transform: uppercase; + text-decoration: none; + font-weight: 700; +} + +nav li a:hover { + text-decoration: underline; +} + .breadcrumps { margin: 0 auto; max-width: 1140px; @@ -85,7 +115,7 @@ nav > ul > li:first-of-type { } .breadcrumps ul li a { - color: #333333; + color: var(--text); text-decoration: none; } @@ -98,6 +128,10 @@ main { max-width: 1140px; } +section { + margin: 3em 0; +} + form { margin: 1rem 0; padding: 1rem; @@ -139,12 +173,17 @@ form.samplecode-input input:focus-visible { background: lightgreen; } -table { - border-top: 1px solid var(--table-border); - border-left: 1px solid var(--table-border); +table, .chart { + border: 1px solid var(--table-border); + padding: 1.5em; + border-spacing: 0; - border-radius: 3px; + border-radius: .5em; + + background: white; +} +table { min-width: 100%; font-family: sans-serif; } @@ -165,64 +204,71 @@ table.samples { display: block; } -th { - background: #eee; -} - -td, th { +th, td { padding: 0.4rem .2rem; - border-right: 1px solid var(--table-border); - border-bottom: 1px solid var(--table-border); + line-height: 2em; text-align: left; white-space: nowrap; vertical-align: top; } +th { + border-bottom: 1px solid var(--bg-gray); +} + td { font-family: monospace; + border-bottom: 1px solid var(--bg-gray-op); } -td.bg-blue, th.bg-blue { - background: var(--bg-blue); - color: white; +tr:last-of-type > td { + border-bottom: none; } -tr:has(td.bg-blue) { - background: var(--bg-blue-op); +td > small { + display: block; + text-align: center; } -td.bg-green, th.bg-green { - background: var(--bg-green); - color: white; +td.bg-blue, th.bg-blue, +td.bg-green, th.bg-green, +td.bg-yellow, th.bg-yellow, +td.bg-red, th.bg-red, +td.bg-gray, th.bg-gray +{ + width: 8em; } -tr:has(td.bg-green) { - background: var(--bg-green-op); +td.bg-blue > small, th.bg-blue > small { + background: var(--bg-blue); + color: white; + border-radius: 0.4em; } -td.bg-yellow, th.bg-yellow { - background: var(--bg-yellow); +td.bg-green > small, th.bg-green > small { + background: var(--bg-green); color: white; + border-radius: 0.4em; } -tr:has(td.bg-yellow) { - background: var(--bg-yellow-op); +td.bg-yellow > small, th.bg-yellow > small { + background: var(--bg-yellow); + color: white; + border-radius: 0.4em; } -td.bg-red, th.bg-red { +td.bg-red > small, th.bg-red > small { background: var(--bg-red); color: white; + border-radius: 0.4em; } -tr:has(td.bg-red) { - background: var(--bg-red-op); -} - -td.bg-gray, th.bg-gray { +td.bg-gray > small, th.bg-gray > small { background: var(--bg-gray); color: white; + border-radius: 0.4em; } .bg-path { @@ -341,12 +387,6 @@ input.inline:focus-visible { } .chart { - padding: 1rem; - margin: .2rem; - - border: 1px solid var(--table-border); - border-radius: 3px; - width: calc(100% - 2.4rem - 4px); height: 320px; |
