File tree Expand file tree Collapse file tree 1 file changed +43
-2
lines changed Expand file tree Collapse file tree 1 file changed +43
-2
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,51 @@ const target = computed((): VirtualElement | undefined => {
41
41
</script >
42
42
43
43
<template >
44
- TODO: use target if specified instead of #default slot
45
44
<Floating placement =" top" interactive inline :target =" target" :trigger =" trigger" >
46
45
<template #content >
47
- ここにメニュー要素を配置
46
+ <!-- TODO: メニュー要素はpropsで受け取る -->
47
+ <div class =" menu" >
48
+ <div class =" menu-item" >
49
+ <button >This is</button >
50
+ </div >
51
+ <div class =" menu-item" >
52
+ <button >Menu</button >
53
+ </div >
54
+ <div class =" menu-item" >
55
+ <button >Buttons</button >
56
+ </div >
57
+ </div >
48
58
</template >
49
59
</Floating >
50
60
</template >
61
+
62
+ <style scoped>
63
+ .menu {
64
+ display : flex ;
65
+ flex-wrap : nowrap ;
66
+ }
67
+
68
+ .menu-item {
69
+ flex : 0 0 fit-content ;
70
+ z-index : 10003 ;
71
+
72
+ +.menu-item {
73
+ border-left : 1px solid rgb (0 0 0 / .2 );;
74
+ }
75
+
76
+ button {
77
+ padding : 4px 8px ;
78
+ background-color : white ;
79
+ border : 0 ;
80
+
81
+ &:hover {
82
+ background-color: rgb (0 0 0 / .1 );
83
+ }
84
+
85
+ &:active {
86
+ /* on press in, make the button look like it's being pushed*/
87
+ transform : translate (0 , 2px );
88
+ }
89
+ }
90
+ }
91
+ </style >
You can’t perform that action at this time.
0 commit comments