diff options
author | Case Duckworth | 2015-03-14 11:33:26 -0700 |
---|---|---|
committer | Case Duckworth | 2015-03-14 11:33:26 -0700 |
commit | 5685e1dba9b485939c833ba86f4e5c2e5e34453b (patch) | |
tree | f61602ba63e905e9bc7033ad06e790e7356e4dc6 /css | |
parent | Move test suite into its own folder (diff) | |
download | autocento-5685e1dba9b485939c833ba86f4e5c2e5e34453b.tar.gz autocento-5685e1dba9b485939c833ba86f4e5c2e5e34453b.zip |
Mostly fix #11: Dedication/epigraph alignment
So the issue is solved in terms of how it looks, though it adds a gross extra div into every page and uses :only-child, which I don't think is super-supported. But it's the best I can do that I know of until we get to better flexbox support. Or you know, maybe later I can try doing some templating fixes-- injecting classes so that normally, .dedication is right-aligned but when an epigraph is present, change the class to .dedication-left or something. IDK. Either way is sort of ugly. :(
Diffstat (limited to 'css')
-rw-r--r-- | css/common.css | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/css/common.css b/css/common.css index 2ac70f3..cef8a39 100644 --- a/css/common.css +++ b/css/common.css | |||
@@ -15,7 +15,7 @@ html, body { | |||
15 | padding: 0; | 15 | padding: 0; |
16 | 16 | ||
17 | font-family: "Libertine", serif; | 17 | font-family: "Libertine", serif; |
18 | font-size: 12pt; | 18 | font-size: 100%; /* = 12pt = 16px */ |
19 | } | 19 | } |
20 | html { height: 100%; } | 20 | html { height: 100%; } |
21 | body { | 21 | body { |
@@ -66,7 +66,7 @@ nav { | |||
66 | text-align: center; | 66 | text-align: center; |
67 | } | 67 | } |
68 | .footnotes { | 68 | .footnotes { |
69 | font-size: 10pt; | 69 | font-size: 0.85em; |
70 | width: 100%; | 70 | width: 100%; |
71 | position: absolute; | 71 | position: absolute; |
72 | top: 100%; | 72 | top: 100%; |
@@ -85,7 +85,7 @@ nav { | |||
85 | /* HEADINGS {{{ */ | 85 | /* HEADINGS {{{ */ |
86 | .title { | 86 | .title { |
87 | font-family: "Playfair Display", Georgia, serif; | 87 | font-family: "Playfair Display", Georgia, serif; |
88 | font-size: 18pt; | 88 | font-size: 1.5em; |
89 | /* font-weight: bold; */ | 89 | /* font-weight: bold; */ |
90 | font-weight: 400; | 90 | font-weight: 400; |
91 | letter-spacing: 0.1em; | 91 | letter-spacing: 0.1em; |
@@ -94,7 +94,7 @@ nav { | |||
94 | } | 94 | } |
95 | .subtitle { | 95 | .subtitle { |
96 | font-family: "Playfair Display", Georgia, serif; | 96 | font-family: "Playfair Display", Georgia, serif; |
97 | font-size: 15pt; | 97 | font-size: 1.25em; |
98 | font-style: italic; | 98 | font-style: italic; |
99 | font-weight: 400; | 99 | font-weight: 400; |
100 | /* position: relative; */ | 100 | /* position: relative; */ |
@@ -104,7 +104,7 @@ nav { | |||
104 | } | 104 | } |
105 | h2 { | 105 | h2 { |
106 | font-family: "Playfair Display", Georgia, serif; | 106 | font-family: "Playfair Display", Georgia, serif; |
107 | font-size: 12pt; | 107 | font-size: 1em; |
108 | font-weight: 600; | 108 | font-weight: 600; |
109 | } | 109 | } |
110 | header { | 110 | header { |
@@ -146,7 +146,7 @@ a[href^="http"]:active { | |||
146 | /* IMAGES {{{ */ | 146 | /* IMAGES {{{ */ |
147 | .ekphrastic { | 147 | .ekphrastic { |
148 | max-width: 41em; | 148 | max-width: 41em; |
149 | margin-top: -1em; | 149 | /* margin-top: -1em; */ |
150 | margin-bottom: 1em; | 150 | margin-bottom: 1em; |
151 | margin-left: auto; | 151 | margin-left: auto; |
152 | margin-right: auto; | 152 | margin-right: auto; |
@@ -161,18 +161,31 @@ img { | |||
161 | /* DEDICATION {{{ */ | 161 | /* DEDICATION {{{ */ |
162 | .dedication { | 162 | .dedication { |
163 | font-style: italic; | 163 | font-style: italic; |
164 | font-size: 11pt; | 164 | font-size: 0.92em; |
165 | margin-top: 1em; | 165 | margin-top: 1em; |
166 | } | 166 | } |
167 | .dedication::before { | 167 | .dedication::before { |
168 | content: 'for '; | 168 | content: 'for '; |
169 | font-style: italic; | 169 | font-style: italic; |
170 | } | 170 | } |
171 | .dedication:only-child { | ||
172 | text-align: right; | ||
173 | } | ||
171 | /* dedication }}} */ | 174 | /* dedication }}} */ |
175 | .header-extra { | ||
176 | text-align: right; | ||
177 | } | ||
178 | .dedication,.epigraph { | ||
179 | vertical-align: bottom; | ||
180 | display: inline-block; | ||
181 | margin-left: 2%; | ||
182 | margin-right: 2%; | ||
183 | width: 45%; | ||
184 | } | ||
172 | /* EPIGRAPH {{{ */ | 185 | /* EPIGRAPH {{{ */ |
173 | .epigraph { | 186 | .epigraph { |
174 | text-align: right; | 187 | text-align: right; |
175 | font-size: 11pt; | 188 | font-size: 0.92em; |
176 | font-style: italic; | 189 | font-style: italic; |
177 | margin-top: 1em; | 190 | margin-top: 1em; |
178 | } | 191 | } |
@@ -182,7 +195,7 @@ img { | |||
182 | .epigraph .attrib { | 195 | .epigraph .attrib { |
183 | text-align: right; | 196 | text-align: right; |
184 | margin-top: 0; | 197 | margin-top: 0; |
185 | font-size: 11pt; | 198 | font-size: 0.92em; |
186 | font-style: normal; | 199 | font-style: normal; |
187 | } | 200 | } |
188 | .epigraph .attrib::before { | 201 | .epigraph .attrib::before { |
@@ -199,7 +212,7 @@ nav .prevlink, nav .nextlink { | |||
199 | margin: 0 0.5em; | 212 | margin: 0 0.5em; |
200 | width: 20%; | 213 | width: 20%; |
201 | display: block; | 214 | display: block; |
202 | font-size: 10pt; | 215 | font-size: 0.85em; |
203 | font-family: "Playfair Display", Georgia, serif; | 216 | font-family: "Playfair Display", Georgia, serif; |
204 | font-style: italic; | 217 | font-style: italic; |
205 | text-transform: lowercase; | 218 | text-transform: lowercase; |