Skip to content

Commit

Permalink
refactoring: merge logo styles and logo edia quesries
Browse files Browse the repository at this point in the history
  • Loading branch information
marharyta committed Feb 4, 2021
1 parent 6d1c6f9 commit c575962
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/clj/rems/css/styles.clj
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@
:background-position [[:center :center]]
:background-origin (get-theme-attribute :logo-content-origin)}]
[(s/descendant :.logo :.img) {:background-image (get-logo-image context/*lang*)}]
[(s/descendant :.logo-menu :.img) {:background-image (get-navbar-logo context/*lang*)}]))

(defn- generate-logo-media-queries []
(list
[(s/descendant :.logo-menu :.img) {:background-image (get-navbar-logo context/*lang*)}]
(stylesheet/at-media {:max-width (u/px 480)}
(list
[(s/descendant :.logo :.img)
Expand Down Expand Up @@ -634,7 +631,6 @@
:text-decoration "underline"}]
[:.language-switcher {:padding ".5em 0"}]
(generate-media-queries)
(generate-logo-media-queries)
[:.example-page {:margin (u/rem 2)}]
[(s/> :.example-page :h1) {:margin "4rem 0"}]
[(s/> :.example-page :h2) {:margin-top (u/rem 8)
Expand Down

0 comments on commit c575962

Please sign in to comment.