You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 10 - Hold Shift and Check Checkboxes/index-START.html
+52-24Lines changed: 52 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,51 +1,52 @@
1
1
<!DOCTYPE html>
2
2
<htmllang="en">
3
+
3
4
<head>
4
5
<metacharset="UTF-8">
5
6
<title>Hold Shift to Check Multiple Checkboxes</title>
6
7
</head>
8
+
7
9
<body>
8
10
<style>
9
-
10
11
html {
11
12
font-family: sans-serif;
12
-
background:#ffc600;
13
+
background:#ffc600;
13
14
}
14
15
15
16
.inbox {
16
-
max-width:400px;
17
-
margin:50px auto;
18
-
background:white;
19
-
border-radius:5px;
20
-
box-shadow:10px10px0rgba(0,0,0,0.1);
17
+
max-width:400px;
18
+
margin:50px auto;
19
+
background:white;
20
+
border-radius:5px;
21
+
box-shadow:10px10px0rgba(0,0,0,0.1);
21
22
}
22
23
23
24
.item {
24
-
display:flex;
25
-
align-items:center;
25
+
display:flex;
26
+
align-items:center;
26
27
border-bottom:1px solid #F1F1F1;
27
28
}
28
29
29
30
.item:last-child {
30
-
border-bottom:0;
31
+
border-bottom:0;
31
32
}
32
33
33
34
34
-
input:checked+p {
35
-
background:#F9F9F9;
35
+
input:checked+p {
36
+
background:#F9F9F9;
36
37
text-decoration: line-through;
37
38
}
38
39
39
40
input[type="checkbox"] {
40
-
margin:20px;
41
+
margin:20px;
41
42
}
42
43
43
44
p {
44
-
margin:0;
45
-
padding:20px;
46
-
transition:background 0.2s;
47
-
flex:1;
48
-
font-family:'helvetica neue';
45
+
margin:0;
46
+
padding:20px;
47
+
transition:background 0.2s;
48
+
flex:1;
49
+
font-family:'helvetica neue';
49
50
font-size:20px;
50
51
font-weight:200;
51
52
border-left:1px solid #D1E2FF;
@@ -55,10 +56,8 @@
55
56
text-align: center;
56
57
font-size:15px;
57
58
}
58
-
59
-
60
59
</style>
61
-
<!--
60
+
<!--
62
61
The following is a common layout you would see in an email client.
63
62
64
63
When a user clicks a checkbox, holds Shift, and then clicks another checkbox a few rows down, all the checkboxes inbetween those two checkboxes should be checked.
0 commit comments