Skip to content

Commit

Permalink
adjust CSS for figures
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Apr 22, 2024
1 parent 68a3a26 commit 1f07868
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
14 changes: 0 additions & 14 deletions resources/sass/base/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,6 @@
background-color: $gray-dark;
}

.float-left img {
float:left;
margin: 0px 2em 1em 0px;
padding: .5em 1em;
max-width: 100%;
}

.float-right img {
float:right;
margin: 0px 0px 1em 2em;
padding: .5em 1em;
max-width: 100%;
}

.inline {
display:inline !important;
margin: 0px 1em;
Expand Down
29 changes: 29 additions & 0 deletions resources/sass/components/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ div.table-wrapper {
margin: $line-height-computed auto;
}

figure {
&.align-horizontally,
&.float-left,
&.float-right {
text-align:center;
}
}

.float-left img {
margin: 0px 2em 1em 0px;
padding: .5em 1em;
max-width: 100%;
}

.float-right img {
margin: 0px 0px 1em 2em;
padding: .5em 1em;
max-width: 100%;
}

/* caption text below images */
figcaption {
font-style: italic;
text-align: center;
font-size: smaller;
margin: auto;
max-width:75%;
}

/*
* Animated highlighting, used e.g. for historic footnotes (see https://github.com/Edirom/WeGA-WebApp/issues/226)
*/
Expand Down

0 comments on commit 1f07868

Please sign in to comment.