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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
<!--
Copyright 2020 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="md-select cr-shared-style">
:host {
--cr-dialog-width: 704px;
}
/** Font styling */
p,
cr-button,
a {
font-family: 'Roboto';
}
#title {
font-family: 'Google Sans', 'Roboto';
}
#title,
#practiceTitle {
font-size: 32px;
font-weight: medium;
line-height: 40px;
margin-bottom: 16px;
}
#content {
display: block;
margin: auto;
max-height: 400px;
overflow: scroll;
text-align: start
}
#content a,
#content p,
#practiceInstructions,
#practiceBody {
font-size: 22px;
font-weight: normal;
line-height: 28px;
margin-bottom: 16px;
margin-top: 0;
text-align: start
}
#content p,
#practiceInstructions,
#practiceBody {
color: black;
}
/* Practice area */
#practiceTitle {
font-family: 'Google Sans', 'Roboto';
}
#practiceInstructions {
color: black;
}
#practiceBody {
display: flex;
flex-direction: column;
max-height: 400px;
overflow: auto;
}
#practiceContent * {
display: block;
margin-bottom: 8px;
margin-top: 8px;
text-align: start;
}
#practiceContent a {
color: rgb(26, 115, 232);
}
#startPractice {
margin-bottom: 32px;
margin-inline-start: 0;
margin-top: 16px;
}
#closePractice,
#startPractice {
font-size: 16px;
font-style: normal;
font-weight: medium;
line-height: 24px;
}
</style>
<div id="container" hidden>
<template is="dom-if" if="[[ title ]]">
<h1 id="title" tabindex="-1" aria-describedby="titleHint">
[[ getMsg(title) ]]
</h1>
<div id="titleHint" hidden>
[[ computeTitleDescription_() ]]
</div>
</template>
<div id="content">
<template id="contentTemplate" is="dom-repeat" items="[[ content ]]"
as="text">
<p tabindex="-1">[[ getMsg(text) ]]</p>
</template>
</div>
<cr-dialog id="practice">
<div id="practiceTitle" class="title" slot="title" tabindex="-1">
[[ getMsg(practiceTitle) ]]
</div>
<div id="practiceBody" class="body" slot="body" tabindex="-1">
<p id="practiceInstructions" tabindex="-1">
[[ getMsg(practiceInstructions) ]]
</p>
<div id="practiceContent"></div>
</div>
<div class="button-container" slot="button-container">
<cr-button id="closePractice" on-click="endPractice">
[[ getMsg('tutorial_practice_area_close_button') ]]
</cr-button>
</div>
</cr-dialog>
<cr-button id="startPractice" on-click="startPractice"
hidden$="[[ shouldHidePracticeButton() ]]">
[[ getMsg('tutorial_practice_area_open_button') ]]
</cr-button>
</div>
|