From 4c417c59b3207e2f793b20dfa705b21f22b194df Mon Sep 17 00:00:00 2001 From: Jef van Schendel Date: Sat, 17 Mar 2012 22:56:25 +0100 Subject: Small styling change for sidebar data --- mediagoblin/static/css/base.css | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'mediagoblin/static') diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 94d7aa63..0a0d0dcd 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -234,13 +234,14 @@ text-align: center; height: 0; } -h3.sidedata { - border: none; - background-color: #212121; - border-radius: 4px 4px 0 0; - padding: 3px 8px; - margin: 20px 0 5px 0; +.media_sidebar h3 { font-size: 1em; + margin: 0 0 5px; + border: none; +} + +.media_sidebar p { + padding-left: 8px; } /* forms */ -- cgit v1.2.3 From e8be1d7af550267ab8e5e4cd3aad7a2e28e65ce3 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sat, 24 Mar 2012 14:49:43 +0100 Subject: Allow arrow keys in input fields and textareas If you pressed an arrow key in a textarea before, the next/previous media was opened. --- mediagoblin/static/css/base.css | 2 +- mediagoblin/static/js/keyboard_navigation.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'mediagoblin/static') diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 0a0d0dcd..909c9790 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -29,7 +29,7 @@ body { background-color: #111; background-image: url("../images/background.png"); color: #C3C3C3; - padding: none; + padding: 0; margin: 0px; height: 100%; font: 16px 'Lato', 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif; diff --git a/mediagoblin/static/js/keyboard_navigation.js b/mediagoblin/static/js/keyboard_navigation.js index d4039a3c..7401e4d8 100644 --- a/mediagoblin/static/js/keyboard_navigation.js +++ b/mediagoblin/static/js/keyboard_navigation.js @@ -16,6 +16,15 @@ * along with this program. If not, see . */ +/* It must be wrapped into a function and you also cannot use + * $(':not(textarea, input)') because of some reason. */ + +$(document).ready(function(){ + $('textarea, input').keydown(function(event){ + event.stopPropagation(); + }); +}); + $(document).keydown(function(event){ switch(event.which){ case 37: @@ -30,4 +39,3 @@ $(document).keydown(function(event){ break; } }); - -- cgit v1.2.3 From 6c49799deb6bf776d3765febeb9d7959e27af43d Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sat, 24 Mar 2012 17:36:12 +0100 Subject: Fill username automatically in (Forget Password) Fill the username automatically in the "Forget Password" form if the user already entered his username on the login page --- mediagoblin/static/js/autofilledin_password.js | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 mediagoblin/static/js/autofilledin_password.js (limited to 'mediagoblin/static') diff --git a/mediagoblin/static/js/autofilledin_password.js b/mediagoblin/static/js/autofilledin_password.js new file mode 100644 index 00000000..9513c273 --- /dev/null +++ b/mediagoblin/static/js/autofilledin_password.js @@ -0,0 +1,27 @@ +/** + * GNU MediaGoblin -- federated, autonomous media hosting + * Copyright (C) 2012 MediaGoblin contributors. See AUTHORS. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +$(document).ready(function(){ + $('#forgot_password').click(function(event){ + event.preventDefault(); + window.location.pathname = $(this).attr('href') + '?username=' + + $('#username').val(); + }); + + $('#username').val(window.location.search.match(/username=(.*)/)[1]); +}); -- cgit v1.2.3 From afcb08553edb682788a9c713cba06196c1e48297 Mon Sep 17 00:00:00 2001 From: Jef van Schendel Date: Sun, 25 Mar 2012 21:33:52 +0200 Subject: Header style change --- mediagoblin/static/css/base.css | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'mediagoblin/static') diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 909c9790..34be4f16 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -113,10 +113,10 @@ input, textarea { } header { - width: 100%; - padding-top: 14px; + width: 98%; + padding: 6px 1% 0; margin-bottom: 20px; - border-bottom: 1px solid #333; + background-color: #222; } .header_right { @@ -144,7 +144,7 @@ footer { height: 30px; border-top: 1px solid #333; bottom: 0px; - padding-top: 8px; + padding: 8px 0; text-align: center; font-size: 0.875em; clear: both; @@ -560,11 +560,6 @@ table.media_panel th { padding: 9px 14px; } - .header_right { - float: none; - display: inline-block; - } - header { text-align: center; } -- cgit v1.2.3 From 952b97d5a0671e1b4a68692a3b5f8a696cd2ca5f Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sun, 25 Mar 2012 21:51:09 +0200 Subject: set username default server-side --- mediagoblin/static/js/autofilledin_password.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'mediagoblin/static') diff --git a/mediagoblin/static/js/autofilledin_password.js b/mediagoblin/static/js/autofilledin_password.js index 9513c273..45e867fe 100644 --- a/mediagoblin/static/js/autofilledin_password.js +++ b/mediagoblin/static/js/autofilledin_password.js @@ -22,6 +22,4 @@ $(document).ready(function(){ window.location.pathname = $(this).attr('href') + '?username=' + $('#username').val(); }); - - $('#username').val(window.location.search.match(/username=(.*)/)[1]); }); -- cgit v1.2.3