1
0
Fork 0
website/src/site/styles.clj

71 lines
2.3 KiB
Clojure
Raw Normal View History

2020-09-17 23:03:34 -05:00
(ns site.styles
(:require [garden.def :refer [defrule defstyles]]
[garden.stylesheet :refer [rule]]))
2022-01-01 02:50:09 -06:00
(def textcolor-main "rgba(255, 255, 255, 0.87)")
2020-09-17 23:03:34 -05:00
(defstyles base
2020-09-30 23:37:29 -05:00
; normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
; Adapted to Garden and trimmed
[:html {"-webkit-text-size-adjust" "100%"}]
[:body {:margin "0"}]
[:main {:display "block"}]
[:a {:background-color "transparent"}]
[:img {:border-style "none"}]
; Website styles
2020-09-17 23:03:34 -05:00
[:.main
2020-09-30 23:37:29 -05:00
{:max-width "600px"
:line-height "1.4"}]
2020-09-17 23:03:34 -05:00
[:h1 {:font-size "1.5em"}]
["h1:not(:first-child)" {:margin-top "2em"}]
[:h2 {:font-size "1.3em"}]
[:h3 {:font-size "1.15em"}]
2020-09-28 02:47:53 -05:00
["img, .img" {:border-radius "5px" :max-width "100%"}]
2020-09-17 23:03:34 -05:00
[:.sidebar
{:max-width "300px"}
[:.gpg {:font-size "0.8em" :margin-left "20px"}]]
2020-09-30 23:37:29 -05:00
[".sidebar>a,.sidebar>span" {:display "block" :padding ".5em 0"}]
[:.post-listing {:margin ".5em 0" :display "block"} [:.ttr {:margin-left "20px"}]]
2020-09-17 23:03:34 -05:00
[:.column
{:flex "auto"
:padding "20px"}]
[:.title {:margin-bottom "0.5em"}]
[:body
{:display "flex"
:flex-direction "row"
:flex-wrap "wrap"
:justify-content "center"
:color textcolor-main
2022-01-01 02:50:09 -06:00
:background-color "#1e1e1e"
2020-09-30 23:37:29 -05:00
:font-family "'Ubuntu', sans-serif"
2020-09-17 23:03:34 -05:00
:font-size "16px"
:line-height 1.2}]
2022-01-01 02:50:09 -06:00
[:a {:text-decoration "none" :color "#6cf0c5"}]
2020-09-17 23:03:34 -05:00
["a:link"]
2022-01-01 02:50:09 -06:00
["a:visited" {:color "#25d99e"}]
2020-09-17 23:03:34 -05:00
["a:hover"]
["a:active"]
2022-01-01 02:50:09 -06:00
[".date, .modified, .ttr" {:color "rgba(255, 255, 255, 0.67)" :text-align "right"}]
2020-09-30 23:37:29 -05:00
2020-09-17 23:03:34 -05:00
[:.other-stuff
{:margin-top "4em"}
[:img {:float "left" :max-width "250px" :margin-right "40px"}]]
2020-09-30 23:37:29 -05:00
["code, pre" {:font-size "0.95em" :font-family "'Ubuntu Mono', monospace"}]
2022-01-01 02:50:09 -06:00
["pre, :not(pre) > code" {:background-color "rgba(255, 255, 255, 0.15)" :overflow-x "auto"
2020-09-30 23:37:29 -05:00
:border-radius "10px"
:padding "3px"
:margin "-3px 0"}]
2022-01-01 02:50:09 -06:00
[:a.home {:font-size "1.2em" :margin "0 20px 2em 20px"}]
2020-09-17 23:03:34 -05:00
[:.name {:padding "10px 0" :font-size "1.2em"}]
[:.publication [:p [:a {:padding "0 10px"}]]]
[:.publication [:div {:padding ".2em 10px .2em 30px"}]]
;; Create a separator between publications with the border
2022-01-01 02:50:09 -06:00
[".publication:not(:last-child)" {:border-bottom "1px solid white"}]
2020-09-17 23:03:34 -05:00
;;
2022-01-01 02:50:09 -06:00
[:.conf {:font-size "14px" :color "rgba(255, 255, 255, 0.70)"}]
2021-05-11 17:32:00 -05:00
[:.spacer {:height "2rem"}])