Skip to content

Commit 0c09640

Browse files
committed
cls example
1 parent 08f5bbe commit 0c09640

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

dist/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
color-scheme: dark light;
1010
}
1111
qr-element:not([width]) {
12+
display: block;
1213
width: 300px;
1314
height: 300px;
1415
}
1516
qr-element[width] {
17+
display: block;
1618
width: calc(attr(width) + 'px');
1719
height: calc(attr(width) + 'px');
1820
}

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
color-scheme: dark light;
1111
}
1212
qr-element:not([width]) {
13+
display: block;
1314
width: 300px;
1415
height: 300px;
1516
}
1617
qr-element[width] {
18+
display: block;
1719
width: calc(attr(width) + 'px');
1820
height: calc(attr(width) + 'px');
1921
}

0 commit comments

Comments
 (0)