@@ -7,29 +7,43 @@ defineEmits<{
7
7
</script >
8
8
9
9
<template >
10
- <Card >
11
- <h2 v-if =" $slots.title" class =" titleWrapper" >
12
- <slot name =" title" ></slot >
13
- </h2 >
14
- <div v-if =" $slots.text" class =" textWrapper" >
15
- <slot name =" text" ></slot >
16
- </div >
17
- <div v-if =" $slots.actions" class =" actionsWrapper" >
18
- <slot name =" actions" ></slot >
19
- </div >
10
+ <Card class =" transparent" >
20
11
<button class =" dismissButton" @click =" $emit('dismiss')" >X</button >
12
+
13
+ <div class =" background" >
14
+ <h2 v-if =" $slots.title" class =" titleWrapper" >
15
+ <slot name =" title" ></slot >
16
+ </h2 >
17
+ <div v-if =" $slots.text" class =" textWrapper" >
18
+ <slot name =" text" ></slot >
19
+ </div >
20
+ <div v-if =" $slots.actions" class =" actionsWrapper" >
21
+ <slot name =" actions" ></slot >
22
+ </div >
23
+ </div >
21
24
</Card >
22
25
</template >
23
26
24
27
<style lang="scss" scoped>
28
+ .transparent {
29
+ background-color : transparent ;
30
+ padding : 0 ;
31
+ }
32
+
33
+ .background {
34
+ padding : 1rem ;
35
+ background-color : white ;
36
+ -webkit-mask : radial-gradient (circle 17px at top 0 + 6px right 0 + 6px , #0000 98% , blue );
37
+ border-radius : 16px ;
38
+ }
39
+
25
40
.dismissButton {
26
41
position : absolute ;
27
42
top : -6px ;
28
43
right : -6px ;
29
44
border-radius : 50% ;
30
45
color : black ;
31
46
background-color : white ;
32
- outline : 2px solid black ;
33
47
vertical-align : center ;
34
48
text-align : center ;
35
49
width : 24px ;
@@ -38,6 +52,14 @@ defineEmits<{
38
52
& :hover {
39
53
background-color : lightgray ;
40
54
}
55
+
56
+ & :active {
57
+ background-color : darkgray ;
58
+ }
59
+
60
+ -webkit-box-shadow : 0 0 16px 0 rgba (50 , 50 , 50 , 0.75 );
61
+ -moz-box-shadow : 0 0 16px 0 rgba (50 , 50 , 50 , 0.75 );
62
+ box-shadow : 0 0 16px 0 rgba (50 , 50 , 50 , 0.75 );
41
63
}
42
64
43
65
.titleWrapper {
0 commit comments