Benutzer: Jonar/common.css : Différence entre versions

De Smart Places Network
Aller à : navigation, rechercher
Ligne 12 : Ligne 12 :
 
}
 
}
  
#product-gallery > * {
+
#product-gallery .image {
 
     position: relative;
 
     position: relative;
 
}
 
}
  
#product-gallery > *:hover::after {
+
#product-gallery .image::after {
 
     content: attr(title);
 
     content: attr(title);
 
     position: absolute;
 
     position: absolute;
Ligne 25 : Ligne 25 :
 
     border-radius: 10px;
 
     border-radius: 10px;
 
     background-color: #ffffcc;
 
     background-color: #ffffcc;
     padding: 12px;
+
     padding: 4px;
 
     color: #000000;
 
     color: #000000;
    font-size: 14px;
 
 
     z-index: 1;
 
     z-index: 1;
 
}
 
}

Version du 8 février 2019 à 21:30

#product-gallery > * {
    border: 1px solid #c8ccd1;
    background-color: #f8f9fa;
    width: 155px;
    height: 155px;
    margin: 5px;
    padding: 14px;
    box-sizing: border-box;
    text-align: center;
    display: grid;
    place-items: center center;
}

#product-gallery .image {
    position: relative;
}

#product-gallery .image::after {
    content: attr(title);
    position: absolute;
    left: 150px;
    top: 0;
    min-width: 200px;
    border: 1px #aaaaaa solid;
    border-radius: 10px;
    background-color: #ffffcc;
    padding: 4px;
    color: #000000;
    z-index: 1;
}