Commit 0e6ddab0 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Extract and document `.u-wrap-reverse` class

parent ed2f95a5
......@@ -115,10 +115,7 @@ function AnnotationHeader({
return (
<header>
<div
className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2"
style="flex-wrap:wrap-reverse"
>
<div className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2 u-wrap-reverse">
{annotationIsPrivate && !isEditing && (
<Icon
classes="u-icon--xsmall"
......@@ -149,10 +146,7 @@ function AnnotationHeader({
</div>
{showExtendedInfo && (
<div
className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2"
style="flex-wrap:wrap-reverse"
>
<div className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2 u-wrap-reverse">
<AnnotationShareInfo annotation={annotation} />
{!isEditing && isHighlight(annotation) && (
<Icon
......
......@@ -79,6 +79,12 @@
text-align: center;
}
// A style to make a flex row wrap from bottom to top instead of (default)
// top to bottom
.u-wrap-reverse {
flex-wrap: wrap-reverse;
}
// TODO: This is a temporary utility class to allow elements in the sidebar
// (e.g. panels, thread cards, etc.)
// to apply margins such that they are evenly spaced. In the future, the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment