aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJay Sitter <jsitter@gmail.com>2014-10-31 12:48:35 -0400
committerJay Sitter <jsitter@gmail.com>2014-10-31 12:48:35 -0400
commit4bc70ed4012bcefa6a3a01a051fcbd18456403df (patch)
tree59a83303d6d7f50a0bcfa5e0d4b59aa5d05556da
parentb95a6f57bf3189a8a45f68901833ba159d90b47e (diff)
downloadwallabag-4bc70ed4012bcefa6a3a01a051fcbd18456403df.tar.gz
wallabag-4bc70ed4012bcefa6a3a01a051fcbd18456403df.tar.zst
wallabag-4bc70ed4012bcefa6a3a01a051fcbd18456403df.zip
Making visual styling of search and bag it popup forms more consistent
-rwxr-xr-xthemes/baggy/_pocheit-form.twig2
-rw-r--r--themes/baggy/_search-form.twig7
-rwxr-xr-xthemes/baggy/css/main.css19
3 files changed, 9 insertions, 19 deletions
diff --git a/themes/baggy/_pocheit-form.twig b/themes/baggy/_pocheit-form.twig
index 409707f0..88d32757 100755
--- a/themes/baggy/_pocheit-form.twig
+++ b/themes/baggy/_pocheit-form.twig
@@ -1,4 +1,4 @@
1<div id="bagit-form" class="messages info"> 1<div id="bagit-form" class="messages info popup-form">
2 <form method="get" action="index.php" target="_blank" id="bagit-form-form"> 2 <form method="get" action="index.php" target="_blank" id="bagit-form-form">
3 <h2>{% trans "Save a link" %}</h2> 3 <h2>{% trans "Save a link" %}</h2>
4 <a href="javascript: void(null);" id="bagit-form-close" class="popup-close">&times;</a> 4 <a href="javascript: void(null);" id="bagit-form-close" class="popup-close">&times;</a>
diff --git a/themes/baggy/_search-form.twig b/themes/baggy/_search-form.twig
index 35f3a994..b1e17dd8 100644
--- a/themes/baggy/_search-form.twig
+++ b/themes/baggy/_search-form.twig
@@ -1,8 +1,9 @@
1<div id="search-form" class="messages info"> 1<div id="search-form" class="messages info popup-form">
2<form method="get" action="index.php"> 2<form method="get" action="index.php">
3 <h2>{%trans "Search" %}</h2>
3 <a href="javascript: void(null);" id="search-form-close" class="popup-close">&times;</a> 4 <a href="javascript: void(null);" id="search-form-close" class="popup-close">&times;</a>
4 <input type="hidden" name="view" value="search"></input> 5 <input type="hidden" name="view" value="search"></input>
5 <label>{% trans "Search" %}:</label><input required placeholder="{% trans "Enter your search here" %}" type="text" name="search" id="searchfield" /> 6 <input required placeholder="{% trans "Enter your search here" %}" type="text" name="search" id="searchfield"><br>
6 <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> 7 <input id="submit-search" type="submit" value="{% trans "Search" %}"></input>
7</form> 8</form>
8</div> 9</div>
diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css
index b2ddf355..2f3af95e 100755
--- a/themes/baggy/css/main.css
+++ b/themes/baggy/css/main.css
@@ -540,8 +540,7 @@ footer a {
540 2.1 = "save a link" related styles 540 2.1 = "save a link" related styles
541 ========================================================================== */ 541 ========================================================================== */
542 542
543#bagit-form, 543.popup-form {
544#search-form {
545 background: rgba(0,0,0,0.5); 544 background: rgba(0,0,0,0.5);
546 position: absolute; 545 position: absolute;
547 top: 0; 546 top: 0;
@@ -550,14 +549,13 @@ footer a {
550 height: 100%; 549 height: 100%;
551 width: 100%; 550 width: 100%;
552 margin: 0; 551 margin: 0;
553 margin-top: -30%; 552 margin-top: -30% !important; /* TODO: get rid of !important here; overridden by .messages selector */
554 padding: 2em; 553 padding: 2em;
555 display: none; 554 display: none;
556 border-left: 1px #EEE solid; 555 border-left: 1px #EEE solid;
557} 556}
558 557
559 #bagit-form form, 558 .popup-form form {
560 #search-form form {
561 background: #FFF; 559 background: #FFF;
562 position: absolute; 560 position: absolute;
563 top: 0; 561 top: 0;
@@ -644,15 +642,6 @@ a.add-to-wallabag-link-after:after {
644} 642}
645 643
646/* ========================================================================== 644/* ==========================================================================
647 2.2 = "search for articles" popup div related styles
648 ========================================================================== */
649
650#submit-search{
651 margin-left: 4em;
652 margin-top: 1em;
653}
654
655/* ==========================================================================
656 3 = Pictos 645 3 = Pictos
657 ========================================================================== */ 646 ========================================================================== */
658 647
@@ -1031,7 +1020,7 @@ pre code {
1031 display: none; 1020 display: none;
1032 } 1021 }
1033 1022
1034 #bagit-form, #search-form { 1023 .popup-form {
1035 left: 0; 1024 left: 0;
1036 } 1025 }
1037} 1026}