Commit 922247c4 authored by Scott Chen's avatar Scott Chen Committed by Commit Bot

Nux onboarding: fix precedence of styling

Make css selectors more specific so that it works both in polymer 1 and 2.

Bug: 874151
Change-Id: Ie39ea7a9a919b5d627491ba8b8d301720aa2cc32
Reviewed-on: https://chromium-review.googlesource.com/c/1287266Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Scott Chen <scottchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600898}
parent ec20114a
...@@ -6,16 +6,6 @@ ...@@ -6,16 +6,6 @@
<dom-module id="nux-email"> <dom-module id="nux-email">
<template> <template>
<style> <style>
:host-context(#viewManager):host([slot='view']) {
/* Unsets cr-view-manager's styling to make all views full-page, and
allows the content to be centered horizontally/vertically on the
page. */
bottom: initial;
left: initial;
right: initial;
top: initial;
}
.email-ask { .email-ask {
text-align: center; text-align: center;
} }
......
...@@ -10,16 +10,6 @@ ...@@ -10,16 +10,6 @@
<dom-module id="nux-google-apps"> <dom-module id="nux-google-apps">
<template> <template>
<style include="paper-button-style"> <style include="paper-button-style">
:host-context(#viewManager):host([slot='view']) {
/* Unsets cr-view-manager's styling to make all views full-page, and
allows the content to be centered horizontally/vertically on the
page. */
bottom: initial;
left: initial;
right: initial;
top: initial;
}
.apps-ask { .apps-ask {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
......
...@@ -11,16 +11,6 @@ ...@@ -11,16 +11,6 @@
<dom-module id="nux-set-as-default"> <dom-module id="nux-set-as-default">
<template> <template>
<style include="paper-button-style"> <style include="paper-button-style">
:host-context(#viewManager):host([slot='view']) {
/* Unsets cr-view-manager's styling to make all views full-page, and
allows the content to be centered horizontally/vertically on the
page. */
bottom: initial;
left: initial;
right: initial;
top: initial;
}
.container { .container {
text-align: center; text-align: center;
width: 800px; width: 800px;
......
...@@ -20,6 +20,15 @@ ...@@ -20,6 +20,15 @@
margin: 0; margin: 0;
min-height: 100vh; min-height: 100vh;
} }
#viewManager :-webkit-any(nux-email,
nux-google-apps, nux-set-as-default) {
/* Override cr-view-manager's default styling for view. */
bottom: initial;
left: initial;
right: initial;
top: initial;
}
</style> </style>
<cr-view-manager id="viewManager"> <cr-view-manager id="viewManager">
<landing-view id="step-landing" slot="view" class="active"></landing-view> <landing-view id="step-landing" slot="view" class="active"></landing-view>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment