]> _ Git - pmi.git/commitdiff
WIP #2770 @1
authorStephen Cameron <stephen@cubedesigners.com>
Wed, 28 Aug 2019 12:04:58 +0000 (14:04 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Wed, 28 Aug 2019 12:04:58 +0000 (14:04 +0200)
resources/styles/components/form.styl
resources/styles/components/search.styl
resources/views/partials/form.blade.php

index 026d0132842d96fb264d7681d1b83acdc7316388..a7d36f65c741081d6954662a9cbbbd3302b147fa 100644 (file)
     text-align: right
 
   input, textarea
-    border-radius 3px
-    color: theme('colors.grey.dark')
-    padding 12px 10px
-    border 1px solid #fff
-    display: block
-    width: 100%
+    @apply block w-full outline-none border border-grey-100 text-grey-dark rounded p-3
 
     &:focus
       border-color: theme('colors.grey.250')
index 65f0ba502892b5716d8b5daf82132cf9d238b360..dd1a8845c34822249c2727432124dcb5086ddd2e 100644 (file)
@@ -35,27 +35,28 @@ $breakpoint-search-results = 980px
   @apply flex-grow
 
   &-input
-    @apply px-2 py-2 font-display text-2xl w-full appearance-none
+    @apply px-2 py-2 font-display text-2xl w-full appearance-none border-2 border-grey-100
 
     &:focus
-      @apply outline-none border-t border-r border-l border-grey-200
+      @apply outline-none border-grey-200
 
       .header-search-box &
-        @apply bg-grey-100
+        @apply bg-grey-100 border-grey-100
 
         &[aria-expanded=true]
-          @apply bg-white
+          @apply bg-white border-grey-200
 
     +below(450px)
       @apply text-base
 
 
   &-result-list
-    @apply border-l border-r border-b border-grey-200 shadow-lg
+    @apply bg-white border-l-2 border-r-2 border-b-2 border-grey-200 shadow-lg
     z-index: 20 !important
+    transform: translateY(-2px) // To cover border on bottom of input
 
   &-result
-    @apply bg-white px-2 py-4 border-b border-grey-200
+    @apply px-4 py-4 border-b border-grey-200
 
     &:last-child
       @apply border-none
index cb9c3e1d52094ac2325557d761ff029333727719..3ed44b0cb652f8ebd65245dc921c388cbeb5b7f6 100644 (file)
@@ -7,7 +7,7 @@
 <div id="contact-form">
     <div class="ajax-form flex flex-col max-w-half">
         @if($page->get('form_intro'))
-            <p class="form-info text-navy">{{$page->get('form_intro')}}</p>
+            <div class="form-info text-navy">@markdown($page->get('form_intro'))</div>
         @endif
         <form class="text-navy mailform" action="{{ $action ?? '/ajax/mailform' }}" method="post"
               data-confirmation="{{$page->get('form_confirmation')??__('Votre message a bien été envoyé')}}" novalidate>