From b27cbd467b9f6e1e7cbead8bfc6046e8a266f84b Mon Sep 17 00:00:00 2001 From: dbroqua Date: Mon, 7 Mar 2022 16:58:02 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20classe=20pour=20le=20hover=20de?= =?UTF-8?q?s=20=C3=A9l=C3=A9ments=20d'une=20liste?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/colors.scss | 2 +- sass/list.scss | 10 +++-- views/pages/ajouter-un-album.ejs | 2 +- views/pages/composants.ejs | 42 +++++++++++++++---- .../pages/mon-compte/ma-collection/index.ejs | 2 +- 5 files changed, 42 insertions(+), 16 deletions(-) diff --git a/sass/colors.scss b/sass/colors.scss index f100c6b..bc54734 100644 --- a/sass/colors.scss +++ b/sass/colors.scss @@ -45,7 +45,7 @@ $pagination-hover-color: rgb(115, 151, 186); --input-font-color: #{$nord3}; --input-color: #{$white}; --input-active-color: #{$nord5}; - + --navbar-color: #{darken($white, 5%)}; --box-bg-color: #F8F9FB; diff --git a/sass/list.scss b/sass/list.scss index 4f2b124..537a60d 100644 --- a/sass/list.scss +++ b/sass/list.scss @@ -30,10 +30,6 @@ border-right: 1px solid var(--border-color); margin-right: -1px; } - - &:hover { - background-color: var(--border-color); - } } .title { @@ -50,4 +46,10 @@ max-width: 90%; } } + + &.hover { + .item:hover { + background-color: var(--border-color); + } + } } \ No newline at end of file diff --git a/views/pages/ajouter-un-album.ejs b/views/pages/ajouter-un-album.ejs index bdebb4e..797bce6 100644 --- a/views/pages/ajouter-un-album.ejs +++ b/views/pages/ajouter-un-album.ejs @@ -15,7 +15,7 @@ -
+
{{ item.artists_sort }} {{ item.title }}
diff --git a/views/pages/composants.ejs b/views/pages/composants.ejs index dc4f8f2..592662b 100644 --- a/views/pages/composants.ejs +++ b/views/pages/composants.ejs @@ -110,7 +110,7 @@

Se référer à la documentation de Knacss.

- +

Les boutons

.button
@@ -170,28 +170,28 @@
- +
 <div class="field">
     <label for="choix1">choix 1</label>
-    <input type="radio" id="choix1" name="choix" value="choix1" checked> 
+    <input type="radio" id="choix1" name="choix" value="choix1" checked>
     <label for="choix2">choix 2</label>
     <input type="radio" id="choix2" name="choix" value="choix2">
 </div>
     
- +
 <div class="field">
     <label for="checkbox1">choix 1</label>
-    <input type="checkbox" id="checkbox1" name="checkbox" value="checkbox1" checked> 
+    <input type="checkbox" id="checkbox1" name="checkbox" value="checkbox1" checked>
     <label for="checkbox2">choix 2</label>
     <input type="checkbox" id="checkbox2" name="checkbox" value="checkbox2">
 </div>
@@ -243,11 +243,11 @@
                 
                 
             
- +

Pas encore inscrit ? Inscrivez-vous

- +
@@ -284,9 +284,9 @@
-<button 
+<button
     type="button"
-    class="button is-primary" 
+    class="button is-primary"
     onclick="showToastr('Ceci est une notification');"
 >
     Afficher une notification
@@ -318,6 +318,7 @@
     .icon-blind
 
     

Les listes

+

Liste normale

@@ -340,6 +341,29 @@ </div> </div>
+

Liste avec effet au hover

+
+
+ + {{ item.title }} + +
+
+ +
+
+ {{ item.lorem }} +
+
+
+
+
+<div class="grid grid-cols-1 md:grid-cols-2 list hover">
+    <div class="item">
+        Contenu
+    </div>
+</div>
+    

Les paginations

-
+