diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-11-15 12:39:49 +0100 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-11-15 12:39:49 +0100 |
commit | 377b52423d1460791e340534a66add06bd4a33ba (patch) | |
tree | f4449df712166a517e7ee941edd2b48b2a86dd5a /css | |
parent | Limit content with to 100ch (diff) | |
download | gopherproxy-377b52423d1460791e340534a66add06bd4a33ba.tar.gz gopherproxy-377b52423d1460791e340534a66add06bd4a33ba.tar.bz2 gopherproxy-377b52423d1460791e340534a66add06bd4a33ba.zip |
Only enable max with if wrapping is enabled
Diffstat (limited to 'css')
-rw-r--r-- | css/main.scss | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/css/main.scss b/css/main.scss index be9dbea..bed3b24 100644 --- a/css/main.scss +++ b/css/main.scss | |||
@@ -186,11 +186,19 @@ strong { | |||
186 | // Site content classes | 186 | // Site content classes |
187 | 187 | ||
188 | .wrap { | 188 | .wrap { |
189 | max-width: 50em; | ||
190 | max-width: 100ch; | ||
191 | margin: 0 auto; | ||
192 | padding: 2em 1em; | 189 | padding: 2em 1em; |
193 | text-align: center; | 190 | text-align: center; |
191 | |||
192 | &--word-wrap { | ||
193 | max-width: 50em; | ||
194 | max-width: 100ch; | ||
195 | margin: 0 auto; | ||
196 | |||
197 | .content { | ||
198 | white-space: pre-wrap; | ||
199 | word-wrap: break-word; | ||
200 | } | ||
201 | } | ||
194 | } | 202 | } |
195 | 203 | ||
196 | .content { | 204 | .content { |
@@ -204,11 +212,6 @@ strong { | |||
204 | font: inherit; | 212 | font: inherit; |
205 | font-family: $font-proportional; | 213 | font-family: $font-proportional; |
206 | 214 | ||
207 | &--wrap { | ||
208 | white-space: pre-wrap; | ||
209 | word-wrap: break-word; | ||
210 | } | ||
211 | |||
212 | &--has-type-annotations { | 215 | &--has-type-annotations { |
213 | padding-left: 3em; | 216 | padding-left: 3em; |
214 | padding-left: 5ch; | 217 | padding-left: 5ch; |