-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclosebutton.css
62 lines (47 loc) · 929 Bytes
/
closebutton.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
Container for a X close button that doesn't use any characters.
Edited from https://stackoverflow.com/a/18611371
*/
.closebutton {
position: absolute;
--calcheight: 5vh;
height: 5vh;
width: var(--calcheight);
margin: 1%;
display: none;
}
.closebuttonX:hover * {
background-color: #F3F2F3;
}
.closebuttonX {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
}
.leg1 {
position: absolute;
top: 0;
right: 50%;
height:100%;
width: 2px;
/*margin-left: 50%;*/
background-color:black;
transform: rotate(45deg);
-ms-transform: rotate(45deg); /* IE 9 */
-webkit-transform: rotate(45deg); /* Safari and Chrome */
transition: .25s;
}
.leg2 {
position: absolute;
top: 0;
right: 50%;
height:100%;
width: 2px;
background-color:black;
transform: rotate(-45deg);
-ms-transform: rotate(-45deg); /* IE 9 */
-webkit-transform: rotate(-45deg); /* Safari and Chrome */
transition: .25s;
}