Browse Source

minor style improvement

master
Christian Mueller 12 years ago
parent
commit
8a219376e5
  1. 8
      LANDING.md
  2. 5
      resources/public/js/main.js
  3. 6
      resources/public/styles/main.less

8
LANDING.md

@ -14,10 +14,10 @@ Send your feedback and comments directly to [@gravitydenier](http://twitter.com/
## Features ## Features
- **Color Themes**: specify the color scheme by appending the corresponding parameter to the URL: - **Color Themes**: specify the color scheme by appending the corresponding parameter to the URL:
- [Dark](http://notehub.org/2012/6/16/how-notehub-is-built?theme=dark) - [Dark](/2012/6/16/how-notehub-is-built?theme=dark)
- [Solarized-Dark](http://notehub.org/2012/6/16/how-notehub-is-built?theme=solarized-dark) - [Solarized-Dark](/2012/6/16/how-notehub-is-built?theme=solarized-dark)
- [Solarized-Light](http://notehub.org/2012/6/16/how-notehub-is-built?theme=solarized-light) - [Solarized-Light](/2012/6/16/how-notehub-is-built?theme=solarized-light)
- **Fonts**: specify a font (also one of the [Google Web Fonts](http://www.google.com/webfonts/)) for headers and for the text by appending parameters to the note [URL](http://notehub.org/0vrcp). - **Fonts**: specify a font (also one of the [Google Web Fonts](http://www.google.com/webfonts/)) for headers and for the text by appending parameters to the note [URL](/0vrcp).
- **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**: a rudimentary statistics available (date of publishing & view counter). - **Statistics**: a rudimentary statistics available (date of publishing & view counter).

5
resources/public/js/main.js

@ -49,12 +49,13 @@ function onLoad() {
show(elem); show(elem);
} }
if(window.innerHeight >= document.body.clientHeight) {
var links = $("links"); var links = $("links");
if(links) { if(links){
if(window.innerHeight >= document.body.clientHeight) {
links.style.position = "fixed"; links.style.position = "fixed";
links.style.bottom = 0; links.style.bottom = 0;
} }
show(links);
} }
} }

6
resources/public/styles/main.less

@ -93,6 +93,10 @@ a:visited {
padding: 1em; padding: 1em;
font-size: 0.8em; font-size: 0.8em;
text-align: center; text-align: center;
@media screen and (max-width: 1024px) {
font-size: 0.4em;
}
} }
#links a { #links a {
border: none; border: none;
@ -155,7 +159,7 @@ textarea {
font-size: 1em; font-size: 1em;
height: 500px; height: 500px;
} }
.hidden, .markdown { .hidden, .markdown, #links {
display: none; display: none;
} }
#dashed-line { #dashed-line {

Loading…
Cancel
Save