Add accordion and fix minor issues (#742)

* Add docs v0.0.1

* Add icon size warning

* Fix sourcenover caution

* Fix semver descriptions

* Filters fix

* Quickfix quickstart

* Add icon warning v2

* Fix typos

* Add NovelItem

* Update plugins host

* Update plugins host

* Remove unnecesarry .js and .dist

* Update plugins host

* Add host.ps1

* Fix readme.txt

* Fix READNE.txt, again

* Remove .js and .dist

* Add accordion

* Working pagination

* readme update with ost

* Add linux/windows hosting functions

* Add tswatch

* Fix fetch function

* Change plugin versions

* Fix chrome

* Fix workflows

* Fix search not showing results

* remove unnecesarry code

* Revert novelupdates changes

* Reverted NobleMTL instead of novelupdates, fixing that

* Revert nobleMTL to e346c7d0

* WTF NobleMTL?
This commit is contained in:
Marcin Majewski
2024-02-04 17:39:07 +01:00
committed by GitHub
parent fc52a6e665
commit e1207c172a
16 changed files with 4339 additions and 1872 deletions
+307 -295
View File
@@ -6,6 +6,10 @@
box-sizing: border-box;
}
#loadedplugin {
margin-left: 5px;
}
.navbar {
width: 100vw;
align-items: center;
@@ -18,25 +22,312 @@
button.btn-secondary {
padding-inline: 5px;
}
}
#search-results {
position: absolute;
top: calc(100% - 0.5rem);
width: fit-content;
max-height: 500%;
overflow-y: scroll;
overflow-x: hidden;
padding: 0.375rem 0;
border-radius: 5px;
background-color: transparent;
z-index: 3;
button {
background-color: white;
text-transform: capitalize;
.input-group {
width: 20rem;
}
#search-results {
display: none;
position: absolute;
top: calc(100% - 0.5rem);
width: fit-content;
max-height: 500%;
overflow-y: scroll;
overflow-x: hidden;
padding: 0.375rem 0;
border-radius: 5px;
background-color: transparent;
z-index: 3;
button {
background-color: white;
text-transform: capitalize;
}
}
}
.btn {
font-size: 0.75rem;
padding: 0.25rem 0.25rem;
&.disabled,
&:disabled {
opacity: 1;
}
}
@keyframes spinner-border {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.inline-container {
display: inline-block;
}
#popularNovels {
.page-select {
display: none;
}
}
#searchNovels {
.page-select {
display: none;
}
.searchbar {
width: fit-content;
display: inline-block;
}
}
.page-the-same-warn {
color: orange;
}
.fetch-btn button,
#filters-btn {
&:disabled {
background-color: gray;
box-shadow: none;
}
}
.spinner-border {
display: none;
width: 1rem;
height: 1rem;
vertical-align: text-bottom;
border: 0.25em solid currentColor;
border-right-color: transparent;
border-radius: 50%;
-webkit-animation: spinner-border 0.75s linear infinite;
animation: spinner-border 0.75s linear infinite;
}
.headerinfo {
margin-bottom: 5px;
span[contenteditable="true"] {
border: 1px solid black;
padding: 3px 10px;
display: inline;
}
#headersnotcopied,
#headerscopied {
font-size: 1.3rem;
}
#headersnotcopied {
color: red;
display: none;
}
#headerscopied {
color: green;
display: none;
}
.headereditbutton {
margin-left: 5px;
border: none;
padding-inline: 5px;
}
}
.novel-list {
display: grid;
overflow-x: scroll;
width: 100%;
margin-top: 5px;
padding-bottom: 15px;
padding-left: 5px;
grid-auto-flow: column;
gap: 5px;
align-items: center;
.error {
color: red;
grid-row: 2;
}
}
.novel-item {
display: grid;
grid-auto-flow: column;
display: grid;
gap: 5px;
}
.novel-info {
display: flex;
flex-direction: column;
}
.novel-img {
display: grid;
width: fit-content;
justify-content: center;
align-content: center;
img {
max-width: 300px;
max-height: 300px;
}
}
/* comment */
.info-item {
display: grid;
min-width: 300px;
grid-auto-columns: min-content auto 50px;
margin-top: 5px;
grid-auto-flow: column;
div {
display: grid;
align-items: center;
}
}
.parse-novel-btn {
width: 85%;
margin-inline: auto;
margin-top: 5px;
}
.parsed-novel-info {
display: grid;
grid-auto-flow: column;
gap: 20px;
grid-auto-columns: 1.5fr 1fr;
}
.chapter-list-container {
max-height: 400px;
overflow-y: scroll;
}
.chapter-list {
column-count: 2;
}
.chapter-item {
margin-top: 5px;
break-inside: avoid;
display: grid;
grid-template-areas: "name btn1 btn2" "date btn1 btn2";
}
.ci-topleft {
grid-area: name;
}
.ci-bottomleft {
grid-area: date;
}
.ci-btn1 {
grid-area: btn1;
}
.ci-btn2 {
grid-area: btn2;
}
.select-option-text {
padding-left: 1rem;
}
/* Slider checkbox */
.inline-slider-checkbox {
display: inline;
}
.inline-slider-checkbox,
.slider-checkbox {
--ball-width: 15px;
--box-margin: 5px;
--box-width: calc(2 * var(--ball-width) + var(--box-margin));
input {
display: none;
}
label {
height: fit-content;
width: fit-content;
span {
position: relative;
left: calc(var(--box-margin) + var(--box-width));
user-select: none;
&::after {
transition: 0.2s ease-out;
position: absolute;
content: "";
top: calc((100% - var(--ball-width)) / 2);
width: var(--ball-width);
height: var(--ball-width);
left: calc(-1 * (var(--box-width) + var(--box-margin)) + 2px);
border-radius: 50%;
display: inline-block;
background-color: rgb(0, 60, 255);
}
&::before {
position: absolute;
top: 0;
left: calc(-1 * var(--box-width) - var(--box-margin));
content: "";
width: var(--box-width);
height: 100%;
border-radius: 10px;
background-color: red;
display: inline-block;
}
}
input:checked ~ span::after {
left: calc(-1 * (var(--box-margin) + var(--ball-width) + 3px));
background-color: rgb(0, 60, 255);
}
input:checked ~ span::before {
background-color: rgb(0, 255, 0);
}
}
}
iframe {
margin: 0 auto;
border: 1px solid black;
background-color: white;
display: block;
overflow: scroll;
}
#preview-toggler {
display: flex;
flex-direction: row;
gap: 50px;
}
#theme-picker {
display: grid;
grid-template-columns: repeat(5, auto);
gap: 10px;
justify-content: center;
.theme {
width: 50px;
height: 50px;
padding: 5px;
word-wrap: break-word;
word-break: break-all;
border-radius: 50%;
border: 1px solid gray;
transition-duration: 0.2s;
display: grid;
text-align: center;
justify-content: center;
align-content: center;
&:hover {
border: 1px solid blue;
cursor: pointer;
transform: translateY(-5px);
}
}
}
#size-input {
select {
padding: 5px;
}
& > div:first-child {
margin-bottom: 5px;
}
}
#turnoff-catch {
width: 100vw;
height: 100vh;
@@ -218,282 +509,3 @@
margin-inline: auto;
}
}
#test-container {
align-items: center;
height: max-content;
margin-bottom: 100px;
}
.test-wrapper {
margin: 1rem;
padding: 0.5rem;
background-color: aliceblue;
}
#popularNovels,
#headerChanger,
#searchNovels,
#parseNovelAndChapters,
#parseChapter,
#fetchImage {
min-width: 95%;
max-width: 95%;
margin-inline: auto;
}
.headerinfo {
margin-bottom: 5px;
span[contenteditable="true"] {
border: 1px solid black;
padding: 3px 10px;
display: inline;
}
}
#headersnotcopied,
#headerscopied {
font-size: 1.3rem;
}
#headersnotcopied {
color: red;
display: none;
}
#headerscopied {
color: green;
display: none;
}
.headereditbutton {
margin-left: 5px;
border: none;
padding-inline: 5px;
}
#popularNovels,
#searchNovels {
height: 350px;
overflow-y: hidden;
overflow-x: scroll;
}
.novel_info {
display: grid;
grid-auto-flow: row;
grid-auto-rows: min-content;
}
.parse-novel-btn {
width: 85%;
margin-inline: auto;
margin-top: 5px;
}
#parseNovelAndChapters {
height: 380px;
}
.title {
font-weight: bold;
}
@keyframes spinner-border {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.spinner-border {
display: none;
width: 1rem;
height: 1rem;
vertical-align: text-bottom;
border: 0.25em solid currentColor;
border-right-color: transparent;
border-radius: 50%;
-webkit-animation: spinner-border 0.75s linear infinite;
animation: spinner-border 0.75s linear infinite;
}
.novel-list {
display: flex;
margin-top: 0.5rem;
height: 300px;
width: 100%;
}
.novel-item {
display: flex;
padding: 0.5rem;
img {
max-height: 90%;
}
}
.novel-info {
width: 16rem;
}
/* comment */
.info-item {
display: grid;
grid-auto-columns: min-content auto 50px;
margin-top: 5px;
grid-auto-flow: column;
div {
display: grid;
align-items: center;
}
}
.info-value {
width: 10rem;
padding-inline: 0.25rem;
font-size: 0.65rem;
word-wrap: break-word;
}
.info-copy {
display: grid;
align-content: center;
}
.btn {
font-size: 0.75rem;
padding: 0.25rem 0.25rem;
&.disabled,
&:disabled {
opacity: 1;
}
}
.chapter-list-container {
max-height: 95%;
overflow-y: scroll;
}
.chapter-list {
column-count: 2;
}
.chapter-item {
display: grid;
grid-template-areas: "name btn1 btn2" "date btn1 btn2";
}
.ci-topleft {
grid-area: name;
}
.ci-bottomleft {
grid-area: date;
}
.ci-btn1 {
grid-area: btn1;
}
.ci-btn2 {
grid-area: btn2;
}
.select-option-text {
padding-left: 1rem;
}
/* Slider checkbox */
.slider-checkbox {
--ball-width: 15px;
--box-margin: 5px;
--box-width: calc(2 * var(--ball-width) + var(--box-margin));
input {
display: none;
}
label {
height: fit-content;
width: fit-content;
span {
position: relative;
left: calc(var(--box-margin) + var(--box-width));
user-select: none;
&::after {
transition: 0.2s ease-out;
position: absolute;
content: "";
top: calc((100% - var(--ball-width)) / 2);
width: var(--ball-width);
height: var(--ball-width);
left: calc(-1 * (var(--box-width) + var(--box-margin)) + 2px);
border-radius: 50%;
display: inline-block;
background-color: rgb(0, 60, 255);
}
&::before {
position: absolute;
top: 0;
left: calc(-1 * var(--box-width) - var(--box-margin));
content: "";
width: var(--box-width);
height: 100%;
border-radius: 10px;
background-color: red;
display: inline-block;
}
}
input:checked ~ span::after {
left: calc(-1 * (var(--box-margin) + var(--ball-width) + 3px));
background-color: rgb(0, 60, 255);
}
input:checked ~ span::before {
background-color: rgb(0, 255, 0);
}
}
}
iframe {
margin: 0 auto;
border: 1px solid black;
background-color: white;
display: block;
overflow: scroll;
}
#preview-toggler {
display: flex;
flex-direction: row;
gap: 50px;
}
#theme-picker {
display: grid;
grid-template-columns: repeat(5, auto);
gap: 10px;
justify-content: center;
.theme {
width: 50px;
height: 50px;
padding: 5px;
word-wrap: break-word;
word-break: break-all;
border-radius: 50%;
border: 1px solid gray;
transition-duration: 0.2s;
display: grid;
text-align: center;
justify-content: center;
align-content: center;
&:hover {
border: 1px solid blue;
cursor: pointer;
transform: translateY(-5px);
}
}
}
#size-input {
select {
padding: 5px;
}
& > div:first-child {
margin-bottom: 5px;
}
}