File tree Expand file tree Collapse file tree 2 files changed +32
-10
lines changed
core-courses/2-web-layout-basic-level/17_Grids/17_7_Practical_Work_17_Grids_v2/css Expand file tree Collapse file tree 2 files changed +32
-10
lines changed Original file line number Diff line number Diff line change 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 : 10 px ;
46- right : 10 px ;
59+ top : 15 px ;
60+ right : 20 px ;
4761 display : inline-block;
4862 padding-left : 29px ;
4963 color : var (--white );
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 ;
121141 }
122142
123143 .courses__card-info {
124- top : 10.5px ;
125- right : 11px ;
126144 padding-left : 28px ;
127145 }
128146
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 ;
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments