diff --git a/css/theme/template/theme.scss b/css/theme/template/theme.scss index bc377d3cb84..4a4603f9c37 100644 --- a/css/theme/template/theme.scss +++ b/css/theme/template/theme.scss @@ -93,8 +93,12 @@ .reveal img, .reveal video, .reveal iframe { - max-width: 95%; - max-height: 95%; + &:not([width]) { + max-width: 95%; + } + &:not([height]) { + max-height: 95%; + } } .reveal strong, .reveal b {