From 7f16d071f03c9fc5b44f2ee9f73d37562271d3f6 Mon Sep 17 00:00:00 2001
From: Sebastien Curt <sebastien.curt@tetras-libre.fr>
Date: Tue, 22 Feb 2022 15:27:56 +0100
Subject: [PATCH] Remove unecessary id element for edit capsule button

---
 assets/styles/app.scss                        | 28 +++----------------
 templates/capsule/index.html.twig             |  2 +-
 templates/capsule/no_edition_access.html.twig |  2 +-
 3 files changed, 6 insertions(+), 26 deletions(-)

diff --git a/assets/styles/app.scss b/assets/styles/app.scss
index 48d5485..84e8b43 100644
--- a/assets/styles/app.scss
+++ b/assets/styles/app.scss
@@ -40,18 +40,15 @@ button[type=submit]{
   height: 200px;
 }
 
-.btn-primary {
-  background: rgba(0,0,0,.1);
-  border: none;
-  border-radius: 3px;
-  opacity: 1;
-}
-
 $orange-button-bt: #FA772E;
 .btn-orange {
   @include button-variant($orange-button-bt, $orange-button-bt, white, #f05b2b, #f05b2b);
 }
 
+.btn-standard {
+  @include button-variant(#49AD9A, #49AD9A, white, #3B8C7E, #3B8C7E);
+}
+
 .gray-600 {
   color:$gray-600;
 }
@@ -72,23 +69,6 @@ $orange-button-bt: #FA772E;
   color: rgba(255,255,255,.75);
 }
 
-.standard-button {
-  line-height: 40px;
-  padding: 0.5em 2em;
-  font-size: 16px;
-  font-weight: bold;
-  border: none;
-  color: #FFF !important;
-  border-radius: 3px;
-  background: #49AD9A;
-  box-shadow: 0 -2px 0 #3B8C7E inset;
-  flex-basis: auto;
-}
-
-.standard-button:hover {
-  background: #3B8C7E;
-}
-
 .row-title-box {
   border-bottom: 2px solid rgba(0,0,0,.2);
   margin-bottom: 60px;
diff --git a/templates/capsule/index.html.twig b/templates/capsule/index.html.twig
index 4a029c3..66f6ed1 100644
--- a/templates/capsule/index.html.twig
+++ b/templates/capsule/index.html.twig
@@ -109,7 +109,7 @@
                     {% endif %}
 
                     <a href="capsule/edit/{{ capsule.getLinkPath() }}" class="list-item text-nowrap lh-md">
-                        <button class="standard-button p-2">
+                        <button class="bt btn-standard px-4 py-4 fw-bold rounded-3">
                             {{ 'capsule.edit.link'|trans }}
                         </button>
                     </a>
diff --git a/templates/capsule/no_edition_access.html.twig b/templates/capsule/no_edition_access.html.twig
index d5ea961..761639f 100644
--- a/templates/capsule/no_edition_access.html.twig
+++ b/templates/capsule/no_edition_access.html.twig
@@ -23,7 +23,7 @@
 
     <div class="d-flex justify-content-center align-items-center">
         <form>
-            <button id="btn-primary" formaction="/capsule_list">
+            <button class="btn btn-primary" formaction="/capsule_list">
                 {{ 'general.go_back_to_home_page'|trans }}
             </button>
         </form>
-- 
GitLab