-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportfolio.css
97 lines (91 loc) · 1.6 KB
/
portfolio.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
a{
text-decoration: none;
}
ul{
list-style: none;
}
.active{
color: #fc036b;
text-decoration: underline;
font-weight: bold;
}
/* navbar */
.navbar{
position: absolute;
top: 0;
left: 0;
display: flex;
width: 100%;
justify-content: space-between;
padding: 20px;
color: whitesmoke;
}
.nav-links{
display: flex;
align-items: center;
}
.nav-links li{
margin: 0 15px;
}
/* header */
header{
width: 100vw;
height: 100vh;
background-image: url(./pic.jpg);
/* background-position: bottom; */
background-size: cover;
display: flex;
align-items:flex-end;
justify-content: center;
}
.header-content{
margin-bottom: 150px;
color: whitesmoke;
text-align: center;
}
.header-content h2{
font-size: 4vmin;
}
.line{
width: 150px;
height: 4px;
background: #fc036b;
margin: 10px auto;
}
.header-content h1{
font-size: 7vmin;
margin-top: 50px;
margin-bottom: 30px;
}
.ctn{
padding: 8px 15px;
background: #fc036b;
border-radius: 30px;
color: whitesmoke;
}
/* mobile device */
@media only screen and (max-width:850px){
.navbar{
padding: 0;
}
.logo{
position: absolute;
top: 30px;
left: 30px;
}
.nav-links{
flex-direction: column;
width: 100%;
height: 100vh;
justify-content: center;
background: #484872;
}
.nav-links li{
margin: 30px auto;
}
}