Did a few thinng to fi x small bugs (see readme changes)

This commit is contained in:
schnulller
2022-07-03 00:42:24 +02:00
parent 0bbbcc0d44
commit fbd5a94ca1
19 changed files with 385 additions and 546 deletions

View File

@@ -1,25 +1,5 @@
@layer components {
/* COLORS */
.ha-letterhead .ha-metadata .ha-tooltiptext {
@apply shadow-sm bg-slate-50 border-hamannSlate-900 text-hamannSlate-900 border dark:border-none dark:shadow dark:bg-slate-800
}
.ha-tooltip .ha-tooltiptext::after {
@apply border-t-slate-600 dark:border-t-slate-800 border-l-transparent border-r-transparent border-b-transparent
}
.ha-letterhead .ha-metadata .ha-metadataupperrow .ha-pill {
@apply rounded-lg border shadow-inner border-hamannSlate-900 text-hamannSlate-900 dark:text-white dark:bg-slate-800 dark:shadow-md dark:border-slate-400
}
.ha-letterhead .ha-metadata .ha-metadataupperrow .ha-pill.ha-newpill {
@apply dark:text-white dark:bg-slate-800 dark:shadow-md dark:border-slate-400
}
.ha-letterhead .ha-metadata .ha-metadataupperrow .ha-pill .ha-cross::before {
@apply border-b-2 border-hamannSlate-900 dark:border-gray-200
}
.ha-letterheader {
@apply bg-slate-50 dark:bg-slate-900 dark:text-slate-50 border-slate-300 dark:border-slate-50 border-b-2 dark:shadow-xl
}
@@ -135,7 +115,7 @@
}
.ha-lettertext {
@apply max-w-[38rem] desktop:max-w-[45rem] sm:shrink-0 ml-4 sm:ml-12 px-4 pt-4 pb-8 relative flow-root font-serif leading-[1.48] numeric-mediaeval
@apply max-w-[38rem] desktop:max-w-[52rem] sm:shrink-0 ml-4 sm:ml-12 px-4 pt-4 pb-8 relative flow-root font-serif leading-[1.48] numeric-mediaeval
}
.ha-marginals {

View File

@@ -1,6 +1,24 @@
@layer components {
/* COLORS */
.ha-tooltiptext {
@apply shadow-sm bg-slate-50 border-hamannSlate-900 text-hamannSlate-900 border dark:border-none dark:shadow dark:bg-slate-800
}
.ha-tooltip .ha-tooltiptext::after {
@apply border-t-slate-600 dark:border-t-slate-800 border-l-transparent border-r-transparent border-b-transparent
}
.ha-pill {
@apply rounded-lg border shadow-inner bg-slate-50 border-hamannSlate-900 text-hamannSlate-900 dark:text-white dark:bg-slate-800 dark:shadow-md dark:border-slate-400
}
.ha-pill.ha-newpill {
@apply dark:text-white dark:bg-slate-800 dark:shadow-md dark:border-slate-400
}
.ha-pill .ha-cross::before {
@apply border-b-2 border-hamannSlate-900 dark:border-gray-200
}
/* STYLES */
.ha-letterhead {
@@ -27,28 +45,28 @@
@apply flex caps-petite numeric-mediaeval whitespace-nowrap
}
.ha-letterhead .ha-metadata .ha-tooltip {
.ha-tooltip {
@apply self-center cursor-default inline-block relative
}
.ha-letterhead .ha-metadata .ha-tooltiptext {
.ha-tooltiptext {
@apply rounded text-sm px-1 py-0.5 absolute z-10 text-center
}
.ha-letterhead .ha-metadata .ha-tooltiptext::after {
.ha-tooltiptext::after {
@apply absolute top-full left-1/2
}
.ha-letterhead .ha-metadata .ha-metadataupperrow .ha-pill {
@apply text-xs rounded px-1.5 ml-2 py-0.5 leading-none tracking-wide whitespace-nowrap
.ha-pill {
@apply text-xs rounded px-1.5 ml-1.5 py-0.5 leading-none tracking-wide whitespace-nowrap
}
.ha-letterhead .ha-metadata .ha-metadataupperrow .ha-pill .ha-cross {
.ha-pill .ha-cross {
@apply relative inline-block
}
.ha-letterhead .ha-metadata .ha-metadataupperrow .ha-pill .ha-cross::before,
.ha-letterhead .ha-metadata .ha-metadataupperrow .ha-pill .ha-cross::after {
.ha-pill .ha-cross::before,
.ha-pill .ha-cross::after {
@apply w-full h-0 absolute right-0 top-1/2
}

File diff suppressed because one or more lines are too long

View File

@@ -102,6 +102,18 @@
@apply pl-1 pr-2 leading-none pt-1
}
.ha-register .ha-register-head form {
@apply -mt-1 mb-6 font-sans
}
.ha-register .ha-register-head form input {
@apply px-1 border
}
.ha-register .ha-register-head form button {
@apply px-1 border
}
.ha-register .ha-register-head .ha-register-nav {
@apply font-sans
}

View File

@@ -32,7 +32,43 @@
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry:not(:first-child) {
@apply block mt-4
@apply mt-4
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry {
@apply block border
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistentryheader {
@apply border-b flex flex-row py-1 px-2 bg-slate-100
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistentryheader .ha-letterlistautopsic {
@apply text-3xl font-bold grow
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistentryheader .ha-letterlistpills {
@apply grow-0
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistletterdata {
@apply px-2 py-1
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistsearchresults {
@apply px-2 py-1
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistsearchresults .ha-letterlistsearchresult {
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistsearchresults .ha-letterlistsearchresult .ha-searchresultlocation {
@apply numeric-mediaeval font-semibold text-sm inline-block
}
.ha-search .ha-searchbody .ha-letterlist .ha-letterlistentry .ha-letterlistsearchresults .ha-letterlistsearchresult .ha-searchresultpreview {
@apply inline-block pl-2
}
.ha-search .ha-searchbody .ha-filterlist {
@@ -51,22 +87,22 @@
@apply inline-block text-sm ml-2
}
.ha-search .ha-searchbody .ha-filterlist .ha-gotofilter {
@apply flex flex-row bg-slate-100
}
/* .ha-search .ha-searchbody .ha-filterlist .ha-gotofilter {
@apply bg-slate-100
} */
.ha-search .ha-searchbody .ha-filterlist .ha-gotofilter .ha-filtertitle {
/* .ha-search .ha-searchbody .ha-filterlist .ha-gotofilter .ha-filtertitle {
@apply inline-block border-none
} */
.ha-search .ha-searchbody .ha-filterlist .ha-gotofilter form {
@apply font-sans py-2 px-3 bg-slate-50
}
.ha-search .ha-searchbody .ha-filterlist .ha-gotofilter form .ha-gototext {
@apply inline-block font-sans mr-2
}
.ha-search .ha-searchbody .ha-filterlist .ha-gotofilter form {
@apply inline-block font-sans py-2 pr-2 grow
}
.ha-search .ha-searchbody .ha-filterlist .ha-gotofilter form input {
@apply w-14 px-1 border
}

View File

@@ -123,16 +123,19 @@
@apply italic
}
.ha-sup,
.ha-sup *:not(.ha-linecount *, .ha-linecount, .ha-marginalbox *, .ha-marginalbox, .ha-marginal, .ha-marginal *, .ha-btn-collapsed-box) {
@apply relative -top-[0.3em] text-[80%]
}
/* TODO: Something dooesnt work here */
.ha-super {
.ha-super,
.ha-super *:not(.ha-linecount *, .ha-linecount, .ha-marginalbox *, .ha-marginalbox, .ha-marginal, .ha-marginal *, .ha-btn-collapsed-box) {
@apply numeric-normal relative text-xs leading-none align-baseline -top-[0.3em]
}
.ha-sub {
.ha-sub,
.ha-sub *:not(.ha-linecount *, .ha-linecount, .ha-marginalbox *, .ha-marginalbox, .ha-marginal, .ha-marginal *, .ha-btn-collapsed-box) {
@apply relative text-xs leading-none align-baseline -bottom-[0.25em]
}
@@ -160,7 +163,7 @@
}
.ha-aligncenter {
@apply absolute left-1/2 whitespace-nowrap -translate-x-1/2
@apply absolute left-[45%] whitespace-nowrap -translate-x-1/2
}
.ha-lineline {
@@ -171,6 +174,10 @@
@apply inline-block ml-6
}
.ha-letlink {
@apply caps-allpetite
}
/* Classes for indents */
.ha-indent-1 {
@apply pl-2 sm:pl-4
@@ -210,6 +217,14 @@
}
}
.ha-insertion::before {
content: "\2E02";
}
.ha-insertion::after {
content: "\2E03";
}
.ha-nr::before {
content: " \200E\25E6";
}