-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
touchpad_scroll.html
96 lines (89 loc) · 2.67 KB
/
touchpad_scroll.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!--
Copyright 2023 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<style include="oobe-dialog-host-styles">
#scrollArea {
display: flex;
max-height: 324px;
height: 1290px;
overflow-y: scroll;
overflow-x: hidden;
position: relative;
box-sizing: border-box;
border: 1px solid var(--cros-sys-system_border);
border-radius: 16px;
}
#toggleElementBox {
align-items: center;
display: flex;
flex-direction: row;
margin-top: 25px;
}
#areaText {
color: var(--cros-text-color-primary);
left: 20px;
position: sticky;
top: 20px;
z-index : 1;
}
#toggleTitle {
color: var(--cros-text-color-primary);
}
.illustration-jelly {
width: 100%;
height: auto;
position: absolute;
}
@media screen and (max-width: 700px) {
#scrollArea {
max-height: 250px;
}
}
</style>
<oobe-adaptive-dialog id="touchpadScrolDialogue" role="presentation"
for-step="overview">
<iron-icon slot="icon" icon="oobe-32:scroll-direction"></iron-icon>
<h1 slot="title" id="touchpad-scroll-title">
[[i18nDynamic(locale, 'TouchpadScrollScreenTitle')]]
</h1>
<div slot="subtitle" id="touchpad-scroll-subtitle">
[[i18nDynamic(locale, 'TouchpadScrollScreenDescription')]]
</div>
<div slot="content" class="layout vertical center-justified">
<div id="scrollArea" aria-hidden="true">
<div id="areaText">
[[i18nDynamic(locale, 'TouchpadScrollAreaDescription')]]
</div>
<iron-icon id="iconArea" icon="oobe-illos:touchpad-scroll-illo"
class="illustration-jelly">
</iron-icon>
</div>
<div id="toggleElementBox" class="layout horizontal">
<div class="flex layout vertical center-justified">
<div id="toggleTitle" aria-hidden="true">
[[i18nDynamic(locale, 'TouchpadScrollToggleTitle')]]
</div>
<div id="toggleDesc" aria-hidden="true">
[[i18nDynamic(locale, 'TouchpadScrollToggleDescription')]]
</div>
</div>
<cr-toggle id="updateToggle" checked="{{isReverseScrolling_}}"
role="checkbox"
aria-checked="[[isReverseScrolling_]]"
aria-label$="[[getAriaLabelToggleButtons_(locale,
'TouchpadScrollToggleTitle' ,
'TouchpadScrollToggleDescription')]]">
</cr-toggle>
</div>
</div>
<div slot="bottom-buttons">
<oobe-text-button id="returnButton" text-key="choobeReturnButton"
hidden="[[!shouldShowReturn_]]" on-click="onReturnClicked_">
</oobe-text-button>
<oobe-next-button id="nextButton" class="focus-on-show"
on-click="onNextClicked_">
</oobe-next-button>
</div>
</oobe-adaptive-dialog>