| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- .pr-6 {
- padding-right:1.5rem
- }
- /* Utilities missing from the prebuilt tailwind.css */
- /* Post list headlines, matching the prose h1 size (2.25rem / 1.111) */
- .text-4xl {
- font-size:2.25rem;
- line-height:2.5rem
- }
- .anchor svg {
- display:inline;
- }
- .dark .toc-wrapper {
- background-color: var(--tw-prose-pre-bg)!important;
- border-color: rgb(55 65 81/var(--tw-divide-opacity))!important;
- }
- .toc-wrapper a,
- .related-posts a,
- .recent-posts a {
- text-decoration: none;
- }
- .toc-link a {
- display:none;
- }
- .toc-link:hover a{
- display:inline-block;
- }
- .tags a {
- margin-right: .75rem;
- }
- .category a {
- margin-right: .1rem;
- }
- .category {
- line-height:3.2rem;
- }
- .read-more {
- text-decoration:inherit;
- }
- .nav-top li {
- display:inline-block;
- margin-left: 1.5rem;
- font-weight: 500;
- }
- .nav-mobile li{
- outline-width: 0;
- outline-style: solid;
- letter-spacing: .1em;
- font-weight: 700;
- font-size: 1.5rem;
- line-height: 2rem;
- padding-right: 1rem;
- padding-top: .5rem;
- padding-bottom: .5rem;
- margin-bottom: 1rem;
- }
- .menu-mobile {
- display:none;
- }
- @media (max-width: 640px) {
- .nav-top {
- display:none;
- }
- .is-menu-open .menu-mobile {
- display:block!important;
- }
- }
- .search-form {
- display:none;
- }
- .is-search-open .search-form {
- display: flex;
- }
- .tags a:hover {
- color:rgb(190 24 93);
- }
- .dark .tags a:hover {
- color:rgb(244 114 182);
- }
- .thumbnail {
- position:relative;
- display:block;
- }
- .nav li > ul {
- display:none;
- }
- .footnotes {
- margin-top:0;
- border:none;
- }
- .footnotes ol {
- margin-bottom:0;
- padding-top: 1.5em;
- }
- .footnotes > hr {
- margin:0;
- }
- .thumb-icon {
- background: rgba(0,0,0,0.7);
- color: #fff;
- text-align: center;
- display: block;
- width: 32px;
- height: 32px;
- position: absolute;
- bottom: 50%;
- left: 50%;
- margin-left: -16px;
- margin-bottom: -16px;
- -webkit-border-radius: 4px;
- border-radius: 4px;
- -moz-transition: all 0.7s ease;
- -webkit-transition: all 0.7s ease;
- transition: all 0.7s ease;
- }
- .thumb-icon svg {
- margin: 1px 0 0 2px;
- }
- .thumbnail:hover .thumb-icon {
- background: #fff;
- color: #333;
- }
- .recent-posts > ul {
- padding-left: 15px;
- }
- /* Copy to clipboard button on code blocks */
- .prose pre:has(code) {
- position: relative;
- }
- .prose pre .copy-code {
- position: absolute;
- top: .4rem;
- right: .4rem;
- padding: .35rem;
- border: none;
- border-radius: 6px;
- background-color: transparent;
- color: rgb(156 163 175);
- line-height: 0;
- cursor: pointer;
- opacity: 0;
- transition: opacity .2s ease, background-color .2s ease, color .2s ease;
- }
- .prose pre .copy-code svg {
- display: block;
- width: 1.05rem;
- height: 1.05rem;
- margin: 0;
- }
- .prose pre:hover .copy-code,
- .prose pre .copy-code:focus-visible {
- opacity: .75;
- }
- .prose pre .copy-code:hover {
- opacity: 1;
- color: rgb(243 244 246);
- background-color: rgb(75 85 99);
- }
- /* Touch devices have no hover, so keep the button visible. */
- @media (hover: none) {
- .prose pre .copy-code {
- opacity: 1;
- }
- }
- /* "AI was used" marker next to the byline */
- .ai-badge {
- position: relative;
- display: inline-block;
- cursor: help;
- line-height: 1;
- vertical-align: middle;
- }
- .ai-badge-tip {
- position: absolute;
- bottom: calc(100% + .5rem);
- left: 50%;
- transform: translateX(-50%);
- z-index: 20;
- width: max-content;
- max-width: 15rem;
- padding: .35rem .6rem;
- border-radius: .375rem;
- font-size: .75rem;
- line-height: 1rem;
- font-weight: 400;
- text-align: center;
- color: rgb(243 244 246);
- background-color: rgb(31 41 55);
- box-shadow: 0 4px 6px -1px rgb(0 0 0/.1), 0 2px 4px -2px rgb(0 0 0/.1);
- opacity: 0;
- visibility: hidden;
- transition: opacity .15s ease;
- }
- .dark .ai-badge-tip {
- color: rgb(31 41 55);
- background-color: rgb(229 231 235);
- }
- /* The arrow pointing down at the emoji. */
- .ai-badge-tip::after {
- content: "";
- position: absolute;
- top: 100%;
- left: 50%;
- margin-left: -.25rem;
- border: .25rem solid transparent;
- border-top-color: rgb(31 41 55);
- }
- .dark .ai-badge-tip::after {
- border-top-color: rgb(229 231 235);
- }
- .ai-badge:hover .ai-badge-tip,
- .ai-badge:focus .ai-badge-tip,
- .ai-badge:focus-visible .ai-badge-tip {
- opacity: 1;
- visibility: visible;
- }
|