Skip to content

Instantly share code, notes, and snippets.

@webbingstudio
Last active October 30, 2016 10:49
Show Gist options
  • Save webbingstudio/fd0f553000f60b1e9d53ddbea329c743 to your computer and use it in GitHub Desktop.
Save webbingstudio/fd0f553000f60b1e9d53ddbea329c743 to your computer and use it in GitHub Desktop.
CMSで見出しへの自動装飾とclassによる手動装飾を共存させる ref: http://qiita.com/webbingstudio@github/items/71b81657bfaddd4321d8
h1 {
/* h1の装飾 */
}
h2 {
/* h2の装飾 */
}
.richtext h1 {
/* h1の装飾 */
}
.richtext h2 {
/* h2の装飾 */
}
.title-01,
.richtext h1 {
/* h1の装飾 */
}
.title-02,
.richtext h2 {
/* h2の装飾 */
}
.title-01,
.richtext h1:not([class*="title"]) {
/* h1の装飾 */
}
.title-02,
.richtext h2:not([class*="title"]) {
/* h2の装飾 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment