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({ ...@@ -115,10 +115,7 @@ function AnnotationHeader({
return ( return (
<header> <header>
<div <div className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2 u-wrap-reverse">
className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2"
style="flex-wrap:wrap-reverse"
>
{annotationIsPrivate && !isEditing && ( {annotationIsPrivate && !isEditing && (
<Icon <Icon
classes="u-icon--xsmall" classes="u-icon--xsmall"
...@@ -149,10 +146,7 @@ function AnnotationHeader({ ...@@ -149,10 +146,7 @@ function AnnotationHeader({
</div> </div>
{showExtendedInfo && ( {showExtendedInfo && (
<div <div className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2 u-wrap-reverse">
className="hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2"
style="flex-wrap:wrap-reverse"
>
<AnnotationShareInfo annotation={annotation} /> <AnnotationShareInfo annotation={annotation} />
{!isEditing && isHighlight(annotation) && ( {!isEditing && isHighlight(annotation) && (
<Icon <Icon
......
...@@ -79,6 +79,12 @@ ...@@ -79,6 +79,12 @@
text-align: center; 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 // TODO: This is a temporary utility class to allow elements in the sidebar
// (e.g. panels, thread cards, etc.) // (e.g. panels, thread cards, etc.)
// to apply margins such that they are evenly spaced. In the future, the // 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