I'm looking for a more efficient way to apply CSS to the masthead on all pages except the homepage in the Wordpress Twenty Sixteen theme. Currently, I am manually targeting each page like this:
.page-id-24 #masthead {
padding: 5%;
background-image: url(...);
background-size: 1400px 500px;
height: 10px;
margin-bottom: 5%;
}
.page-id-14 #masthead {
padding: 5%;
background-image: url(...);
background-size: 1400px 500px;
height: 10px;
margin-bottom: 5%;
}
Is there a way to write something similar to #masthead not:(home) {...}
to speed up the process and modify the masthead on all pages except the homepage?
Thanks,
Jack