Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
make responsive on data-color-mode
  • Loading branch information
landmaster135 committed Jun 11, 2022
commit e0e6b319c059cc6ede09c9cc1c99751d1ca8f5f1
21 changes: 18 additions & 3 deletions markdown-toc-code/css/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,35 @@
padding: 20px;
overflow: auto;
overflow-x: hidden;
background-color: #fafbfc;
/* background-color: #fafbfc; */
/* border: 1px solid #d1d5da; */
border-right-width: 0;
}

.div_right_bar {
/* width: 5px; */
height: 100%;
background-color: #fafbfc;
/* background-color: #fafbfc; */
cursor: col-resize;
float: left;
border-right: 1px solid #e1e4e8;
}

:root[data-color-mode="dark"] .div_toc {
background-color: #141b20;
}

:root[data-color-mode="dark"] .div_right_bar {
background-color: #141b20;
}

:root[data-color-mode="light"] .div_toc {
background-color: #fafbfc;
}

:root[data-color-mode="light"] .div_right_bar {
background-color: #fafbfc;
}

/* 这个地方 */

Expand Down Expand Up @@ -113,4 +128,4 @@ body {
height: 50px;
background-color: #9f9f9f;
-webkit-border-radius: 4px;
}
}