Skip to content

Commit

Permalink
feat: support media query
Browse files Browse the repository at this point in the history
  • Loading branch information
xupea authored and xupea committed Mar 22, 2024
1 parent 43132bd commit 62972a3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "clean-csdn",
"displayName": "Clean CSDN Blog",
"version": "1.0.5",
"version": "1.0.6",
"author": "Peter Xu",
"description": "Just make csdn blog as clean as it should be",
"type": "module",
Expand Down
32 changes: 24 additions & 8 deletions src/contentScript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,31 @@ chrome.storage.sync.get(['hideSider'], function (result) {
if (hideSider) {
injectCSS(
`aside {
display: none !important;
}
display: none !important;
}
@media screen and (min-width: 1380px) {
.nodata .container {
width: unset !important;
}
}
`,
@media screen and (min-width: 1380px) {
.nodata .container {
width: unset !important;
}
}
@media (min-width: 1320px) and (max-width:1380px) {
.nodata .container {
width: unset !important;
}
}
@media screen and (max-width: 1320px) {
.nodata .container {
width: unset !important;
}
}
.left-toolbox {
left: unset !important;
}
`,
)
}
})
Expand Down
11 changes: 0 additions & 11 deletions src/contentScript/overrides.css

This file was deleted.

0 comments on commit 62972a3

Please sign in to comment.