diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-17 12:09:04 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-17 12:09:04 -0400 |
commit | d383ed2f8dfc320c090b67d9f2e2d111710ca3cf (patch) | |
tree | 4051092e6838f0564af8a7e2116aefbceb1409d1 /webapp/sass/components | |
parent | 2cd006474ec8a808b2ea2b0502a842f44cb0b127 (diff) | |
parent | 529513606b74fce60cbb066b381b27fbb6ea9d52 (diff) | |
download | chat-d383ed2f8dfc320c090b67d9f2e2d111710ca3cf.tar.gz chat-d383ed2f8dfc320c090b67d9f2e2d111710ca3cf.tar.bz2 chat-d383ed2f8dfc320c090b67d9f2e2d111710ca3cf.zip |
Merge pull request #2380 from rodrigocorsi2/code_preview
Created component CodePreview
Diffstat (limited to 'webapp/sass/components')
-rw-r--r-- | webapp/sass/components/_files.scss | 1 | ||||
-rw-r--r-- | webapp/sass/components/_modal.scss | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/webapp/sass/components/_files.scss b/webapp/sass/components/_files.scss index b854312c1..5522c6db8 100644 --- a/webapp/sass/components/_files.scss +++ b/webapp/sass/components/_files.scss @@ -234,6 +234,7 @@ .file-details__container { @include display-flex; + background: $white; .file-details { height: 270px; diff --git a/webapp/sass/components/_modal.scss b/webapp/sass/components/_modal.scss index 601aa33ab..94378aabe 100644 --- a/webapp/sass/components/_modal.scss +++ b/webapp/sass/components/_modal.scss @@ -256,13 +256,27 @@ } > div { - background: $white; display: inline-block; min-height: 100px; min-width: 320px; position: relative; } + code { + min-height: 130px; + min-width: 330px; + } + + pre, code { + display: inline-block; + } + + .post-body--code { + max-height: calc(100vh - 80px); + max-width: calc(100vw - 80px); + overflow: auto; + } + img { max-height: 100%; max-width: 100%; |