Skip to content

Commit fbb2b36

Browse files
minshalljsamthor
authored andcommitted
portal: hiding links, the offline mode indicator, and "rotate to landscape" (#1960)
* portal: hide offline indicator * portal: hide landscape rotation message * portal: hide translations' "improve google maps" link
1 parent 92b342c commit fbb2b36

6 files changed

Lines changed: 26 additions & 2 deletions

File tree

elements/santa-chrome/santa-chrome.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<template>
3838
<style include="santa-chrome_module">
3939
:host([mode="portal"]) .links,
40+
:host([mode="portal"]) #offline,
4041
:host([mode="portal"]) .lang {
4142
display: none !important;
4243
}

elements/santacontroller/santa-app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@
356356

357357
<translations-scene route="translations" icon="1f4e2"
358358
path$="scenes/translations/translations-scene_[[language]].html"
359+
mode$="[[mode]]"
359360
header-color="#558b2f"
360361
feature-color="#83ce00"
361362
loading-bg-color="#8fd7f7"

scenes/codeboogie/codeboogie-scene_en.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
:host([mode="portal"]) .footer-promo {
3030
display: none !important;
3131
}
32+
:host([mode="portal"]) .force-rotate.landscape {
33+
display: none !important;
34+
}
35+
:host([mode="portal"]) .force-rotate.portrait {
36+
display: none !important;
37+
}
3238
</style>
3339
<div id="module-codeboogie">
3440
<iframe src="about:blank" scrolling="no" width="100%" height="100%" frameBorder="0" data-codeboogie-frame></iframe>

scenes/codelab/codelab-scene_en.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
:host([mode="portal"]) .footer-promo {
3030
display: none !important;
3131
}
32+
:host([mode="portal"]) .force-rotate.portrait {
33+
display: none !important;
34+
}
35+
:host([mode="portal"]) .force-rotate.landscape {
36+
display: none !important;
37+
}
3238
</style>
3339
<div id="module-codelab">
3440
<iframe src="about:blank" scrolling="no" width="100%" height="100%" frameBorder="0" data-computer-love></iframe>

scenes/seasonofgiving/seasonofgiving-scene_en.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
pointer-events:none;
3838
cursor: default;
3939
}
40+
:host([mode="portal"]) .force-rotate.portrait {
41+
display: none !important;
42+
}
43+
:host([mode="portal"]) .force-rotate.landscape {
44+
display: none !important;
45+
}
4046
</style>
4147

4248
<div id="module-seasonofgiving">

scenes/translations/translations-scene_en.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
-->
2424
<dom-module id="translations-scene">
2525
<template>
26-
<style include="translations-scene_module"></style>
26+
<style include="translations-scene_module">
27+
:host([mode="portal"]) #improve_google_translate {
28+
display: none !important;
29+
}
30+
</style>
2731
<div id="module-translations">
2832
<div class="i18n-language-list">
2933
<div id="ar_language_name"><i18n-msg msgid="ar_language_name">PLACEHOLDER_i18n</i18n-msg></div>
@@ -147,7 +151,7 @@
147151
</div>
148152
<div class="desk-content__button js-btn-next"><svg xmlns="http://www.w3.org/2000/svg" width="66.3" height="66.1" viewBox="0 0 66.3 66.1"><ellipse id="btn-next-shadow" opacity=".35" fill="#6B450E" cx="33.1" cy="36.9" rx="33.1" ry="29.2"/><circle id="btn-next-bottom" fill="#6A1B9A" cx="30" cy="33.4" r="27.4"/><g id="btn-next-top"><circle fill="#8E24AA" cx="30" cy="27.4" r="27.4"/><path fill="#6A1B9A" d="M15.3 33.2V17.1l16 8.8-1.4 1.5zM33.4 33.2V17.1l15.9 8.8-1.4 1.5z"/><path fill="#fff" d="M15.3 35.5V19.4l14.6 8zM33.4 35.5V19.4l14.5 8z"/></g></svg>
149153
</div>
150-
</div><a href="https://translate.google.com/community" class="desk-content__link"><i18n-msg msgid="improve_google_translate">PLACEHOLDER_i18n</i18n-msg></a>
154+
</div><a href="https://translate.google.com/community" id="improve_google_translate" class="desk-content__link"><i18n-msg msgid="improve_google_translate">PLACEHOLDER_i18n</i18n-msg></a>
151155
</div>
152156
</div>
153157
</div>

0 commit comments

Comments
 (0)