mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 09:15:33 +00:00
509 lines
13 KiB
CSS
509 lines
13 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
/* Regular woff-files for regular font variants curerently
|
|
Instead we can use the Graphite versions of the font
|
|
|
|
@font-face {
|
|
font-family: 'Biolinum';
|
|
src: url('/fonts/LinBiolinum_R_G.ttf') format('truetype');
|
|
font-display: swap;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Libertine';
|
|
src: url('/fonts/LinLibertine_R_G.ttf') format('truetype');
|
|
font-display: swap;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
*/
|
|
|
|
@font-face {
|
|
font-family: 'Biolinum';
|
|
src: url('../fonts/LinBiolinum_R.woff') format('woff');
|
|
font-display: swap;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Libertine';
|
|
src: url('../fonts/LinLibertine_R.woff') format('woff');
|
|
font-display: swap;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Biolinum';
|
|
src: url('../fonts/LinBiolinum_RI.woff') format('woff');
|
|
font-display: swap;
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Biolinum';
|
|
src: url('../fonts/LinBiolinum_RB.woff') format('woff');
|
|
font-display: swap;
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Libertine';
|
|
src: url('../fonts/LinLibertine_RI.woff') format('woff');
|
|
font-display: swap;
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Libertine';
|
|
src: url('../fonts/LinLibertine_RB.woff') format('woff');
|
|
font-display: swap;
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Playfair';
|
|
src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
|
|
font-display: swap;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@layer components {
|
|
/* TODO: check what can be inlined (eg. used once in the code, has no double paths etc...) */
|
|
body {
|
|
@apply text-base desktop:text-lg w-full h-full
|
|
}
|
|
|
|
.ha-topnav {
|
|
@apply flex desktop:grow-0 desktop:shrink-0 md:text-lg 2xl:text-xl desktop:place-self-end xl:mb-1
|
|
}
|
|
|
|
.ha-topnav a {
|
|
@apply hidden text-gray-700 hover:text-gray-900 desktop:inline-block mr-6 2xl:mr-7
|
|
}
|
|
|
|
.ha-topnav a:last-child {
|
|
@apply mr-0
|
|
}
|
|
|
|
.ha-topnav-dropdown {
|
|
@apply hidden desktop:relative desktop:inline-block
|
|
}
|
|
|
|
.ha-topnav-dropdown:hover .ha-topnav-dropdown-content {
|
|
@apply desktop:block
|
|
}
|
|
|
|
.ha-topnav-dropdown .ha-topnav-dropdown-content {
|
|
@apply hidden mr-6 pt-1 right-0 desktop:absolute bg-slate-50 min-w-[130px] shadow-md border-gray-400 border-b z-50
|
|
}
|
|
|
|
.ha-topnav-dropdown .ha-topnav-dropdown-content a {
|
|
@apply pl-2 pr-3 py-2 block mr-0
|
|
}
|
|
|
|
.ha-topnav-dropdown .ha-topnav-dropdown-content .active {
|
|
@apply border-none
|
|
}
|
|
|
|
.ha-topnav-dropdown .ha-topnav-dropdown-content a:hover {
|
|
@apply bg-gray-100
|
|
}
|
|
|
|
.ha-footer {
|
|
@apply bg-slate-50 w-full h-full desktop:max-w-screen-desktop mx-auto mt-4 p-2 md:p-4 desktop:p-8 text-lg font-serif text-right
|
|
}
|
|
|
|
.ha-footer a {
|
|
@apply underline decoration-dotted
|
|
}
|
|
|
|
.ha-footer a:hover {
|
|
@apply underline decoration-solid
|
|
}
|
|
|
|
/* Classes for static pages */
|
|
|
|
.ha-static {
|
|
@apply w-full bg-slate-50 py-12 px-12 md:px-16 hyphenate font-serif
|
|
}
|
|
|
|
.ha-static h1 {
|
|
@apply font-bold text-xl desktop:font-normal desktop:text-4xl mb-6
|
|
}
|
|
|
|
.ha-static h2 {
|
|
@apply my-3 mt-4 text-lg desktop:text-2xl
|
|
}
|
|
|
|
.ha-static h3 {
|
|
@apply mt-4 mb-2 text-hamannHighlight
|
|
}
|
|
|
|
.ha-static table {
|
|
@apply my-3 w-full
|
|
}
|
|
|
|
.ha-static table th {
|
|
@apply pl-2 pr-2 desktop:pr-4 text-left font-normal text-hamannHighlight
|
|
}
|
|
|
|
.ha-static table tr td {
|
|
@apply pl-2 pr-2 desktop:pr-4 align-top desktop:whitespace-nowrap
|
|
}
|
|
|
|
.ha-static table tr td:last-child {
|
|
@apply desktop:whitespace-normal
|
|
}
|
|
|
|
.ha-static table tr:nth-child(even) {
|
|
@apply bg-slate-200
|
|
}
|
|
|
|
.ha-static p {
|
|
@apply my-3
|
|
}
|
|
|
|
.ha-static a {
|
|
@apply underline decoration-dotted
|
|
}
|
|
|
|
.ha-static a:hover {
|
|
@apply underline decoration-solid
|
|
}
|
|
|
|
.ha-static .ha-footnote {
|
|
@apply relative text-sm desktop:text-base
|
|
}
|
|
|
|
.ha-static .ha-footnote .ha-footnote-ref {
|
|
@apply inline-block absolute text-right w-8 -left-10
|
|
}
|
|
|
|
/* Classes for register pages */
|
|
|
|
.ha-register {
|
|
@apply w-full font-serif numeric-mediaeval
|
|
}
|
|
|
|
.ha-register .ha-register-head,
|
|
.ha-register .ha-register-body {
|
|
@apply bg-slate-50 pt-9 md:pt-12 px-9 md:px-16
|
|
}
|
|
|
|
.ha-register .ha-register-head {
|
|
@apply border-b-2 border-slate-200
|
|
}
|
|
|
|
.ha-register .ha-register-head h1 {
|
|
@apply font-bold text-xl desktop:font-normal desktop:text-4xl mb-6
|
|
}
|
|
|
|
.ha-register .ha-register-head .ha-register-nav {
|
|
@apply font-sans
|
|
}
|
|
|
|
.ha-register .ha-register-head .ha-register-nav a {
|
|
@apply inline-block px-1 mr-1 md:mr-3 text-gray-700 hover:text-gray-900
|
|
}
|
|
|
|
.ha-register .ha-register-head .ha-register-nav a:first {
|
|
@apply pl-0
|
|
}
|
|
|
|
.ha-register .ha-register-head .ha-register-nav a.active {
|
|
@apply border-b-2 border-slate-200
|
|
}
|
|
|
|
.ha-register .ha-register-head .ha-register-nav .ha-register-left-nav {
|
|
@apply inline-block
|
|
}
|
|
|
|
.ha-register .ha-register-head .ha-register-nav .ha-register-right-nav {
|
|
@apply inline-block
|
|
}
|
|
|
|
.ha-register .ha-register-body {
|
|
@apply md:pr-96 pb-9 md:pb-12
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment {
|
|
@apply block mb-9 md:mb-12
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment a {
|
|
@apply underline decoration-dotted hover:decoration-solid
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment .ha-headcomment {
|
|
@apply desktop:relative block
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment .ha-subcomment {
|
|
@apply desktop:relative block ml-8 mt-2
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment .ha-commenthead {
|
|
@apply block
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment .ha-commenthead .ha-lemma {
|
|
@apply inline font-bold
|
|
}
|
|
|
|
.ha-register .ha-forschung .ha-register-body .ha-comment .ha-commenthead .ha-lemma {
|
|
@apply inline font-normal
|
|
}
|
|
|
|
.ha-register .ha-forschung .ha-register-body .ha-comment {
|
|
@apply mb-4 md:mb-6 -indent-4 pl-4
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment .ha-commenthead .ha-letlinks {
|
|
@apply inline-block font-normal text-xs md:text-sm leading-snug font-sans text-gray-600 caps-small ml-2
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment .ha-commenthead .ha-letlinks .ha-hkb {
|
|
@apply inline text-gray-900
|
|
}
|
|
|
|
.ha-register .ha-neuzeit .ha-register-body .ha-headcomment .ha-commenthead .ha-letlinks,
|
|
.ha-register .ha-forschung .ha-register-body .ha-headcomment .ha-commenthead .ha-letlinks {
|
|
@apply desktop:left-[48rem]
|
|
}
|
|
|
|
.ha-register .ha-neuzeit .ha-register-body .ha-subcomment .ha-commenthead .ha-letlinks,
|
|
.ha-register .ha-forschung .ha-register-body .ha-subcomment .ha-commenthead .ha-letlinks {
|
|
@apply desktop:left-[46rem]
|
|
}
|
|
|
|
.ha-register .ha-neuzeit .ha-register-body .ha-commenthead .ha-letlinks,
|
|
.ha-register .ha-forschung .ha-register-body .ha-commenthead .ha-letlinks {
|
|
@apply desktop:indent-0 desktop:top-0 desktop:w-80 desktop:block desktop:bg-slate-50 desktop:absolute desktop:border-l-2 desktop:border-t-[3px] desktop:border-t-slate-50 pl-2
|
|
}
|
|
|
|
.ha-register .ha-register-body .ha-comment .ha-commenthead .ha-letlinks a {
|
|
@apply hover:text-gray-900 no-underline
|
|
}
|
|
|
|
/* Classes for Letter View */
|
|
|
|
.ha-letterheader {
|
|
@apply bg-slate-50 pt-9 md:pt-12 px-9 md:px-16
|
|
}
|
|
|
|
/* Classes for MetaData View */
|
|
|
|
|
|
|
|
|
|
|
|
/* Classes from .NET */
|
|
.ha-title {
|
|
@apply inline italic
|
|
}
|
|
|
|
.ha-insertedlemma {
|
|
@apply inline
|
|
}
|
|
|
|
.ha-serif {
|
|
@apply font-serif
|
|
}
|
|
|
|
.ha-aq {
|
|
@apply font-sans
|
|
}
|
|
|
|
.ha-ul {
|
|
@apply underline
|
|
}
|
|
|
|
.ha-del {
|
|
@apply line-through
|
|
}
|
|
|
|
.ha-hand {
|
|
@apply font-classy text-[0.9rem]
|
|
}
|
|
|
|
.ha-added {
|
|
@apply bg-gray-300 px-1
|
|
}
|
|
|
|
.ha-note {
|
|
@apply italic text-gray-600
|
|
}
|
|
|
|
.ha-sup {
|
|
@apply relative -top-[0.5em] text-[80%]
|
|
}
|
|
|
|
/* Classes from Javascript */
|
|
|
|
.active {
|
|
@apply !text-hamannHighlight pointer-events-none
|
|
}
|
|
|
|
.active:hover {
|
|
@apply text-hamannHighlight
|
|
}
|
|
|
|
.ha-topnav a.active {
|
|
@apply underline underline-offset-2 desktop:no-underline desktop:border-b-4
|
|
}
|
|
|
|
.ha-topnav.ha-topnav-collapsed {
|
|
@apply block w-full h-full mt-4 text-base desktop:flex desktop:w-fit desktop:mt-0 md:text-lg 2xl:text-xl
|
|
}
|
|
|
|
.ha-topnav.ha-topnav-collapsed a {
|
|
@apply block py-1 w-full text-left clear-both desktop:inline-block desktop:py-0 desktop:w-fit
|
|
}
|
|
|
|
|
|
.ha-topnav.ha-topnav-collapsed .ha-topnav-dropdown {
|
|
@apply block desktop:inline-block
|
|
}
|
|
|
|
.ha-topnav.ha-topnav-collapsed .ha-topnav-dropdown:hover .ha-topnav-dropdown-content {
|
|
@apply desktop:block
|
|
}
|
|
|
|
.ha-topnav.ha-topnav-collapsed .ha-topnav-dropdown .ha-topnav-dropdown-content {
|
|
@apply block shadow-none border-none pt-0 desktop:hidden desktop:shadow-md desktop:border-b desktop:pt-2
|
|
}
|
|
|
|
.ha-topnav.ha-topnav-collapsed .ha-topnav-dropdown .ha-topnav-dropdown-content a {
|
|
@apply py-1 desktop:py-2
|
|
}
|
|
|
|
.ha-register .ha-headcomment .ha-btn-collapsed-box {
|
|
@apply left-[47.6rem]
|
|
}
|
|
|
|
.ha-register .ha-subcomment .ha-btn-collapsed-box {
|
|
@apply left-[45.6rem]
|
|
}
|
|
|
|
.ha-register .ha-btn-collapsed-box {
|
|
@apply hidden desktop:block absolute -top-[0.15rem] text-gray-600 hover:text-gray-900 cursor-pointer
|
|
}
|
|
|
|
.ha-register .ha-neuzeit .ha-register-body .ha-commenthead .ha-collapsed-box,
|
|
.ha-register .ha-forschung .ha-register-body .ha-commenthead .ha-collapsed-box {
|
|
@apply z-0 overflow-hidden
|
|
}
|
|
|
|
.ha-register .ha-neuzeit .ha-register-body .ha-commenthead .ha-expanded-box,
|
|
.ha-register .ha-forschung .ha-register-body .ha-commenthead .ha-expanded-box {
|
|
@apply shadow-md z-[1000] !h-auto !max-h-screen
|
|
}
|
|
|
|
/* .ha-register .ha-neuzeit .ha-register-body .ha-commenthead .ha-collapsed-box:hover,
|
|
.ha-register .ha-forschung .ha-register-body .ha-commenthead .ha-collapsed-box:hover {
|
|
@apply shadow-md z-[1000] !h-auto
|
|
} */
|
|
}
|
|
|
|
* {
|
|
text-decoration-skip-ink: all;
|
|
}
|
|
|
|
body {
|
|
background-image:url('../img/subtlenet2.png');
|
|
background-repeat:repeat;
|
|
}
|
|
|
|
/* ul {
|
|
list-style-type:circle;
|
|
} */
|
|
|
|
.downshadow-sm {
|
|
-webkit-box-shadow: 5px 6px 5px -7px rgba(0,0,0,0.79);
|
|
box-shadow: 5px 6px 5px -7px rgba(0,0,0,0.79);
|
|
}
|
|
|
|
.hyphenate {
|
|
hyphens: auto;
|
|
}
|
|
|
|
.unhyphenate {
|
|
hyphens: none;
|
|
}
|
|
|
|
.numeric-mediaeval {
|
|
font-variant-numeric: oldstyle-nums;
|
|
}
|
|
|
|
.numeric-normal {
|
|
font-variant-numeric: normal;
|
|
}
|
|
|
|
.caps-small {
|
|
font-variant-caps: all-petite-caps;
|
|
}
|
|
|
|
.caps-normal {
|
|
font-variant-caps: normal;
|
|
}
|
|
|
|
.break-inside-avoid {
|
|
break-inside: avoid;
|
|
}
|
|
|
|
.ha-menu-arrowsymbol::after {
|
|
display: inline-block;
|
|
margin-left: 0.2em;
|
|
vertical-align: 0.2em;
|
|
content: "";
|
|
border-top: 0.3em solid;
|
|
border-right: 0.3em solid transparent;
|
|
border-bottom: 0;
|
|
border-left: 0.3em solid transparent;
|
|
}
|
|
|
|
.ha-menusymbol {
|
|
background:var(--white);
|
|
border-radius:4px;
|
|
}
|
|
|
|
.ha-menusymbol svg {
|
|
width:24px;
|
|
height:24px;
|
|
stroke:#000000;
|
|
stroke-width:2;
|
|
stroke-linecap:round;
|
|
stroke-linejoin:miter;
|
|
fill:none;
|
|
color:#000000;
|
|
}
|
|
|
|
.ha-open-btn-collapsed-box::before {
|
|
content: '\200E+';
|
|
font-weight: 900;
|
|
}
|
|
|
|
.ha-close-btn-collapsed-box::before {
|
|
content: '\200E\00D7';
|
|
font-weight: 900;
|
|
}
|
|
|
|
/* Not possible otherwise, overwrites javascript set style values, which cant be defined before render */
|
|
/* @media (max-width: 1190px) {
|
|
.ha-register .ha-neuzeit .ha-register-body .ha-subcomment .ha-commenthead .ha-letlinks {
|
|
height: auto !important;
|
|
overflow: unset !important;
|
|
}
|
|
} */ |