forked from aichenitrkl/aichenitrkl.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
old_EB_card.css
164 lines (144 loc) · 3.08 KB
/
old_EB_card.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather&display=swap');
:root {
--box-x-padding: 2rem;
--box-y-padding: 2rem;
}
@media (min-width: 40em) {
:root {
--box-y-padding: 4rem;
}
}
@media (min-width: 60em) {
:root {
--box-x-padding: 3rem;
--box-y-padding: 6rem;
}
}
@media (min-width: 40em) {
section {
display: grid;
grid-template-rows: repeat(3, auto);
grid-template-columns: 4fr 4fr 5fr;
grid-template-areas: '. . title' 'img img content' 'img img .';
max-width: 1000px;
margin-right: auto;
margin-left: auto;
box-shadow: 0 0.2em 1.2em rgba(53, 51, 50, 0.3);
}
section::after {
content: '';
grid-column: 2/-1;
grid-row: 1/3;
position: relative;
z-index: -1;
background: #fff;
box-shadow: 0 0.2em 1em rgba(70, 56, 49, 0.2);
}
.h1 {
grid-area: title;
padding-top: var(--box-y-padding);
padding-left: var(--box-x-padding);
}
.content-card {
grid-area: content;
padding-bottom: var(--box-y-padding);
padding-left: var(--box-x-padding);
padding-right: var(--box-x-padding);
}
.img {
grid-area: img;
}
}
html {
font-family: 'Poppins',sans-serif;
font-size: 15px;
background-color: #f5f5f5;
}
section {
padding: 1em;
}
section{
background: white;
}
.h1 {
font-size: 3em;
margin: 0 0 1rem;
color: white;
position: relative;
background: #2d2d2d;
font-family: 'Merriweather', serif;
}
.h1::after {
content: '';
position: absolute;
width: 6rem;
/* background-color: #ccc; */
height: 30px;
top: 0;
left: 0;
}
@media (min-width: 40em) {
h1::after {
left: var(--box-x-padding);
top: var(--box-y-padding);
}
}
.content-card {
color: #4d4d4d;
margin-bottom: var(--box-y-padding);
margin-left: 20px;
}
@media (min-width: 40em) {
.content-card {
margin-bottom: 0;
}
}
.oebp {
margin-top: 0;
margin-bottom: var(--box-y-padding);
line-height: 1.5;
padding:15px ;
}
.content-card a {
text-decoration: none;
border: 1px solid #b3b3b3;
border-radius: 1em;
padding: 1em 2em;
text-transform: uppercase;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.05em;
color: inherit;
display: inline-block;
background-color: #fff;
}
.img {
position: relative;
}
.img a {
position: absolute;
left: 0;
bottom: 0;
}
img {
max-width: 100%;
vertical-align: middle;
box-shadow: 0 0.2em 1.2em rgba(53, 51, 50, 0.3);
}
.attribution {
position: relative;
bottom: 0;
right: 0;
background-color: #ea4c89;
color: #fff;
padding: 0.5em 1em;
}
.container .icons{
position: relative;
margin-top: -25%;
list-style: none;
}
.ebtextc{
color: white;
}