Skip to content

Commit

Permalink
Add separator between length and complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Apr 28, 2021
1 parent ac7e545 commit 208a2a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/blocks/lesson-metadata/lesson-metadata-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ const LessonMetadataEdit = ( props ) => {
</span>
) }

{ !! length && complexity && (
<span className="separator">|</span>
) }

{ complexity && (
<span className="lesson-complexity">
{ __( 'Complexity', 'sensei-lms' ) +
Expand Down
4 changes: 2 additions & 2 deletions assets/blocks/lesson-metadata/lesson-metadata-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: .9em;
font-style: italic;

.lesson-length {
margin-right: 0.5em;
.separator {
margin: 0 0.5em 0;
}
}

0 comments on commit 208a2a9

Please sign in to comment.