-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
125 lines (107 loc) · 2.17 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
:root{
--cyanD: hsl(185, 75%, 39%);
--Dblue: hsl(229, 23%, 23%);
--Gblue: hsl(227, 10%, 46%);
--Dgray: hsl(0, 0%, 59%);
font-size: 62.5%;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font: 1.8rem 'Kumbh Sans', sans-serif;
font-weight: 400;
color: var(--Gblue);
}
body{
animation: 2s circles ease-out forwards;
background: var(--cyanD);
background-repeat: no-repeat, no-repeat;
overflow: hidden;
height: 100vh;
display: grid;
place-items: center;
position: relative;
}
.card {
background-color: #fff;
width: 100%;
max-width: 34rem;
height: 100%;
max-height: 38rem;
border-radius: 15px;
display: grid;
grid-template-rows: repeat(5,1fr);
box-shadow: 0px 50px 100px -20px rgba(8, 70, 94, 0.5);
}
span{
font-size:1.2rem;
}
h1,h3{
font-weight: 700;
color: var(--Dblue);
}
h1 span{
font-size: 1.8rem;
}
h2{
font-size: 1.6rem;
}
.card__bg{
grid-row: 1/3;
background: url(images/bg-pattern-card.svg);
border-radius:15px 15px 0 0;
}
.card__img{
grid-row: 3/4;
margin-top: -5rem;
text-align: center;
}
.card__img img{
border: 0.5rem solid white;
border-radius: 50%;
}
.card__pri{
grid-row: 4/5;
text-align: center;
position: relative;
}
.card__sec{
grid-row: 5;
display: flex;
justify-content: space-evenly;
border-top: .05rem solid hsl(0deg 0% 59% / 20%)
}
.card__pri section *{
line-height: 3rem;
}
.card__sec section{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.card__sec section *{
line-height: 2rem;
}
.attribution {
font-size: 1.1rem;
position:absolute;
bottom: 0;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
font-size: 1.1rem;
}
@keyframes circles {
0% {
opacity: 0;
background-position: top -100vh right 100vw, top 100vh left 100vw;
}
100% {
opacity: 1;
background-image: url(images/bg-pattern-top.svg), url(./images/bg-pattern-bottom.svg);;
background-position: top -65vh right 50vw, top 50vh left 50vw;
}
}