diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-25 17:57:19 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-25 17:57:19 +0200 |
commit | 487e80adc7823b4fb91b660ec58b56e2adaaa7bb (patch) | |
tree | 245ad438df36075c51cf8a59f46f257d9633fcd3 /css | |
parent | Wrap content on smaller screens (diff) | |
download | gopherproxy-487e80adc7823b4fb91b660ec58b56e2adaaa7bb.tar.gz gopherproxy-487e80adc7823b4fb91b660ec58b56e2adaaa7bb.tar.bz2 gopherproxy-487e80adc7823b4fb91b660ec58b56e2adaaa7bb.zip |
Improved wrapping behavior
Diffstat (limited to 'css')
-rw-r--r-- | css/main.scss | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/css/main.scss b/css/main.scss index 418f483..4341ca3 100644 --- a/css/main.scss +++ b/css/main.scss | |||
@@ -177,26 +177,37 @@ strong { | |||
177 | // | 177 | // |
178 | 178 | ||
179 | .wrap { | 179 | .wrap { |
180 | padding: 2em 1em; | ||
180 | text-align: center; | 181 | text-align: center; |
181 | } | 182 | } |
182 | 183 | ||
183 | .content { | 184 | .content { |
184 | display: inline-block; | 185 | box-sizing: border-box; |
186 | display: inline-block; | ||
185 | //min-width: 50em; | 187 | //min-width: 50em; |
186 | //min-width: 5ch + 80; | 188 | //min-width: 5ch + 80; |
187 | min-width: 0; | 189 | min-width: 0; |
188 | max-width: 100%; | 190 | max-width: 100%; |
189 | margin: 0; | 191 | margin: 0; |
190 | padding: 2em 1em; | 192 | padding: 0; |
191 | text-align: left; | 193 | text-align: left; |
192 | font: inherit; | 194 | font: inherit; |
193 | white-space: pre-wrap; | 195 | white-space: pre-wrap; |
196 | word-wrap: break-word; | ||
197 | |||
198 | &--has-type-annotations { | ||
199 | padding-left: 3em; | ||
200 | padding-left: 5ch; | ||
201 | } | ||
194 | } | 202 | } |
195 | 203 | ||
196 | // | 204 | // |
197 | 205 | ||
198 | .type-annotation { | 206 | .type-annotation { |
199 | color: $text-minus; | 207 | margin-left: -3em; |
208 | margin-left: -5ch; | ||
209 | color: $text-minus; | ||
210 | white-space: pre; | ||
200 | } | 211 | } |
201 | 212 | ||
202 | // | 213 | // |