CSS Classes - tremho/thunderbolt-common GitHub Wiki
CSS Class Names
At root level from Nativescript
(we don't add these, {N} does
.ns-android- '.ns-ios`
- '.ns-portrait`
- '.ns-landscape`
At Page level
-
.macosfor Macintosh desktop -
.windowsfor Windows desktop -
.linuxfor Linux desktop -
.constrainedon Desktop when body width < 500 and on Mobile when screen width <= 320 -
.tinyAndroid only when constrained and scale < 1 -
.smallAndroid only when not constrained and scale < 2
Names assigned by components
.tb-title-barFor the whole of the title bar assembly.tool-barFor the toolbar that holds any tool buttons defined.tool-bar-containerAndroid-only used to define the width control for the tool-bar flex box.tb-toolbuttonDefines a tool bar button appearance.tbLabelSpecfic to the text label of a tool bar button.titleThe title bar title label.indicator-barThe flexbox container of the indicators.tb-indicatorAppearance of an indicator.menu-boxAppearance of the menu box control with its hamburger icon
Note that tools and indicator states are potential for any declared state
.tool-state-defaultStandard default state appearance of a tool button.tool-state-onStandard appearance of a tool button in 'on' state.tool-state-offStandard appearance of a tool button in 'off' state.indicator-state-defaultStandard default state appearance of an indicator.indicator-state-onStandard appearance of an indicator in 'on' state.indicator-state-offStandard appearance of an indicator in 'off' state
Note that any Tb:Component has a CSS class name equivalent to its Javascript class name
.SimpleLabelDefines appearance of SimpleLabel.SimpleButtonDefines appearance of SimpleButton
Nativescript primitives
Under Nativescript, the primitive component class names will respond to CSS selection. For example, Label, Button, StackLayout, etc... but to use, one must know the structure of the components involved. The theme-nativescript.scss has a few examples of this.