forked from qdarshan/yfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyfc.css
152 lines (145 loc) · 2.79 KB
/
yfc.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
@import url('https://fonts.googleapis.com/css2?family=Recursive:wght@300;400;700;900&display=swap');
html,body,footer{
font-family: 'Recursive', sans-serif;
margin: 0;
scroll-behavior: smooth;
}
h1,h2,h3{
font-family: 'Recursive', sans-serif;
text-align: center;
font-weight: 200;
}
h1{
font-size: 3vmax;
}
h2{
font-size: 2vmax;
}
header{
background-image: url(media/g1.jpg);
background-size: 100% 100%;
width: 100%;
height: calc(80% + 9.2vw )
}
#head ul {
margin: 0px auto 0;
padding: 0;
list-style: none;
display: table;
width: auto;
float: right;
font-size: 2vmax;
}
#head li {
display: table-cell;
position: relative;
padding: 2vw 0;
}
#head a {
color: #fff;
text-decoration: none;
letter-spacing: 0.15vmax;
display: inline-block;
padding: 2vmax 2vmax;
position: relative;
}
#head a:after {
background: none repeat scroll 0 0 transparent;
bottom: 0;
content: "";
display: block;
height: 0.2vmax;
left: 50%;
position: absolute;
background: #fff;
transition: width 0.6s ease 0s, left 0.4s ease 0s;
width: 0;
}
#head a:hover:after {
width: 100%;
left: 0;
}
@media screen and (max-height: 30vmax) {
#head ul {
margin-top: 5vmax;
}
}
/* n */
.toggle{
font-size: 4.2vw;
font-weight: 200;
text-decoration: none;
text-transform: none;
}
#changingword{
color: black;
position: relative;
right: 4vw;
top: 2vmax;
}
.items{
width: 52vw ;
text-align: center;
position: relative;
text-align: center;
top: 35vw;
left: 22.4vmax;
}
.items a{
display: inline-block;
text-decoration:none;
color:black;
font-size: 3.2vmax;
font-weight:400;
width: 100%;
padding-top: -0.6vmax;
height: 4vmax;
overflow: hidden;
}
.items a span{
display: inline-block;
position: relative;
right: 0.5vmax;
transition: transform 500ms;
-webkit-transition: -webkit-transform 500ms;
-moz-transition: transform 500ms;
}
.items a span:after{
content: attr(data-hover);
position: absolute;
top: -5.9vmax;
left: -10vmax;
transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-webkit-transform: translate3d(0,0,0);
}
.items a:hover span,
.items a:focus span {
transform: translateY(6.5vw);
-webkit-transform: translateY(6.5vw);
-moz-transform: translateY(6.5vw);
}
footer{
background-color: #0F52BA;
height: 8vmax;
width: 100%;
color: white;
text-align: center;
margin:0 0 0 0;
position: relative;
top: 2.5vmax;
}
#f1{
width: 3vmax;
height: 3vmax;
float: right;
padding: 0 2vmax 0vmax 0vmax;
position: relative;
bottom: 5.3vmax;
}
.v2, #v:hover .v1{
display: none;
}
.v1, #v:hover .v2{
display: block;
}