Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

Do I have to put property values in json file when I create a theme? How to pass an array for a "border-inline-start"?

  • কোনো জবাব নেই
  • 0 এই সমস্যাটি আছে
more options

First of all I want to apologize for my lack of knowledge. I know almost nothing about HTML and CSS, but I've decided to start using some desktop e-mail client and since Thunderbird looks quite boring and I was bored too, I've tried to customize it.

Now I've got a few questions. :)

In this guide https://developer.thunderbird.net/add-ons/web-extension-themes is stated that for each variable, not only for our custom variables (--my-variable-one etc.) we should declare such variable in the style.css, then assign a key to it and then declare a value for that key.

I've started preparing my theme this way, especially that I've mainly used special keys provided by TB developers in the Theme API, but I've discovered that declaring style directly in the css file also works.

So should we always put values in json file or can we jus load css via json?

I ask because I want to change the color of the left panel in the calendar view. To be honest, I still haven't checked if declaring three separate longhand properties would work, but I wanted to pass an array to get the

  1. calsidebar_splitter,
  2. listSplitter {
   border-inline-start: 1px solid #0f66bd !important;

}

So initially I've wrote in css:

  1. calsidebar_splitter,
  2. listSplitter {
   border-inline-start: var(--my-splitter-color);

}

and unfortunately writing something like that:

"splitter_color": "--my-splitter-color"

and

"splitter_color": "[1px, solid, rgb(15, 102, 189)]

doesn't work. :/

First of all I want to apologize for my lack of knowledge. I know almost nothing about HTML and CSS, but I've decided to start using some desktop e-mail client and since Thunderbird looks quite boring and I was bored too, I've tried to customize it. Now I've got a few questions. :) In this guide https://developer.thunderbird.net/add-ons/web-extension-themes is stated that for each variable, not only for our custom variables (--my-variable-one etc.) we should declare such variable in the style.css, then assign a key to it and then declare a value for that key. I've started preparing my theme this way, especially that I've mainly used special keys provided by TB developers in the Theme API, but I've discovered that declaring style directly in the css file also works. So should we always put values in json file or can we jus load css via json? I ask because I want to change the color of the left panel in the calendar view. To be honest, I still haven't checked if declaring three separate longhand properties would work, but I wanted to pass an array to get the #calsidebar_splitter, #listSplitter { border-inline-start: 1px solid #0f66bd !important; } So initially I've wrote in css: #calsidebar_splitter, #listSplitter { border-inline-start: var(--my-splitter-color); } and unfortunately writing something like that: "splitter_color": "--my-splitter-color" and "splitter_color": "[1px, solid, rgb(15, 102, 189)] doesn't work. :/

Stiff_Cheesecake দ্বারা পরিমিত

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.