--- id: bad87fee1347bd9aedf08845 title: Limpar o CSS customizado para o Bootstrap challengeType: 0 forumTopicId: 17565 dashedName: ditch-custom-css-for-bootstrap --- # --description-- Nós podemos limpar nosso código e fazer o aplicativo de fotos de gato parecer mais convencional ao utilizar os estilos nativos do Bootstrap ao invés dos estilos customizados que criamos mais cedo. Não se preocupe - haverá muito tempo para customizar nosso CSS depois. Exclua as declarações CSS `.red-text`, `p` e `.smaller-image` do elemento `style` para que as únicas declarações restantes no elemento `style` sejam `h2` e `thick-green-border`. Em seguida, exclua o elemento `p` que contem um link morto. Depois disso, remova a classe `red-text` do elemento `h2` e substitua-a pela classe `text-primary`do Bootstrap. Finalmente, remova a classe `smaller-image` do primeiro elemento `img` e substitua-a pela classe `img-responsive`. # --hints-- O elemento `h2` não deve mais conter a classe `red-text`. ```js assert(!$('h2').hasClass('red-text')); ``` O elemento `h2` deve ter agora a classe `text-primary`. ```js assert($('h2').hasClass('text-primary')); ``` Os elementos de parágrafo não devem mais usar a fonte `Monospace`. ```js assert( !$('p') .css('font-family') .match(/monospace/i) ); ``` A classe `smaller-image` deve ser removida da imagem superior. ```js assert(!$('img').hasClass('smaller-image')); ``` Você deve adicionar a classe `img-responsive` à imagem superior. ```js assert($('.img-responsive').length > 1); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Click here for cat photos.

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

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

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

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```