-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
82 lines (82 loc) · 1.94 KB
/
Copy pathstyles.css
File metadata and controls
82 lines (82 loc) · 1.94 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
/* styles.css */
body {
font-family: "Courier New", Courier, monospace;
background-color: #f5f5f5;
color: #333;
margin: 0;
overflow: hidden;
}
.background {
position: absolute;
width: 100vw;
height: 100vh;
background-size: cover;
background-position: center center;
z-index: -1;
}
.home .background {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/73/Beach_at_Fort_Lauderdale.jpg');
}
.about .background {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/24/Landsvale.jpg');
}
.contact .background {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/a/a6/Mosteiro_dos_Jeronimos_-_Cloister_-_Refectory.jpg');
}
.projects .background {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/64/Panmure_Head_Lighthouse%2C_Lighthouse_Rd%2C_Prince_Edward_Island_-_panoramio.jpg');
}
.header {
position: absolute;
top: 0;
width: 100%;
background: transparent ;/*rgba(0, 0, 0, 0.5);*/
padding: 15px 0;
text-align: right;
}
.nav {
display: inline-block;
margin-right: 20px;
}
.nav a {
text-decoration: none;
color: white;
margin-left: 15px;
font-size: 20px;
padding: 5px 10px;
position: relative;
}
.nav a::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
filter: blur(5px);
z-index: -1;
transform: translate(-50%, -50%);
border-radius: 5px;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: white;
}
a {
transition: opacity 0.5s ease-in-out;
}
a:hover {
opacity: 0.7;
}
@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
}
.fade-out {
animation: fadeOut 0.5s forwards;
}