--- id: bad87fee1347bd9aedf08845 title: Ditch Custom CSS for Bootstrap challengeType: 0 videoUrl: '' localeTitle: '' --- ## Description
يمكننا تنظيف الكود الخاص بنا وجعل تطبيق Cat Photo App يبدو أكثر تقليدية باستخدام الأنماط المضمنة في Bootstrap بدلاً من الأنماط المخصصة التي أنشأناها سابقًا. لا تقلق - سيكون هناك متسع من الوقت لتخصيص CSS في وقت لاحق. قم بحذف .red-text و p و .smaller-image من عنصر style الخاص بك بحيث تكون التصريحات الوحيدة المتبقية في عنصر style الخاص بك هي h2 thick-green-border . ثم احذف العنصر p الذي يحتوي على رابط خامد. ثم قم بإزالة فئة red-text من عنصر h2 واستبدله بفئة Bootstrap text-primary . أخيرًا ، أزل فئة "الصورة الأصغر" من عنصر img الأول img بفئة img-responsive .
## Instructions undefined ## Tests
```yml tests: - text: يجب ألا يحتوي عنصر h2 red-text للفئة. testString: 'assert(!$("h2").hasClass("red-text"), "Your h2 element should no longer have the class red-text.");' - text: يجب أن يكون عنصر h2 الخاص بك يحتوي الآن على text-primary . testString: 'assert($("h2").hasClass("text-primary"), "Your h2 element should now have the class text-primary.");' - text: لم يعد يجب استخدام عناصر الفقرة الخط Monospace . testString: 'assert(!$("p").css("font-family").match(/monospace/i), "Your paragraph elements should no longer use the font Monospace.");' - text: أزل فئة smaller-image من صورتك العلوية. testString: 'assert(!$("img").hasClass("smaller-image"), "Remove the smaller-image class from your top image.");' - text: أضف فئة img-responsive إلى أعلى صورة. testString: 'assert($(".img-responsive").length > 1, "Add the img-responsive class to your top image.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```