about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-12-10 20:24:11 -0800
committerkibigo! <marrus-sh@users.noreply.github.com>2017-12-10 20:32:28 -0800
commited7231947c618b7c7c471699a05da85c59afa824 (patch)
tree4528c00ac4dca5610c57bda525c77c62d0b23e66
parentbdca1614d574a4b34633a19776446d2d8cf2d2e6 (diff)
Added styling
-rw-r--r--app/javascript/flavours/glitch/styles/admin.scss16
-rw-r--r--app/views/settings/flavours/show.html.haml2
2 files changed, 17 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/styles/admin.scss b/app/javascript/flavours/glitch/styles/admin.scss
index 87bc710af..7c5032217 100644
--- a/app/javascript/flavours/glitch/styles/admin.scss
+++ b/app/javascript/flavours/glitch/styles/admin.scss
@@ -246,6 +246,22 @@
   }
 }
 
+.flavour-screen {
+  display: block;
+  margin: 10px auto;
+  max-width: 100%;
+}
+
+.flavour-description {
+  display: block;
+  font-size: 16px;
+  margin: 10px 0;
+
+  & > p {
+    margin: 10px 0;
+  }
+}
+
 .report-accounts {
   display: flex;
   flex-wrap: wrap;
diff --git a/app/views/settings/flavours/show.html.haml b/app/views/settings/flavours/show.html.haml
index 8214f1b3d..43c037737 100644
--- a/app/views/settings/flavours/show.html.haml
+++ b/app/views/settings/flavours/show.html.haml
@@ -5,7 +5,7 @@
   = render 'shared/error_messages', object: current_user
 
   - Themes.instance.flavour(@selected)['screenshot'].each do |screen|
-    %img.flavour-screen{ width: 700, src: asset_pack_path(screen) }
+    %img.flavour-screen{ src: asset_pack_path(screen) }
 
   .flavour-description
     = t "flavours.#{@selected}.description", default: ''