chore: move templates into right location
This commit is contained in:
101
src/main/resources/static/main.css
Normal file
101
src/main/resources/static/main.css
Normal file
@@ -0,0 +1,101 @@
|
||||
:root {
|
||||
--bg-color: #222;
|
||||
--fg-color: #555;
|
||||
--text-color: #dbdbdb;
|
||||
--pad-datasets: 1rem;
|
||||
--pad-main: 2rem;
|
||||
--min-card-size: 60ch;
|
||||
--corner-radius: 1rem;
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-color, black);
|
||||
color: var(--text-color, white);
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: calc(2 * var(--min-card-size) + var(--pad-main) + var(--pad-datasets));
|
||||
padding-inline: var(--pad-main);
|
||||
margin-inline: auto;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
header {
|
||||
text-align: center;
|
||||
margin-inline: .75rem;
|
||||
}
|
||||
|
||||
#tool-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
#search-bar {
|
||||
background-color: var(--fg-color, darkgrey);
|
||||
padding: .5rem 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#search-entry {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.datasets {
|
||||
padding-inline: var(--pad-datasets);
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(var(--min-card-size), 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@container (width < 80ch) {
|
||||
.datasets {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.dataset {
|
||||
padding: 1rem 2rem;
|
||||
background-color: var(--fg-color, darkgrey);
|
||||
border-radius: var(--corner-radius);
|
||||
list-style: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.upvote {
|
||||
margin-left: 1rem;
|
||||
margin-block: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: .5em;
|
||||
}
|
||||
|
||||
.upvote-btn, .downvote-btn {
|
||||
background: url(triangle.svg) no-repeat;
|
||||
background-size: contain;
|
||||
border: none;
|
||||
width: 2em;
|
||||
height: 2em;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
color: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.downvote-btn {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
:is(.upvote-btn, .downvote-btn):is(:hover, :focus-visible) {
|
||||
filter: brightness(1.5);
|
||||
}
|
||||
|
||||
:is(.upvote-btn, .downvote-btn):active {
|
||||
filter: brightness(1.75);
|
||||
}
|
||||
2
src/main/resources/static/sad-looking-glass.svg
Normal file
2
src/main/resources/static/sad-looking-glass.svg
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" id="sad-looking-glass" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><g id="main-layer"><path id="looking-glass" style="fill:none;stroke:#222222;stroke-width:1.5;stroke-linecap:round" d="M 11.22141,6 A 5.2214103,5.2214103 0 0 1 6,11.22141 5.2214103,5.2214103 0 0 1 0.77858973,6 5.2214103,5.2214103 0 0 1 6,0.77858973 5.2214103,5.2214103 0 0 1 11.22141,6 Z M 15.25,15.25 10,10" /><circle style="fill:#222222" id="left-eye" cx="4" cy="4.75" r="0.75" /><circle style="fill:#222222" id="right-eye" cx="8" cy="4.75" r="0.75" /><path style="fill:none;stroke:#222222;stroke-width:1.5;stroke-linecap:round" d="M 4,8 C 6,6.5 8,8 8,8" id="mouth" /></g></svg>
|
||||
|
After Width: | Height: | Size: 794 B |
2
src/main/resources/static/triangle.svg
Normal file
2
src/main/resources/static/triangle.svg
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" id="svg1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs1" /><g id="layer1"><path style="fill:#222" d="M 0,16 8,0 16,16 Z" id="path1" /></g></svg>
|
||||
|
After Width: | Height: | Size: 306 B |
Reference in New Issue
Block a user