diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-11 17:22:04 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-11 17:22:04 +0200 |
commit | 4a74d9857cdb6116ce24df01b45176b92ad592c0 (patch) | |
tree | f8347803fe40f8b27218cbad8ed688c7dbf3a46e /themes | |
parent | 0d67b00d5d3b7ce1b76b639dcc65c415a5f13439 (diff) | |
parent | 7256e9e139eb07cdae1fbe3009454e6c7d9a8677 (diff) | |
download | wallabag-4a74d9857cdb6116ce24df01b45176b92ad592c0.tar.gz wallabag-4a74d9857cdb6116ce24df01b45176b92ad592c0.tar.zst wallabag-4a74d9857cdb6116ce24df01b45176b92ad592c0.zip |
Merge pull request #634 from wallabag/dev1.6.1b
1.6.1
Diffstat (limited to 'themes')
-rwxr-xr-x | themes/baggy/_head.twig | 1 | ||||
-rw-r--r-- | themes/baggy/_search-form.twig | 22 | ||||
-rwxr-xr-x | themes/baggy/css/main.css | 16 | ||||
-rwxr-xr-x | themes/courgette/config.twig | 10 | ||||
-rwxr-xr-x | themes/default/_head.twig | 1 | ||||
-rw-r--r-- | themes/default/js/popupForm.js | 20 | ||||
-rwxr-xr-x | themes/default/js/saveLink.js | 2 |
7 files changed, 41 insertions, 31 deletions
diff --git a/themes/baggy/_head.twig b/themes/baggy/_head.twig index 04898d85..be11673f 100755 --- a/themes/baggy/_head.twig +++ b/themes/baggy/_head.twig | |||
@@ -12,4 +12,5 @@ | |||
12 | <script src="{{ poche_url }}themes/{{theme}}/js/jquery.cookie.js"></script> | 12 | <script src="{{ poche_url }}themes/{{theme}}/js/jquery.cookie.js"></script> |
13 | <script src="{{ poche_url }}themes/{{theme}}/js/init.js"></script> | 13 | <script src="{{ poche_url }}themes/{{theme}}/js/init.js"></script> |
14 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> | 14 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> |
15 | <script src="{{ poche_url }}themes/default/js/popupForm.js"></script> | ||
15 | <script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script> | 16 | <script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script> |
diff --git a/themes/baggy/_search-form.twig b/themes/baggy/_search-form.twig index 1fd4154e..b8ac3bfa 100644 --- a/themes/baggy/_search-form.twig +++ b/themes/baggy/_search-form.twig | |||
@@ -1,21 +1,7 @@ | |||
1 | <div id="search-form" class="messages info"> | 1 | <div id="search-form" class="messages info"> |
2 | <form method="get" action="index.php"> | 2 | <form method="get" action="index.php"> |
3 | <input type="hidden" name="view" value="search"></input> | 3 | <input type="hidden" name="view" value="search"></input> |
4 | <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" /> | 4 | <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" /> |
5 | <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> | 5 | <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> |
6 | </form> | 6 | </form> |
7 | </div> | 7 | </div> \ No newline at end of file |
8 | <script type="text/javascript"> | ||
9 | $(document).ready(function() { | ||
10 | |||
11 | $("#search-form").hide(); | ||
12 | |||
13 | $("#search").click(function(){ | ||
14 | $("#search-form").toggle(); | ||
15 | $("#search").toggleClass("current"); | ||
16 | $("#search-arrow").toggleClass("arrow-down"); | ||
17 | }); | ||
18 | |||
19 | |||
20 | }); | ||
21 | </script> \ No newline at end of file | ||
diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 0dd552de..0991dbed 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css | |||
@@ -352,10 +352,10 @@ footer a { | |||
352 | letter-spacing:normal; | 352 | letter-spacing:normal; |
353 | box-shadow: 0 3px 7px rgba(0,0,0,0.3); | 353 | box-shadow: 0 3px 7px rgba(0,0,0,0.3); |
354 | display: inline-block; | 354 | display: inline-block; |
355 | width: 32%!important; | 355 | width: 32%; |
356 | margin-bottom: 1.5em; | 356 | margin-bottom: 1.5em; |
357 | vertical-align: top; | 357 | vertical-align: top; |
358 | margin-left: 1.5%!important; | 358 | margin-left: 1.5%; |
359 | position: relative; | 359 | position: relative; |
360 | overflow: hidden; | 360 | overflow: hidden; |
361 | padding: 1.5em 1.5em 3em 1.5em; | 361 | padding: 1.5em 1.5em 3em 1.5em; |
@@ -492,7 +492,7 @@ footer a { | |||
492 | } | 492 | } |
493 | 493 | ||
494 | .entrie:nth-child(3n+1) { | 494 | .entrie:nth-child(3n+1) { |
495 | margin-left: 0!important; | 495 | margin-left: 0; |
496 | } | 496 | } |
497 | 497 | ||
498 | .results { | 498 | .results { |
@@ -540,7 +540,7 @@ footer a { | |||
540 | 2.1 = "save a link" popup div related styles | 540 | 2.1 = "save a link" popup div related styles |
541 | ========================================================================== */ | 541 | ========================================================================== */ |
542 | 542 | ||
543 | #bagit-form { | 543 | #bagit-form, #search-form { |
544 | background: rgba(0,0,0,0.5); | 544 | background: rgba(0,0,0,0.5); |
545 | position: absolute; | 545 | position: absolute; |
546 | top: 0; | 546 | top: 0; |
@@ -555,7 +555,7 @@ footer a { | |||
555 | border-left: 1px #EEE solid; | 555 | border-left: 1px #EEE solid; |
556 | } | 556 | } |
557 | 557 | ||
558 | #bagit-form form { | 558 | #bagit-form form, #search-form form { |
559 | background: #FFF; | 559 | background: #FFF; |
560 | position: absolute; | 560 | position: absolute; |
561 | top: 0; | 561 | top: 0; |
@@ -568,7 +568,7 @@ footer a { | |||
568 | padding: 2em; | 568 | padding: 2em; |
569 | } | 569 | } |
570 | 570 | ||
571 | a#bagit-form-close { | 571 | a#bagit-form-close, a#search-form-close { |
572 | background: #000; | 572 | background: #000; |
573 | color: #FFF; | 573 | color: #FFF; |
574 | padding: 0.2em 0.5em; | 574 | padding: 0.2em 0.5em; |
@@ -577,7 +577,7 @@ a#bagit-form-close { | |||
577 | float: right; | 577 | float: right; |
578 | font-size: 0.6em; | 578 | font-size: 0.6em; |
579 | } | 579 | } |
580 | a#bagit-form-close:hover { | 580 | a#bagit-form-close:hover, a#search-form-close:hover { |
581 | background: #999; | 581 | background: #999; |
582 | color: #000; | 582 | color: #000; |
583 | } | 583 | } |
@@ -1028,7 +1028,7 @@ blockquote { | |||
1028 | display: none; | 1028 | display: none; |
1029 | } | 1029 | } |
1030 | 1030 | ||
1031 | #bagit-form { | 1031 | #bagit-form, #search-form { |
1032 | left: 0; | 1032 | left: 0; |
1033 | } | 1033 | } |
1034 | } | 1034 | } |
diff --git a/themes/courgette/config.twig b/themes/courgette/config.twig index 5c0aa4b1..6e1a9043 100755 --- a/themes/courgette/config.twig +++ b/themes/courgette/config.twig | |||
@@ -9,9 +9,11 @@ | |||
9 | <h2>{% trans "Poching a link" %}</h2> | 9 | <h2>{% trans "Poching a link" %}</h2> |
10 | <p>{% trans "There are several ways to save an article:" %} (<a class="special" href="http://doc.wallabag.org" title="{% trans "read the documentation" %}">?</a>)</p> | 10 | <p>{% trans "There are several ways to save an article:" %} (<a class="special" href="http://doc.wallabag.org" title="{% trans "read the documentation" %}">?</a>)</p> |
11 | <ul> | 11 | <ul> |
12 | <li>firefox: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.xpi" title="download the firefox extension">{% trans "download the extension" %}</a></li> | 12 | <li>Firefox: <a href="https://addons.mozilla.org/firefox/addon/wallabag/" title="download the firefox extension">{% trans "download the extension" %}</a></li> |
13 | <li>chrome: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.crx" title="download the chrome extension">{% trans "download the extension" %}</a></li> | 13 | <li>Chrome: <a href="http://doc.wallabag.org/doku.php?id=users:chrome_extension" title="download the chrome extension">{% trans "download the extension" %}</a></li> |
14 | <li>android: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/Poche.apk" title="download the application">{% trans "download the application" %}</a></li> | 14 | <li>Android: <a href="https://f-droid.org/app/fr.gaulupeau.apps.InThePoche" title="download the application">{% trans "via F-Droid" %}</a> {% trans " or " %} <a href="https://play.google.com/store/apps/details?id=fr.gaulupeau.apps.InThePoche" title="download the application">{% trans "via Google Play" %}</a></li> |
15 | <li>iOS: <a href="https://itunes.apple.com/app/wallabag/id828331015?mt=8" title="download the iOS application">{% trans "download the application" %}</a></li> | ||
16 | <li>Windows Phone: <a href="http://www.windowsphone.com/en-us/store/app/wallabag/ff890514-348c-4d0b-9b43-153fff3f7450" title="download the window phone application">{% trans "download the application" %}</a></li> | ||
15 | <li> | 17 | <li> |
16 | <form method="get" action="index.php"> | 18 | <form method="get" action="index.php"> |
17 | <label class="addurl" for="plainurl">{% trans "by filling this field" %}:</label> | 19 | <label class="addurl" for="plainurl">{% trans "by filling this field" %}:</label> |
@@ -79,4 +81,4 @@ | |||
79 | <h2>{% trans "Export your wallabag data" %}</h2> | 81 | <h2>{% trans "Export your wallabag data" %}</h2> |
80 | <p><a href="./?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your wallabag data." %}</p> | 82 | <p><a href="./?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your wallabag data." %}</p> |
81 | </div> | 83 | </div> |
82 | {% endblock %} \ No newline at end of file | 84 | {% endblock %} |
diff --git a/themes/default/_head.twig b/themes/default/_head.twig index ffbfc22e..8c939e30 100755 --- a/themes/default/_head.twig +++ b/themes/default/_head.twig | |||
@@ -11,3 +11,4 @@ | |||
11 | <script src="{{ poche_url }}themes/default/js/autoClose.js"></script> | 11 | <script src="{{ poche_url }}themes/default/js/autoClose.js"></script> |
12 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> | 12 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> |
13 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> | 13 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> |
14 | <script src="{{ poche_url }}themes/default/js/popupForm.js"></script> \ No newline at end of file | ||
diff --git a/themes/default/js/popupForm.js b/themes/default/js/popupForm.js new file mode 100644 index 00000000..06be3f0c --- /dev/null +++ b/themes/default/js/popupForm.js | |||
@@ -0,0 +1,20 @@ | |||
1 | $(document).ready(function() { | ||
2 | |||
3 | $("#search-form").hide(); | ||
4 | |||
5 | function closeSearch() { | ||
6 | $("#search-form").toggle(); | ||
7 | $("#search").toggleClass("current"); | ||
8 | $("#search-arrow").toggleClass("arrow-down"); | ||
9 | } | ||
10 | |||
11 | $("#search").click(function(){ | ||
12 | closeSearch(); | ||
13 | }); | ||
14 | |||
15 | $("#search-form-close").click(function(){ | ||
16 | closeSearch(); | ||
17 | }); | ||
18 | |||
19 | |||
20 | }); \ No newline at end of file | ||
diff --git a/themes/default/js/saveLink.js b/themes/default/js/saveLink.js index ccc00d1e..bee453c0 100755 --- a/themes/default/js/saveLink.js +++ b/themes/default/js/saveLink.js | |||
@@ -75,7 +75,7 @@ $.fn.ready(function() { | |||
75 | ========================================================================== */ | 75 | ========================================================================== */ |
76 | 76 | ||
77 | $(window).keydown(function(e){ | 77 | $(window).keydown(function(e){ |
78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || e.keyCode == 27 ) { | 78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || (e.keyCode == 27 && $bagitForm.is(':visible') ) ) { |
79 | $bagit.removeClass("current"); | 79 | $bagit.removeClass("current"); |
80 | $("#bagit-arrow").removeClass("arrow-down"); | 80 | $("#bagit-arrow").removeClass("arrow-down"); |
81 | toggleSaveLinkForm(); | 81 | toggleSaveLinkForm(); |