style: clean

This commit is contained in:
Fechin committed 2024-07-25 11:27:17 +08:00
1 parent 7a612cfc66
commit 8e2e54fc89
4 files changed
-152

No files matched your search

@@ -1,71 +0,0 @@
#carbonads {
display: flex;
position: fixed;
bottom: 50px;
right: 20px;
max-width: 315px;
background-color: hsl(0, 0%, 98%);
box-shadow:
0 6px 8px rgba(102, 119, 136, 0.03),
0 1px 2px rgba(102, 119, 136, 0.3);
animation: scale-up-center 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
@apply z-20 rounded-lg dark:bg-slate-800 dark:shadow-3xl;
}
#carbonads > span {
display: block;
position: relative;
padding: 6px;
background-color: #fff;
@apply rounded-lg dark:bg-slate-800;
}
#carbonads .carbon-wrap {
display: flex;
}
#carbonads .carbon-img {
margin-right: 10px;
line-height: 1;
}
#carbonads .carbon-img > img {
@apply rounded-lg;
}
#carbonads .carbon-text {
margin-bottom: 12px;
font-size: 12px;
line-height: 1.45;
text-decoration: none;
color: #637381;
@apply dark:text-slate-300;
}
#carbonads .carbon-poweredby {
position: absolute;
bottom: 10px;
left: 152px;
font-size: 8px;
font-weight: 500;
line-height: 1;
text-decoration: none;
letter-spacing: 0.5px;
text-transform: uppercase;
color: #c5cdd0;
@apply dark:text-slate-600;
}
@keyframes scale-up-center {
0% {
opacity: 0;
-webkit-transform: scale(0.9);
transform: scale(0.9);
}
100% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}
@@ -1,51 +0,0 @@
/**
// template: `<div class="native-fixed">
// <a href="##link##" rel="sponsored noopener" target="_blank">
// <div class="native-sponsor">Sponsor</div>
// <div class="native-text">##company## — ##description##</div>
// </a>
// </div>`
*/
#bsa_custom {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
sans-serif;
font-size: 12px;
}
#bsa_custom .native-fixed {
box-shadow: inset 0 1px 0 hsla(0, 0%, 0%, 0.075);
position: fixed;
inset: auto 0 0 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
@apply bg-emerald-500 dark:bg-slate-700;
}
#bsa_custom a {
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
/*padding: 1.75ex 2ch;*/
color: #ffffff;
}
#bsa_custom .native-sponsor {
border-radius: 0.5ex;
margin-right: 1ch;
line-height: 1;
/*padding: 1ex 1ch;*/
font-weight: 600;
font-size: 0.75em;
text-transform: uppercase;
color: #2db67c;
@apply bg-white dark:bg-slate-900;
}
#bsa_custom .native-text {
font-size: 1em;
line-height: 1.3;
}
@@ -1,28 +0,0 @@
/**
Utils.externalLibrary(Utils.LIBRARY.bsa).then(() => {
let closeBtnHTML = '<a class="absolute -top-1.5 -right-1.5 h-5 w-5 z-50 inline-flex justify-center items-center rounded-full cursor-pointer bg-white dark:bg-slate-900" onclick="javascript:this.parentElement.remove();" style="animation: scale-up-center 0.8s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;"><i class="icon icon-close text-sm text-slate-500 dark:text-slate-300"></i></a>';
if (typeof _bsa !== 'undefined' && _bsa) {
const bsa_custom_div = document.createElement("div");
bsa_custom_div["className"] = "flex fixed right-6 bottom-16 z-30"
bsa_custom_div["id"] = "bsa_custom"
bsa_custom_div["style"] = "max-width:330px;"
document.body.appendChild(bsa_custom_div);
// _bsa.init('custom', 'CVADC53U', 'placement:demo', {
_bsa.init('custom', 'CESILKQI', 'placement:quickrefme', {
target: '#bsa_custom',
template: `<a href="##link##" class="flex items-center z-30" style="animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;">
<div class="p-2 bg-white dark:bg-slate-800 flex items-center space-x-3 rounded-lg shadow dark:shadow-3xl cursor-pointer">
<div class="flex items-center rounded-lg h-24 w-32 p-2" style="background-color: ##backgroundColor##">
<img src="##logo##" alt="ads via Carbon"/>
</div>
<div class="w-40">
<p class="text-gray-600 dark:text-slate-300 text-xs font-light">##description##</p>
<p class="text-slate-400 dark:text-slate-600 mt-2 uppercase" style="font-size: 8px">Sponsored by ##company##</p>
</div>
</div>
${closeBtnHTML}
</a>`
});
}
});
*/
-2
View File
@@ -14,8 +14,6 @@
@import "components/search.css";
@import "components/pagination.css";
@import "components/common.css";
@import "components/bsa_carbon.css";
@import "components/bsa_custom.css";
html {