mostly styling..
This commit is contained in:
parent
b56620686f
commit
8bf7613639
2 changed files with 49 additions and 18 deletions
|
@ -55,14 +55,6 @@ button:disabled {
|
||||||
button:disabled:hover {
|
button:disabled:hover {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
.button {
|
|
||||||
color: #333;
|
|
||||||
background-color: #f4f4f4;
|
|
||||||
border: 1px solid lightgrey;
|
|
||||||
padding: 0.2em 0.4em;
|
|
||||||
grid-column: 2/3;
|
|
||||||
margin-right: 0.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:not(:disabled):active {
|
button:not(:disabled):active {
|
||||||
background-color: #ddd;
|
background-color: #ddd;
|
||||||
|
@ -72,11 +64,20 @@ button:focus {
|
||||||
border-color: #666;
|
border-color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:hover {
|
button:hover, .newtierbutton:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
/* custom part */
|
/* custom part */
|
||||||
|
|
||||||
|
.newtierbutton {
|
||||||
|
color: #000;
|
||||||
|
background-color: #dddddd;
|
||||||
|
padding: 0.2em 0.4em;
|
||||||
|
grid-column: 2/3;
|
||||||
|
margin-right: 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.formgrid {
|
.formgrid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto 1fr;
|
grid-template-columns: auto 1fr;
|
||||||
|
@ -175,16 +176,18 @@ select {
|
||||||
margin-bottom: 0.3rem;
|
margin-bottom: 0.3rem;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
display: block;
|
display: block;
|
||||||
background: #00000008;
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
|
padding-top: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fmMeta {
|
.fmMeta {
|
||||||
border-bottom: 2px #0000001a solid;
|
border-bottom: 2px #0000001a solid;
|
||||||
|
border-right: 1px #0000001a solid;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
background: #ffffff1c;
|
background: #ffffff1c;
|
||||||
|
padding-right: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fmItem {
|
.fmItem {
|
||||||
|
@ -194,11 +197,15 @@ select {
|
||||||
}
|
}
|
||||||
|
|
||||||
.fmCollapse, .fmExpand {
|
.fmCollapse, .fmExpand {
|
||||||
padding-top: 0.5rem;
|
padding-top: 0.2rem;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
padding-bottom: 0.5rem;
|
padding-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fmExpand:hover, .fmCollapse:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.fmCollapse::before {
|
.fmCollapse::before {
|
||||||
margin-right: 0.3rem;
|
margin-right: 0.3rem;
|
||||||
content: "⇲";
|
content: "⇲";
|
||||||
|
@ -212,12 +219,27 @@ select {
|
||||||
#fmicon, #frontmatter, input.hasinput {
|
#fmicon, #frontmatter, input.hasinput {
|
||||||
background-color: #ffccbc;
|
background-color: #ffccbc;
|
||||||
padding-right: 0.3rem;
|
padding-right: 0.3rem;
|
||||||
|
padding-left: 0.3rem;
|
||||||
|
padding-bottom: 0.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtiers {
|
.newtiers {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.news {
|
#newtierstitle {
|
||||||
grid-column: 2/3;
|
margin-right: 0.4rem;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.newtiersbar {
|
||||||
|
padding-bottom: 0.4rem;
|
||||||
|
padding-top: 0.4rem;
|
||||||
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
border-bottom: 2px #0000001a solid;
|
||||||
|
border-right: 1px #0000001a solid;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
background: #00000008;
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,10 +188,18 @@
|
||||||
document.querySelectorAll(".newtiers").forEach((button) => {
|
document.querySelectorAll(".newtiers").forEach((button) => {
|
||||||
button.style.display = "none";
|
button.style.display = "none";
|
||||||
});
|
});
|
||||||
|
let newtierstitle = document.getElementById("newtierstitle")
|
||||||
|
if (newtierstitle) {
|
||||||
|
newtierstitle.style.display = "none";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
document.querySelectorAll(".newtiers").forEach((button) => {
|
document.querySelectorAll(".newtiers").forEach((button) => {
|
||||||
button.style.display = "block";
|
button.style.display = "block";
|
||||||
});
|
});
|
||||||
|
let newtierstitle = document.getElementById("newtierstitle")
|
||||||
|
if (newtierstitle) {
|
||||||
|
newtierstitle.style.display = "block";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ct = Object.entries(frontmatter).filter((i) => i[1].length == 0 && i[0] == "triad")[0];
|
const ct = Object.entries(frontmatter).filter((i) => i[1].length == 0 && i[0] == "triad")[0];
|
||||||
|
@ -280,16 +288,17 @@
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
{/each}
|
{/each}
|
||||||
<div class="buttons news">
|
<div class="newtiersbar">
|
||||||
<div id="newtriad" class="newtiers button" on:click={() => newTier("triad", "_new", null)}>
|
<div id="newtierstitle">Add new:</div>
|
||||||
NEW TIER
|
<div id="newtriad" class="newtiers newtierbutton" on:click={() => newTier("triad", "_new", null)}>
|
||||||
|
TRIAD TIER
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
id="newascription"
|
id="newascription"
|
||||||
class="newtiers button"
|
class="newtiers newtierbutton"
|
||||||
on:click={() => newTier("ascription", "_new", null)}
|
on:click={() => newTier("ascription", "_new", null)}
|
||||||
>
|
>
|
||||||
NEW ASCRIPTION
|
ASCRIPTION
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue