Skip to content

Commit 5bf39d5

Browse files
committed
Add BottomNav and Tabs styling, unfortunately not everything works yet
1 parent 525122f commit 5bf39d5

3 files changed

Lines changed: 38 additions & 23 deletions

File tree

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"nativescript": {
1313
"id": "org.nativescript.theme",
1414
"tns-ios": {
15-
"version": "6.0.0-rc-2019-06-19-131834-02"
15+
"version": "6.0.0"
1616
},
1717
"tns-android": {
18-
"version": "6.0.0-rc-2019-07-04-174325-01"
18+
"version": "6.0.0"
1919
}
2020
},
2121
"dependencies": {
@@ -26,7 +26,7 @@
2626
"nativescript-themes": "2.0.1",
2727
"nativescript-ui-sidedrawer": "^7.0.0-androidx",
2828
"nativescript-ui-dataform": "^5.0.0-androidx",
29-
"tns-core-modules": "^6.0.0-rc-2019-07-10-160558-04"
29+
"tns-core-modules": "^6.0.1-rc-2019-07-11-133202-02"
3030
},
3131
"devDependencies": {
3232
"babel-eslint": "10.0.2",
@@ -35,7 +35,7 @@
3535
"eslint": "6.0.1",
3636
"glob": "7.1.4",
3737
"lazy": "1.0.11",
38-
"nativescript-dev-webpack": "^1.0.0-rc-2019-07-10-161902-03",
38+
"nativescript-dev-webpack": "^1.0.0-rc-2019-07-10-215625-05",
3939
"postcss": "7.0.17",
4040
"postcss-custom-properties": "9.0.1",
4141
"postcss-loader": "3.0.0",

src/styles/scss/mixins/components/_controls.scss

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,28 @@
106106

107107
@mixin tab($selectors) {
108108
#{$selectors} {
109-
font-size: 18;
109+
font-size: 13;
110110

111-
TabStrip {
112-
@include colorize($scale-alternate-background: background 5%);
111+
TabStripItem,
112+
.nt-tab-strip__item {
113+
@include colorize($color: primary);
113114
}
114115

115-
TabStripItem {
116-
@include colorize($color: primary);
116+
TabStrip,
117+
.nt-tab-strip {
118+
@include colorize($scale-alternate-background: background 5%);
117119
}
118120

119-
TabContentItem {
121+
TabContentItem,
122+
.nt-tab-content__item {
120123
@include colorize($background: background);
121124
}
122125
}
126+
127+
BottomNavigation,
128+
.nt-bottom-navigation {
129+
font-size: 14;
130+
}
123131
}
124132

125133
// Skin
@@ -188,11 +196,18 @@
188196
}
189197

190198
@mixin tab-skin($selectors) {
199+
TabStrip,
200+
.nt-tab-strip {
201+
@include colorize(
202+
$highlight-color: focus
203+
);
204+
}
205+
191206
#{$selectors} {
192-
TabStripItem:active {
207+
TabStripItem:active,
208+
.nt-tab-strip__item:active {
193209
@include colorize(
194-
$color: focus,
195-
$highlight-color: focus
210+
$color: focus
196211
);
197212
}
198213
}

0 commit comments

Comments
 (0)