Skip to content

Commit 0cf52ee

Browse files
committed
hover fix
1 parent e1f6711 commit 0cf52ee

3 files changed

Lines changed: 46 additions & 49 deletions

File tree

src/controls/carousel/Carousel.module.scss

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,51 @@
77
.contentContainer {
88
flex-grow: 2;
99
position: relative;
10+
11+
.carouselImage {
12+
overflow: hidden;
13+
width: 100%;
14+
height: 100%;
15+
position: relative;
16+
17+
.image {
18+
width: 100%;
19+
height: 100%;
20+
}
21+
22+
&.staticDetails {
23+
.details {
24+
top: 60%;
25+
}
26+
}
27+
28+
.details {
29+
background-color: rgba(0, 0, 0, 0.8);
30+
box-sizing: border-box;
31+
color: white;
32+
height: 40%;
33+
left: 0;
34+
padding: 15px;
35+
position: absolute;
36+
right: 0;
37+
top: 100%;
38+
transition: all 0.5s ease;
39+
40+
.title {
41+
display: block;
42+
@include ms-fontSize-l;
43+
padding-bottom: 5px;
44+
}
45+
}
46+
}
47+
48+
&:hover {
49+
.carouselImage.dynamicDetails {
50+
.details {
51+
top: 60%;
52+
}
53+
}
54+
}
1055
}
1156

1257
.indicators {
@@ -82,7 +127,6 @@
82127
flex-direction: column-reverse;
83128
}
84129

85-
86130
// ButtonContainer display mode
87131
.buttonsOnlyPrevButton {
88132
position: absolute;

src/controls/carousel/CarouselImage.module.scss

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/controls/carousel/CarouselImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import styles from './CarouselImage.module.scss';
2+
import styles from './Carousel.module.scss';
33
import { Image, ImageFit } from 'office-ui-fabric-react/lib/Image';
44
import { css } from 'office-ui-fabric-react/lib/Utilities';
55

0 commit comments

Comments
 (0)