Skip to content

Instantly share code, notes, and snippets.

@mortendk
Created October 25, 2015 23:18
Show Gist options
  • Save mortendk/b40efcaa3cde161dbdf8 to your computer and use it in GitHub Desktop.
Save mortendk/b40efcaa3cde161dbdf8 to your computer and use it in GitHub Desktop.
classy css selectors
Document all css class selectors that are in the classy theme.
<code>
.foo { }
.foo-bar { }
</code>
where it is filename.html.twig / filename.css
<h3>Available css selectors in the Classy theme:</h3>
<h4>Body</h4>
<code>
.user-logged-in { ... }
.path-frontpage { ... }
.path-[root_path] {... }
.node--type-[node_type] { ...}
.db-offline { ... }
</code>
file: html.html.twig
<h4>page</h4>
<code>
.layout-container { }
.layout-content { }
.layout-sidebar-first { }
.layout-sidebar-second { }
</code>
file: page.html.twig
<h4>Region</h4>
<code>
.region { }
.region-[region] { }
</code>
file: region.html.twig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment