Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 02:30:28 +01:00
Add wizard & step classes && add some 3rd party css (to be removed)
Dieser Commit ist enthalten in:
Ursprung
c490523412
Commit
ded156c4dd
3 geänderte Dateien mit 19 neuen und 0 gelöschten Zeilen
|
@ -32,6 +32,8 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
WizardStep.reopen({
|
WizardStep.reopen({
|
||||||
|
classNameBindings: ['step.id'],
|
||||||
|
|
||||||
showQuitButton: function() {
|
showQuitButton: function() {
|
||||||
const index = this.get('step.index');
|
const index = this.get('step.index');
|
||||||
const required = this.get('wizard.required');
|
const required = this.get('wizard.required');
|
||||||
|
|
|
@ -19,6 +19,7 @@ export default Ember.Route.extend({
|
||||||
const background = model ? model.get('background') : 'AliceBlue';
|
const background = model ? model.get('background') : 'AliceBlue';
|
||||||
Ember.run.scheduleOnce('afterRender', this, function(){
|
Ember.run.scheduleOnce('afterRender', this, function(){
|
||||||
$('body.custom-wizard').css('background', background);
|
$('body.custom-wizard').css('background', background);
|
||||||
|
$('#custom-wizard-main').addClass(model.get('id').dasherize());
|
||||||
});
|
});
|
||||||
|
|
||||||
controller.setProperties({
|
controller.setProperties({
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.image-container {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
img.large {
|
img.large {
|
||||||
width: 250;
|
width: 250;
|
||||||
padding: 25px;;
|
padding: 25px;;
|
||||||
|
@ -186,3 +190,15 @@
|
||||||
transform: rotate(360deg);
|
transform: rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 3rd party styles TO BE REMOVED / REFACTORED
|
||||||
|
|
||||||
|
#custom-wizard-main.place-petition {
|
||||||
|
.wizard-step.intro .image-container {
|
||||||
|
margin: 30px 0;
|
||||||
|
|
||||||
|
img {
|
||||||
|
padding: 20px 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Laden …
In neuem Issue referenzieren