loconotion/bundles/loconotion.css
Evan Savage a3d22a24e8 Support for Notion inline "alias" links
These use an SVG icon, and (for now, at least) sometimes have the full
"https://www.notion.so" domain in the `href`.  Made a small CSS patch to
deal with the SVG icon getting too much height by default, and updated
the subpage detection to handle these `href` values.
2020-11-25 08:19:33 -05:00

116 lines
3.5 KiB
CSS

/* enables hover effect on buttons */
div[role="button"]:not(.notion-record-icon):hover {
background: rgba(55, 53, 47, 0.08);
}
/* hides loading spinners */
.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;
}
/* stops inline databases from overflowing horizontally */
.notion-frame {
max-width: 100%;
}
.notion-scroller .notion-collection_view-block {
width: 100% !important;
max-width: 100% !important;
}
/* Resizes inlines databases */
.notion-scroller .notion-collection_view-block > div,
.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;
padding-left: unset !important;
padding-right: unset !important;
}
/* pull alias arrows back inline */
svg.alias {
display: inline-block !important;
height: auto !important;
}
@media only screen and (max-width: 960px) {
/* normalizes banner / page title width */
.notion-scroller > div:not([class]),
.notion-scroller > div > div:not([class]) {
width: 100% !important;
max-width: 960px !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
/* normalizes content width */
.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 {
width: 100vw !important;
/* max-width: unset !important; */
padding-right: 0 !important;
padding-left: 0 !important;
}
/* add padding to banner, but not to image */
.notion-frame > .notion-scroller > div:first-child > div:last-child {
padding-right: 2em !important;
padding-left: 2em !important;
}
/* add padding to content */
.notion-scroller > div:not([class]):not(:first-child),
.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 {
padding-right: 2em !important;
padding-left: 2em !important;
}
/* collapses flex rows into columns */
.notion-column_list-block > div {
flex-direction: column;
}
.notion-column_list-block > div > * {
width: unset !important;
}
/* 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;
}
/* Stops text from overflowing past max-width on bookmark blocks; */
.notion-bookmark-block div {
white-space: unset !important;
}
}