From 35339bb11f2c410b91a5e8b9ae1d2fef19cac695 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 5 Jun 2015 18:13:12 -0400 Subject: Update markup/styling for syntax highlight theme preference --- app/assets/stylesheets/pages/profiles/preferences.scss | 12 +++++------- app/views/profiles/preferences/show.html.haml | 4 ++-- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'app') diff --git a/app/assets/stylesheets/pages/profiles/preferences.scss b/app/assets/stylesheets/pages/profiles/preferences.scss index e8c80362817..e5859fe7384 100644 --- a/app/assets/stylesheets/pages/profiles/preferences.scss +++ b/app/assets/stylesheets/pages/profiles/preferences.scss @@ -37,22 +37,20 @@ } } -.code_highlight_opts { - margin-top: 10px; - +.syntax-theme { label { margin-right: 20px; text-align: center; - .prev { - width: 160px; + .preview { margin-bottom: 10px; + width: 160px; img { - max-width: 100%; @include border-radius(4px); + + max-width: 100%; } } } } - diff --git a/app/views/profiles/preferences/show.html.haml b/app/views/profiles/preferences/show.html.haml index bfce0d8ef96..680c0930bba 100644 --- a/app/views/profiles/preferences/show.html.haml +++ b/app/views/profiles/preferences/show.html.haml @@ -16,9 +16,9 @@ = f.radio_button :theme_id, theme.id = theme.name - .panel.panel-default.code-preview-theme + .panel.panel-default.syntax-theme .panel-heading - Code preview theme + Syntax highlighting theme .panel-body - color_schemes.each do |color_scheme_id, color_scheme| = label_tag do -- cgit v1.2.1