Classy themes css selectors

Last updated on
31 August 2016

Document all css class selectors that are in the classy theme Drupal8 RC 2

format:

.foo { }
.foo-bar { }

filename.html.twig / filename.css

Twig - Available CSS selectors in the Classy theme:

LAYOUT

Body

.user-logged-in { }
.path-frontpage { }
.path-[root_path] { }
.node--type-[node_type] { }
.db-offline { }
.visually-hidden { }
.focusable { }
.skip-link { }

file: html.html.twig

Page

.layout-container { }
.layout-content { }
.layout-sidebar-first { }
.layout-sidebar-second { }

file: page.html.twig

Region

.region { }
.region-[region] { }

file: region.html.twig

Book export

.section-[i] { }

file: layout/book-export-html.html.twig

Maintenance page

.layout-container { }
.name-and-slogan { }
.site-name { }
.site-slogan { }
.layout-sidebar-first { }
.layout-sidebar-second { }

file: layout/maintenance-page.html.twig


BLOCK

Basic

.block { }
.block-[configuration.provider] { }
.block-[plugin_id] { }

file: block/block.html.twig

Search form

.block { }
.block-search { }
.container-inline{ }

file: block/block--search-form-block.html.twig

Menu

.block { }
.block-menu { }
.navigation { }
.menu--[derivative_plugin_id] { }
.visually-hidden { }

file: block/block--system-menu-block.html.twig

Tabs

.tabs { }

file: block/block--local-tasks-block.html.twig

Local actions

.action-links { }

file: block/block--local-actions-block.html.twig

Branding

.site-logo { }
.site-name { }
.site-slogan { }

file: block/block--system-branding-block.html.twig


CONTENT

Page title

.page-title { }

file: content/page-title.html.twig

Node

.node { }
.node--type-[node.bundle] { }
.node--promoted { }
.node--sticky { }
.node--unpublished { }
.node--view-mode-[view_mode] { }
.node__meta { }
.node__submitted { }
.node__content { }

file: content/node.html.twig

Node links

.node__links { }

file: content/links--node.html.twig

Taxonomy term

.taxonomy-term { }
.vocabulary-[term.bundle] { }
.content { }

file: content/taxonomy-term.html.twig

Search result

.search-result__title { }
.search-result__snippet-info { }
.search-result__snippet { }
.search-result__info { }

file: content/search-result.html.twig

Comment

.comment { }
.js-comment { }
.[status] { }
.by-anonymous { }
.by-[commented_entity.EntityTypeId]-author { }
.hidden { }
.comment__meta { }
.comment__submitted { }
.parent { }
.visually-hidden { }
.content { }

file: content/comment.html.twig

Aggregator item

.aggregator-item { }
.feed-item-title { }

file: content/aggregator-item.html.twig

Mark

.marker { }

file: content/mark.html.twig

Book node export

.section-[depth] { }
.book-heading { }

file: content/book-node-export-html.html.twig


EDIT CONTENT

Node edit form

.layout-node-form { }
.clearfix { }
.layout-region { }
.layout-region-node-main { }
.layout-region-node-secondary { }
.layout-region-node-footer { }

file: content-edit/node-edit-form.html.twig

Node add list

.node-type-list { }

file: content-edit/node-add-list.html.twig

Text format wrapper

.js-text-format-wrapper { }
.text-format-wrapper { }
.js-form-item { }
.form-item { }
.description { }

file: content-edit/text-format-wrapper.html.twig

File form widget

.js-form-managed-file { }
.form-managed-file { }

file: content-edit/file-managed-file.html.twig

Image field widget

.image-preview { }
.image-widget-data { }

file: content-edit/image-widget.html.twig

Filter caption

.caption { }
.caption-[tag] { }

file: content-edit/filter-caption.html.twig

Filter guidelines

.filter-guidelines-item { }
.filter-guidelines-[format.id] { }
.label { }

file: content-edit/filter-guidelines.html.twig

Filter tips

.compose-tips { }
.filter-type { }
.filter-[name] { }
.tips { }
.filter-[item.id] { }

file: content-edit/filter-tips.html.twig


DATASET

Item list

.item-list--[context.list_style] { }
.item-list__[context.list_style] { }
.item-list { }

file: dataset/item-list.html.twig

Search results item list

.search-results { }
.[context.plugin]-results { }

file: dataset/item-list--search-results.html.twig

Table

.is-active { }
.odd { }
.even { }
.empty { }
.message { }

file: dataset/table.html.twig

List of forums and containers

.[forum.zebra] { }
.container { }
.forum-list__forum { }
.indented { }
.forum__icon { }
.forum-status-[forum.icon_class] { }
.visually-hidden { }
.forum__name { }
.forum__description { }
.forum__topics { }
.forum__posts { }
.forum__last-reply { }

file: dataset/forum-list.html.twig

Forum

.forum { }

file: dataset/forums.html.twig

Status icon for forum post

.forum__icon { }
.forum__topic-status--[icon_status] { }
.visually-hidden { }

file: dataset/forum-icon.html.twig

Aggregator feed

.aggregator-feed { }

file: dataset/aggregator-feed.html.twig


FIELD

Basic

.field { }
.field--name-[field_name] { }
.field--type-[field_type] { }
.field--label-[label_display] { }
.field__label { }
.visually-hidden { }
.field__items { }
.field__item { }

file: field/field.html.twig

Node title field

.field { }
.field--name-[field_name] { }
.field--type-[field_type] { }
.field--label-[label_display] { }

file: field/field--node--title.html.twig

Node created field

.field { }
.field--name-[field_name] { }
.field--type-[field_type] { }
.field--label-[label_display] { }

file: field/field--node--created.html.twig

Node user field

.field { }
.field--name-[field_name] { }
.field--type-[field_type] { }
.field--label-[label_display] { }

file: field/field--node--uid.html.twig

Text field

.clearfix { }
.text-formatted { }

file: field/field--text.html.twig

Image field

.image-style-[style_name] { }

file: field/image.html.twig

Date/time element

.datetime { }

file: field/time.html.twig

Link with separate title and URL elements

.link-item { }
.link-title { }
.link-url { }

file: field/link-formatter-link-separate.html.twig

Comment field

.field { }
.field--name-[field_name] { }
.field--type-[field_type] { }
.field--label-[label_display] { }
.comment-wrapper { }
.title { }
.visually-hidden { }
.comment-form__title { }

file: field/field--comment.html.twig


FORM

Container to wrap child elements

.js-form-wrapper { }
.form-wrapper { }

file: form/container.html.twig

Fieldset element and its children

.js-form-item { }
.form-item { }
.js-form-wrapper { }
.form-wrapper { }
.fieldset-legend { }
.js-form-required { }
.form-required { }
.fieldset-wrapper { }
.form-item--error-message { }
.field-prefix { }
.field-suffix { }
.description { }

file: form/fieldset.html.twig

Form element

.js-form-item { }
.form-item { }
.js-form-type-[type] { }
.form-type-[type] { }
.js-form-item-[name] { }
.form-item-[name] { }
.form-no-label { }
.form-disabled { }
.form-item--error { }
.description { }
.visually-hidden { }
.field-prefix { }
.field-suffix { }
.form-item--error-message { }

file: form/form-element.html.twig

Form element label

.option { }
.visually-hidden { }
.js-form-required { }
.form-required { }

file: form/form-element-label.html.twig

Individual form element

.js-form-item { }
.form-item { }
.description { }
.clearfix { }

file: form/field-multiple-value-form.html.twig

Textarea

.form-textarea { }
.resize-[resizable] { }
.required { }
.form-textarea-wrapper { }

file: form/textarea.html.twig

Datetime form wrapper

.label { }
.js-form-required { }
.form-required { }
.form-item--error-message { }
.description { }

file: form/datetime-wrapper.html.twig

Datetime

.container-inline { }

file: form/datetime-form.html.twig

Checkboxes

.form-checkboxes { }

file: form/checkboxes.html.twig

Radios

.form-radios { }

file: form/radios.html.twig

Details

.details-wrapper { }
.form-item--error-message { }
.details-description { }

file: form/details.html.twig

Dropbutton wrapper

.dropbutton-wrapper { }
.dropbutton-widget { }

file: form/dropbutton-wrapper.html.twig


NAVIGATION

Administrative toolbar

.toolbar { }
.toolbar-bar { }
.visually-hidden { }
.toolbar-tab { }
.toolbar-lining { }
.clearfix { }
.toolbar-tray-name { }

file: navigation/toolbar.html.twig

Menu

.menu { }
.menu-item { }
.menu-item--expanded { }
.menu-item--collapsed { }
.menu-item--active-trail { }

file: navigation/menu.html.twig

Breadcrumb trail

.breadcrumb { }
.visually-hidden { }

file: navigation/breadcrumb.html.twig

A set of links

.[key] { }

file: navigation/links.html.twig

Primary and secondary local tasks

.visually-hidden { }
.tabs { }
.primary { }
.secondary { }

file: navigation/menu-local-tasks.html.twig

Local task link

.is-active { }

file: navigation/menu-local-task.html.twig

Book outlines within a block

.book-block-menu { }

file: navigation/book-all-books-block.html.twig

Book tree

.menu { }
.menu-item { }
.menu-item--expanded { }
.menu-item--collapsed { }
.menu-item--active-trail { }

file: navigation/book-tree.html.twig

Navigate books

.book-navigation { }
.visually-hidden { }
.book-pager { }
.book-pager__item { }
.book-pager__item--previous { }
.book-pager__item--center { }
.book-pager__item--next { }

file: navigation/book-navigation.html.twig

Pager

.pager { }
.visually-hidden { }
.pager__items { }
.js-pager__items { }
.pager__item { }
.pager__item--first { }
.pager__item--previous { }
.pager__item--ellipsis { }
.is-active { }
.pager__item--next { }
.pager__item--last { }

file: navigation/pager.html.twig


VIEWS

Main view template

.view { }
.view-[id] { }
.view-display-id-[display_id] { }
.js-view-dom-id-[dom_id] { }
.view-header { }
.view-filters { }
.attachment { }
.attachment-before { }
.view-content { }
.view-empty { }
.attachment-after { }
.view-footer { }
.feed-icons { }

file: views/views-view.html.twig

Views exposed form

.form--inline { }
.clearfix { }

file: views/views-exposed-form.html.twig

Views - View of unformatted rows

.views-row { }

file: views/views-view-unformatted.html.twig

Display rows in a grid

.views-view-grid { }
.[options.alignment] { }
.cols-[options.columns] { }
.clearfix { }
.views-row { }
.views-col { }
.row-[loop.index] { }
.col-[loop.index] { }

file: views/views-view-grid.html.twig

Views - View as table

.views-table { }
.views-view-table { }
.cols-[header] { }
.responsive-enabled { }
.sticky-enabled { }
.views-field { }
.views-field-[fields[key]] { }
.views-field-[field] { }

file: views/views-view-table.html.twig

Single views grouping

.view-grouping { }
.view-grouping-header { }
.view-grouping-content { }

file: views/views-view-grouping.html.twig

List of summary lines

.item-list { }
.views-summary { }
.is-active { }

file: views/views-view-summary.html.twig

Unformatted summary links

.views-summary { }
.views-summary-unformatted { }
.is-active { }

file: views/views-view-summary-unformatted.html.twig

Views mini pager

.pager { }
.pager__heading { }
.visually-hidden { }
.pager__items { }
.js-pager__items { }
.pager__item { }
.pager__item--previous { }
.is-active { }
.pager__item--next { }

file: views/views-mini-pager.html.twig


USER

Forum post submission string

.submitted { }

file: user/forum-submitted.html.twig

User data

.profile { }

file: user/user.html.twig

Username

.username { }

file: user/username.html.twig


MISCELLANEOUS

Status messages

.message { }
.messages--[type] { }
.visually-hidden { }
.messages__list { }
.messages__item { }

file: misc/status-messages.html.twig

Progress bar

.progress { }
.progress__label { }
.progress__track { }
.progress__bar { }
.progress__percentage { }
.progress__description { }

file: misc/progress-bar.html.twig

Empty spans with RDF attributes

.rdf-meta { }
.hidden { }

file: misc/rdf-metadata.html.twig


CSS - Available css selectors in the Classy theme:

Menu

ul.menu { }
[dir="rtl"] ul.menu { }
.menu-item--expanded { }
.menu-item--collapsed { }
[dir="rtl"] .menu-item--collapsed { }
.menu-item { }
ul.menu a.is-active { }

file: components/menu.css

Item list

.item-list .title { }
.item-list ul { }
.item-list li { }
[dir="rtl"] .item-list li { }
.item-list--comma-list { }
.item-list--comma-list .item-list__comma-list { }
.item-list__comma-list li { }
[dir="rtl"] .item-list--comma-list .item-list__comma-list { }
[dir="rtl"] .item-list__comma-list li { }

file: components/item-list.css

Breadcrumbs

.breadcrumb { }
.breadcrumb ol { }
[dir="rtl"] .breadcrumb ol { }
.breadcrumb li { }
.breadcrumb li:before { }
.breadcrumb li:first-child:before { }

file: components/breadcrumb.css

Tabs

div.tabs { }
ul.tabs { }
.tabs > li { }
[dir="rtl"] .tabs > li { }
.tabs a { }
.tabs a.is-active { }
.tabs a:focus { }
.tabs a:hover { }

file: components/tabs.css

Link buttons and action links

.action-links { }
[dir="rtl"] .action-links { }
.action-links li { }
.action-links li:first-child { }
[dir="rtl"] .action-links li:first-child { }
.button-action { }
.button-action:before { }
[dir="rtl"] .button-action:before { }

file: components/action-links.css

Links

ul.inline { }
ul.links.inline { }
[dir="rtl"] ul.inline { }
[dir="rtl"] ul.links.inline { }
ul.inline li { }
ul.links a.is-active { }

file: components/links.css

Link

button.link { }
label button.link { }

file: components/link.css

Nodes

.node--unpublished { }

file: components/node.css

Collapsible fieldsets

.collapse-processed > summary { }
.collapse-processed > summary:before { }
[dir="rtl"] .collapse-processed > summary:before { }
.collapse-processed:not([open]) > summary:before { }
[dir="rtl"] .collapse-processed:not([open]) > summary:before { }

file: components/collapse-processed.css

Fields

.field__label { }
.field--label-inline .field__label { }
.field--label-inline .field__items { }
.field--label-inline .field__label { }
.field--label-inline > .field__item { }
.field--label-inline .field__items { }
[dir="rtl"] .field--label-inline .field__label { }
[dir="rtl"] .field--label-inline .field__items { }
.field--label-inline .field__label::after { }

file: components/field.css

Inline forms

.form--inline .form-item { }
[dir="rtl"] .form--inline .form-item { }
.form--inline .form-item-separator { }
[dir="rtl"] .form--inline .form-item-separator { }
.form--inline .form-actions { }
[dir="rtl"] .form--inline .form-actions { }

file: components/inline-form.css

Inline items

.container-inline label:after { }
.container-inline .label:after { }
.form-type-radios .container-inline label:after { }
.form-type-radios .container-inline .form-type-radio { }
.container-inline .form-actions { }
.container-inline.form-actions { }

file: components/container-inline.css

Form components

form .field-multiple-table { }
form .field-multiple-table .field-multiple-drag { }
[dir="rtl"] form .field-multiple-table .field-multiple-drag { }
form .field-multiple-table .field-multiple-drag .tabledrag-handle { }
[dir="rtl"] form .field-multiple-table .field-multiple-drag .tabledrag-handle { }
form .field-add-more-submit { }
.form-item { }
.form-actions { }
tr.odd .form-item { }
tr.even .form-item { }
.form-composite > .fieldset-wrapper > .description { }
.form-item .description { }
label.option { }
.form-composite > legend { }
.label { }
.form-checkboxes .form-item { }
.form-radios .form-item { }
.form-type-radio .description { }
.form-type-checkbox .description { }
[dir="rtl"] .form-type-radio .description { }
[dir="rtl"] .form-type-checkbox .description { }
.marker { }
.form-required:after { }
abbr.tabledrag-changed { }
abbr.ajax-changed { }
.form-item input.error { }
.form-item textarea.error { }
.form-item select.error { }
.form-item--error-message:before { }

file: components/form.css

Textarea

.form-textarea-wrapper textarea { }

file: components/textarea.css

File module

.file { }
[dir="rtl"] .file { }
.file--general { }
.file--application-octet-stream { }
.file--package-x-generic { }
.file--x-office-spreadsheet { }
.file--x-office-document { }
.file--x-office-presentation { }
.file--text-x-script { }
.file--text-html { }
.file--text-plain { }
.file--application-pdf { }
.file--application-x-executable { }
.file--audio { }
.file--video { }
.file--text { }
.file--image { }

file: components/file.css

Image upload widget

.image-preview { }
[dir="rtl"] .image-preview { }
.image-widget-data { }
[dir="rtl"] .image-widget-data { }
.image-widget-data .text-field { }

file: components/image-widget.css

Collapsible details

details { }
details > .details-wrapper { }
summary { }

file: components/details.css

Buttons

.button { }
.image-button { }
.button:first-child { }
.image-button:first-child { }

file: components/button.css

Progress bar

.progress__track { }
.progress__bar { }
[dir="rtl"] .progress__bar { }

@-webkit-keyframes animate-stripes { }
@-ms-keyframes animate-stripes { }
@keyframes animate-stripes { }

file: components/progress.css

System messages

.messages { }
[dir="rtl"] .messages { }
.messages + .messages { }
.messages__list { }
.messages__item + .messages__item { }
.messages--status { }
[dir="rtl"] .messages--status { }
.messages--warning { }
[dir="rtl"] .messages--warning { }
.messages--error { }
[dir="rtl"] .messages--error { }
.messages--error p.error { }

file: components/messages.css

Search results

.search-results { }

file: components/search-results.css

More link

.more-link { }
[dir="rtl"] .more-link { }

file: components/more-link.css

Pager

.pager__items { }
.pager__item { }
.pager__item.is-active { }

file: components/pager.css

Forum module

.forum__description { }
.forum__icon { }
[dir="rtl"] .forum__icon { }
.forum__title { }
.forum .indented { }
[dir="rtl"] .forum .indented { }
.forum__topic-status--new { }
.forum__topic-status--hot { }
.forum__topic-status--hot-new { }
.forum__topic-status--sticky { }
.forum__topic-status--closed { }

file: components/forum.css

Indent threaded comments

.indented { }
[dir="rtl"] .indented { }

file: components/indented.css

Exposed filters

.exposed-filters .filters { }
[dir="rtl"] .exposed-filters .filters { }
.exposed-filters .form-item { }
.exposed-filters .form-item label { }
[dir="rtl"] .exposed-filters .form-item label { }
.exposed-filters .form-select { }
.exposed-filters .current-filters { }
.exposed-filters .current-filters .placeholder { }
.exposed-filters .additional-filters { }
[dir="rtl"] .exposed-filters .additional-filters { }

file: components/exposed-filters.css

Table sort indicator

th.is-active img { }
td.is-active { }

file: components/tablesort.css

Table select

tr.selected td { }
td.checkbox { }
th.checkbox { }
[dir="rtl"] td.checkbox { }
[dir="rtl"] th.checkbox { }

file: components/tableselect.css

Table drag

tr.drag { }
tr.drag-previous { }
body div.tabledrag-changed-warning { }

file: components/tabledrag.css

Dropbuttons

.js .dropbutton-widget { }
.js .dropbutton-widget:hover { }
.dropbutton .dropbutton-action > * { }
.dropbutton .secondary-action { }
.dropbutton-multiple .dropbutton { }
[dir="rtl"] .dropbutton-multiple .dropbutton { }
.dropbutton-multiple .dropbutton .dropbutton-action > * { }
[dir="rtl"] .dropbutton-multiple .dropbutton .dropbutton-action > * { }

file: components/dropbutton.css

Modal windows

.ui-dialog--narrow { }

file: components/ui-dialog.css

Dialogs

.ui-dialog { }
.ui-dialog .ui-dialog-titlebar { }
.ui-dialog .ui-dialog-titlebar-close { }
.ui-dialog .ui-dialog-buttonpane { }
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { }
.ui-dialog .ui-dialog-buttonpane .ui-button-text-only .ui-button-text { }
.ui-dialog .ui-dialog-content .form-actions { }
.ui-dialog .ajax-progress-throbber { }
.ui-dialog .ajax-progress-throbber .throbber { }
.ui-dialog .ajax-progress-throbber .message { }

file: components/dialog.css

User module

.password-strength__meter { }
.password-strength__indicator { }
.password-strength__indicator.is-weak { }
.password-strength__indicator.is-fair { }
.password-strength__indicator.is-good { }
.password-strength__indicator.is-strong { }
.password-confirm { }
.password-field { }
.password-strength { }
.password-confirm-match { }
.password-suggestions { }
.password-suggestions ul { }
.confirm-parent { }
.password-parent { }
[dir="rtl"] .confirm-parent { }
[dir="rtl"] .password-parent { }
.password-confirm .ok { }
.password-confirm .error { }

file: components/user.css

Book module

.book-navigation .menu { }
.book-navigation .book-pager { }
.book-pager__item { }
.book-pager__item--previous { }
[dir="rtl"] .book-pager__item--previous { }
.book-pager__item--center { }
.book-pager__item--next { }
[dir="rtl"] .book-pager__item--next { }

file: components/book-navigation.css

Icons

.icon-help { }
[dir="rtl"] .icon-help { }
.feed-icon { }

file: components/icons.css