2020-05-16 17:24:40 +00:00
|
|
|
/* enables hover effect on buttons */
|
|
|
|
div[role="button"]:not(.notion-record-icon):hover {
|
|
|
|
background: rgba(55, 53, 47, 0.08);
|
|
|
|
}
|
|
|
|
|
2020-05-26 17:57:40 +00:00
|
|
|
/* hides loading spinners */
|
2020-05-16 17:24:40 +00:00
|
|
|
.loading-spinner {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* hides elements on the top right (search box, duplicate, notion shortcut) */
|
|
|
|
.notion-topbar > div > div:not(:first-child) {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2020-05-27 07:54:11 +00:00
|
|
|
/* stops inline databases from overflowing horizontally */
|
2020-08-15 16:59:41 +00:00
|
|
|
.notion-frame {
|
|
|
|
max-width: 100%;
|
2021-08-22 12:08:05 +00:00
|
|
|
width: 100vw !important;
|
2020-08-15 16:59:41 +00:00
|
|
|
}
|
2021-08-22 12:08:05 +00:00
|
|
|
|
|
|
|
.notion-selectable {
|
|
|
|
max-width: 100% !important;
|
|
|
|
}
|
|
|
|
|
2020-05-27 07:54:11 +00:00
|
|
|
.notion-scroller .notion-collection_view-block {
|
|
|
|
width: 100% !important;
|
2020-05-26 17:57:40 +00:00
|
|
|
max-width: 100% !important;
|
|
|
|
}
|
2020-08-15 16:59:41 +00:00
|
|
|
|
|
|
|
/* Resizes inlines databases */
|
|
|
|
.notion-scroller .notion-collection_view-block > div,
|
2022-04-01 06:01:20 +00:00
|
|
|
.notion-scroller .notion-collection_view-block > div > div > div,
|
2020-05-27 07:54:11 +00:00
|
|
|
.notion-scroller .notion-collection_view-block .notion-list-view,
|
|
|
|
.notion-scroller .notion-collection_view-block .notion-gallery-view,
|
|
|
|
.notion-scroller .notion-collection_view-block .notion-table-view,
|
|
|
|
.notion-scroller .notion-collection_view-block .notion-board-view,
|
|
|
|
.notion-scroller .notion-collection_view-block .notion-calendar-view {
|
|
|
|
max-width: 100% !important;
|
2020-05-26 17:57:40 +00:00
|
|
|
padding-left: unset !important;
|
|
|
|
padding-right: unset !important;
|
2020-08-15 16:59:41 +00:00
|
|
|
}
|
2020-05-26 17:57:40 +00:00
|
|
|
|
2020-11-25 13:19:33 +00:00
|
|
|
/* pull alias arrows back inline */
|
|
|
|
svg.alias {
|
|
|
|
display: inline-block !important;
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
|
2021-03-04 09:22:02 +00:00
|
|
|
/* stops text from overflowing past max-width on bookmark blocks; */
|
|
|
|
.notion-bookmark-block div {
|
|
|
|
white-space: unset !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* fixes oversized page properties on Safari */
|
|
|
|
.notion-scroller
|
|
|
|
> div:nth-child(2):not(.notion-page-content)
|
|
|
|
> div:not([data-block-id])
|
|
|
|
div:not(.notion-page-details-controls) {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* fixes possible stray header on tables */
|
|
|
|
.notion-collection_view_page-block > div:first-child {
|
|
|
|
transform: unset !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* fixes oversize icons in inline page links */
|
|
|
|
a[data-token-index] svg.page {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mobile fixes */
|
2020-05-16 17:24:40 +00:00
|
|
|
@media only screen and (max-width: 960px) {
|
2020-05-27 07:54:11 +00:00
|
|
|
/* normalizes banner / page title width */
|
|
|
|
.notion-scroller > div:not([class]),
|
2020-08-15 16:59:41 +00:00
|
|
|
.notion-scroller > div > div:not([class]) {
|
2020-05-16 17:24:40 +00:00
|
|
|
width: 100% !important;
|
2020-05-17 17:11:17 +00:00
|
|
|
max-width: 960px !important;
|
2020-05-16 17:24:40 +00:00
|
|
|
padding-left: 0 !important;
|
|
|
|
padding-right: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* normalizes content width */
|
2020-05-17 20:41:20 +00:00
|
|
|
.notion-page-content,
|
|
|
|
.notion-page-content > .notion-collection_view-block,
|
|
|
|
.notion-page-content > .notion-collection_view-block > div,
|
|
|
|
.notion-page-content > .notion-collection_view-block > .notion-scroller > div {
|
2020-08-15 16:59:41 +00:00
|
|
|
width: 100vw !important;
|
|
|
|
/* max-width: unset !important; */
|
2020-05-16 17:24:40 +00:00
|
|
|
padding-right: 0 !important;
|
|
|
|
padding-left: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* add padding to banner, but not to image */
|
2020-05-17 20:41:20 +00:00
|
|
|
.notion-frame > .notion-scroller > div:first-child > div:last-child {
|
2020-05-16 17:24:40 +00:00
|
|
|
padding-right: 2em !important;
|
|
|
|
padding-left: 2em !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* add padding to content */
|
2020-05-27 07:54:11 +00:00
|
|
|
.notion-scroller > div:not([class]):not(:first-child),
|
2020-05-17 20:41:20 +00:00
|
|
|
.notion-scroller > .notion-page-content,
|
|
|
|
.notion-frame > .notion-scroller > .notion-scroller > .notion-list-view,
|
|
|
|
.notion-frame > .notion-scroller > .notion-scroller > .notion-gallery-view,
|
|
|
|
.notion-frame > .notion-scroller > .notion-scroller > .notion-table-view,
|
|
|
|
.notion-frame > .notion-scroller > .notion-scroller > .notion-board-view,
|
|
|
|
.notion-frame > .notion-scroller > .notion-scroller > .notion-calendar-view {
|
2020-05-16 17:24:40 +00:00
|
|
|
padding-right: 2em !important;
|
|
|
|
padding-left: 2em !important;
|
2021-11-29 09:37:45 +00:00
|
|
|
flex-wrap: wrap
|
2020-05-16 17:24:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* collapses flex rows into columns */
|
|
|
|
.notion-column_list-block > div {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
.notion-column_list-block > div > * {
|
|
|
|
width: unset !important;
|
|
|
|
}
|
2020-05-18 18:40:16 +00:00
|
|
|
|
2020-08-15 16:59:41 +00:00
|
|
|
/* forces gallery to wrap around pages */
|
|
|
|
.notion-gallery-view {
|
|
|
|
width: 100vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* enable horizontal scroll for lists and tables on mobile */
|
|
|
|
.notion-collection-item > a {
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
|
|
|
.notion-collection-item > a > div {
|
|
|
|
width: unset !important;
|
|
|
|
}
|
|
|
|
.notion-scroller.horizontal {
|
|
|
|
overflow-x: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* makes the top border on overflowing list reach the full width of the list */
|
|
|
|
.notion-list-view > .notion-collection_view_page-block {
|
|
|
|
width: fit-content;
|
|
|
|
}
|
2021-11-29 09:37:45 +00:00
|
|
|
|
|
|
|
.notion-scroller
|
|
|
|
> div:nth-child(2):not(.notion-page-content)
|
|
|
|
> div:not([data-block-id])
|
|
|
|
div:not(.notion-page-details-controls) {
|
|
|
|
padding-left: 0!important;
|
|
|
|
padding-right: 0!important;
|
|
|
|
}
|
2020-05-16 17:24:40 +00:00
|
|
|
}
|
2021-08-10 19:25:19 +00:00
|
|
|
|
|
|
|
.pseudoAfter:after {
|
|
|
|
color: var(--pseudoAfter--color);
|
|
|
|
content: var(--pseudoAfter--content);
|
|
|
|
border: var(--pseudoAfter--border);
|
|
|
|
width: var(--pseudoAfter--width);
|
|
|
|
height: var(--pseudoAfter--height);
|
|
|
|
display: var(--pseudoAfter--display);
|
|
|
|
background: var(--pseudoAfter--background);
|
|
|
|
}
|
|
|
|
|
|
|
|
.pseudoBefore:before {
|
|
|
|
color: var(--pseudoBefore--color);
|
|
|
|
content: var(--pseudoBefore--content);
|
|
|
|
border: var(--pseudoBefore--border);
|
|
|
|
width: var(--pseudoBefore--width);
|
|
|
|
height: var(--pseudoBefore--height);
|
|
|
|
display: var(--pseudoBefore--display) !important;
|
|
|
|
background: var(--pseudoBefore--background);
|
|
|
|
}
|
|
|
|
|
|
|
|
.pseudoSelection ::selection {
|
|
|
|
color: var(--pseudoSelection--color);
|
|
|
|
background: var(--pseudoSelection--background);
|
|
|
|
text-shadow: var(--pseudoSelection--textShadow);
|
|
|
|
}
|