From 528ccde8915cd1ed7a39e137dd4d98869797956a Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 30 Jun 2017 21:37:44 -0400 Subject: Styled figures in blog posts --- app/assets/stylesheets/main/entries.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'app/assets/stylesheets/main') diff --git a/app/assets/stylesheets/main/entries.scss b/app/assets/stylesheets/main/entries.scss index 038273d..bd0b5ba 100644 --- a/app/assets/stylesheets/main/entries.scss +++ b/app/assets/stylesheets/main/entries.scss @@ -55,6 +55,25 @@ img { max-width: 100%; + box-sizing: border-box; + } + + figure { + background-color: #eee; + border: 1px solid #bbb; + padding: 0.25em 0.25em 0 0.25em; + font-size: 0.75em; + + img { + display: block; + border: 1px solid #bbb; + } + + figcaption { + font-style: italic; + text-align: center; + margin: 0.25em; + } } } } -- cgit 1.4.1