From a7a5defbc797bd1ebf385ccd26b7c8ac009e2c28 Mon Sep 17 00:00:00 2001 From: benweet Date: Wed, 29 May 2013 00:41:09 +0100 Subject: [PATCH] New extension pattern --- css/default.css | 27 ++++++- index.html | 26 +------ js/async-runner.js | 10 ++- js/core.js | 2 +- js/dropbox-helper.js | 2 +- js/dropbox-provider.js | 12 ++- js/extension-manager.js | 23 ++++-- js/extensions/button-publish.js | 26 ++++++- js/extensions/button-share.js | 20 +++++ js/extensions/button-sync.js | 32 ++++++-- js/extensions/document-selector.js | 10 +-- js/extensions/manage-publication.js | 8 +- js/extensions/notifications.js | 4 +- js/file-manager.js | 112 ++++++++++++++++------------ js/file-system.js | 25 +------ js/gdrive-provider.js | 20 ++--- js/github-helper.js | 2 +- js/google-helper.js | 2 +- js/main.js | 16 ++++ js/publisher.js | 8 +- js/ssh-helper.js | 2 +- js/synchronizer.js | 20 ++--- js/tumblr-helper.js | 2 +- js/utils.js | 7 +- js/wordpress-helper.js | 2 +- 25 files changed, 244 insertions(+), 176 deletions(-) diff --git a/css/default.css b/css/default.css index 4da4871f..8fe0b814 100644 --- a/css/default.css +++ b/css/default.css @@ -174,6 +174,31 @@ input[readonly], select[readonly], textarea[readonly] { margin-right: 10px; } +#extension-buttons { + margin-right: 15px; +} + +#extension-buttons > .btn-group { + margin: 5px 0 0; +} + +#extension-buttons > .btn-group > .btn { + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +#extension-buttons > .btn-group:first-child > .btn { + -webkit-border-radius: 4px 0 0 4px; + -moz-border-radius: 4px 0 0 4px; + border-radius: 4px 0 0 4px; +} + +#extension-buttons > .btn-group:last-child > .btn { + -webkit-border-radius: 0 4px 4px 0; + -moz-border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; +} + .btn-group > .btn + .dropdown-toggle { padding-right: 12px; padding-left: 12px; @@ -405,7 +430,7 @@ div.dropdown-menu i { width: 43px; height: 11px; background-position: 0 0; - margin: 14px 15px 0; + margin: 16px 16px 0; } .working-indicator.show { diff --git a/index.html b/index.html index 00ad1d11..02e9e4f9 100644 --- a/index.html +++ b/index.html @@ -34,31 +34,7 @@