File tree Expand file tree Collapse file tree 1 file changed +30
-12
lines changed Expand file tree Collapse file tree 1 file changed +30
-12
lines changed Original file line number Diff line number Diff line change 7
7
< link rel ="stylesheet " href ="styles.css ">
8
8
< style >
9
9
.wrapper {
10
- height : 150px ;
11
- display : flex;
12
- align-items : center;
13
- justify-content : center;
10
+ height : 150px ;
11
+ display : flex;
12
+ align-items : center;
13
+ justify-content : center;
14
14
}
15
15
16
16
button {
17
- padding : 5px 10px ;
18
- border : 0 ;
19
- border-radius : 5px ;
20
- font-weight : bold;
21
- font-size : 140% ;
17
+ padding : 5px 10px ;
18
+ border : 0 ;
19
+ border-radius : 5px ;
20
+ font-weight : bold;
21
+ font-size : 140% ;
22
+ cursor : pointer;
23
+ }
24
+
25
+ .fade : focus ,
26
+ .fade : active {
27
+ background-color : black;
22
28
}
23
29
</ style >
24
30
25
31
< style class ="editable ">
26
32
.fade {
27
33
background-color : # DB1F48 ;
28
34
color : # fff ;
29
- transition : background-color 2 s ;
35
+ transition : background-color 1 s ;
30
36
}
31
37
32
38
.fade : hover {
33
- background-color : # 004369 ;
39
+ background-color : # 004369 ;
40
+ }
41
+
42
+ .fade : focus ,
43
+ .fade : active {
44
+ background-color : black;
45
+ transition : none;
34
46
}
35
47
</ style >
36
48
</ head >
46
58
.fade {
47
59
background-color: #DB1F48;
48
60
color: #fff;
49
- transition: background-color 2s ;
61
+ transition: background-color 1s ;
50
62
}
51
63
52
64
.fade:hover {
53
65
background-color: #004369;
54
66
}
67
+
68
+ .fade:focus,
69
+ .fade:active {
70
+ background-color: black;
71
+ transition: none;
72
+ }
55
73
</ textarea >
56
74
57
75
< textarea class ="playable playable-html " style ="height: 100px; ">
You can’t perform that action at this time.
0 commit comments