-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (101 loc) · 1.71 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
*{
margin:0;
padding:0;
box-sizing:border-box;
/* border:solid red 1px; */
}
body{
font-family: 'Rubik', sans-serif;
font-family: 'Yantramanav', sans-serif;
background-color: #dadada;
}
img{
width:100%;
}
.container{
width: 80%;
margin: 0 auto;
max-width: 1040px;
}
.hero{
background-color: #5100c7;
color:#ffffff;
height: 250px;
text-align: center;
}
.hero > .container{
display: flex;
flex-direction:column;
}
.hero{
display: flex;
align-items: center;
}
.hero h1{
font-size: 3em;
animation-name:movem;
animation-duration:2s;
animation-iteration-count:infinite;
}
@keyframes movem{
0%{
transform:translateY(0px)
}50%{
transform:translateY(-2px)
}100%{
transform:translateY(0px)
}
}
main{
padding: 2em 0;
}
.img-content{
overflow: hidden;
}
.img-content > img{
padding-bottom: 1em;
max-width: 100%;
transition: transform .5s ease;
}
.img-content > img:hover{
transform: scale(1.1);
}
.card-content{
display:grid;
gap: 3em;
text-align: center;
}
.card{
background-color: #ffffff;
padding-bottom: 1em;
transition: .5s;
}
.card:hover{
transition: 1s;
transform:translate(10px);
}
.card-content a{
text-decoration:none;
background-color: #0f186e;
margin: .5em 1em;
padding: .2em .5em;
border-radius:5px;
color: #ffffff;
transition:.2s;
}
.card-content a:hover{
background-color: #2d38a3;
}
@media (min-width:768px){
.hero h1{
font-size: 5em;
}
.card-content{
grid-template-columns: auto auto;
}
}
@media (min-width:1024px){
.card-content{
grid-template-columns: auto auto auto;
}
}