Skip to content

Commit

Permalink
cleaning styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nossal committed Oct 27, 2017
1 parent c87c697 commit c1cd96e
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 64 deletions.
1 change: 1 addition & 0 deletions resources/404.html
Expand Up @@ -14,6 +14,7 @@
}
/*
http://bennettfeely.com/csscreatures
https://github.com/bennettfeely/csscreatures
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
ol, ul { list-style: none; margin: 0; padding: 0;}
Expand Down
Binary file removed resources/public/gift-icon-16.png
Binary file not shown.
5 changes: 3 additions & 2 deletions src/clojure/nossal/web.clj
Expand Up @@ -37,6 +37,7 @@
[48 96 144 192])
[:link {:rel "canonical" :href (core/cannonical-url req)}]
[:link {:rel "manifest" :href (s/join ["/" (options :manifest) ".json"])}]
[:script {:async (true? (= "true" (env :production))) :src "/js/app.js"}]
[:script {:async true :src "https://cdn.ampproject.org/v0.js"}]
(if (= "true" (env :production))
[:script {:async true :custom-element "amp-analytics" :src "https://cdn.ampproject.org/v0/amp-analytics-0.1.js"}])
Expand All @@ -57,9 +58,9 @@
[:span.made "Handmade " (a-out "https://github.com/nossal/noss.al" "entirely") " with "]
(a-out "https://clojure.org" "Clojure") " and "
[:span.heart " "] " at "
(a-out "https://pt.wikipedia.org/wiki/Gravata%C3%AD" "Aldeia dos Anjos.")]
(a-out "https://pt.wikipedia.org/wiki/Gravata%C3%AD" "Aldeia dos Anjos.")]])))


[:script {:async (true? (= "true" (env :production))) :src "/js/app.js"}]])))


(defn index [req]
Expand Down
54 changes: 0 additions & 54 deletions src/styles/nossal/reboot.cljc
Expand Up @@ -12,7 +12,6 @@
(defselector *)

(defstyles reset

[:* (* before) (* after)
{:box-sizing "border-box"}]

Expand All @@ -26,7 +25,6 @@
["@-ms-viewport"
{:width "device-width"}]


[:article :aside :dialog :figcaption :figure :footer :header :hgroup :main :nav :section
{:display "block"}]

Expand All @@ -40,45 +38,37 @@
:text-align "left"
:background-color "#fff"}]


[(attr= :tabindex "-1")
[:&:focus
{:outline "none !important"}]]


[:hr
{:box-sizing "content-box"
:height 0
:overflow "visible"}]


[:h1 :h2 :h3 :h4 :h5 :h6
{:margin-top 0
:margin-bottom (rem 0.5)}]


[:p
{:margin-top 0
:margin-bottom (rem 1)}]


[(abbr (attr :title)) (abbr (attr :data-original-title))
{:text-decoration "underline dotted"
:cursor "help"
:border-bottom 0}]


[:address
{:margin-bottom "1rem"
:font-style "normal"
:line-height "inherit"}]


[:ol :ul :dl
{:margin-top 0
:margin-bottom (rem 1)}]


[:ol
[:ol
{:margin-bottom 0}]]
Expand All @@ -92,59 +82,47 @@
[:ol
{:margin-bottom 0}]]


[:dt
{:font-weight "bold"}]


[:dd
{:margin-bottom (rem 0.5)
:margin-left 0}]


[:blockquote
{:margin "0 0 1rem"}]


[:dfn
{:font-style "italic"}]


[:b :strong
{:font-weight "bolder"}]


[:small
{:font-size "80%"}]


[:sub :sup
{:position "relative"
:font-size "75%"
:line-height 0
:vertical-align "baseline"}]


[:sub
{:bottom (em -0.25)}]


[:sup
{:top (em -0.5)}]


[:a
{:color "#007bff"
:text-decoration :none
:background-color "transparent"
:-webkit-text-decoration-skip "objects"}]


[:a:hover
{:color "#0056b3"
:text-decoration "underline"}]


[(a (not (attr :href)) (not (attr :tabindex)))
{:color "inherit"
:text-decoration :none}]
Expand All @@ -154,128 +132,105 @@
{:color "inherit"
:text-decoration :none}]]


[(a (not (attr :href)) (not (attr :tabindex)))
[:&:focus
{:outline 0}]]


[:pre :code :kbd :samp
{:font-family "monospace monospace"
:font-size (em 1)}]


[:pre
{:margin-top 0
:margin-bottom (rem 1)
:overflow "auto"
:-ms-overflow-style "scrollbar"}]


[:figure
{:margin "0 0 1rem"}]


[:img
{:vertical-align "middle"
:border-style :none}]


[(svg (not ":root"))
{:overflow "hidden"}]


[:a :area
(button (attr= :role "button"))
(input (not (attr "range"))) :label :select :summary :textarea
{:-ms-touch-action "manipulation"
:touch-action "manipulation"}]


[:table
{:border-collapse "collapse"}]


[:caption
{:padding-top (rem 0.75)
:padding-bottom (rem 0.75)
:color "#868e96"
:text-align "left"
:caption-side "bottom"}]


[:th
{:text-align "inherit"}]


[:label
{:display "inline-block"
:margin-bottom (rem 0.5)}]


[:button
{:border-radius 0}]


[:button:focus
{;:outline "1px dotted"
:outline "5px auto -webkit-focus-ring-color"}]


[:input :button :select :optgroup :textarea
{:margin "0"
:font-family "inherit"
:font-size "inherit"
:line-height "inherit"}]


[:button :input
{:overflow "visible"}]


[:button :select
{:text-transform :none}]


[:button
(html (attr= :type :button))
(attr= :type :reset)
(attr= :type :submit)
{:-webkit-appearance "button"}]


[(button -moz-focus-inner)
((attr= :type "button") -moz-focus-inner)
((attr= :type "reset") -moz-focus-inner)
((attr= :type "submit") -moz-focus-inner)
{:padding 0
:border-style :none}]


[(input (attr= :type "radio")) (input (attr= :type "checkbox"))
{:box-sizing "border-box"
:padding 0}]


[(input (attr= :type "date"))
(input (attr= :type "time"))
(input (attr= :type "datetime-local"))
(input (attr= :type "month"))
{:-webkit-appearance "listbox"}]


[:textarea
{:overflow "auto"
:resize "vertical"}]


[:fieldset
{:min-width 0
:padding 0
:margin 0
:border 0}]


[:legend
{:display "block"
:width "100%"
Expand All @@ -287,42 +242,33 @@
:color "inherit"
:white-space "normal"}]


[:progress
{:vertical-align "baseline"}]


[((attr= :type "number") -webkit-inner-spin-button)
((attr= :type "number") -webkit-outer-spin-button)
{:height "auto"}]


[(attr= :type "search")
{:outline-offset (px 2)
:-webkit-appearance :none}]


[((attr= :type "search") -webkit-search-cancel-button)
((attr= :type "search") -webkit-search-decoration)
{:-webkit-appearance :none}]


[(-webkit-file-upload-button)
{:font "inherit"
:-webkit-appearance "button"}]


[:output
{:display "inline-block"}]


[:summary
{:display "list-item"}]


[:template
{:display :none}]


[(attr "hidden")
{:display "none !important"}])

0 comments on commit c1cd96e

Please sign in to comment.