aboutsummaryrefslogtreecommitdiffstats
path: root/css
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-06-26 09:37:39 +0200
committerFeuerfuchs <git@feuerfuchs.dev>2019-06-26 09:37:39 +0200
commita21a402d9aaaf4c2c7720da0f76b7311d3d64830 (patch)
tree932ec831065f9ce80b7d7e9182bca438e0c6d81a /css
parentImproved wrapping behavior (diff)
downloadgopherproxy-a21a402d9aaaf4c2c7720da0f76b7311d3d64830.tar.gz
gopherproxy-a21a402d9aaaf4c2c7720da0f76b7311d3d64830.tar.bz2
gopherproxy-a21a402d9aaaf4c2c7720da0f76b7311d3d64830.zip
Make word wrap optional, better mobile design
Diffstat (limited to 'css')
-rw-r--r--css/main.scss29
1 files changed, 25 insertions, 4 deletions
diff --git a/css/main.scss b/css/main.scss
index 4341ca3..f095179 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -174,6 +174,16 @@ strong {
174 } 174 }
175} 175}
176 176
177.action {
178 display: inline;
179
180 & + & {
181 &::before {
182 content: ' | '
183 }
184 }
185}
186
177// 187//
178 188
179.wrap { 189.wrap {
@@ -184,16 +194,17 @@ strong {
184.content { 194.content {
185 box-sizing: border-box; 195 box-sizing: border-box;
186 display: inline-block; 196 display: inline-block;
187 //min-width: 50em;
188 //min-width: 5ch + 80;
189 min-width: 0; 197 min-width: 0;
190 max-width: 100%; 198 max-width: 100%;
191 margin: 0; 199 margin: 0;
192 padding: 0; 200 padding: 0;
193 text-align: left; 201 text-align: left;
194 font: inherit; 202 font: inherit;
195 white-space: pre-wrap; 203
196 word-wrap: break-word; 204 &--wrap {
205 white-space: pre-wrap;
206 word-wrap: break-word;
207 }
197 208
198 &--has-type-annotations { 209 &--has-type-annotations {
199 padding-left: 3em; 210 padding-left: 3em;
@@ -308,4 +319,14 @@ strong {
308 .location__prefix { 319 .location__prefix {
309 display: none; 320 display: none;
310 } 321 }
322
323 .action {
324 display: block;
325
326 & + & {
327 &::before {
328 content: '';
329 }
330 }
331 }
311} 332}