CSS
We try to use as little CSS as possible but when using third party libraries sometimes the only way to customize them is with CSS. We use webpack require
to load such CSS files.
Z-Index
Because we have this distributed between TS / CSS files we document these here:
- Golden-Layout: 2 (in
appTabsContainer.css
) - Main Panel : 6 (
mainPanel.ts
) - Modal Overlay: 100 (in
index.html
) - File Tree View: 6 (
fileTree.tsx
) - Doctor : 1 (
doctor.tsx
)
Background color
Whenever possible prefer the Editor background color.
You don't need it explicitly at the root components as we have it setup for
GoldenLayout
(inappTabsContainer.css
) as well asbody
(inindex.html
as a style attribute)tips.tsx (in
appTabsContainer.css
).
TypeStyle
We use typestyle to manage our CSS in JS (TS). Just a bit of naming convention:
**ClassName
: must be used inclassName=
attribute**Base
: must be used to make aClassName
.**Style
: can be used to make aClassName
or directly in a style.