|
| 1 | +/* Import theme rules for Windows and include additional core rules so Windows gets the same |
| 2 | + look as other platforms without modifying the NativeScript runtime. */ |
| 3 | +@import '../../../node_modules/nativescript-theme-core/css/core.light.windows.css'; |
| 4 | + |
| 5 | +/* Only include the Windows-specific theme file here. Importing iOS/Android theme |
| 6 | + files in the Windows platform CSS can introduce conflicting rules and |
| 7 | + unexpected colors; platform-specific CSS should be kept separate. */ |
| 8 | + |
| 9 | +/* Fallbacks / platform-specific tweaks for Windows host environments */ |
| 10 | + |
| 11 | +/* Ensure pages default to white background like the theme */ |
| 12 | +.page, Page { |
| 13 | + background-color: #fff; |
| 14 | +} |
| 15 | + |
| 16 | +/* Visibility helper used across the theme */ |
| 17 | +.invisible { |
| 18 | + visibility: collapse; |
| 19 | +} |
| 20 | + |
| 21 | +/* Simple shadow/gradient fallbacks — some Windows hosts may not fully support composition */ |
| 22 | +.shadow { |
| 23 | + box-shadow: 0 2 6 rgba(0,0,0,0.2); |
| 24 | + border-radius: 4; |
| 25 | +} |
| 26 | +.gradient { |
| 27 | + background: linear-gradient(to bottom, #f12711, #f5af19); |
| 28 | +} |
| 29 | + |
| 30 | +/* Make list items readable on Windows hosts */ |
| 31 | +.list-group .list-group-item { |
| 32 | + padding: 16; |
| 33 | + color: #212121; |
| 34 | +} |
| 35 | + |
| 36 | +/* TabView / SegmentedBar defaults */ |
| 37 | +.tab-view { |
| 38 | + selected-color: #30bcff; |
| 39 | + tabs-background-color: #fff; |
| 40 | +} |
| 41 | +.tab-view .tab-view-item { |
| 42 | + background-color: #fff; |
| 43 | +} |
| 44 | + |
| 45 | +/* Ensure ScrollView / ListView backgrounds don't hide content */ |
| 46 | +ScrollView, ListView, Repeater { |
| 47 | + background-color: transparent; |
| 48 | +} |
| 49 | + |
| 50 | +/* Make sure controls have a sensible default enabled/disabled appearance */ |
| 51 | +Button[isEnabled=false], TextField[isEnabled=false], TextView[isEnabled=false] { |
| 52 | + opacity: 0.6; |
| 53 | +} |
0 commit comments