about summary refs log tree commit diff
path: root/app/javascript/styles/mastodon/variables.scss
diff options
context:
space:
mode:
authorYuto Tokunaga <yuntan.sub1@gmail.com>2018-03-26 20:59:21 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-26 13:59:21 +0200
commitf691afaae913fdb3041864b2824ca092e092ba84 (patch)
tree6d15823bacd1498ddac224074442b50235a91d64 /app/javascript/styles/mastodon/variables.scss
parent605a92b4607589c64acf9c5cb58d2fcc68e2606a (diff)
Refactor scss (#6913)
* Refactoring scss

introduce scss variables for the media modal
fix css block structure corresponding to react components
fix flex layouts
remove background image of the loaded image on the media modal

* Fix typo
Diffstat (limited to 'app/javascript/styles/mastodon/variables.scss')
-rw-r--r--app/javascript/styles/mastodon/variables.scss5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/variables.scss b/app/javascript/styles/mastodon/variables.scss
index dcc2857ff..e456c27ee 100644
--- a/app/javascript/styles/mastodon/variables.scss
+++ b/app/javascript/styles/mastodon/variables.scss
@@ -30,3 +30,8 @@ $ui-highlight-color: $classic-highlight-color !default;        // Vibrant
 
 // Language codes that uses CJK fonts
 $cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW;
+
+// Variables for components
+$media-modal-media-max-width: 100%;
+// put margins on top and bottom of image to avoid the screen covered by image.
+$media-modal-media-max-height: 80%;