img width restricted to 100% in article

This commit is contained in:
Christian Müller
2015-03-28 17:26:05 +01:00
parent 3e6df68c3e
commit 1862a02f2f
+3
View File
@@ -190,10 +190,13 @@
(at-media {:screen true :min-width (px 1024)} [:.central-element {:width width}]) (at-media {:screen true :min-width (px 1024)} [:.central-element {:width width}])
(at-media {:screen true :max-width (px 1023)} [:.central-element {:width "90%"}]) (at-media {:screen true :max-width (px 1023)} [:.central-element {:width "90%"}])
["article img" { :max-width "100%" }]
["article p" { ["article p" {
:font-size (em (* 1.2 text-size-factor)) :font-size (em (* 1.2 text-size-factor))
:line-height "140%" :line-height "140%"
}] }]
["article > h1:first-child" { ["article > h1:first-child" {
:text-align "center" :text-align "center"
:font-size (em (* 2 header-size-factor)) :font-size (em (* 2 header-size-factor))