-
Notifications
You must be signed in to change notification settings - Fork 0
/
poem.css
89 lines (73 loc) · 1.93 KB
/
poem.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
body {
counter-reset: poem; /* Set a counter named 'section', and its initial value is 0. */
}
stanza {
border: black solid 2px; /*add a border around stanzas*/
margin: 50px; /*with margins so that borders don't run into each other! */
display: block; /*this is important! display on its own line*/
}
line {
display: block; /*this is important! display on its own line*/
}
/* since there are no actual spaces in the text,add a margin to make it readable */
/* if you remove it, the words will run together. */
word {
margin-left: .222em;
/* color: green; */
display: inline; /*Important!! Don't display on own line*/
}
/* consider whether you want to color/display your punctuation */
punctuation {
/* visibility: hidden; */
/* width: 0px; */
}
punctuation::after {
visibility: visible;
/* content: "!" */
}
indent {
white-space: pre-wrap; /*preserve whitespace of indentations*/
display: inline;
}
/* add a counter to each line. if you don't like it, delete or comment the `content` line */
line::before {
counter-increment: poem;
content: counter(poem);
width: 2em;
background-color: #DDD;
}
/* --------- class rules ------------ */
line {
/* visibility: hidden; */
display: flex;
/* uncomment the next two lines to display text backwards */
/* flex-direction: row-reverse; */
/* justify-content: left */
}
line.show {
visibility: visible;
color: #112505;
background-color: grey;
font-weight: 100;
font-style: italic;
}
/* Another way to do the deformation */
line {
/* direction:rtl; */
}
/*
.time {display: block;
font-weight: bold;}
.hide {visibility: hidden;}
.death {
color: #991111;
background-color: rgba(4,4,4,0.3);
font-weight:700;
}
.wealth {
color: gold;
font-style: italic;
}
.prayer {
background-color: magenta;
} */