Updated justfile with rsync and better outputting and the melding table's stickyness
parent
472a6f8c95
commit
ba2b63145f
15
justfile
15
justfile
|
|
@ -2,12 +2,23 @@ set export
|
||||||
set quiet
|
set quiet
|
||||||
set dotenv-load
|
set dotenv-load
|
||||||
|
|
||||||
build:
|
#[arg("assets", long="assets")]
|
||||||
|
build assets="false":
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
mkdir -p ./out
|
mkdir -p ./out
|
||||||
rm -rf ./out/*
|
rm -rf ./out/*
|
||||||
cargo run
|
cargo run
|
||||||
cp -r ./public ./out/public
|
|
||||||
|
flags=""
|
||||||
|
if [ "$assets" == "false" ]; then
|
||||||
|
flags="$flags--exclude=assets/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rsync -r ./public ./out $flags
|
||||||
|
|
||||||
|
if [ -n "$OUTPUT" ]; then
|
||||||
|
rsync -r ./out/ $OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cargo test
|
cargo test
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,14 @@
|
||||||
table {
|
table {
|
||||||
th {
|
thead {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
&.crystal {
|
|
||||||
top: 3.3vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
th.crystal {
|
||||||
|
border-top: 0;
|
||||||
|
border-bottom: var(--table-border);
|
||||||
|
border-right: var(--table-border);
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.charlist {
|
.charlist {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import url("./colors.css");
|
@import url("./vars.css");
|
||||||
|
|
||||||
body {
|
body {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -26,7 +26,8 @@ table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-collapse: collapse;
|
border-collapse: separate;
|
||||||
|
border-spacing: 0;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
||||||
thead th {
|
thead th {
|
||||||
|
|
@ -37,10 +38,33 @@ table {
|
||||||
background-color: #4f4f4f;
|
background-color: #4f4f4f;
|
||||||
}
|
}
|
||||||
|
|
||||||
& tr,
|
th {
|
||||||
|
border-top: var(--table-border);
|
||||||
|
border-bottom: var(--table-border);
|
||||||
|
border-right: var(--table-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
border-bottom: var(--table-border);
|
||||||
|
border-right: var(--table-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
th:first-child,
|
||||||
|
td:first-child {
|
||||||
|
border-left: var(--table-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
th:first-child {
|
||||||
|
border-top-left-radius: var(--table-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
th:last-child {
|
||||||
|
border-top-right-radius: var(--table-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
tr,
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
border: 1px solid #515151;
|
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,11 @@
|
||||||
--primary-color: #00aa00;
|
--primary-color: #00aa00;
|
||||||
--primary-light-color: #60de60;
|
--primary-light-color: #60de60;
|
||||||
|
|
||||||
|
--border-color: #515151;
|
||||||
|
|
||||||
--error-color: hsl(2, 68%, 53%);
|
--error-color: hsl(2, 68%, 53%);
|
||||||
--error-color-lighter: hsl(2, 68%, 63%);
|
--error-color-lighter: hsl(2, 68%, 63%);
|
||||||
|
|
||||||
|
--table-border: 1px solid var(--border-color);
|
||||||
|
--table-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<th rowspan="2">Command</th>
|
<th rowspan="2">Command</th>
|
||||||
<th rowspan="2">Ingredient A</th>
|
<th rowspan="2">Ingredient A</th>
|
||||||
<th rowspan="2">Ingredient B</th>
|
<th rowspan="2">Ingredient B</th>
|
||||||
<th rowspan="2">Type</th>
|
<!-- <th rowspan="2">Type</th> -->
|
||||||
<th rowspan="2">Chance</th>
|
<th rowspan="2">Chance</th>
|
||||||
<th colspan="7">Abilities</th>
|
<th colspan="7">Abilities</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue