summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/editor/paragraph/paragraph.css
blob: 5743dbbfbac40940c6d0cac1734f286f5537c905 (plain)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
.paragraphs {
  width: 100%;
  height: calc(100% - 3.125rem);
  overflow: scroll;
  background: white;
  color: black;
  padding: 1rem;
}

/* general paragraph styles */

.paragraphs .content {
  font-family: 'Georgia', serif;
  width: 650px;
  margin: 0 auto;
  padding-bottom: 6rem;
  position: relative;
}

.paragraphs .content > div {
  margin-bottom: 16px;
}

/* paragraph subtypes */

.paragraphs .section_heading {
  font-size: 32px;
}

.paragraphs .heading_text {
  font-size: 32px;
}

.paragraphs .intro_paragraph {
  font-size: 18px;
  line-height: 1.5;
}

.paragraphs .paragraph {
  font-size: 16px;
  line-height: 1.5;
}
.paragraphs .footnote {
  font-size: 13px;
  position: relative;
  top: -8px;
  left: -4px;
  cursor: pointer;
}

.paragraphs .blockquote {
  padding-left: 3rem;
}

.paragraphs .hidden {
  opacity: 0.5;
}

.paragraphs .pullquote {
  border-left: 2px solid #ddd;
  padding-left: 2rem;
  font-size: 20px;
}

.paragraphs .pullquote_credit {
  display: block;
  margin-top: 1rem;
}
.paragraphs .pullquote_credit:before {
  content: '—';
}


/* media image */

.paragraphs .media.image img {
  width: 100%;
}

/* current paragraph */

.paragraphs .paragraph.current {
  background: rgba(0,0,0,0.0);
}

/* sentences */

.paragraphs span {
  margin-right: 4px;
  cursor: pointer;
}

.paragraphs .paragraph .current {
  box-shadow: -2px -3px 0 #fff,
               2px -3px 0 #fff,
              -2px  3px 0 #fff,
               2px  3px 0 #fff;
  box-decoration-break: clone;
  background: black;
  color: white;
}

/* paragraph form */

.paragraphForm {
  position: absolute;
  right: -305px;
  width: 300px;
  padding: 0.5rem;
  background: #838;
  color: #ddd;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-family: 'Roboto', sans-serif;
}
.paragraphForm .select div {
  color: #ddd;
  font-family: 'Roboto', sans-serif;
}
.paragraphForm .row {
  justify-content: space-between;
  align-items: center;
}
.paragraphForm .row > div {
  display: flex;
  align-items: center;
}