diff --git a/prestatic/aesthetics.js b/prestatic/aesthetics.js index 29a6efb..e06438a 100644 --- a/prestatic/aesthetics.js +++ b/prestatic/aesthetics.js @@ -1,59 +1,66 @@ /* - To the extent possible under law, Niels Serup has waived all copyright and - related or neighboring rights to this file. This file is available under the - Creative Commons Zero 1.0 license, see - http://creativecommons.org/publicdomain/zero/1.0/ + To the extent possible under law, Niels Serup has waived all copyright and + related or neighboring rights to this file. This file is available under the + Creative Commons Zero 1.0 license, see + http://creativecommons.org/publicdomain/zero/1.0/ - This JavaScript file contains trivial code. It is required for aesthetic - reasons only. Not loading it will not make a website depending on it less - functional. -*/ + This JavaScript file contains trivial code. It is required for aesthetic + reasons only. Not loading it will not make a website depending on it less + functional. + */ get_window_size = function() { - if (window.innerHeight) - return [window.innerHeight, window.innerWidth]; - else if (self.innerHeight) - return [self.innerHeight, self.innerWidth]; + if (window.innerHeight) + return [window.innerHeight, window.innerWidth]; + else if (self.innerHeight) + return [self.innerHeight, self.innerWidth]; else if (document.documentElement && document.documentElement.clientHeight) - return [document.documentElement.clientHeight, - document.documentElement.clientWidth]; + return [document.documentElement.clientHeight, + document.documentElement.clientWidth]; else if (document.body) - return [document.body.clientHeight, document.body.clientWidth]; + return [document.body.clientHeight, document.body.clientWidth]; }; is_screen_media = function() { - return (document.getElementsByTagName('link')[1].getAttribute('media').indexOf( - 'screen') != -1 || (document.styleSheets && - (document.styleSheets[0].media.mediaText.indexOf( - 'screen') != -1 || document.styleSheets[0].media.indexOf( - 'screen') != -1))); + return (document.getElementsByTagName('link')[1].getAttribute('media').indexOf( + 'screen') != -1 || (document.styleSheets && + (document.styleSheets[0].media.mediaText.indexOf( + 'screen') != -1 || document.styleSheets[0].media.indexOf( + 'screen') != -1))); }; set_min_height = function() { - var ws, wh, ww, h; - ws = get_window_size(); - wh = ws[0]; - ww = ws[1]; + var ws, wh, ww, h; + ws = get_window_size(); + wh = ws[0]; + ww = ws[1]; + + if (metadiv.offsetTop > wh) + return; - h = metadiv.offsetHeight + 25; - metadiv.style.position = 'absolute'; - metadiv.style.bottom = '5px'; - metadiv.style.width = (contentdiv.offsetWidth - 42) + 'px'; - contentdiv.style.paddingBottom = h + 'px'; + h = metadiv.offsetHeight + 25; + metadiv.style.position = 'absolute'; + metadiv.style.bottom = '5px'; + metadiv.style.width = (contentdiv.offsetWidth - 42) + 'px'; + contentdiv.style.paddingBottom = h + 'px'; - h = wh - h - menudiv.offsetHeight - 165; - contentdiv.style.minHeight = h + 'px'; + h = wh - h - menudiv.offsetHeight - 146; + contentdiv.style.minHeight = h + 'px'; }; adjust_sizes = function() { - if (!is_screen_media()) - return; - set_min_height(); + set_min_height(); }; window.addEventListener('load', function(event){ - menudiv = document.getElementById('menu'); - contentdiv = document.getElementById('content'); - metadiv = document.getElementById('metadata'); - adjust_sizes(); -}, false); + if (!is_screen_media()) + return; + menudiv = document.getElementById('menu'); + contentdiv = document.getElementById('content'); + metadiv = document.getElementById('metadata'); + window.addEventListener('resize', function(event){ + adjust_sizes(); + }, false); + adjust_sizes(); + }, false); + diff --git a/prestatic/general.css b/prestatic/general.css index 5138a12..ecc1fc7 100644 --- a/prestatic/general.css +++ b/prestatic/general.css @@ -6,7 +6,6 @@ body { font-family: 'Dejavu Sans', 'Nimbus Sans', Helvetica, Arial, Verdana, sans-serif; - font-size: 14px; color: #000; } @@ -85,7 +84,7 @@ h1, h2, h3, h4, h5, h6 { h1 { margin: 16px 0 5px 0; - font-size: 30px; + font-size: 2em; } h1:first-child { @@ -94,30 +93,30 @@ h1:first-child { h2 { margin: 14px 0 5px 0 ; - font-size: 25px; + font-size: 1.8em; background-color: #ddd; } h3 { margin: 9px 0 3px 0; - font-size: 21px; + font-size: 1.6em; } h4 { margin: 7px 0 2px 0; - font-size: 18px; + font-size: 1.4em; font-weight: bold; } h5 { margin: 5px 0 1px 0; - font-size: 16px; + font-size: 1.2em; font-weight: bold; } h6 { margin: 3px 0 1px 0; - font-size: 14px; + font-size: 1.1em; font-weight: bold; } @@ -183,7 +182,7 @@ cite, quote { blockquote { margin: 5px 0 5px 20px; - font-size: 15px; + font-size: 1.08em; } acronym, abbreviation { @@ -396,23 +395,23 @@ div.left-float, img.left-float, video.left-float, audio.left-float { } .huge, .huge * { - font-size: 25px !important; + font-size: 1.8em !important; } .large, .large * { - font-size: 18px !important; + font-size: 1.5em !important; } .medium, .medium * { - font-size: 14px !important; + font-size: 1em !important; } .small, .small * { - font-size: 11px !important; + font-size: 0.8em !important; } .tiny, .tiny * { - font-size: 9px !important; + font-size: 0.65em !important; } diff --git a/prestatic/screen.css b/prestatic/screen.css index 29a5b4d..2174d23 100644 --- a/prestatic/screen.css +++ b/prestatic/screen.css @@ -32,7 +32,7 @@ body { /*@preval 'background-color: ' + page_bg + ';\n'@*/ display: inline-block; padding: 2px 0 2px 16px; - font-size: 18px; + font-size: 1.3em; } ul#menulinks { @@ -100,7 +100,10 @@ ul#menulinks { } #body.full #logo { - + position: relative; + left: 10px; + margin-left: -10px; + margin-right: -10px; } .highlighttable .code { diff --git a/site/about/index.org b/site/about/index.org index f06f883..11639a2 100644 --- a/site/about/index.org +++ b/site/about/index.org @@ -9,10 +9,10 @@ This is metanohi. Currently, metanohi resides on *metanohi.name*. Originally, it was on *metanohi.org* which now redirects requests to .name. To contact [[./niels][Niels]] (the -creator), send him an electronic mail at [[mailto:ns@metanohi.name][ns@metanohi.name]] {(ns@metanohi.org -redirects all mails to that address)}&small. +creator), send him an electronic mail at [[mailto:ns@metanohi.name][ns@metanohi.name]] {(ns@metanohi.org no +more redirects emails to that address)}&small. -metanohi is XHTML 1.1 and CSS 2 valid (mostly). Currently, metanohi.name pages +metanohi is mostly XHTML 1.1 and CSS 2 valid. Currently, metanohi.name pages are served as text/html and not as application/xml+xhtml (as they should). This might get fixed (it is extremely easy to fix, but if fixed, some things depending on external JavaScript which depends on non-XHTML, like the FSF @@ -99,3 +99,23 @@ Click to go to fullsize image. metanohi is only available in English. +** Font size + +The font sizes on metanohi are based on your default font size. Read more +here. + +To change your default font size in the Conkeror +web browser, put this in your .conkerorrc: + +#+BEGIN_SRC javascript +session_pref("font.size.variable.x-western", YOUR_FONT_SIZE_HERE); +#+END_SRC + +For example, I changed the font size from its default at 16 to a more suitable 14: + +#+BEGIN_SRC javascript +session_pref("font.size.variable.x-western", 14); +#+END_SRC + +It's probably just as easy in other web browsers. + diff --git a/site/about/niels.org b/site/about/niels.org index 87b69e8..c0d8f03 100644 --- a/site/about/niels.org +++ b/site/about/niels.org @@ -15,7 +15,7 @@ He studies datalogi (computer science) at the University of Copenhagen, [[https: Niels can be contacted at [[mailto:ns@metanohi.name][ns@metanohi.name]]. -** Software Niels uses +** Software which Niels uses *** Emacs @@ -62,6 +62,24 @@ It's fast, secure and durable (I often have poor or even none connection when working on my laptop). +** Things which Niels uses but doesn't like + +*** GitHub +When I want to make a git repository available online, I like to do it on the +server which also hosts metanohi, or a free software online host, such as one +running Gitorious. I don't quite like the very popular GitHub service, because +it is not free software. The negative effects of GitHub's proprietarity is that +its users cannot learn from studying GitHub's code, and that they cannot run +their own GitHubs. Users mostly use GitHub for public data, and since git +repositories are distributed, it is easy to move a git repository from GitHub +to another git repo hosting service --- just change the push address of your +local repository. All of this means that GitHub cannot cause serious problems +when it comes to control over the data you give to it. As such GitHub is far +from being as great a problem as e.g. Facebook. But I still don't like GitHub's +attitude. I use GitHub because someone created a repository to which I +contribute code on GitHub, not because of its "social coding". + + ** Virtual existences In order of randomness: @@ -78,9 +96,11 @@ In order of randomness: + [[https://launchpad.net/~nqpz][Launchpad]] + [[http://uncyclopedia.wikia.com/wiki/User:Schabeindividuum][Uncyclopedia]] (don't take this one seriously) -Also, don't use Facebook (or Facebook-/like/ social notworks). Both your data -and your account is in Facebook's virtual hands. You have way too little -control. Use Identi.ca, GNU SOCIAL, Diaspora, or something else instead. +Also, I don't use Facebook (or Facebook-/like/ social networks). If I did, my +data would be in Facebook's virtual hands. Users have way too little control +over Facebook. The solution to Facebook and other centralized services is to +use decentralized services. So in the case of social networking, use Diaspora, +friendica, or something else instead of Facebook. *** I'm not on Facebook --- I'm on friendica! diff --git a/site/index.org b/site/index.org index 49493fd..437b222 100644 --- a/site/index.org +++ b/site/index.org @@ -6,15 +6,18 @@ #++show #+BEGIN_SRC javascript // Add the FSF widget after the page has loaded. - window.addEventListener('load', function(event){add_fsf_widget(8085);}, false); + window.addEventListener('load', + function(event) { + add_fsf_widget(8085); + }, false); #+END_SRC * This is metanohi *metanohi* is a website founded in 2009 with a well-defined purpose: to -exist. It is the personal website of [[/about/niels][Niels G. W. Serup]], a [[/writings/hacking][hacker]] in a world of -non-hackers. +exist. It is the personal website of [[/about/niels][Niels G. W. Serup]], a [[/writings/hacking][hacker]] apprentice in +a world of non-hackers. Historically, this start page has featured text which had little purpose except to exist. That is over now. /metanohi/ has no real need for a start page --- @@ -22,16 +25,12 @@ and that means no more superfluous text[fn:extra]. Feel free to check out my [[/projects/][Projects]] page. -* Passive activism +* Passive activism[fn:oxymoron] + +Beware, for the following Hyperlinks contain Knowledge! #++show #+BEGIN_SRC html -