Skip to content

Commit 3ba988d

Browse files
add odd styling
not yet finished
1 parent 9abb412 commit 3ba988d

File tree

4 files changed

+65
-5
lines changed

4 files changed

+65
-5
lines changed

src/app.postcss

+60
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,64 @@ body {
8282
@apply mb-2;
8383
}
8484
}
85+
}
86+
87+
.tei-content {
88+
.sr {
89+
color: green;
90+
}
91+
.del_sr {
92+
color: #666;
93+
@apply line-through;
94+
}
95+
.subst, .subst_sr {
96+
.deleted {
97+
color: #666;
98+
}
99+
color: green;
100+
}
101+
.subst_ls {
102+
color: #8CFFF4;
103+
.deleted {
104+
color: #666;
105+
}
106+
.rasure {
107+
@apply bg-[#666];
108+
}
109+
}
110+
.red {
111+
color: #F60;
112+
@apply decoration-red-500;
113+
}
114+
.underline {
115+
text-decoration: underline;
116+
}
117+
.marginalia {
118+
@apply italic;
119+
@apply ml-4;
120+
}
121+
.corr {
122+
@apply italic;
123+
}
124+
.gap {
125+
color: green;
126+
@apply bg-[#9f9f9f];
127+
}
128+
.initial, .glory-initial {
129+
@apply font-bold;
130+
@apply text-2xl;
131+
@apply text-red-500;
132+
}
133+
.glory-initial {
134+
@apply bg-[gold];
135+
}
136+
137+
.content:has(.versechange) {
138+
&::after {
139+
content: "\2195";
140+
@apply inline;
141+
@apply h-4;
142+
@apply ml-2;
143+
}
144+
}
85145
}

src/routes/einzelverssynopse/[thirties]/[verse]/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="container mx-auto p-4 flex flex-wrap justify-between gap-9">
1414
<h1 class="h1 w-full">Verssynopse zu {thirties}.{verse}</h1>
15-
<div>
15+
<div class="tei-content">
1616
<dl class="grid grid-cols-[auto_1fr] justify-between h-fit mb-4 w-fit font-mono">
1717
<dt class="font-bold font-heading-token pr-4">Handschrift</dt>
1818
<dd class="font-bold font-heading-token border-l-2 border-current pl-4">Wortlaut</dd>

src/routes/fassungen/[thirties]/FassungenContent.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@
7474
use:setSyncedScroll
7575
>
7676
{#each pages as page (page[0])}
77-
<div class="thirty" use:addToObserver>
77+
<div class="thirty tei-content" use:addToObserver>
7878
{@html page[1]}
7979
</div>
8080
<hr class="!border-t-4 !border-primary-500" />
8181
{/each}
8282
</div>
8383
84-
<style>
84+
<style lang="postcss">
8585
.thirty {
8686
:global(.once) {
8787
-webkit-animation-iteration-count: 4;

src/routes/textzeugen/[[sigla]]/[[thirties]]/[[verse]]/TextzeugenContent.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
Lade Seite...
156156
{:then tpData}
157157
<div
158-
class="page"
158+
class="page tei-content"
159159
data-id={pageObject.id}
160160
data-next={tpData.nextId}
161161
data-previous={tpData.previousId}
@@ -195,7 +195,7 @@
195195
{/if}
196196
</div>
197197
198-
<style>
198+
<style lang="postcss">
199199
.page {
200200
:global(.once) {
201201
-webkit-animation-iteration-count: 4;

0 commit comments

Comments
 (0)