mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Cleaning up bookmarklet layout a bit.
This commit is contained in:
parent
bae1b4e2ea
commit
8bb6ff00b7
3 changed files with 14 additions and 8 deletions
|
@ -153,7 +153,7 @@ def check_share_on_site(request, token):
|
||||||
except Profile.DoesNotExist:
|
except Profile.DoesNotExist:
|
||||||
code = -1
|
code = -1
|
||||||
|
|
||||||
logging.user(profile.user, "~BY~FRChecking share from site: ~SB%s" % (story_url))
|
logging.user(profile.user, "~BM~FCChecking share from site: ~SB%s" % (story_url))
|
||||||
|
|
||||||
return HttpResponse(callback + '(' + json.encode({
|
return HttpResponse(callback + '(' + json.encode({
|
||||||
'code': code,
|
'code': code,
|
||||||
|
@ -176,7 +176,7 @@ def share_story(request, token):
|
||||||
except Profile.DoesNotExist:
|
except Profile.DoesNotExist:
|
||||||
code = -1
|
code = -1
|
||||||
|
|
||||||
logging.user(profile.user, "~BY~FRSharing story from site: ~SB%s: %s" % (story_url, comments))
|
logging.user(profile.user, "~BM~FYSharing story from site: ~SB%s: %s" % (story_url, comments))
|
||||||
|
|
||||||
return HttpResponse(callback + '(' + json.encode({
|
return HttpResponse(callback + '(' + json.encode({
|
||||||
'code': code,
|
'code': code,
|
||||||
|
|
|
@ -150,20 +150,26 @@
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.NB-bookmarklet .NB-folders {
|
.NB-bookmarklet .NB-folders {
|
||||||
width: 200px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
.NB-bookmarklet .NB-modal-submit {
|
.NB-bookmarklet .NB-modal-submit {
|
||||||
margin: 24px 0 8px;
|
margin: 24px 0 8px;
|
||||||
padding: 0 0 6px;
|
padding: 0 0 6px;
|
||||||
|
clear: both;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.NB-bookmarklet .NB-modal-submit-button {
|
.NB-bookmarklet .NB-modal-submit-button {
|
||||||
clear: both;
|
clear: both;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
width: 200px;
|
width: 160px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
.NB-bookmarklet .NB-modal-submit-button:hover,
|
||||||
|
.NB-bookmarklet .NB-modal-submit-button:active {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
.NB-bookmarklet .NB-modal-submit-button img {
|
.NB-bookmarklet .NB-modal-submit-button img {
|
||||||
margin: 5px 6px 0 0;
|
margin: 5px 6px 0 0;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
'Signed in as ',
|
'Signed in as ',
|
||||||
$.make('b', { style: 'color: #505050' }, this.username)
|
$.make('b', { style: 'color: #505050' }, this.username)
|
||||||
]),
|
]),
|
||||||
$.make('div', { className: 'NB-modal-title' }, 'Sharing \"'+this.get_page_title()+'\"'),
|
$.make('div', { className: 'NB-modal-title' }, 'Share this story on NewsBlur'),
|
||||||
$.make('div', { className: 'NB-bookmarklet-main'}, [
|
$.make('div', { className: 'NB-bookmarklet-main'}, [
|
||||||
$.make('div', { className: 'NB-bookmarklet-page' }, [
|
$.make('div', { className: 'NB-bookmarklet-page' }, [
|
||||||
$.make('div', { className: 'NB-bookmarklet-page-title' }),
|
$.make('div', { className: 'NB-bookmarklet-page-title' }),
|
||||||
|
@ -93,6 +93,9 @@
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
$.make('div', { className: 'NB-bookmarklet-side' }, [
|
$.make('div', { className: 'NB-bookmarklet-side' }, [
|
||||||
|
$.make('div', { className: 'NB-modal-submit' }, [
|
||||||
|
$.make('div', { className: 'NB-modal-submit-button NB-modal-submit-green' }, 'Subscribe to this site')
|
||||||
|
]),
|
||||||
$.make('div', { className: 'NB-bookmarklet-folder-container' }, [
|
$.make('div', { className: 'NB-bookmarklet-folder-container' }, [
|
||||||
$.make('img', { className: 'NB-bookmarklet-folder-add-button', src: 'data:image/png;charset=utf-8;base64,{{ add_image }}', title: 'Add New Folder' }),
|
$.make('img', { className: 'NB-bookmarklet-folder-add-button', src: 'data:image/png;charset=utf-8;base64,{{ add_image }}', title: 'Add New Folder' }),
|
||||||
this.make_folders(),
|
this.make_folders(),
|
||||||
|
@ -100,9 +103,6 @@
|
||||||
$.make('img', { className: 'NB-bookmarklet-folder-new-label', src: 'data:image/png;charset=utf-8;base64,{{ new_folder_image }}' }),
|
$.make('img', { className: 'NB-bookmarklet-folder-new-label', src: 'data:image/png;charset=utf-8;base64,{{ new_folder_image }}' }),
|
||||||
$.make('input', { type: 'text', name: 'new_folder_name', className: 'NB-bookmarklet-folder-new' })
|
$.make('input', { type: 'text', name: 'new_folder_name', className: 'NB-bookmarklet-folder-new' })
|
||||||
])
|
])
|
||||||
]),
|
|
||||||
$.make('div', { className: 'NB-modal-submit' }, [
|
|
||||||
$.make('div', { className: 'NB-modal-submit-button NB-modal-submit-green' }, 'Add this site')
|
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue