|
1 | | -<style> |
2 | | - .SiteRibbon { |
3 | | - position: relative; |
4 | | - padding: 20px 0 18px 0; |
5 | | - font-family: FaktSlabPro,Arial,Helvetica,sans-serif; |
6 | | - font-weight: 300; |
7 | | - font-size: 16px; |
8 | | - line-height: 1.2; |
9 | | - text-align: center; |
10 | | - color: #000; |
11 | | - background-color: #ffda3f; |
12 | | - } |
13 | | - |
14 | | - .SiteRibbon.is-hidden { |
15 | | - display: none; |
16 | | - } |
17 | | - |
18 | | - .SiteRibbon .container { |
19 | | - position: relative; |
20 | | - } |
21 | | - .SiteRibbon-text, |
22 | | - .SiteRibbon-CTA { |
23 | | - display: inline-block; |
24 | | - vertical-align: middle; |
25 | | - } |
26 | | - |
27 | | - .SiteRibbon-CTA a { |
28 | | - cursor: pointer; |
29 | | - } |
30 | | - |
31 | | - .SiteRibbon-x { |
32 | | - position: absolute; |
33 | | - top: 50%; |
34 | | - right: 15px; |
35 | | - width: 44px; |
36 | | - padding: 0; |
37 | | - border: 0; |
38 | | - font-family: FaktSlabPro,Arial,Helvetica,sans-serif; |
39 | | - font-weight: 300; |
40 | | - font-size: 30px; |
41 | | - line-height: 1.2; |
42 | | - background: none; |
43 | | - cursor: pointer; |
44 | | - outline: 0; |
45 | | - opacity: 1; |
46 | | - margin-top: -.5em; |
47 | | - } |
48 | | - |
49 | | - .SiteRibbon-x:hover { |
50 | | - opacity: .7; |
51 | | - } |
52 | | - |
53 | | - @media (min-width: 992px) { |
54 | | - font-size: 20px; |
55 | | - } |
56 | | -</style> |
57 | | - |
58 | | -<div class="SiteRibbon is-hidden" id="announcement"> |
59 | | - <div class="container"> |
60 | | - <div class="u-pr5"> |
61 | | - <span class="SiteRibbon-text u-fs20"> |
62 | | - Say ‘no’ to Ugly Apps. Modern UI with new React, Angular and Vue components. |
63 | | - <a href="https://www.telerik.com/support/whats-new/kendo-ui?utm_medium=telerik&utm_source=yellow-ribbon&utm_campaign=kendo-ui-awareness-r118release"><strong>See our New Release!</strong></a> |
64 | | - </span> |
65 | | - </div> |
66 | | - <button type="button" class="SiteRibbon-x">×</button> |
67 | | - </div> |
68 | | -</div> |
69 | | - |
70 | | -{% javascript "ribbon" %} |
71 | | - |
| 1 | +<div class="SiteRibbon js-r1dt" style="display:none;"><div class="container"> |
| 2 | +<span class="SiteRibbon-text"> |
| 3 | + {{page.announcement}} |
| 4 | +</span></div></div> |
72 | 5 | <script> |
73 | | - $(".SiteRibbon-x") |
74 | | - .click(function() { |
75 | | - $(document.documentElement).addClass("no-announcement"); |
76 | | - $(this).closest(".SiteRibbon").slideUp(); |
77 | | - }); |
78 | | - $(document.documentElement).toggleClass("no-announcement", $(".SiteRibbon").hasClass("is-hidden")); |
| 6 | + $(document).ready(function(){ |
| 7 | + $('.js-r1dt').insertBefore($('#js-tlrk-nav')).end().show(); |
| 8 | + }); |
79 | 9 | </script> |
0 commit comments