-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (73 loc) · 1.42 KB
/
style.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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root {
--primary-color: rgba(235, 56, 2, 0.897);
}
/* navbar section starts */
#navbar {
min-height: 100vh;
width: 100%;
background-image: linear-gradient(rgba(7, 12, 29, 0.479), rgba(7, 11, 29, 0.445)), url(images/bg2.jpg);
background-position: center;
background-size: cover;
position: relative;
}
.text-box {
width: 90%;
color: #fff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.text-box h1 {
font-weight: 400;
font-size: 53px;
line-height: 6rem;
}
.text-box p {
font-size: 18px;
margin: 10px 0 40px;
}
.hero-btn {
display: inline-block;
text-decoration: none;
color: #fff;
border: 1px solid #fff;
padding: 12px 34px;
font-size: 15px;
background: transparent;
position: relative;
cursor: pointer;
border-radius: 3px;
}
.hero-btn::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 0%;
height: 100%;
background: var(--primary-color);
transition: .3s linear;
z-index: -1;
}
.hero-btn:hover:before {
width: 100%;
left: 0;
}
.hero-btn:hover {
border: 1px solid var(--primary-color);
color: #fff;
}
/* media query */
@media screen and (max-width: 496px) {
.text-box h1 {
margin-top: 30%;
line-height: 4rem;
}
}