Add some fonts
This commit is contained in:
parent
22abc6b217
commit
3fb149d151
61
resources/public/css/fonts.css
Normal file
61
resources/public/css/fonts.css
Normal file
@ -0,0 +1,61 @@
|
||||
@font-face {
|
||||
font-family: 'Input Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/input-sans/Input-Regular_(InputSans-Regular).ttf');
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Input Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/input-sans/Input-Italic_(InputSans-Italic).ttf');
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Input Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url('/fonts/input-sans/Input-Bold_(InputSans-Bold).ttf');
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Input Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url('/fonts/input-sans/Input-BoldItalic_(InputSans-BoldItalic).ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Input Serif';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/input-serif/Input-Regular_(InputSerif-Regular).ttf');
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Input Serif';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/input-serif/Input-Italic_(InputSerif-Italic).ttf');
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Input Serif';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url('/fonts/input-serif/Input-Bold_(InputSerif-Bold).ttf');
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Input Serif';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url('/fonts/input-serif/Input-BoldItalic_(InputSerif-BoldItalic).ttf');
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -49,6 +49,7 @@
|
||||
(GET "/:sketch" [sketch]
|
||||
(let [sketch-item ((keyword sketch) sketches/sketches)]
|
||||
(views/sketch-page (:title sketch-item) sketch)))
|
||||
(route/resources "/")
|
||||
(route/not-found "Not Found"))
|
||||
|
||||
(def app
|
||||
|
@ -8,16 +8,16 @@
|
||||
:large "21px"
|
||||
:huge "28px"})
|
||||
|
||||
(defn sketch-thumbnail-styles
|
||||
"Styles for sketch thumbnails"
|
||||
[]
|
||||
[:h3.sketch-thumbnail-title
|
||||
{:font-size (:small sizes)
|
||||
:margin-bottom 0
|
||||
:text-transform "uppercase"}])
|
||||
|
||||
(def stylesheet-css
|
||||
(css (sketch-thumbnail-styles)))
|
||||
(def fonts
|
||||
{:input-sans ["'Input Sans'" "'Helvetica Neue'" "sans-serif"]
|
||||
:input-serif ["'Input Serif'" "'Times New Roman'" "serif"]})
|
||||
|
||||
(defn stylesheet []
|
||||
stylesheet-css)
|
||||
(css
|
||||
[:h1 :h2 :h3 :h4 :h5
|
||||
{:font-family (:input-serif fonts)}]
|
||||
[:h3.sketch-thumbnail-title
|
||||
{:font-size (:small sizes)
|
||||
:font-weight "normal"
|
||||
:margin-bottom 0
|
||||
:text-transform "uppercase"}]))
|
||||
|
@ -7,6 +7,7 @@
|
||||
[& body]
|
||||
`(html5
|
||||
[:head
|
||||
(include-css "/css/fonts.css")
|
||||
(include-css "stylesheet")]
|
||||
[:body ~@body]))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user