Skip to content

Commit 27fe164

Browse files
committed
[PW-17.7v2/ret] Fix place/img's "collapsing"
Excluding full space "collapsing" in the absence of "src". core: B-2 / WL-BL
1 parent eff3022 commit 27fe164

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

core-courses/2-web-layout-basic-level/17_Grids/17_7_Practical_Work_17_Grids_v2/css/courses.css

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,40 @@
2424
margin-bottom: 30px;
2525
}
2626

27+
.courses__card-wrap .card {
28+
border-radius: 0;
29+
}
30+
2731
.courses__card {
2832
position: relative;
2933
border-radius: var(--main-radius);
3034
min-height: 653px;
3135
overflow: hidden;
3236
}
3337

38+
.courses__card picture {
39+
display: block;
40+
border-top-left-radius: var(--main-radius);
41+
border-top-right-radius: var(--main-radius);
42+
text-align: center;
43+
color: var(--white);
44+
background-color: var(--plum);
45+
}
46+
3447
.courses__card_offset {
3548
margin-bottom: 1px;
3649
}
3750

3851
.courses__card-image {
39-
text-align: center;
52+
display: block;
53+
height: 100%;
4054
object-fit: contain;
4155
}
4256

4357
.courses__card-info {
4458
position: absolute;
45-
top: 10px;
46-
right: 10px;
59+
top: 15px;
60+
right: 20px;
4761
display: inline-block;
4862
padding-left: 29px;
4963
color: var(--white);
@@ -105,6 +119,12 @@
105119

106120
/* media queries */
107121

122+
@media (max-width: 320px) {
123+
.courses__card-wrap .card {
124+
border-radius: 25px;
125+
}
126+
}
127+
108128
@media (min-width: 576px) {
109129
.courses {
110130
padding-top: 74px;
@@ -121,8 +141,6 @@
121141
}
122142

123143
.courses__card-info {
124-
top: 10.5px;
125-
right: 11px;
126144
padding-left: 28px;
127145
}
128146

@@ -233,10 +251,6 @@
233251
min-height: 479px;
234252
}
235253

236-
.courses__card-info {
237-
right: 5.5px;
238-
}
239-
240254
.courses__card-content {
241255
padding-bottom: 30.5px;
242256
padding-left: 29px;

core-courses/2-web-layout-basic-level/17_Grids/17_7_Practical_Work_17_Grids_v2/css/teachers.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,16 @@
4545
overflow: hidden;
4646
}
4747

48-
.teachers__card-image {
48+
.teachers__card picture {
49+
display: block;
4950
text-align: center;
51+
color: var(--white);
52+
background-color: var(--plum);
53+
}
54+
55+
.teachers__card-image {
56+
display: block;
57+
height: 100%;
5058
object-fit: contain;
5159
box-shadow: 0 1px 10px var(--specific-gray);
5260
}

0 commit comments

Comments
 (0)