Skip to content

Commit afde73e

Browse files
committed
change gradient
1 parent 6365251 commit afde73e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/objectOverlay/examples/ObjectOverlay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defineOptions({ name: 'ObjectOverlay' });
1818

1919
<hr />
2020

21-
<CdrObjectOverlay :position="{ xs: 'center-center', lg: 'bottom-center' }" :margin="['zero', 'eighth-x']">
21+
<CdrObjectOverlay :position="{ xs: 'center-center', lg: 'bottom-center', md: 'bottom-left' }" :margin="['zero', 'eighth-x']">
2222
<template #container>
2323
<img src="https://placehold.co/600x400" width="100%" height="100%" alt="Background image" :style="{ display: 'block' }"/>
2424
</template>

src/components/objectOverlay/styles/CdrObjectOverlay.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ $positions: (
2121
);
2222

2323
$gradients: (
24-
'to-top': linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent),
25-
'to-bottom': linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent),
26-
'to-left': linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent),
27-
'to-right': linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent)
24+
'to-top': linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.55) 40%, transparent),
25+
'to-bottom': linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.55) 40%, transparent),
26+
'to-left': linear-gradient(to left, black 0%, rgba(0, 0, 0, 0.55) 40%, transparent),
27+
'to-right': linear-gradient(to right, black 0%, rgba(0, 0, 0, 0.55) 40%, transparent)
2828
);
2929

3030
.cdr-object-overlay {

0 commit comments

Comments
 (0)