Skip to content

Commit

Permalink
Remove shadows in blogger styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 27, 2024
1 parent 7d4e05d commit 0f486bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/css/blogger-tweaks/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
#sidebar {
width: 340px;
margin-top: -30px; //leave simple black bar below header
box-shadow: none;
.items {
.item {
box-shadow: none;
transition: 400ms background-color;
&:hover {
background-color: white;
}
h3.title {
font-size: 1.0rem;
}
Expand Down Expand Up @@ -59,6 +65,7 @@ body >.viewitem-panel {
}
.header-drawer {
top: 35px;
box-shadow: none;
#views.menu {
.HideMe(); //remove ridiculous view format drop-down
}
Expand Down
6 changes: 3 additions & 3 deletions src/js/lib-x.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,9 +988,9 @@ const libXExtra = {
libX.ui.normalize();
globalThis.hljsEnhance.setup();
};
const delayed1 = () => globalThis.setTimeout(onArticleLoad, 800); //hack to let page load
const delayed2 = () => globalThis.setTimeout(onArticleLoad, 2000); //2nd try to make sure
globalThis.blogger.ui().addListener('updated', () => (delayed1(), delayed2()));
const delayed = (delay: number) => globalThis.setTimeout(onArticleLoad, delay);
globalThis.blogger.ui().addListener('updated', () => delayed(800)); //hack to let page load
globalThis.blogger.ui().addListener('updated', () => delayed(2000)); //2nd try to make sure
},
gTags(scriptTag: HTMLScriptElement): void {
// Google Tracking
Expand Down

0 comments on commit 0f486bc

Please sign in to comment.