6 <title>Core Tooltip</title>
8 <script src="../platform/platform.js"></script>
10 <link rel="import" href="core-tooltip.html">
14 font-family: "Open Sans", sans-serif;
21 justify-content: center;
34 box-shadow: 0 0 3px #aaa inset;
39 background-color: white;
49 border: 15px solid white;
50 box-sizing: border-box;
57 vertical-align: middle;
62 text-decoration: none;
72 core-tooltip.fancy::shadow .polymer-tooltip {
74 -webkit-transition: all 300ms cubic-bezier(0,1.92,.99,1.07);
75 transition: all 300ms cubic-bezier(0,1.92,.99,1.07);
76 -webkit-transform: translate3d(0, -10px, 0);
77 transform: translate3d(0, -10px, 0);
80 core-tooltip.fancy:hover::shadow .polymer-tooltip,
81 core-tooltip.fancy:focus::shadow .polymer-tooltip {
83 -webkit-transform: translate3d(0, 0, 0);
84 transform: translate3d(0, 0, 0);
87 <style shim-shadowdom2>
88 .on /deep/ .polymer-tooltip {
96 <article onclick="this.classList.toggle('on');">
98 <em>click the page to toggle all examples...</em>
100 <section class="small">
102 <div class="example">
104 <core-tooltip label='position="left"' position="left">
105 <div class="fakebutton">|||</div>
108 <core-tooltip label='position="top"' position="top">
109 <div class="fakebutton">|||</div>
112 <core-tooltip label='position="bottom"' position="bottom">
113 <div class="fakebutton">|||</div>
116 <core-tooltip label='position="right"' position="right">
117 <div class="fakebutton">|||</div>
122 <div class="example">
124 <core-tooltip label="Fancy effect" class="fancy">
125 <img src="https://pbs.twimg.com/profile_images/378800000548263523/c110b0a4c3e3e4d3dcce1d2020f3eded.jpeg
135 <div class="example">
138 <div class="rich">Rich tooltip with HTML</div>
140 <img src="https://pbs.twimg.com/profile_images/378800000548263523/c110b0a4c3e3e4d3dcce1d2020f3eded.jpeg
141 " class="profile" style="width: 40px;margin-right: 8px;">Eric <b>Bidelman</b> - <a href="#">@ebidel</a></div>
146 <div class="example">
148 <core-tooltip label="<core-tooltip large>" large>
149 Larger tooltips for mobile
158 <div class="example">
160 <core-tooltip label="Tooltip with no arrow and always on: <core-tooltip noarrow show>" position="bottom" noarrow show>
161 <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/building.jpg" class="large">