From 9e45bcab4732806d291d2326e2f8a5d676caf0df Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Sat, 6 Jun 2015 16:20:26 +0200 Subject: [PATCH] better support for custom sprites --- QvitterPlugin.php | 3 +++ README.md | 1 + actions/qvitter.php | 50 ++++++++++++++++++++++++++++++++++++++------ css/qvitter.css | 4 +--- js/misc-functions.js | 26 ++++++++++++----------- 5 files changed, 63 insertions(+), 21 deletions(-) diff --git a/QvitterPlugin.php b/QvitterPlugin.php index 66b0188..46f47c3 100644 --- a/QvitterPlugin.php +++ b/QvitterPlugin.php @@ -62,6 +62,9 @@ class QvitterPlugin extends Plugin { // DEFAULT FAVICON $settings['favicon'] = 'img/favicon.ico?v=5'; + // DEFAULT SPRITE + $settings['sprite'] = Plugin::staticPath('Qvitter', '').'img/sprite.png?v=40'; + // DEFAULT LINK COLOR $settings['defaultlinkcolor'] = '#0084B4'; diff --git a/README.md b/README.md index 277e702..9ec23a9 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ $config['site']['qvitter']['urlshortenerapiurl'] = 'http://qttr.at/yourls-api.ph $config['site']['qvitter']['urlshortenersignature'] = 'b6afeec983'; $config['site']['qvitter']['sitebackground'] = 'img/vagnsmossen.jpg'; $config['site']['qvitter']['favicon'] = 'img/favicon.ico?v=4'; +$config['site']['qvitter']['sprite'] = Plugin::staticPath('Qvitter', '').'img/sprite.png?v=40'; $config['site']['qvitter']['enablewelcometext'] = true; $config['site']['qvitter']['customwelcometext']['sv'] = '

Välkommen till Quitter.se – en federerad1 mikrobloggsallmänning!

Etc etc...

'; $config['site']['qvitter']['customwelcometext']['en'] = '

Welcome to Quitter.se – a federated microblog common!

Etc etc...

'; diff --git a/actions/qvitter.php b/actions/qvitter.php index 7192f48..314796c 100644 --- a/actions/qvitter.php +++ b/actions/qvitter.php @@ -110,6 +110,9 @@ class QvitterAction extends ApiAction <?php print $sitetitle; ?> + "> @@ -287,7 +290,7 @@ class QvitterAction extends ApiAction ul.stats a strong, .queet-box-extras button, #openid-login:hover:after { - color:;/*COLOREND*/ + color:/*COLORSTART*//*COLOREND*/; } #unseen-notifications, .stream-item.notification .not-seen, @@ -305,15 +308,15 @@ class QvitterAction extends ApiAction .crop-and-save-button, .topbar .global-nav.show-logo:before, .topbar .global-nav.pulse-logo:before { - background-color:;/*BACKGROUNDCOLOREND*/ + background-color:/*BACKGROUNDCOLORSTART*//*BACKGROUNDCOLOREND*/; } .queet-box-syntax[contenteditable="true"]:focus { - border-color:#999999;/*BORDERCOLOREND*/ + border-color:/*BORDERCOLORSTART*/#999999/*BORDERCOLOREND*/; } #user-footer-inner, .inline-reply-queetbox, #popup-faq #faq-container p.indent { - background-color:rgb(205,230,239);/*LIGHTERBACKGROUNDCOLOREND*/ + background-color:/*LIGHTERBACKGROUNDCOLORSTART*/rgb(205,230,239)/*LIGHTERBACKGROUNDCOLOREND*/; } #user-footer-inner, .queet-box, @@ -322,12 +325,47 @@ class QvitterAction extends ApiAction span.inline-reply-caret, .stream-item.expanded .stream-item.first-visible-after-parent, #popup-faq #faq-container p.indent { - border-color:rgb(155,206,224);/*LIGHTERBORDERCOLOREND*/ + border-color:/*LIGHTERBORDERCOLORSTART*/rgb(155,206,224)/*LIGHTERBORDERCOLOREND*/; } span.inline-reply-caret .caret-inner { - border-bottom-color:rgb(205,230,239);/*LIGHTERBORDERBOTTOMCOLOREND*/ + border-bottom-color:/*LIGHTERBORDERBOTTOMCOLORSTART*/rgb(205,230,239)/*LIGHTERBORDERBOTTOMCOLOREND*/; } + .modal-close .icon, + .chev-right, + .close-right, + button.icon.nav-search, + .member-button .join-text i, + .external-member-button .join-text i, + .external-follow-button .follow-text i, + .qvitter-follow-button .follow-text i, + #logo, + .upload-cover-photo, + .upload-avatar, + .upload-background-image, + button.shorten i, + .reload-stream, + .topbar .global-nav:before, + .stream-item.notification.repeat .dogear, + .stream-item.notification.like .dogear, + .ostatus-link, + .close-edit-profile-window { + background-image: url(""); + background-size: 500px 1329px; + } + @media (max-width: 910px) { + #search-query, + .menu-container a, + .menu-container a.current, + .stream-selection.friends-timeline:after, + .stream-selection.notifications:after, + .stream-selection.my-timeline:after, + .stream-selection.public-timeline:after { + background-image: url(""); + background-size: 500px 1329px; + } + } +