-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
124 lines (107 loc) · 2.25 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
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;700&display=swap');
*{
box-sizing: border-box;
margin: 0;
transition: all 0.25ms ease-in-out;
cursor: pointer;
}
body{
font-family: 'Figtree', sans-serif;
font-size: 16px;
background-color: hsl(47, 88%, 63%);
display: grid;
grid-template-rows: 14fr 1fr;
text-align: center;
justify-content: center;
justify-items: center;
min-height: 100vh;
}
.main{
background-color: white;
border: 1.5px solid black;
display: grid;
grid-template-columns:1fr;
grid-template-rows: 2fr 3fr;
gap: 10px;
max-width: 320px;
height:450px;
margin: auto;
padding: 20px;
border-radius: 15px;
box-shadow: 5px 5px 1px black;
}
.main:hover{
box-shadow: 10px 10px 1px black;
}
figure{
background-image: url(images/illustration-article.svg);
background-position: center;
background-repeat: no-repeat;
background-size:cover;
height: 100%;
width: 100%;
border-radius: 10px;
}
.content{
display: grid;
grid-template-rows: auto;
gap: 10px;
height: 100%;
width: 100%;
text-align: left;
}
.content button{
width: 100px;
background-color: hsl(47, 88%, 63%);
border: none;
border-radius: 5px;
align-items: center;
cursor: pointer;
}
.content button p {
font-weight: 700;
color: black !important;
}
.content p{
font-weight: 500;
}
.content h1{
font-size: 24px;
}
.content h1:hover{
color: hsl(47, 88%, 63%);
}
.content p:last-of-type{
color: hsl(0, 0%, 50%);
}
.content .avatar p{
font-weight: 700;
display:inline-block;
vertical-align: middle;
padding:5px 0px;
color: black;
}
.avatar{
display: grid;
grid-template-columns: 10% 90%;
gap: 15px;
justify-content: center;
}
a{
color: rgb(58, 105, 223);
text-decoration: none;
}
@media screen and (max-width:480px){
.body{
min-height: 130vh;
}
.main{
max-width: 80% ;
}
}
@media screen and (max-width:932px) and (orientation:landscape){
body{
min-height: 140vh;
gap: 30px;
}
}