not very useful close button script (thanks unnick)
All checks were successful
/ build (push) Successful in 33s
All checks were successful
/ build (push) Successful in 33s
This commit is contained in:
parent
69264c0bd8
commit
418222fc0c
4 changed files with 19 additions and 3 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
{% set js %}
|
{% set js %}
|
||||||
{% include "scripts/alt-popup.js" %}
|
{% include "scripts/alt-popup.js" %}
|
||||||
{% include "scripts/button.js" %}
|
{% include "scripts/button.js" %}
|
||||||
|
{% include "scripts/close.js" %}
|
||||||
{% include "scripts/settings.js" %}
|
{% include "scripts/settings.js" %}
|
||||||
{% endset %}
|
{% endset %}
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
|
|
||||||
7
_includes/scripts/close.js
Normal file
7
_includes/scripts/close.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
// unnick asked for this, i provide.
|
||||||
|
// this provides no usefulness and there is no implementation to respawn windows. but i think it's funny and you can just reload anyways since it doesn't take long to load anyways
|
||||||
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
document.querySelectorAll(".close-button").forEach(e => {
|
||||||
|
e.onclick = () => e.parentElement.parentElement.remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
// all available settings
|
// all available settings
|
||||||
const fontInputs = document.querySelectorAll('input[name="font-setting"]');
|
const fontInputs = document.querySelectorAll('input[name="font-setting"]');
|
||||||
const themeInputs = document.querySelectorAll('input[name="theme-setting"]');
|
const themeInputs = document.querySelectorAll('input[name="theme-setting"]');
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,7 @@ details.styled {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
background: linear-gradient(color-mix(in srgb, var(--accent) 3%, transparent), color-mix(in srgb, var(--accent) 15%, transparent));
|
background: linear-gradient(color-mix(in srgb, var(--accent) 3%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
|
||||||
border-bottom: unset !important;
|
border-bottom: unset !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: .65rem;
|
padding: .65rem;
|
||||||
|
|
@ -363,13 +363,21 @@ details.styled {
|
||||||
ul {
|
ul {
|
||||||
margin: 0 0 0 -.5rem;
|
margin: 0 0 0 -.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p:first-of-type {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
p:last-of-type {
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.last {
|
.last {
|
||||||
margin-bottom: .8rem;
|
margin-bottom: .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
background-color: color-mix(in srgb, var(--accent) 8%, transparent);
|
background-color: color-mix(in srgb, var(--accent) 3%, transparent);
|
||||||
border-radius: .8rem .4rem .8rem .4rem;
|
border-radius: .8rem .4rem .8rem .4rem;
|
||||||
border: .13rem solid var(--accent);
|
border: .13rem solid var(--accent);
|
||||||
margin-top: 1.3rem;
|
margin-top: 1.3rem;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue