私はウェル内にimage
を持っています。オーバーレイは含まれていません
画像/井戸をホバリングすると、オーバーレイ情報が表示されます(現在はこれが正しい)。
オーバーレイは、画像が配置されているウェル全体(灰色部分)を覆う必要があります。 product-title
はイメージ/ウェルの下にあり、ウェルとは別です。
product-title
にホバーすると、実際には赤色のbackground
となり、テキストフォントcolor
が白くなるはずです。
これ以降、達成する方法は、ホバリング時にproduct-title
を含むすべてのものがグレーになりますか?
product-title
divにカーソルを合わせると、灰色のオーバーレイで「隠されていない」独自のスタイルが得られるはずです。
.product-detailsmas .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
border-radius: 0;
background: #F7F7F7;
color: blue;
text-align: center;
padding: 10px;
border-top: 1px solid #A10000;
/* vertical-align: middle; */
-webkit-transition: opacity 500ms;
-moz-transition: opacity 500ms;
-o-transition: opacity 500ms;
transition: opacity 500ms;
}
.product-detailsmas {
background-color: #E6E6E6;
text-align: center;
}
.product-detailsmas:hover .overlay {
opacity: 1;
}
.well.sb .product-titlesidebar {
font-size: 13px;
font-family: 'Montserrat',sans-serif;
color: #444;
font-weight: 700;
line-height: 1.25em;
margin: 5px;
}
<div>
<a href="#" target="_blank">
<div class="product-detailsmas">
<div class="image-video-linksidebar">
<img alt="#" src="http://lorempixel.com/100/100">
<div class="brandmas">
BRAND
</div>
<div class="categorymas">
CATEGORY
</div>
</div>
<div class="overlay">
<div class="intro-descriptioncar">
Intro description car
</div>
<div class="userfield1car">
Userfield-1-car
</div>
<div class="userfield1car">
Userfield-2-car
</div>
<div class="userfield1car">
Userfield-3-car
</div>
</div>
</div>
<div class="product-titlesidebar">
CAR TITLE BRAND CATEGORY MODEL-THIS SHOULD NOT BE AFFECTED BY THE OVERLAY HOVER
</div><!--</div>--></a>
</div>
ありがとう、スコット、私はそれが働くようにしたいと正確に働いた... :) – raulbaros