]> _ Git - fluidbook-html5.git/commitdiff
WIP #5345 @1.5
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 19 Sep 2022 16:58:22 +0000 (18:58 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 19 Sep 2022 16:58:22 +0000 (18:58 +0200)
js/libs/fluidbook/cart/fluidbook.cart.bastide.js
style/cart/bastide.less

index 4d596d84580bda5ac1a650089ad994acef4b0867..c11dcf50b30f0918172f5592ff1b702f1e1e30f9 100644 (file)
@@ -316,13 +316,13 @@ FluidbookCartBastide.prototype = {
                 'billing_address': {
                     'label': "Adresse de facturation",
                     'type': 'textarea',
-                    'rows': 3,
+                    'rows': 2,
                     'required': false
                 },
                 'message': {
                     'label': "Message",
                     'type': 'textarea',
-                    'rows': 6,
+                    'rows': 3,
                     'required': false
                 },
             },
@@ -409,7 +409,6 @@ FluidbookCartBastide.prototype = {
 
         content += `<div class="fonctions">
                       <a href="#/closeview" class="close-cart">
-                        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 5.06 8.71" xml:space="preserve"><path fill="none" stroke="#000" stroke-miterlimit="10" d="m4.71 8.35-4-4 4-4"/></svg>
                         Compléter ma sélection
                       </a>
                       <a href="#" class="validate-cart" data-validate-cart>
@@ -457,10 +456,9 @@ FluidbookCartBastide.prototype = {
             </div><!-- .details-columns -->
             <div class="details-footer fonctions">
               <a href="#/cart" class="back-to-cart">
-                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 5.06 8.71" xml:space="preserve"><path fill="none" stroke="#000" stroke-miterlimit="10" d="m4.71 8.35-4-4 4-4"/></svg>
-                Retourner à ma Sélection
+                Retour à ma Sélection
               </a>
-              <a href="#" class="send-cart" data-send-cart>Envoyer ma commande</a>
+              <a href="#" class="send-cart" data-send-cart>Envoyer ma demande</a>
             </div><!-- .details-footer -->
             <div class="server-response" style="display:none"><!-- placeholder for AJAX response --></div>
           </div><!-- .inner-content -->
index 4b86ecf3207b82d8e199b6f8375c7ce242ff23c3..2aba15bb4aa16aa651c1e6f5dedfe5022a17b011 100644 (file)
   .fonctions {
     display: flex;
     align-items: center;
-    justify-content: space-between;
+    justify-content: flex-end;
+    gap: 1em;
     padding: 2em 0;
 
     // Reorganise footer for better display and wrapping
     @media @breakpoint_table {
-      gap: 1.5em;
       flex-wrap: wrap;
       flex-direction: row-reverse;
       justify-content: flex-start;
       background-color: @menu-background;
       color: #fff;
       white-space: nowrap;
+      margin: 0;
 
       @media @breakpoint_table {
         flex: 1; // Allows items to grow to maximise width
 
   .back-to-cart, .close-cart {
     background-color: transparent !important;
-    color: #000 !important;
+    border: 2px solid currentColor;
+    color: @menu-background !important;
     display: inline-flex;
-    font-size: 0.75em;
+    font-weight: bold;
     align-items: center;
     margin: 0;
-    padding-left: 0;
     justify-content: center;
 
     @media @breakpoint_table {
       order: 3; // Switch position (since we're in flex-direction: row-reverse)
     }
+  }
 
-    svg {
-      height: 1em;
-      margin-right: 1.5em;
-    }
+  .server-response {
+    max-width: 50ch;
+    margin: 2em auto 0;
   }
 
 }