File tree 8 files changed +28
-13
lines changed
8 files changed +28
-13
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Basic declarative popover example</ title >
6
7
</ head >
7
8
< body >
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Blur background example</ title >
6
7
< style >
7
8
body {
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Multiple auto popovers example</ title >
6
7
< style >
7
8
: popover-open {
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Multiple manual popovers example</ title >
6
7
< style >
7
8
: popover-open {
8
9
position : absolute;
9
10
inset : unset;
10
- top : 40 px ;
11
+ top : 80 px ;
11
12
}
12
13
13
14
# mypopup-1 {
26
27
< button popovertarget ="mypopup-1 " popovertargetaction ="hide ">
27
28
Hide popover #1
28
29
</ button >
30
+ < hr >
29
31
< button popovertarget ="mypopup-2 " popovertargetaction ="show ">
30
32
Show popover #2
31
33
</ button >
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Nested popovers example</ title >
6
7
< style >
7
8
body ,
11
12
12
13
body [popover ] {
13
14
border : 1px solid black;
14
- width : 10 vw ;
15
+ width : 120 px ;
15
16
inset : unset;
16
17
}
17
18
21
22
}
22
23
23
24
# subpopover {
24
- left : 10 vw ;
25
+ left : 120 px ;
25
26
top : 86px ;
26
27
}
27
28
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Popover positioning example</ title >
6
7
< style >
7
8
: popover-open {
8
9
width : 300px ;
9
10
height : 200px ;
10
11
position : absolute;
11
12
inset : unset;
12
- top : 5px ;
13
+ bottom : 5px ;
13
14
right : 5px ;
14
15
margin : 0 ;
15
16
}
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Toast popovers example</ title >
6
7
< style >
7
8
.failure {
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 " />
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Toggle help UI example</ title >
6
7
< style >
7
8
: popover-open {
8
9
position : absolute;
9
10
inset : unset;
10
- top : 5px ;
11
+ bottom : 5px ;
11
12
right : 5px ;
12
13
}
14
+
15
+ @media all and (max-width : 600px ) {
16
+ : popover-open {
17
+ left : 5px ;
18
+ }
19
+ }
13
20
</ style >
14
21
< script src ="index.js " defer > </ script >
15
22
</ head >
You can’t perform that action at this time.
0 commit comments