Browse Source

img width restricted to 100% in article

master
Christian Müller 11 years ago
parent
commit
1862a02f2f
  1. 3
      src/notehub/css.clj

3
src/notehub/css.clj

@ -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))

Loading…
Cancel
Save