-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
118 lines (116 loc) · 2.47 KB
/
styles.css
File metadata and controls
118 lines (116 loc) · 2.47 KB
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
:root {
--black: hsl(229, 23%, 23%);
--grey-light: hsl(0, 0%, 59%);
}
*, *:before, *:after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Kumbh Sans', sans-serif;
font-size: 18px;
font-weight: 700;
line-height: 1.2;
color: var(--black);
background: hsl(185, 75%, 39%);
background-image: url(/Profile-Card-Component/images/bg-pattern-top.svg),
url(/Profile-Card-Component/images/bg-pattern-bottom.svg);
background-repeat: no-repeat;
background-size: 800px;
background-position: top -400px left -600px, bottom -400px right -500px;
}
h1,
h2 {
font-size: 18px;
}
.wrapper {
display: grid;
grid-template-rows: 1fr 20px;
place-items: center;
height: 100vh;
}
.card {
width: 350px;
height: 380px;
border-radius: 15px;
text-align: center;
display: grid;
grid-template-rows: 140px 150px 90px;
background-color: white;
box-shadow: 0 0 35px rgba(0, 0, 0, 0.1);
}
img {
border-radius: 50%;
border: 5px solid white;
margin-top: 75px;
}
.card-header {
position: relative;
justify-items: center;
background-image: url(/Profile-Card-Component/images/bg-pattern-card.svg);
border-radius: 15px 15px 0 0;
z-index: 5;
}
.card-header::before {
content: '';
right: 0;
bottom: 0;
border-bottom: 30px solid white;
border-left: 350px solid transparent;
z-index: -1;
position: absolute;
}
.data {
align-self: end;
padding-bottom: 20px;
}
.data > h1:hover {
color: rgba(0, 0, 0, 0.6);
cursor: pointer;
}
.card-footer {
border-top: 1px solid hsl(200, 10%, 90%);
display: grid;
grid-template-columns: 1fr 1fr 1fr;
border-radius: 0 0 15px 15px;
}
.card-footer > h2 {
display:flex;
flex-direction: column;
justify-content: center;
}
.card-footer > h2:hover {
background: rgba(0, 0 ,0 ,0.05);
cursor: pointer;
}
.item1 {
border-bottom-left-radius: 15px;
padding-left: 20px;
}
.item3 {
border-bottom-right-radius: 15px;
padding-right: 20px;
}
.lighter-font {
font-weight: 400;
color: hsl(227, 10%, 46%);
font-size: 1rem;
}
span {
font-weight: 400;
font-size: .6em;
color: var(--grey-light);
letter-spacing: 1px;
}
.data p {
padding-top: 5px;
font-size: .8em;
cursor: pointer;
}
@media (min-width: 900px) {
body {
background-size: 1000px;
background-position: top -600px left -20vw, bottom -600px right -200px;
}
}