From 794422658b5ccc2057639e1cc0c8fea8232309a8 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 1 Feb 2018 13:11:23 +0800 Subject: [PATCH] Style tweaks --- assets/javascripts/wizard/initializers/custom.js.es6 | 4 ++++ assets/stylesheets/wizard/wizard_custom.scss | 4 ++++ assets/stylesheets/wizard/wizard_custom_mobile.scss | 10 ++++++++++ 3 files changed, 18 insertions(+) diff --git a/assets/javascripts/wizard/initializers/custom.js.es6 b/assets/javascripts/wizard/initializers/custom.js.es6 index 392cf264..020eae88 100644 --- a/assets/javascripts/wizard/initializers/custom.js.es6 +++ b/assets/javascripts/wizard/initializers/custom.js.es6 @@ -41,6 +41,10 @@ export default { WizardStep.reopen({ classNameBindings: ['step.id'], + ensureStartsAtTop: function() { + window.scrollTo(0,0); + }.observes('step.id'), + showQuitButton: function() { const index = this.get('step.index'); const required = this.get('wizard.required'); diff --git a/assets/stylesheets/wizard/wizard_custom.scss b/assets/stylesheets/wizard/wizard_custom.scss index 183a24cf..c1ebb713 100644 --- a/assets/stylesheets/wizard/wizard_custom.scss +++ b/assets/stylesheets/wizard/wizard_custom.scss @@ -430,3 +430,7 @@ img.avatar { color: rgb(231, 195, 0); } } + +.textarea-field textarea { + height: 19em; +} diff --git a/assets/stylesheets/wizard/wizard_custom_mobile.scss b/assets/stylesheets/wizard/wizard_custom_mobile.scss index de2e0f21..116641db 100644 --- a/assets/stylesheets/wizard/wizard_custom_mobile.scss +++ b/assets/stylesheets/wizard/wizard_custom_mobile.scss @@ -38,4 +38,14 @@ input, textarea { border: 1px solid #919191; } + + .wizard-column { + .checkbox-field > label { + max-width: 80%; + } + + .wizard-field .field-description img { + float: left; + } + } }