font size option added
This commit is contained in:
+3
-2
@@ -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](/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).
|
- **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).
|
||||||
- **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.
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
- **API**: Integrate the publishing functionality into your editor using the official [NoteHub API](/api).
|
- **API**: Integrate the publishing functionality into your editor using the official [NoteHub API](/api).
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
- September 2014: font size modifications added
|
||||||
- July 2014:
|
- July 2014:
|
||||||
- deprecated all API versions less than 1.4
|
- deprecated all API versions less than 1.4
|
||||||
- performance improvements
|
- performance improvements
|
||||||
|
|||||||
@@ -98,6 +98,8 @@ if(ui["header-font"] || ui["text-font"]) {
|
|||||||
}, "");
|
}, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ui["font-size"]) vars["@font_size"] = ui["font-size"] + "em";
|
||||||
|
|
||||||
fontURL = fontURL.replace(/%s/, injection);
|
fontURL = fontURL.replace(/%s/, injection);
|
||||||
var fileref = document.createElement("link")
|
var fileref = document.createElement("link")
|
||||||
fileref.setAttribute("rel", "stylesheet")
|
fileref.setAttribute("rel", "stylesheet")
|
||||||
|
|||||||
@@ -23,16 +23,16 @@
|
|||||||
|
|
||||||
.central-element {
|
.central-element {
|
||||||
@media screen and (min-width: 1024px) {
|
@media screen and (min-width: 1024px) {
|
||||||
width: @width;
|
width: @width;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 1023px) {
|
@media screen and (max-width: 1023px) {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
}
|
}
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
.thin-border {
|
.thin-border {
|
||||||
border: 1px solid @foreground;
|
border: 1px solid @foreground;
|
||||||
}
|
}
|
||||||
// end mixins
|
// end mixins
|
||||||
|
|
||||||
@@ -46,49 +46,49 @@ code, pre {
|
|||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: @link_fresh;
|
color: @link_fresh;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: 1px dotted;
|
border-bottom: 1px dotted;
|
||||||
}
|
}
|
||||||
a:hover {
|
a:hover {
|
||||||
color: @link_hover;
|
color: @link_hover;
|
||||||
}
|
}
|
||||||
a:visited {
|
a:visited {
|
||||||
color: @link_visited;
|
color: @link_visited;
|
||||||
}
|
}
|
||||||
#draft {
|
#draft {
|
||||||
margin-bottom: 3em;
|
margin-bottom: 3em;
|
||||||
}
|
}
|
||||||
.button {
|
.button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.ui-elem {
|
.ui-elem {
|
||||||
.helvetica;
|
.helvetica;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
.thin-border;
|
.thin-border;
|
||||||
padding: 0.3em;
|
padding: 0.3em;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
background: @background;
|
background: @background;
|
||||||
}
|
}
|
||||||
.landing-button, textarea, fieldset {
|
.landing-button, textarea, fieldset {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.landing-button {
|
.landing-button {
|
||||||
box-shadow: 0 2px 5px #aaa;
|
box-shadow: 0 2px 5px #aaa;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
background: #0a2;
|
background: #0a2;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
.helvetica;
|
.helvetica;
|
||||||
}
|
}
|
||||||
.landing-button:hover {
|
.landing-button:hover {
|
||||||
background: #0b2;
|
background: #0b2;
|
||||||
}
|
}
|
||||||
#links {
|
#links {
|
||||||
.helvetica;
|
.helvetica;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -98,41 +98,44 @@ a:visited {
|
|||||||
|
|
||||||
}
|
}
|
||||||
#links a {
|
#links a {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
html, body {
|
html, body {
|
||||||
background: @background;
|
background: @background;
|
||||||
color: @foreground;
|
color: @foreground;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
#hero {
|
#hero {
|
||||||
padding-top: 5em;
|
padding-top: 5em;
|
||||||
padding-bottom: 5em;
|
padding-bottom: 5em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
#hero h1 {
|
#hero h1 {
|
||||||
font-size: 2.5em;
|
font-size: 2.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#hero h2 {
|
#hero h2 {
|
||||||
.helvetica;
|
.helvetica;
|
||||||
margin: 2em;
|
margin: 2em;
|
||||||
}
|
}
|
||||||
article {
|
article {
|
||||||
font-family: @text_font, 'Georgia';
|
font-family: @text_font, 'Georgia';
|
||||||
.central-element;
|
.central-element;
|
||||||
margin-top: 5em;
|
margin-top: 5em;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
font-size: @font_size;
|
|
||||||
}
|
}
|
||||||
article p {
|
article p {
|
||||||
|
font-size: @font_size;
|
||||||
line-height: 140%;
|
line-height: 140%;
|
||||||
}
|
}
|
||||||
article > h1:first-child {
|
article > h1:first-child {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin: 2em;
|
margin: 2em;
|
||||||
}
|
}
|
||||||
.centered {
|
.centered {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -142,24 +145,24 @@ article > h1:first-child {
|
|||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
border: 1px dotted @foreground_halftone;
|
border: 1px dotted @foreground_halftone;
|
||||||
background: @background_halftone;
|
background: @background_halftone;
|
||||||
}
|
}
|
||||||
*:focus {
|
*:focus {
|
||||||
outline: 0px none transparent;
|
outline: 0px none transparent;
|
||||||
}
|
}
|
||||||
textarea {
|
textarea {
|
||||||
@media screen and (min-width: 1024px) {
|
@media screen and (min-width: 1024px) {
|
||||||
width: @width;
|
width: @width;
|
||||||
}
|
}
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-family: Courier;
|
font-family: Courier;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
.hidden, #links {
|
.hidden, #links {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#dashed-line {
|
#dashed-line {
|
||||||
border-bottom: 1px dashed @foreground_halftone;
|
border-bottom: 1px dashed @foreground_halftone;
|
||||||
@@ -170,17 +173,17 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
font-family: @header_font,'Noticia Text','PT Serif','Georgia';
|
font-family: @header_font,'Noticia Text','PT Serif','Georgia';
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
padding: 0.3em;
|
padding: 0.3em;
|
||||||
background-color: @background_halftone;
|
background-color: @background_halftone;
|
||||||
}
|
}
|
||||||
td {
|
td {
|
||||||
border-top: 1px dotted @foreground_halftone;
|
border-top: 1px dotted @foreground_halftone;
|
||||||
padding: 0.3em;
|
padding: 0.3em;
|
||||||
}
|
}
|
||||||
.middot {
|
.middot {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user