33 background : # fff ;
44 font-family : 'IBM Plex Sans' , sans-serif;
55}
6+
67* {
78 margin : 0 ;
89 padding : 0 ;
910}
11+
1012h1 {
1113 text-align : center;
14+ pointer-events : none;
15+ }
16+
17+ .hidden {
18+ display : none !important ;
1219}
1320
14- .hidden {display : none !important ;}
1521
1622/*
1723* Header
1824*/
25+
1926header {
2027 padding : 20px 0 0 ;
2128 background : white;
2229 text-align : center;
2330 display : flex;
2431 justify-content : space-between;
2532}
33+
2634header .logo img {
2735 width : 100% ;
2836}
37+
2938header .submenu {
3039 position : relative;
3140 list-style-type : none;
3241 width : 50% ;
3342}
43+
3444header .submenu # img-cart {
3545 width : 25px ;
3646 margin-top : 15px ;
3747 cursor : pointer;
3848}
3949
50+
4051/** cart **/
41- # cart {box-shadow : 0 1px 5px 0 # adadad ;}
42- # cart table {border-collapse : collapse;}
43- # cart table thead tr {background : # f4f4f4 ;}
52+
53+ # cart {
54+ box-shadow : 0 1px 5px 0 # adadad ;
55+ }
56+
57+ # cart table {
58+ border-collapse : collapse;
59+ }
60+
61+ # cart table thead tr {
62+ background : # f4f4f4 ;
63+ }
64+
4465# cart table thead th {
4566 font-size : 11px ;
4667 font-weight : 600 ;
4768 border : none;
4869}
49- # cart table tbody td img {width : auto;height : 40px ;}
70+
71+ # cart table tbody td img {
72+ width : auto;
73+ height : 40px ;
74+ }
75+
5076# cart table tbody .supprimer-item {
5177 display : block;
5278 background-color : # ff5454 ;
@@ -62,7 +88,10 @@ header .submenu #img-cart {
6288 text-align : center;
6389}
6490
65- header .submenu # cart {display : none;}
91+ header .submenu # cart {
92+ display : none;
93+ }
94+
6695header .submenu : hover # cart {
6796 display : block;
6897 position : absolute;
@@ -73,21 +102,32 @@ header .submenu:hover #cart {
73102 padding : 8px ;
74103 max-height : 400px ;
75104 min-width : 400px ;
76-
77105 overflow-y : scroll;
78106}
79107
80- header .submenu : hover # cart ::-webkit-scrollbar {width : 4px ;}
81- header .submenu : hover # cart ::-webkit-scrollbar-track {background : # f1f1f1 ;}
82- header .submenu : hover # cart ::-webkit-scrollbar-thumb {background : # 888 ;}
83- header .submenu : hover # cart ::-webkit-scrollbar-thumb : hover {background : # 555 ;}
108+ header .submenu : hover # cart ::-webkit-scrollbar {
109+ width : 4px ;
110+ }
111+
112+ header .submenu : hover # cart ::-webkit-scrollbar-track {
113+ background : # f1f1f1 ;
114+ }
115+
116+ header .submenu : hover # cart ::-webkit-scrollbar-thumb {
117+ background : # 888 ;
118+ }
119+
120+ header .submenu : hover # cart ::-webkit-scrollbar-thumb : hover {
121+ background : # 555 ;
122+ }
123+
84124
85125/*
86126* Search form
87127*/
128+
88129.search-form {
89130 display : flex;
90-
91131 max-width : 700px ;
92132 width : 70% ;
93133 min-width : 450px ;
@@ -97,16 +137,18 @@ header .submenu:hover #cart::-webkit-scrollbar-thumb:hover {background: #555;}
97137}
98138
99139.search-form input {
100- width : 100% ;
101- padding : 15px ;
102- border : none;
103- outline : none;
104- border-radius : 3px ;
105- font-size : 14px ;
140+ width : 100% ;
141+ padding : 15px ;
142+ border : none;
143+ outline : none;
144+ border-radius : 3px ;
145+ font-size : 14px ;
106146}
107147
108148# no_course {
109149 text-align : center;
150+ font-size : 30px ;
151+ color : # 979797 ;
110152 padding : 25px ;
111153}
112154
@@ -122,39 +164,38 @@ header .submenu:hover #cart::-webkit-scrollbar-thumb:hover {background: #555;}
122164 font-size : 30px ;
123165 font-weight : 100 ;
124166 padding : 8px 15px ;
125-
126167 position : relative;
127-
128168 color : # 383838 ;
129169}
170+
130171# courses-list h1 : after {
131172 content : "" ;
132173 display : block;
133-
134174 height : 15px ;
135175 width : 100% ;
136- background : # 00B2BD ;
176+ background : # 00b4bdbf ;
137177 position : absolute;
138178 bottom : 6px ;
139179 left : 10px ;
140180 z-index : -1 ;
141181}
142182
143- .entete__courses {
183+ .entete__courses {
144184 margin-bottom : 30px ;
145185}
146- .courses__container {
186+
187+ .courses__container {
147188 margin-top : 30px ;
148189 display : grid;
149190 grid-gap : 25px ;
150- max-width : 1080px ;
151- margin : 0 auto;
191+ max-width : 1080px ;
192+ margin : 0 auto;
152193 padding : 0 10px ;
153194}
154- .course__item {
155- border : 1px solid rgba (0 , 0 , 0 , 0.25 );
156- box-shadow : 0 14px 28px rgba (0 , 0 , 0 , 0.25 ), 0 10px 10px rgba (0 , 0 , 0 , 0.22 );
157195
196+ .course__item {
197+ border : 1px solid rgba (0 , 0 , 0 , 0.25 );
198+ box-shadow : 0 14px 28px rgba (0 , 0 , 0 , 0.25 ), 0 10px 10px rgba (0 , 0 , 0 , 0.22 );
158199 display : flex;
159200 flex-direction : column;
160201 padding : 0 0 10px ;
@@ -163,11 +204,11 @@ header .submenu:hover #cart::-webkit-scrollbar-thumb:hover {background: #555;}
163204.course__item .course_img {
164205 height : 120px ;
165206 overflow : hidden;
166-
167207 display : flex;
168208 justify-content : center;
169209 align-items : center;
170210}
211+
171212.course__item .course_img img {
172213 width : 100% ;
173214}
@@ -177,32 +218,54 @@ header .submenu:hover #cart::-webkit-scrollbar-thumb:hover {background: #555;}
177218 height : 15px ;
178219 overflow : hidden;
179220}
180- .course__item .mark img {width : 100% ;}
181- .course__item .mark .m_5 img {margin-top : 0 ;}
182- .course__item .mark .m_4 img {margin-top : -15px ;}
183- .course__item .mark .m_3 img {margin-top : -30px ;}
184- .course__item .mark .m_2 img {margin-top : -45px ;}
185- .course__item .mark .m_1 img {margin-top : -60px ;}
221+
222+ .course__item .mark img {
223+ width : 100% ;
224+ }
225+
226+ .course__item .mark .m_5 img {
227+ margin-top : 0 ;
228+ }
229+
230+ .course__item .mark .m_4 img {
231+ margin-top : -15px ;
232+ }
233+
234+ .course__item .mark .m_3 img {
235+ margin-top : -30px ;
236+ }
237+
238+ .course__item .mark .m_2 img {
239+ margin-top : -45px ;
240+ }
241+
242+ .course__item .mark .m_1 img {
243+ margin-top : -60px ;
244+ }
186245
187246.course__item .info__card {
188247 padding : 10px ;
189248 position : relative;
190249}
250+
191251.course__item .info__card h4 {
192252 font-size : 16px ;
193253 font-weight : 700 ;
194254}
255+
195256.course__item .price {
196257 text-decoration : line-through;
197258 color : red;
198259}
199- .course__item .discount {
260+
261+ .course__item .discount {
200262 color : black;
201263 font-weight : bold;
202264 float : right;
203265 font-size : 1.25em ;
204266}
205- .course__item .add-to-cart {
267+
268+ .course__item .add-to-cart {
206269 background : # 00B2BD ;
207270 padding : 5px 10px ;
208271 border-radius : 6px ;
@@ -212,27 +275,51 @@ header .submenu:hover #cart::-webkit-scrollbar-thumb:hover {background: #555;}
212275 font-size : 0.8em ;
213276 position : absolute;
214277 bottom : 0 ;
278+ transition : 0.4s ;
215279}
280+
216281.course__item .add-to-cart : hover {
217- background : # 00828a ;
282+ background : # 0098a0 ;
283+ transform : scale (1.05 );
284+ box-shadow : 8px 5px 8px rgba (82 , 82 , 82 , 0.399 );
285+ transition : 0.4s ;
218286 color : white;
219287}
220- .fa {margin-bottom : 0 ;margin-right : 8px ;}
288+
289+ .fa {
290+ margin-bottom : 0 ;
291+ margin-right : 8px ;
292+ transition : 1.3s ;
293+ }
294+
295+ .fa-trash : hover {
296+ font-size : 1.2em ;
297+ color : red;
298+ transition : 1.3s ;
299+ }
221300
222301@media (min-width : 750px ) {
223302 header {
224- text-align : left;
303+ text-align : left;
225304 }
226305}
227306
228307@media (min-width : 472px ) and (max-width : 767px ) {
229- .courses__container {grid-template-columns : 1fr 1fr ;}
230- }
308+ .courses__container {
309+ grid-template-columns : 1fr 1fr ;
310+ }
311+ }
312+
231313@media all and (min-width : 768px ) {
232- .courses__container {grid-template-columns : 1fr 1fr 1fr ;}
314+ .courses__container {
315+ grid-template-columns : 1fr 1fr 1fr ;
316+ }
233317}
318+
234319@media all and (min-width : 949px ) {
235- .courses__container {grid-template-columns : 1fr 1fr 1fr 1fr ;}
320+ .courses__container {
321+ grid-template-columns : 1fr 1fr 1fr 1fr ;
322+ }
236323}
237324
238325/*
@@ -337,7 +424,8 @@ header .submenu:hover #cart::-webkit-scrollbar-thumb:hover {background: #555;}
337424/*
338425* Footer
339426*/
427+
340428footer {
341429 display : block;
342430 margin-top : 50px ;
343- }
431+ }
0 commit comments