How to change the class to a font awesome icon?

-1

I have a problem what happens is that when I put font awesome in my footer it has classes by default and when I put the same icons in my modal menu appears with the same editions that I have in my footer and we open some way to change the class of that font awesome if it affects its operation so you can have the same icons of the photographer but in my modal menu but with different aspects

this is my footer

this is my modal menu with the same font awesome

I want them not to have the same styles but you can not because they have the same classes

    
asked by Marco Oyola Yacolca 17.03.2018 в 19:16
source

1 answer

0

For that, if I do not understand correctly, you should use the parent selector that contains the icons to specify each case:

.menu-modal .redes .fab {
  /* estilos para los iconos del modal */
} 

.pie-de-pagina .redes-sociales .fab {
  /* estilos para los iconos del footer */
}

I also recommend that you use some preprocessor, like sass, to make your life easier (a lot) and also be able to load only the icons you need

    
answered by 20.03.2018 в 13:44