font-size -> text-size
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
## Features
|
## Features
|
||||||
- **Themes**: specify the color scheme in the URL: [default](/2014/3/31/demo-note), [dark](/2014/3/31/demo-note?theme=dark), [solarized light](/2014/3/31/demo-note?theme=solarized-light), [solarized dark](/2014/3/31/demo-note?theme=solarized-dark).
|
- **Themes**: specify the color scheme in the URL: [default](/2014/3/31/demo-note), [dark](/2014/3/31/demo-note?theme=dark), [solarized light](/2014/3/31/demo-note?theme=solarized-light), [solarized dark](/2014/3/31/demo-note?theme=solarized-dark).
|
||||||
- **Fonts**: specify a font (e.g., [Google Web Fonts](http://www.google.com/webfonts/)) for headers and body text in the URL like [this](/8m4l9) or [this](/2014/3/31/demo-note?text-font=Helvetica&header-font=Courier&font-size=1.3).
|
- **Fonts**: specify a font (e.g., [Google Web Fonts](http://www.google.com/webfonts/)) for headers and body text in the URL like [this](/8m4l9) or [this](/2014/3/31/demo-note?text-font=monospace&header-font=Courier&font-size=0.8).
|
||||||
- **Short URLs**: every page (including theme & font options) has its own short url.
|
- **Short URLs**: every page (including theme & font options) has its own short url.
|
||||||
- **Editing**: if you set a password during publishing, you can edit your note any time later.
|
- **Editing**: if you set a password during publishing, you can edit your note any time later.
|
||||||
- **Statistics**: page view counter, publishing and editing date.
|
- **Statistics**: page view counter, publishing and editing date.
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ and for the text itself:
|
|||||||
|
|
||||||
notehub.org/.../title?header-font=FONT-NAME&text-font=FONT-NAME2
|
notehub.org/.../title?header-font=FONT-NAME&text-font=FONT-NAME2
|
||||||
|
|
||||||
Analogously, you can specify you can change the font size by specifying a scale factor:
|
Analogously, you can specify you can change the text size by specifying a scale factor:
|
||||||
|
|
||||||
notehub.org/.../title?header-font=FONT-NAME&text-font=FONT-NAME2&font-size=1.5
|
notehub.org/.../title?header-font=FONT-NAME&text-font=FONT-NAME2&text-size=1.5
|
||||||
|
|
||||||
See an example of the font formatting [here](http://notehub.org/2012/6/16/how-notehub-is-built?header-font=Berkshire+Swash&text-font=Swanky+and+Moo+Moo).
|
See an example of the font formatting [here](http://notehub.org/2012/6/16/how-notehub-is-built?header-font=Berkshire+Swash&text-font=Swanky+and+Moo+Moo).
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ if(ui["header-font"] || ui["text-font"]) {
|
|||||||
}, "");
|
}, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ui["font-size"]) vars["@font_size"] = ui["font-size"] + "em";
|
if(ui["text-size"]) vars["@font_size"] = ui["text-size"] + "em";
|
||||||
|
|
||||||
fontURL = fontURL.replace(/%s/, injection);
|
fontURL = fontURL.replace(/%s/, injection);
|
||||||
var fileref = document.createElement("link")
|
var fileref = document.createElement("link")
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
compojure.core
|
compojure.core
|
||||||
iokv.core
|
iokv.core
|
||||||
notehub.views
|
notehub.views
|
||||||
[clojure.string :rename {replace sreplace} :only [replace]]
|
[clojure.string :rename {replace sreplace} :only [replace]])
|
||||||
[clojure.core.incubator :only [-?>]])
|
|
||||||
(:require
|
(:require
|
||||||
[clojure.core.cache :as cache]
|
[clojure.core.cache :as cache]
|
||||||
[hiccup.util :as util]
|
[hiccup.util :as util]
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
(:use
|
(:use
|
||||||
iokv.core
|
iokv.core
|
||||||
[clojure.string :rename {replace sreplace} :only [replace]]
|
[clojure.string :rename {replace sreplace} :only [replace]]
|
||||||
[clojure.core.incubator :only [-?>]]
|
|
||||||
[hiccup.form]
|
[hiccup.form]
|
||||||
[hiccup.core]
|
[hiccup.core]
|
||||||
[hiccup.element]
|
[hiccup.element]
|
||||||
@@ -100,9 +99,9 @@
|
|||||||
(html (hidden-field :noteID note-id))
|
(html (hidden-field :noteID note-id))
|
||||||
(:note (api/get-note {:noteID note-id})) :enter-passwd)))
|
(:note (api/get-note {:noteID note-id})) :enter-passwd)))
|
||||||
|
|
||||||
(defn new-note-page [signature]
|
(defn new-note-page [session]
|
||||||
(input-form "/post-note" :publish
|
(input-form "/post-note" :publish
|
||||||
(html (hidden-field :session signature)
|
(html (hidden-field :session session)
|
||||||
(hidden-field {:id :signature} :signature))
|
(hidden-field {:id :signature} :signature))
|
||||||
(get-message :loading) :set-passwd))
|
(get-message :loading) :set-passwd))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user