]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Making visual styling of search and bag it popup forms more consistent
authorJay Sitter <jsitter@gmail.com>
Fri, 31 Oct 2014 16:48:35 +0000 (12:48 -0400)
committerJay Sitter <jsitter@gmail.com>
Fri, 31 Oct 2014 16:48:35 +0000 (12:48 -0400)
themes/baggy/_pocheit-form.twig
themes/baggy/_search-form.twig
themes/baggy/css/main.css

index 409707f09e474de163247ec05224bdc7d2ab691f..88d3275741d517e08385fcee2e858b5671284ced 100755 (executable)
@@ -1,4 +1,4 @@
-<div id="bagit-form" class="messages info">
+<div id="bagit-form" class="messages info popup-form">
     <form method="get" action="index.php" target="_blank" id="bagit-form-form">
         <h2>{% trans "Save a link" %}</h2>
         <a href="javascript: void(null);" id="bagit-form-close" class="popup-close">&times;</a>
index 35f3a99475d7bf3378c9ebb6e49bff2910acc9af..b1e17dd8807fdc51a1793315958c515baebc7a0f 100644 (file)
@@ -1,8 +1,9 @@
-<div id="search-form" class="messages info">
+<div id="search-form" class="messages info popup-form">
 <form method="get" action="index.php">
+                               <h2>{%trans "Search" %}</h2>
         <a href="javascript: void(null);" id="search-form-close" class="popup-close">&times;</a>
         <input type="hidden" name="view" value="search"></input>
-        <label>{% trans "Search" %}:</label><input required placeholder="{% trans "Enter your search here" %}" type="text" name="search" id="searchfield" />
-        <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
+        <input required placeholder="{% trans "Enter your search here" %}" type="text" name="search" id="searchfield"><br>
+        <input id="submit-search" type="submit" value="{% trans "Search" %}"></input>
 </form>
 </div>
index b2ddf355b40150544141a152ab6aff273e9024e0..2f3af95ecdcbaea6d24358652f575953cc9e0d6f 100755 (executable)
@@ -540,8 +540,7 @@ footer a {
   2.1 = "save a link" related styles
   ========================================================================== */
 
-#bagit-form,
-#search-form {
+.popup-form {
   background: rgba(0,0,0,0.5);
   position: absolute;
   top: 0;
@@ -550,14 +549,13 @@ footer a {
   height: 100%;
   width: 100%;
   margin: 0;
-  margin-top: -30%;
+  margin-top: -30% !important; /* TODO: get rid of !important here; overridden by .messages selector */
   padding: 2em;
   display: none;
   border-left: 1px #EEE solid;
 }
 
-       #bagit-form form,
-       #search-form form {
+       .popup-form form {
                background: #FFF;
                position: absolute;
                top: 0;
@@ -643,15 +641,6 @@ a.add-to-wallabag-link-after:after {
   font-size: 0.9em;
 }
 
-/* ==========================================================================
-  2.2 = "search for articles" popup div related styles
-  ========================================================================== */
-
-#submit-search{
-       margin-left: 4em;
-       margin-top: 1em;
-}
-
 /* ==========================================================================
    3 = Pictos
    ========================================================================== */
@@ -1031,7 +1020,7 @@ pre code {
     display: none;
   }
 
-  #bagit-form, #search-form {
+  .popup-form {
     left: 0;
   }
 }