1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF unknown KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export const SpAdvertisementHtml = `<style> 17 #sp-advertisement { 18 background-color:#fff; 19 display:none; 20 max-width: 400px; 21 border-radius: 5px; 22 border:1px solid galy; 23 box-shadow: 0px 0px 10px #d9d9d9; 24 cursor: pointer; 25 padding:15px 5px 5px 5px; 26 font-family: "HarmonyOS Sans SC", "Arial", sans-serif; 27 } 28 #close { 29 position:absolute; 30 right:0px; 31 top:0px; 32 padding:1px 2px; 33 border-top-right-radius:5px; 34 color:#999; 35 } 36 #close:hover { 37 background-color:#999; 38 color:#666; 39 font-weight:bold; 40 } 41 #notice { 42 color:red; 43 word-wrap: break-word; 44 overflow-wrap: break-word; 45 line-height:30px; 46 padding-right:15px; 47 } 48 </style> 49 <div class="sp-advertisement" id="sp-advertisement"> 50 <lit-icon name="close" size="18px" id = "close"></lit-icon> 51 <div id="notice"></div> 52 </div> 53 `;