mirror of
https://github.com/dtinth/comic-mono-font.git
synced 2026-02-21 22:43:59 +00:00
Adjust button padding
This commit is contained in:
21
index.js
21
index.js
@@ -16,19 +16,40 @@ const seriousLightItalicButton = document.getElementById(
|
|||||||
const newExampleTextButton = document.getElementById("newExampleTextButton");
|
const newExampleTextButton = document.getElementById("newExampleTextButton");
|
||||||
const newExampleText = document.getElementById("newExampleText");
|
const newExampleText = document.getElementById("newExampleText");
|
||||||
|
|
||||||
|
const seriousButtons = [
|
||||||
|
seriousOriginalButton,
|
||||||
|
seriousItalicButton,
|
||||||
|
seriousBoldButton,
|
||||||
|
seriousBoldItalicButton,
|
||||||
|
seriousLightButton,
|
||||||
|
seriousLightItalicButton,
|
||||||
|
];
|
||||||
|
|
||||||
entirePageRadio.addEventListener("click", function () {
|
entirePageRadio.addEventListener("click", function () {
|
||||||
if (this.checked) {
|
if (this.checked) {
|
||||||
mainClasses.add("serious");
|
mainClasses.add("serious");
|
||||||
|
for (seriousButton of seriousButtons) {
|
||||||
|
seriousButton.classList.add("serious");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
mainClasses.remove("serious");
|
mainClasses.remove("serious");
|
||||||
|
for (seriousButton of seriousButtons) {
|
||||||
|
seriousButton.classList.remove("serious");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
exampleTextOnlyRadio.addEventListener("click", function () {
|
exampleTextOnlyRadio.addEventListener("click", function () {
|
||||||
if (this.checked) {
|
if (this.checked) {
|
||||||
mainClasses.remove("serious");
|
mainClasses.remove("serious");
|
||||||
|
for (seriousButton of seriousButtons) {
|
||||||
|
seriousButton.classList.remove("serious");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
mainClasses.add("serious");
|
mainClasses.add("serious");
|
||||||
|
for (seriousButton of seriousButtons) {
|
||||||
|
seriousButton.classList.add("serious");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -86,8 +86,7 @@ button {
|
|||||||
|
|
||||||
button,
|
button,
|
||||||
input {
|
input {
|
||||||
padding-top: 0.3em;
|
padding: 0.1em;
|
||||||
/* padding: 0.1em; */
|
|
||||||
align-self: center;
|
align-self: center;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
@@ -97,6 +96,11 @@ input {
|
|||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.serious,
|
||||||
|
input.serious {
|
||||||
|
padding-top: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
:link {
|
:link {
|
||||||
color: #70d0fe;
|
color: #70d0fe;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user