summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_modal.scss
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-17 12:09:04 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-17 12:09:04 -0400
commitd383ed2f8dfc320c090b67d9f2e2d111710ca3cf (patch)
tree4051092e6838f0564af8a7e2116aefbceb1409d1 /webapp/sass/components/_modal.scss
parent2cd006474ec8a808b2ea2b0502a842f44cb0b127 (diff)
parent529513606b74fce60cbb066b381b27fbb6ea9d52 (diff)
downloadchat-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/_modal.scss')
-rw-r--r--webapp/sass/components/_modal.scss16
1 files changed, 15 insertions, 1 deletions
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%;