|
/************************************************* |
|
** _______ __ __ ** |
|
** | | |.-----.| |_|__|.-----.-----. ** |
|
** | || _ || _| || _ | | ** |
|
** |__|____||_____||____|__||_____|__|__| ** |
|
** _______ __ ** |
|
** |_ _|.--.--.--.-----.---.-.| |--.-----. ** |
|
** | | | | | | -__| _ || <|__ --| ** |
|
** |___| |________|_____|___._||__|__|_____| ** |
|
**************************************************/ |
|
/* These are the CSS tweaks I used to modify notion.so's browser interface when |
|
the extension `notion enhanced` still worked. Since it seems done, I don't |
|
foresee this being useful but will keep it around for now just in case it is |
|
useful to someone or notion enhancer comes back from the dead */ |
|
/* -------------------------------------------------------------------------- */ |
|
/* --------------------------- Smaller Page Icons --------------------------- */ |
|
/* -------------------------------------------------------------------------- */ |
|
* |
|
make |
|
icon |
|
relative |
|
to |
|
title |
|
container |
|
*/ |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child { |
|
padding-top: 24px; |
|
position: relative; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/* size icon */ |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-record-icon[style*="height: 140px"], |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-record-icon[style*="height: 78px"] { |
|
width: 24px !important; |
|
height: 24px !important; |
|
} |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-record-icon[style*="height: 140px"] |
|
*, |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-record-icon[style*="height: 78px"] |
|
* { |
|
width: 100% !important; |
|
height: 100% !important; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/* position icon */ |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-record-icon[style*="height: 140px"], |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-record-icon[style*="height: 78px"] { |
|
margin-top: 16px !important; |
|
margin-right: 8px !important; |
|
float: left; |
|
} |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-page-controls { |
|
position: absolute !important; |
|
top: -5px; |
|
} |
|
/* emojis */ |
|
.notion-scroller[style*="display: flex; flex-direction: column"] |
|
> [style$="z-index: 3; flex-shrink: 0;"] |
|
> :first-child |
|
> :first-child |
|
.notion-record-icon |
|
[style*="font-size: 78px"] { |
|
font-size: 24px !important; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/* remove extra space at top when there's no icon or cover */ |
|
.notion-page-controls[style*="margin-top: 64px"], |
|
.notion-page-controls[style*="margin-top: 24px"] { |
|
margin-top: 8px !important; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/*Narrow Columns*/ |
|
|
|
[class*=" notion-collection_view"][data-block-id="TABLE_ID"] |
|
> div |
|
> div |
|
> :nth-child(COLUMN_NUMBER) |
|
> div |
|
> .notion-table-view-header-cell, |
|
[class*=" notion-collection_view"][data-block-id="TABLE_ID"] |
|
> :nth-child(3) |
|
> div |
|
> :nth-child(COLUMN_NUMBER) { |
|
width: 24px !important; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/* -------------------------- Minified Bread Crumbs ------------------------- */ |
|
/* -------------------------------------------------------------------------- */ |
|
/* remove icon margin */ |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
[role="button"] |
|
.notion-record-icon { |
|
margin-right: 0 !important; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/* position page title */ |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
.notion-selectable:hover { |
|
z-index: 999; |
|
} |
|
.notion-topbar .notranslate[style*="margin-right: 8px"] [role="button"] { |
|
position: relative; |
|
} |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
[role="button"] |
|
.notion-record-icon |
|
+ div { |
|
background: var(--theme--ui_interactive-active); |
|
height: 24px; |
|
padding: 0 6px; |
|
border-radius: 3px; |
|
position: absolute; |
|
left: 26px; |
|
display: flex; |
|
align-items: center; |
|
pointer-events: none; |
|
} |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
[role="button"] |
|
.notion-record-icon |
|
+ div { |
|
transition: opacity 20ms ease-in, max-width 300ms ease-in !important; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/* slide out title on hover */ |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
[role="button"]:not(:hover) |
|
.notion-record-icon |
|
+ div { |
|
opacity: 0; |
|
max-width: 0px !important; |
|
} |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
[role="button"]:hover |
|
.notion-record-icon |
|
+ div { |
|
opacity: 1; |
|
} |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
[role="button"]:hover |
|
.notion-record-icon, |
|
.notion-topbar |
|
.notranslate[style*="margin-right: 8px"] |
|
[role="button"]:hover |
|
.notion-record-icon |
|
+ div { |
|
transition-delay: 200ms !important; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/* ------------------------- Centered Table Headers ------------------------- */ |
|
/* -------------------------------------------------------------------------- */ |
|
|
|
.notion-table-view-header-cell > div > div { |
|
margin: 0px auto; |
|
} |
|
/* -------------------------------------------------------------------------- */ |
|
/*compact code blocks*/ |
|
.notion-code-block.line-numbers > div { |
|
padding-top: 14px !important; |
|
padding-bottom: 14px !important; |
|
} |
|
.notion-code-block .code_line_numbers--plain { |
|
top: 14px !important; |
|
bottom: 14px !important; |
|
} |