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 @@
<dom-module id="nux-email">
<template>
<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 {
text-align: center;
}
......
......@@ -10,16 +10,6 @@
<dom-module id="nux-google-apps">
<template>
<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 {
margin-left: auto;
margin-right: auto;
......
......@@ -11,16 +11,6 @@
<dom-module id="nux-set-as-default">
<template>
<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 {
text-align: center;
width: 800px;
......
......@@ -20,6 +20,15 @@
margin: 0;
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>
<cr-view-manager id="viewManager">
<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