-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path_media.scss
More file actions
105 lines (93 loc) · 1.59 KB
/
_media.scss
File metadata and controls
105 lines (93 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@use "../../variables" as *;
// Media styles : Images, breakpoints ,and videos previews
.cld-image,
.cld-video,
.cld-breakpoints,
.cld-lazyload {
&-preview {
padding: 9px;
border-radius: 4px;
border: 1px solid $color-cld-grey-blue;
&-wrapper {
position: relative;
}
.cld-ui-title {
margin: 5px 0 12px 0;
font-weight: bold;
}
img {
width: 100%;
height: 100%;
border-radius: 4px;
}
}
}
.cld-ui-preview {
max-width: 322px;
}
.cld-breakpoints, .cld-lazyload {
&-preview {
.cld-image-preview-wrapper:hover{
.preview-image {
opacity: 0;
}
.main-image{
opacity: 1;
img, span{
opacity: 0.4;
}
}
}
.preview-image {
display: flex;
border-radius: 4px;
position: absolute;
left: 0;
bottom: 0;
background-color: #222222;
box-shadow: 2px -2px 3px rgb(0 0 0 / 90%);
&:hover{
opacity: 1 !important;
img, span{
opacity: 1 !important;
}
}
&.main-image{
position: relative;
box-shadow: none;
}
}
.preview-text {
color: $color-white;
text-shadow: 0 0 3px black;
background-color: $color-cld-blue;
position: absolute;
top: 0;
right: 0;
padding: 3px;
}
.global-transformations-url-link:hover{
text-decoration: none;
color: $color-white;
}
}
}
.cld-lazyload {
&-preview {
.progress-bar{
height: 2px;
width: 0%;
background-color: $color-cld-blue;
transition: width 1s;
}
.preview-image {
background-color: $color-white;
}
img{
transition: opacity 1s;
}
.global-transformations-url-link {
background-color: transparent;
}
}
}