From 8a219376e5088a02d514cd9181aac92e3be1158f Mon Sep 17 00:00:00 2001 From: Christian Mueller Date: Sun, 26 Jan 2014 13:34:57 +0100 Subject: [PATCH] minor style improvement --- LANDING.md | 8 ++++---- resources/public/js/main.js | 7 ++++--- resources/public/styles/main.less | 6 +++++- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/LANDING.md b/LANDING.md index 2a59e69..9ea908a 100644 --- a/LANDING.md +++ b/LANDING.md @@ -14,10 +14,10 @@ Send your feedback and comments directly to [@gravitydenier](http://twitter.com/ ## Features - **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) - - [Solarized-Dark](http://notehub.org/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) -- **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). + - [Dark](/2012/6/16/how-notehub-is-built?theme=dark) + - [Solarized-Dark](/2012/6/16/how-notehub-is-built?theme=solarized-dark) + - [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](/0vrcp). - **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. - **Statistics**: a rudimentary statistics available (date of publishing & view counter). diff --git a/resources/public/js/main.js b/resources/public/js/main.js index 4e7c3ed..ac48541 100644 --- a/resources/public/js/main.js +++ b/resources/public/js/main.js @@ -49,12 +49,13 @@ function onLoad() { show(elem); } - if(window.innerHeight >= document.body.clientHeight) { - var links = $("links"); - if(links) { + var links = $("links"); + if(links){ + if(window.innerHeight >= document.body.clientHeight) { links.style.position = "fixed"; links.style.bottom = 0; } + show(links); } } diff --git a/resources/public/styles/main.less b/resources/public/styles/main.less index b3cfb2f..fae18cc 100644 --- a/resources/public/styles/main.less +++ b/resources/public/styles/main.less @@ -93,6 +93,10 @@ a:visited { padding: 1em; font-size: 0.8em; text-align: center; + @media screen and (max-width: 1024px) { + font-size: 0.4em; + } + } #links a { border: none; @@ -155,7 +159,7 @@ textarea { font-size: 1em; height: 500px; } -.hidden, .markdown { +.hidden, .markdown, #links { display: none; } #dashed-line {