Score:0

Style.css not workign in a classy subtheme

ar flag

I created a subtheme based on classy with this .info file:

name: youverify_theme
type: theme
description: This is a sub theme of Classy
core: 8.x
core_version_requirement: ^8 || ^9
# Defines the base theme
base theme: classy
# Defines libraries group in which we can add css/js.
libraries:
  - youverify_theme/global-styling
# Regions
regions:
  header: Header
  featured: Featured
  content: Content
  sidebar_first: First sidebar
  sidebar_second: Second sidebar
  footer: Footer

and this libraries file:

*.libraries.yml

global-styling:
version: 1.0
  css:
    theme:
      css/style.css: {}

my folder structure is:

youverify_theme
  css
    style.css
  youverify_theme.info.yml
  youverify_theme.libraries.yml

but when I create some styling in style.css such as:

.region-header{
    background-color:blue;
}

body{
    background-color: blue;
}

It's not updating anything, do you know what could be the problem? Thank you in advance :)

cn flag
Did you rebuild the cache? https://drupalize.me/tutorial/clear-drupals-cache?p=2512
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.