-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.css
More file actions
89 lines (86 loc) · 1.79 KB
/
contact.css
File metadata and controls
89 lines (86 loc) · 1.79 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@import url("./warownia.css");
body {
margin: 0;
background-color: black;
}
#sidebanner {
width: 240px;
height: 100vh;
background-image: url("./assets/nameshift.png");
background-size: 240px;
animation-name: bannerscroll;
animation-duration: 6s;
animation-timing-function: linear;
animation-iteration-count: infinite;
position: fixed;
left: 30px;
top: 0;
}
@keyframes bannerscroll {
0% {
background-position: 0 420px;
}
100% {
background-position: 0 0;
}
}
#links {
list-style: none;
position: absolute;
right: 0;
top: 0;
font-family: "Warownia", "Helvetica", sans-serif;
font-size: 32px;
overflow: hidden;
margin: 0;
}
li > :first-child {
display: block;
background-color: white;
color: black;
text-decoration: none;
display: block;
width: 100vw;
padding: 9px;
transform: translateX(var(--w));
transition-property: transform;
transition-duration: 300ms;
margin-top: 10px;
}
li > :first-child:is(:hover, :focus) {
transform: translateX(calc(var(--w) - 10vw));
}
li > :first-child:focus {
outline: 2px dashed white;
}
li > :first-child:is(:hover, :focus) + :is(.top, .bottom) {
right: 10vw;
}
.top, .bottom {
pointer-events: none;
font-size: 160px;
position: absolute;
right: 0;
width: 128px;
height: 64px;
overflow: hidden;
transition-property: right;
transition-duration: 300ms;
transform: translateY(-64px);
}
.top, .bottom > span {
color: black;
text-align: center;
line-height: 88px;
}
.bottom > span {
width: 128px;
height: 64px;
display: block !important;
margin-top: -64px;
}
@media screen and (min-width: 700px) {
.top, .bottom {
display: block !important;
}
}