Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/native. An initiative which aims to make it easy to create complex, light-weight, and perfor okikio.github.io/native
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277@tailwind base;@tailwind components;@tailwind utilities;
@import "./base.scss";@import "./components/hightlightjs";
@font-face { font-family: "FluentSystemIcons-Regular"; src: url("/fonts/FluentSystemIcons-Regular.ttf") format("truetype");}
.icon:before { font-family: FluentSystemIcons-Regular !important; font-style: normal; font-weight: normal !important; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}
.icon-link:before { content: "\f4e5";}
body { @apply bg-white text-black; @apply dark:bg-black dark:text-label; @apply font-lexend; font-weight: 400; // font-size: 1rem; line-height: 1.5;}
:focus { outline-color: theme("colors.blue.500");
@media (prefers-color-scheme: dark) { outline-color: theme("colors.blue.500"); }}
blockquote { @apply rounded-lg; background-color: theme("colors.blue.100");
@media (prefers-color-scheme: dark) { background-color: $color-bg-alt; }}
details p { @apply m-0;}
details { @apply cursor-pointer;}
:is(h1, h2, h3, h4, h5, h6, p, a) { @screen lt-sm { word-break: break-all; }}
p { // @apply font-manrope font-normal;}
a { word-break: break-all;}
// .icon {// -webkit-font-feature-settings: "liga" off, "dlig";// -moz-font-feature-settings: "liga=0, dlig=1";// font-feature-settings: "liga", "dlig";// -webkit-font-smoothing: antialiased;// -moz-osx-font-smoothing: grayscale;// text-rendering: optimizeLegibility;// font-family: "Material Icons Round", "Material Icons";// vertical-align: middle;// letter-spacing: normal;// display: inline-block;// text-decoration: none;// text-transform: none;// white-space: nowrap;// font-weight: normal;// position: relative;// font-style: normal;// word-wrap: normal;// font-size: 24px;// line-height: 1;// direction: ltr;// height: 1em;// width: 1em;// }
h1,h2,h3,h4,h5,h6 { .icon { visibility: hidden; font-size: 0.75em; }
a { @apply p-2; }
&:hover .icon { visibility: visible; border-bottom-color: transparent; }
a:is(:hover, :focus) { visibility: visible; border-bottom-color: transparent; }}
.layout { @apply flex relative; @supports (padding-inline-start: env(safe-area-inset-left)) { padding-inline-start: env(safe-area-inset-left); padding-inline-end: env(safe-area-inset-right);
padding-block-start: env(safe-area-inset-top); padding-block-end: env(safe-area-inset-bottom); }}main[data-wrapper] { @apply w-full; @apply p-3;}
article[main-content] { @apply md:grid gap-x-10 xl:gap-x-16 w-full;
// @screen sm { // grid-template-columns: minmax(0, 1fr) 200px; // }
@screen md { grid-template-columns: minmax(0, 1fr) 300px; }}.markdown-body { // container @apply block max-w-screen-lg w-full mx-auto; @apply p-3;}
main ul { list-style-type: disc;
li { margin-bottom: 0.2em; }}
.toc { @apply md:text-left pt-48;
.toc-sticky { @apply sticky top-0 pb-2 pr-2 overflow-x-visible; height: calc(100vh - theme("spacing.32")); top: calc(theme("spacing.32") - theme("spacing.10"));
&:before, &:after { @apply absolute left-0 from-white dark:from-black to-transparent z-10 flex-shrink-0; @apply block w-full h-16 pointer-events-none; content: ""; }
&:before { @apply top-0 bg-gradient-to-b; transform: translateY( calc( theme("fontSize.2xl[0]") + theme("fontSize.2xl.1.lineHeight") ) ); }
&:after { @apply bottom-0 bg-gradient-to-t; }
@supports (height: 100dvh) { height: calc(100dvh - theme("spacing.32")); } }
.toc-title { @apply text-2xl uppercase relative z-10; transform: translateY(calc(theme("spacing.10"))); }
a { @apply inline-block border-none text-black/75 dark:text-blue-300/80; @apply py-1 no-underline hover:underline; @apply font-light; word-break: break-word; font-size: 0.9em;
&:is(:hover, :focus) { text-decoration-color: black;
@media (prefers-color-scheme: dark) { text-decoration-color: white; } }
&:focus { @apply font-normal; } }
.toc-level-1 { @apply py-10 overflow-y-auto w-full; height: calc( 100% - theme("fontSize.2xl[0]") - theme("fontSize.2xl.1.lineHeight") );
& > .toc-item > a { @apply text-blue-500; } }
.toc-item .toc-level { padding-inline-start: 1em; @apply py-1 relative;
li { @apply mb-0; }
a { @apply py-2 border-l-[1px] border-dashed border-gray-500/60; @apply hover:border-b-0; padding-inline-start: 1em;
&:focus { @apply text-blue-500; @apply border-b-0; @apply border-solid border-blue-500/80; } } }
.toc-level-2 a { // font-size: 0.7em; @apply py-2; }}
// a {// @apply text-blue-500 hover:text-blue-700 underline;// @apply dark:text-blue-400 dark:hover:text-blue-200;// }
// button,// a {// transition: color 0.2s ease-out, box-shadow 0.2s ease-out;// @apply focus-visible:ring-4 focus-visible:ring-blue-500 focus-visible:ring-opacity-50;// @apply focus:outline-none focus-visible:rounded-sm;
// -webkit-tap-highlight-color: transparent;// }