Updating style of theme options in wizard (#6177)
This commit is contained in:
parent
3fd2571abc
commit
0e84024958
|
@ -1,3 +1,4 @@
|
||||||
|
import computed from "ember-addons/ember-computed-decorators";
|
||||||
import { observes } from "ember-addons/ember-computed-decorators";
|
import { observes } from "ember-addons/ember-computed-decorators";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -7,10 +8,17 @@ import {
|
||||||
LOREM
|
LOREM
|
||||||
} from "wizard/lib/preview";
|
} from "wizard/lib/preview";
|
||||||
|
|
||||||
export default createPreviewComponent(225, 120, {
|
export default createPreviewComponent(305, 165, {
|
||||||
logo: null,
|
logo: null,
|
||||||
avatar: null,
|
avatar: null,
|
||||||
|
|
||||||
|
classNameBindings: ["isSelected"],
|
||||||
|
|
||||||
|
@computed("selectedId", "colorsId")
|
||||||
|
isSelected(selectedId, colorsId) {
|
||||||
|
return selectedId === colorsId;
|
||||||
|
},
|
||||||
|
|
||||||
click() {
|
click() {
|
||||||
this.sendAction("onChange", this.get("colorsId"));
|
this.sendAction("onChange", this.get("colorsId"));
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<li>
|
<li>
|
||||||
{{theme-preview colorsId=choice.id
|
{{theme-preview colorsId=choice.id
|
||||||
wizard=wizard
|
wizard=wizard
|
||||||
|
selectedId=field.value
|
||||||
onChange="changed"}}
|
onChange="changed"}}
|
||||||
{{radio-button radioValue=choice.id
|
{{radio-button radioValue=choice.id
|
||||||
label=choice.id
|
label=choice.id
|
||||||
|
|
|
@ -114,7 +114,13 @@ body.wizard {
|
||||||
}
|
}
|
||||||
|
|
||||||
.wizard-step-colors {
|
.wizard-step-colors {
|
||||||
|
margin-bottom: 20px;
|
||||||
.grid {
|
.grid {
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
padding: 0;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -122,16 +128,31 @@ body.wizard {
|
||||||
li {
|
li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
margin: 15px;
|
margin: 0 5px 25px 5px;
|
||||||
|
label:checked + div {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.is-selected {
|
||||||
|
box-shadow: 0 0 0 5px $tertiary;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
display: flex;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
.radio-area {
|
.radio-area {
|
||||||
text-align: left;
|
display: none;
|
||||||
font-size: 14px;
|
|
||||||
font-weight: bold;
|
|
||||||
& > * {
|
& > * {
|
||||||
position: relative;
|
position: relative;
|
||||||
right: 7px;
|
right: 7px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
canvas {
|
||||||
|
transition: box-shadow 0.25s;
|
||||||
|
&:hover {
|
||||||
|
box-shadow: shadow("card");
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue