refactor(themes): remove the outer-content class from core (#16589)

BREAKING CHANGES

The outer-content class has been removed in favor of setting the color in your app instead:

```
.outer-content {
  --background: #f2f2f2;
 }
```
This commit is contained in:
Brandy Carney
2018-12-04 16:38:50 -05:00
committed by GitHub
parent 87b25960c4
commit 7ba94900bb
52 changed files with 66 additions and 214 deletions

View File

@ -32,12 +32,6 @@
<ion-button expand="block" id="cssClass" onclick="presentWithCssClass()">Custom CSS Class</ion-button> <ion-button expand="block" id="cssClass" onclick="presentWithCssClass()">Custom CSS Class</ion-button>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -32,12 +32,6 @@
<ion-button id="checkbox" expand="block" onclick="presentAlertCheckbox()">Checkbox</ion-button> <ion-button id="checkbox" expand="block" onclick="presentAlertCheckbox()">Checkbox</ion-button>
<ion-button expand="block" onclick="presentWithCssClass()">CssClass</ion-button> <ion-button expand="block" onclick="presentWithCssClass()">CssClass</ion-button>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -38,12 +38,6 @@
<ion-label>Item Avatar</ion-label> <ion-label>Item Avatar</ion-label>
</ion-item> </ion-item>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -112,12 +112,6 @@
</ion-item> </ion-item>
</ion-list> </ion-list>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -81,12 +81,6 @@
</p> </p>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -68,10 +68,6 @@
</ion-content> </ion-content>
<style> <style>
ion-toolbar {
--background: white;
}
.content { .content {
background: #e5e5e5; background: #e5e5e5;
} }

View File

@ -80,12 +80,6 @@
<ion-checkbox slot="end" disabled></ion-checkbox> <ion-checkbox slot="end" disabled></ion-checkbox>
</ion-item> </ion-item>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -92,12 +92,6 @@
</ion-chip> </ion-chip>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -100,10 +100,6 @@
</script> </script>
<style> <style>
ion-toolbar {
--background: white;
}
ion-header.animation, ion-header.animation,
ion-footer.animation, ion-footer.animation,
ion-content.animation { ion-content.animation {

View File

@ -84,6 +84,10 @@
height: 100%; height: 100%;
} }
.outer-content {
--background: #f2f2f2;
}
.custom-color { .custom-color {
--background: blue; --background: blue;
--color: white; --color: white;

View File

@ -141,6 +141,12 @@
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
<script> <script>
var yearValuesArray = [2020, 2016, 2008, 2004, 2000, 1996]; var yearValuesArray = [2020, 2016, 2008, 2004, 2000, 1996];
var customYearValues = document.getElementById('customYearValues'); var customYearValues = document.getElementById('customYearValues');

View File

@ -127,8 +127,8 @@
</ion-content> </ion-content>
<style> <style>
ion-toolbar { .outer-content {
--background: white; --background: #f2f2f2;
} }
</style> </style>
@ -173,6 +173,7 @@
} }
</script> </script>
</ion-app> </ion-app>
</body> </body>
</html> </html>

View File

@ -150,10 +150,6 @@
</ion-footer> </ion-footer>
<style> <style>
ion-toolbar {
--background: white;
}
f { f {
display: block; display: block;
margin: 15px auto; margin: 15px auto;

View File

@ -284,10 +284,6 @@
</ion-content> </ion-content>
<style> <style>
ion-toolbar {
--background: white;
}
.grid-demo ion-col div { .grid-demo ion-col div {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px solid #ddd; border: 1px solid #ddd;

View File

@ -176,9 +176,6 @@
<style> <style>
ion-toolbar {
--background: white;
}
/*to ensure ng css encapsulation doesn't mess with icon attributes*/ /*to ensure ng css encapsulation doesn't mess with icon attributes*/
code { code {

View File

@ -34,12 +34,6 @@
</ion-infinite-scroll> </ion-infinite-scroll>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -103,12 +103,6 @@
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
<script> <script>
function toggleBoolean(id, prop) { function toggleBoolean(id, prop) {
var el = document.getElementById(id); var el = document.getElementById(id);

View File

@ -146,8 +146,8 @@
</ion-content> </ion-content>
<style> <style>
ion-toolbar { .outer-content {
--background: white; --background: #f2f2f2;
} }
img { img {

View File

@ -298,10 +298,6 @@
</ion-content> </ion-content>
<style> <style>
ion-toolbar {
--background: white;
}
.download-spinner { .download-spinner {
display: none; display: none;
} }

View File

@ -142,6 +142,12 @@
</ion-item> </ion-item>
</ion-item-group> </ion-item-group>
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -115,12 +115,6 @@
<ion-title>Footer</ion-title> <ion-title>Footer</ion-title>
</ion-toolbar> </ion-toolbar>
</ion-footer> </ion-footer>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -120,6 +120,12 @@
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -43,12 +43,6 @@
</ion-item> </ion-item>
</ion-list> </ion-list>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -41,12 +41,6 @@
<ion-item>Halo</ion-item> <ion-item>Halo</ion-item>
</ion-list> </ion-list>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -25,12 +25,6 @@
</p> </p>
</ion-content> </ion-content>
<ion-modal-controller></ion-modal-controller> <ion-modal-controller></ion-modal-controller>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -16,10 +16,6 @@
</ion-app> </ion-app>
<style> <style>
ion-toolbar {
--background: white;
}
f { f {
display: block; display: block;
margin: 15px auto; margin: 15px auto;

View File

@ -16,10 +16,6 @@
</ion-app> </ion-app>
<style> <style>
ion-toolbar {
--background: white;
}
f { f {
display: block; display: block;
margin: 15px auto; margin: 15px auto;

View File

@ -14,11 +14,6 @@
<ion-app> <ion-app>
<ion-nav root="page-one"></ion-nav> <ion-nav root="page-one"></ion-nav>
</ion-app> </ion-app>
<style>
ion-toolbar {
--background: white;
}
</style>
</body> </body>
<script> <script>

View File

@ -75,11 +75,6 @@
<ion-app> <ion-app>
<ion-nav root="page-one"></ion-nav> <ion-nav root="page-one"></ion-nav>
</ion-app> </ion-app>
<style>
ion-toolbar {
--background: white;
}
</style>
</body> </body>
</html> </html>

View File

@ -131,12 +131,6 @@
</ion-item> </ion-item>
</ion-list> </ion-list>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -12,8 +12,6 @@
<body> <body>
<ion-app> <ion-app>
<ion-header> <ion-header>
<ion-toolbar> <ion-toolbar>
<ion-title>Radio Group - Basic</ion-title> <ion-title>Radio Group - Basic</ion-title>
@ -57,6 +55,12 @@
<ion-button onClick="toggleDisabled()">Toggle Disabled</ion-button> <ion-button onClick="toggleDisabled()">Toggle Disabled</ion-button>
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
<script> <script>
var dynamicDisabled = document.getElementById('dynamicDisabled'); var dynamicDisabled = document.getElementById('dynamicDisabled');
@ -64,7 +68,6 @@
dynamicDisabled.disabled = !dynamicDisabled.disabled; dynamicDisabled.disabled = !dynamicDisabled.disabled;
} }
</script> </script>
</ion-app> </ion-app>
</body> </body>

View File

@ -12,8 +12,6 @@
<body> <body>
<ion-app> <ion-app>
<ion-header> <ion-header>
<ion-toolbar> <ion-toolbar>
<ion-title>Radio Group - Form</ion-title> <ion-title>Radio Group - Form</ion-title>
@ -79,6 +77,11 @@
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
<script> <script>
var changes = 0; var changes = 0;

View File

@ -56,8 +56,8 @@
</ion-content> </ion-content>
<style> <style>
ion-toolbar { .outer-content {
--background: white; --background: #f2f2f2;
} }
</style> </style>

View File

@ -12,7 +12,6 @@
<body> <body>
<ion-app> <ion-app>
<ion-header> <ion-header>
<ion-toolbar> <ion-toolbar>
<ion-title>Radio - Basic</ion-title> <ion-title>Radio - Basic</ion-title>
@ -187,6 +186,10 @@
</script> </script>
<style> <style>
.outer-content {
--background: #f2f2f2;
}
.radio-test pre { .radio-test pre {
background: #f6f6f6; background: #f6f6f6;
border: 1px solid #ddd; border: 1px solid #ddd;

View File

@ -181,8 +181,8 @@
</script> </script>
<style> <style>
ion-toolbar { .outer-content {
--background: white; --background: #f2f2f2;
} }
.radio-test pre { .radio-test pre {

View File

@ -104,12 +104,6 @@
</ion-app> </ion-app>
<style>
ion-toolbar {
--background: white;
}
</style>
<script> <script>
var ranges = ['progressValue', 'brightnessValue', 'contrastValue']; var ranges = ['progressValue', 'brightnessValue', 'contrastValue'];

View File

@ -26,12 +26,6 @@
<ion-list id="list"></ion-list> <ion-list id="list"></ion-list>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script type="text/javascript" src="preview/data.js"></script> <script type="text/javascript" src="preview/data.js"></script>

View File

@ -108,12 +108,6 @@
</ion-reorder-group> </ion-reorder-group>
</ion-list> </ion-list>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>

View File

@ -59,12 +59,6 @@
<ion-ripple-effect></ion-ripple-effect> <ion-ripple-effect></ion-ripple-effect>
</div> </div>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
<script> <script>
function blockClicked() { function blockClicked() {

View File

@ -140,10 +140,6 @@
</ion-app> </ion-app>
<style> <style>
ion-toolbar {
--background: white;
}
f { f {
display: block; display: block;
margin: 15px auto; margin: 15px auto;

View File

@ -115,13 +115,6 @@
} }
</script> </script>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -272,6 +272,12 @@
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
<script> <script>
var pets = document.getElementById('pets'); var pets = document.getElementById('pets');
pets.value = ['bird', 'dog']; pets.value = ['bird', 'dog'];

View File

@ -119,6 +119,12 @@
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
<script> <script>
var toppings = document.getElementById('toppings'); var toppings = document.getElementById('toppings');
toppings.value = ['bacon', 'xcheese']; toppings.value = ['bacon', 'xcheese'];

View File

@ -118,8 +118,8 @@
</ion-content> </ion-content>
<style> <style>
ion-toolbar { .outer-content {
--background: white; --background: #f2f2f2;
} }
</style> </style>

View File

@ -160,6 +160,12 @@
</p> </p>
</ion-content> </ion-content>
<style>
.outer-content {
--background: #f2f2f2;
}
</style>
<script> <script>
let selects = document.querySelectorAll('ion-select'); let selects = document.querySelectorAll('ion-select');
selects.forEach(function (select) { selects.forEach(function (select) {

View File

@ -58,12 +58,6 @@
</ion-item> </ion-item>
</ion-list> </ion-list>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -76,12 +76,6 @@
</ion-tab-button> </ion-tab-button>
</ion-tab-bar> </ion-tab-bar>
</ion-tabs> </ion-tabs>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -72,10 +72,6 @@
</ion-app> </ion-app>
<style> <style>
ion-toolbar {
--background: white;
}
.color-purple { .color-purple {
color: purple; color: purple;
} }

View File

@ -95,12 +95,6 @@
</div> </div>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
<script> <script>
function toggleBoolean(id, prop) { function toggleBoolean(id, prop) {
var el = document.getElementById(id); var el = document.getElementById(id);

View File

@ -38,12 +38,6 @@
<ion-label>Wide Thumbnail</ion-label> <ion-label>Wide Thumbnail</ion-label>
</ion-item> </ion-item>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
</ion-app> </ion-app>
</body> </body>

View File

@ -84,10 +84,6 @@
</script> </script>
<style> <style>
ion-toolbar {
--background: white;
}
f { f {
display: block; display: block;
background: blue; background: blue;

View File

@ -79,12 +79,6 @@
</p> </p>
</ion-content> </ion-content>
<style>
ion-toolbar {
--background: white;
}
</style>
<script> <script>
function printForm(ev) { function printForm(ev) {