Skip to content

Commit

Permalink
consolidated table-from-exercise mixin
Browse files Browse the repository at this point in the history
Created a mixin for tables with exercises in general and removed the table-top-spacing() mixin.
  • Loading branch information
jbwilson8 committed Aug 9, 2024
1 parent 548194e commit ad64974
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion styles/books/nursing-internal/book.scss
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ $ChapterIntroType: fullWidth;
// Tables
@include carnival.basic-table(colors.$B2);
@include carnival.table-from-exercise();
@include carnival.table-top-spacing();
@include carnival.column-header-table(colors.$B2);
@include carnival.vertically-tight-table();
@include carnival.table-column();
Expand Down
13 changes: 7 additions & 6 deletions styles/lib/carnival/features/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,14 @@
}
}
}

}

@mixin table-top-spacing(){
.os-eoc .os-problem-container, .os-eob .os-solution-container{
margin-top: 1rem;
.os-eob {
> .os-solution-container {
> p + .os-table {
margin-top: 1rem;
}
}
}

}

@mixin table-column(){
Expand Down
2 changes: 1 addition & 1 deletion styles/output/nursing-internal-pdf.css
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ h4.os-subtitle + .os-figure:not(.has-splash) > figure {
margin-top: 1rem;
}

.os-eoc .os-problem-container, .os-eob .os-solution-container {
.os-eob > .os-solution-container > p + .os-table {
margin-top: 1rem;
}

Expand Down

0 comments on commit ad64974

Please sign in to comment.