Ensure long file paths in code examples break if needed

This commit is contained in:
ines 2017-10-14 12:51:52 +02:00
parent bfd9506f1d
commit bb6ecb82e5
3 changed files with 5 additions and 2 deletions

View File

@ -84,7 +84,7 @@
],
"ALPHA": true,
"V_CSS": "2.0a0",
"V_CSS": "2.0a1",
"V_JS": "2.0a0",
"DEFAULT_SYNTAX": "python",
"ANALYTICS": "UA-58931649-1",

View File

@ -190,7 +190,7 @@ mixin github(repo, file, alt_file, height)
code.c-code-block__content(data-gh-embed="#{repo}/#{branch}/#{file}")
footer.o-grid.u-text
.o-block-small.u-flex-full #[+icon("github")] #[code=repo + '/' + (alt_file || file)]
.o-block-small.u-flex-full.u-padding-small #[+icon("github")] #[code.u-break.u-break--all=repo + '/' + (alt_file || file)]
div
+button(gh(repo, alt_file || file), false, "primary", "small") View on GitHub

View File

@ -188,6 +188,9 @@
word-wrap: break-word
white-space: initial
&.u-break--all
word-break: break-all
.u-no-border
border: none