-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
68 lines (62 loc) · 952 Bytes
/
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
*{
color: #fff;
margin: 0;
padding: 0;
font-family: sans-serif;
font-size: 1rem;
}
.banner{
width: 100%;
height: 100vh;
background-image: linear-gradient(rgba(0,0,0,0.75),rgba(0,0,0,0.75)),url(background.jpg);
background-size: cover;
background-position: center;
}
.text {
padding: 15px 15px;
}
button{
width: 200px;
padding: 15px 0;
text-align: center;
margin: 20px 10px;
border-radius: 25px;
font-weight: bold;
border: 2px solid red;
background: transparent;
color: #fff;
cursor: pointer;
position: relative;
overflow: hidden;
}
span{
background: #009688;
height: 100%;
width: 0;
border-radius: 25px;
position: absolute;
left: 0;
bottom: 0;
z-index: -1;
}
button:hover span{
width: 100%;
}
button:hover{
border: none;
}
.ptbutton{
position: absolute;
top: 0;
right: 0;
}
@media (max-width: 935px) {
.content {
display: flex;
flex-direction: column;
}
.ptbutton {
top: auto;
right: auto;
}
}