diff --git a/public/parsing.wasm b/public/parsing.wasm index 40906827..556c6716 100755 Binary files a/public/parsing.wasm and b/public/parsing.wasm differ diff --git a/public/style.css b/public/style.css index a486da12..704651bb 100644 --- a/public/style.css +++ b/public/style.css @@ -4599,7 +4599,7 @@ code, .code { .pa1 { padding: 0.25rem; } -.pa2, .tab, header .root-item > a, header .submenu > a { +.pa2, .tab, figure, header .root-item > a, header .submenu > a { padding: 0.5rem; } .pa3, header #login-popup { @@ -4721,7 +4721,7 @@ code, .code { .optionbar .options button, .optionbar .options .button, .optionbar .options input[type=button], -.optionbar .options input[type=submit], .post-content th, .post-content td, +.optionbar .options input[type=submit], .post-content th, .post-content td, figure figcaption, button.button-small, .button.button-small, input.button-small[type=button], @@ -4929,7 +4929,7 @@ input[type=submit]:not(.button-small), .notice { margin-top: 0.25rem; margin-bottom: 0.25rem; } -.mv2, .post-content table { +.mv2, .post-content table, figure { margin-top: 0.5rem; margin-bottom: 0.5rem; } @@ -4953,7 +4953,7 @@ input[type=submit]:not(.button-small), .notice { margin-top: 16rem; margin-bottom: 16rem; } -.mh0 { +.mh0, figure { margin-left: 0; margin-right: 0; } @@ -4992,7 +4992,7 @@ input[type=submit]:not(.button-small), .notice { padding: 0.25rem; } .pa2-ns { padding: 0.5rem; } - .pa3-ns { + .pa3-ns, figure { padding: 1rem; } .pa4-ns { padding: 2rem; } @@ -5076,7 +5076,7 @@ input[type=submit]:not(.button-small), .notice { .optionbar .options button, .optionbar .options .button, .optionbar .options input[type=button], - .optionbar .options input[type=submit] { + .optionbar .options input[type=submit], figure figcaption { padding-top: 0.5rem; padding-bottom: 0.5rem; } .pv3-ns { @@ -5207,7 +5207,7 @@ input[type=submit]:not(.button-small), .notice { .mv2-ns { margin-top: 0.5rem; margin-bottom: 0.5rem; } - .mv3-ns { + .mv3-ns, figure { margin-top: 1rem; margin-bottom: 1rem; } .mv4-ns { @@ -8029,10 +8029,7 @@ pre { figure { display: flex; flex-direction: column; - margin: 1rem 0; - padding: 1rem 1rem 0; } - figure figcaption { - padding: 0.5rem 0; } + padding-bottom: 0; } .toolbar { background-color: #fff; diff --git a/src/rawdata/scss/_content.scss b/src/rawdata/scss/_content.scss index 61cbdd0c..270cf2f9 100644 --- a/src/rawdata/scss/_content.scss +++ b/src/rawdata/scss/_content.scss @@ -175,13 +175,12 @@ pre { } figure { - @extend .bg--dim, .br3; + @extend .mh0, .mv2, .mv3-ns, .pa2, .pa3-ns, .bg--dim, .br3; display: flex; flex-direction: column; - margin: $spacing-medium 0; - padding: $spacing-medium $spacing-medium 0; + padding-bottom: 0; figcaption { - padding: $spacing-small 0; + @extend .pv1, .pv2-ns; } } diff --git a/src/templates/src/education_article.html b/src/templates/src/education_article.html index 1d22c7fc..df1b929d 100644 --- a/src/templates/src/education_article.html +++ b/src/templates/src/education_article.html @@ -41,6 +41,7 @@ {{ end }} {{ define "content" }} +