Revert "UX: Integrate text with button to improve spacing"
This reverts commit ad4bae2f4d
.
This commit is contained in:
parent
ad4bae2f4d
commit
d3babfddd3
|
@ -96,7 +96,9 @@ function initializeWithApi(api, container) {
|
||||||
title: "solved.accept_answer",
|
title: "solved.accept_answer",
|
||||||
className: "unaccepted",
|
className: "unaccepted",
|
||||||
position,
|
position,
|
||||||
label: "solved.mark_as_solution"
|
afterButton(h) {
|
||||||
|
return h("span.unaccepted", I18n.t("solved.mark_as_solution"));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
} else if (attrs.accepted_answer) {
|
} else if (attrs.accepted_answer) {
|
||||||
return {
|
return {
|
||||||
|
@ -105,7 +107,9 @@ function initializeWithApi(api, container) {
|
||||||
title: "solved.accept_answer",
|
title: "solved.accept_answer",
|
||||||
className: "accepted",
|
className: "accepted",
|
||||||
position: "first",
|
position: "first",
|
||||||
label: "solved.solution"
|
afterButton(h) {
|
||||||
|
return h("span.accepted", I18n.t("solved.solution"));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
#topic-title .d-icon-far-check-square {
|
#topic-title .d-icon-far-check-square {
|
||||||
margin-top: 0.25em;
|
margin-top: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.accepted {
|
|
||||||
.d-button-label {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -50,15 +50,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-controls {
|
.post-controls .unaccepted {
|
||||||
.unaccepted,
|
color: dark-light-choose($primary-low-mid, $secondary-high);
|
||||||
.accepted {
|
|
||||||
&.btn-icon-text {
|
|
||||||
.d-icon {
|
|
||||||
margin-right: 0.3em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-controls span:not(.d-button-label) {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-controls .accepted-text {
|
.post-controls .accepted-text {
|
||||||
|
|
Loading…
Reference in New Issue