mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
300 lines
5.4 KiB
CSS
300 lines
5.4 KiB
CSS
/**
|
|
* This file contains site-specifc style overrides for Notion elements from
|
|
* react-notion-x.
|
|
*
|
|
* react-notion-x's goal is to match styling as close as possible to Notion,
|
|
* whereas our goal with this site is to adjust Notion's styling in a few key
|
|
* places to add some flare.
|
|
*/
|
|
|
|
.notion {
|
|
--notion-max-width: 720px;
|
|
}
|
|
|
|
.notion-page {
|
|
margin: 0 12px;
|
|
width: var(--notion-max-width);
|
|
padding-bottom: calc(max(5vh, 32px)) !important;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.index-page {
|
|
--notion-max-width: 900px;
|
|
}
|
|
|
|
.notion-text {
|
|
padding: 0.5em 2px;
|
|
}
|
|
|
|
.notion-asset-caption {
|
|
text-align: center;
|
|
}
|
|
|
|
.notion-asset-wrapper {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.notion-header .nav-header {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.notion-gallery-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
|
grid-gap: 6vmin;
|
|
gap: 6vmin;
|
|
}
|
|
|
|
.notion-gallery-grid .notion-page-icon {
|
|
display: none;
|
|
}
|
|
|
|
.notion-gallery-grid .notion-page-title-text {
|
|
font-size: 2em;
|
|
white-space: unset;
|
|
}
|
|
|
|
.notion-gallery-grid .notion-collection-card-property {
|
|
white-space: unset;
|
|
text-overflow: unset;
|
|
}
|
|
|
|
.notion-gallery-grid .notion-property-text {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.notion-collection-card {
|
|
border-radius: 16px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.notion-collection-card-cover img {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.notion-collection-card {
|
|
overflow: visible;
|
|
}
|
|
|
|
.notion-collection-card-cover {
|
|
border-radius: 16px;
|
|
overflow: visible;
|
|
box-shadow: 2px 2px 8px 4px rgba(15, 15, 15, 0.1);
|
|
}
|
|
|
|
.notion-collection-card-cover {
|
|
border-bottom: 0 none;
|
|
transition: filter 150ms linear;
|
|
filter: none;
|
|
}
|
|
|
|
.notion-collection-card:hover .notion-collection-card-cover {
|
|
filter: brightness(120%);
|
|
}
|
|
|
|
/* only target safari */
|
|
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
|
_::-webkit-full-page-media,
|
|
_:future,
|
|
:root,
|
|
.notion-collection-card-cover {
|
|
transition: none 0ms linear;
|
|
}
|
|
}
|
|
|
|
.notion-quote {
|
|
padding: 0.2em 0.75em;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.notion-h1,
|
|
.notion-h2,
|
|
.notion-h3 {
|
|
margin-bottom: 0.25em;
|
|
}
|
|
|
|
.notion-callout {
|
|
margin: 0.75em 0;
|
|
}
|
|
|
|
.notion-hr {
|
|
margin: 2em 0;
|
|
}
|
|
|
|
@media only screen and (max-width: 920px) {
|
|
.index-page.notion-page {
|
|
padding-left: 2vw;
|
|
padding-right: 2vw;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 720px) {
|
|
.notion-page {
|
|
padding-left: 2vw;
|
|
padding-right: 2vw;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
.notion-search-button {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 400px) {
|
|
.notion-gallery-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
grid-gap: 10vmin;
|
|
gap: 10vmin;
|
|
}
|
|
}
|
|
|
|
.notion .notion-page-icon-cover {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.notion-title {
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
.notion-collection-column-title {
|
|
display: none !important;
|
|
}
|
|
|
|
.notion-collection-row-property .notion-property {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.notion-collection-row-value {
|
|
padding: 0;
|
|
}
|
|
|
|
.notion-page-cover {
|
|
max-width: 1200px;
|
|
border-radius: 24px;
|
|
box-shadow: 2px 2px 8px 4px rgba(15, 15, 15, 0.1);
|
|
}
|
|
|
|
@media only screen and (max-width: 1200px) {
|
|
.notion-page-cover {
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
.notion-block-ab9a258d6cf444f3bb40dc2600feae91 .notion-page-link {
|
|
justify-content: center;
|
|
padding: 2em;
|
|
}
|
|
|
|
.notion-page-icon-wrapper img.notion-page-icon {
|
|
border-radius: 50%;
|
|
box-shadow: 0 8px 40px 0 rgb(0 0 0 / 21%);
|
|
}
|
|
|
|
.notion-code {
|
|
background: rgba(249, 250, 251, 1);
|
|
border: 1px solid rgba(229, 231, 235, 1);
|
|
border-radius: 0.375rem;
|
|
}
|
|
|
|
.notion-link {
|
|
position: relative;
|
|
transition: unset;
|
|
opacity: 1;
|
|
}
|
|
|
|
.notion-link:hover {
|
|
border-width: 3px;
|
|
border-image: linear-gradient(90.68deg, #b439df 0.26%, #e5337e 102.37%);
|
|
border-image-slice: 1;
|
|
}
|
|
|
|
.light-mode .notion-red_background,
|
|
.light-mode .notion-pink_background,
|
|
.light-mode .notion-blue_background,
|
|
.light-mode .notion-purple_background,
|
|
.light-mode .notion-teal_background,
|
|
.light-mode .notion-yellow_background,
|
|
.light-mode .notion-orange_background,
|
|
.light-mode .notion-brown_background,
|
|
.light-mode .notion-gray_background {
|
|
padding: 0 0.5rem;
|
|
margin: 0 -0.5rem 0 -0.25rem;
|
|
border-radius: 0.5rem;
|
|
border-bottom-left-radius: 0.125rem;
|
|
box-decoration-break: clone;
|
|
|
|
background-color: none;
|
|
|
|
/* light yellow */
|
|
background-image: linear-gradient(
|
|
119deg,
|
|
transparent,
|
|
#fff697 10.5%,
|
|
#fdf59d 85.29%,
|
|
transparent
|
|
);
|
|
}
|
|
|
|
.light-mode .notion-red_background,
|
|
.light-mode .notion-pink_background {
|
|
/* light pink */
|
|
background-image: linear-gradient(
|
|
119deg,
|
|
transparent,
|
|
#f5b8d1 10.5%,
|
|
#f9bcd3 85.29%,
|
|
transparent
|
|
);
|
|
}
|
|
|
|
.light-mode .notion-blue_background {
|
|
/* light blue */
|
|
background-image: linear-gradient(
|
|
119deg,
|
|
transparent,
|
|
#adedfc 10.5%,
|
|
#adebfd 85.29%,
|
|
transparent
|
|
);
|
|
}
|
|
|
|
.light-mode .notion-purple_background,
|
|
.light-mode .notion-orange_background {
|
|
/* light red */
|
|
background-image: linear-gradient(
|
|
119deg,
|
|
transparent,
|
|
#f5c4ff 10.5%,
|
|
#e7a8fc 85.29%,
|
|
transparent
|
|
);
|
|
}
|
|
|
|
.light-mode .notion-teal_background {
|
|
/* light green */
|
|
background-image: linear-gradient(
|
|
119deg,
|
|
transparent,
|
|
#d4eabc 10.5%,
|
|
#d2eabc 85.29%,
|
|
transparent
|
|
);
|
|
}
|
|
|
|
.light-mode .notion-brown_background,
|
|
.light-mode .notion-gray_background {
|
|
/* dark blue */
|
|
background-image: linear-gradient(
|
|
119deg,
|
|
transparent,
|
|
#96b8ec 10.5%,
|
|
#a6c3f0 85.29%,
|
|
transparent
|
|
);
|
|
}
|