This forum is for assistance with theme development.

Problems with the Barrio SASS subtheme

Hello!

I have problems with styling the Barrio SASS Subtheme. I copied the Subtheme and changed some filenames and entries as described in the available documentation.

So, I make changes at the style.css, run gulp at my lcoal machine and upload the file via ftp. For example I change the H1 color. At the variables.scss I change $accent-shade to the desired color, because im the style.scss  I have "h1 {color: $accent-shade;}". This works.

But I do not understand why in the browser console the value comes from style.scss and not from the style.css?

Include JS and CSS into custom page

Hi,

I'm not original developer of the site but trying to solve this problem. I have a custom content type (lets call it my-page) so I was able to set up a Colorbox for Image field within this content type. So normaly when I open /node/1234 which is this type everythng works.

BUT

What is the purpose of {{page.content}}

I see that Bartik and Classy use this piece of code on page.html.twig.

      <section class="section">
        <a id="main-content" tabindex="-1"></a>
        {{ page.content }}
      </section>

What is the purpose of {{page.content}} and tabindex? It is mandatory to use it when I develop a custom theme?

Thanks.

Logo with Transparent background logo

Hi there - apparently my CSS, and so skills are very rusty. Anyway I am trying to add a logo, with a transparent background, but apparently the Batik theme, the background is inheriting #ffffff, as I understand - but regardless of where I edit in the CSS, the logo pops up with a white background and not the transparent, so the gradient behind is not visible. 

Can anyone show me, where to edit the CSS, or how to make the background transparent, and not white? (preffered before I toss my laptop out of the window)

Thanks

Help with the bootstrap_barrio theme?

The topic has not been updated for almost a year, when I give rights to edit the nodes, with the barrio theme, the layout looks awful help fix when I used the bootstrap3 theme.
When I go to the node editing page, by the user. How to change a button and its position. I turned on debug, saw the path form-element-label.html.twig, but when it was replaced from bootstrap3 theme, the button remained in "()"

Accessing parent block label from menu.html.twig

Scenario: I have a custom menu, full of links defined by an end user.

It's inside a custom block, also defined by an end user.

The block has a title the user picked.

I need to have a variable in menu.html.twig that contains the title of the block, as picked by the user.

So, if Sally creates a block named "Avast!" and then places a menu inside it full of links to pirate-themed web sites, I want to be able to put something like {{ block_name }} into menu.html.twig, and have it result in the phrase "Avast!"

Pages

Subscribe with RSS Subscribe to RSS - Theme development