-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.css
More file actions
108 lines (91 loc) · 1.7 KB
/
Copy path2.css
File metadata and controls
108 lines (91 loc) · 1.7 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-size: 1.6rem;
color: #333;
background-color: #eee;
}
.card {
background-color: #fff;
box-shadow: 2px .8rem 1rem rgba(0, 0, 0, .025);
}
.card__publication {
position: relative;
height: 20rem;
overflow: hidden;
}
.card__publication img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform .5s;
}
.card:hover .card__publication img {
transform: scale(1.5);
}
.card__publication>div {
background: linear-gradient(to right bottom, rgba(255, 119, 48, .8), rgba(255, 185, 0, .8));
font-size: 1.4rem;
font-weight: bold;
color: #fff;
position: absolute;
inset: 0;
padding: 1rem;
}
.card__publication i {
margin-right: 1rem;
}
.card__publication span {
display: block;
}
.card__author {
margin-bottom: .5rem;
}
.card__info {
position: relative;
padding: 2rem 3rem;
}
.card__title {
font-size: 3rem;
}
.card__subtitle {
display: inline-block;
font-size: 1.4rem;
font-weight: 400;
text-transform: uppercase;
color: #a2a2a2;
margin-bottom: 1rem;
}
.card__cta {
position: relative;
display: inline-block;
text-decoration: none;
font-weight: bold;
color: #ff7730;
margin-top: 2rem;
}
.card__cta span {
display: inherit;
transition: transform .5s;
}
.card__cta:hover span {
transform: translateX(.5rem);
}
@media screen and (min-width: 37.5em) {
.card {
display: grid;
grid-auto-flow: column;
max-width: 75rem;
}
.card__publication {
width: 25rem;
height: initial;
}
}