1- .ch-scrollycoding {
2- flex-direction : row-reverse;
1+ @import '@unocss/reset/tailwind.css' ;
2+ @unocss all;
3+
4+ h1 {
5+ @apply text-4xl font-montserrat font-900 pb-5 pt-10;
6+ }
7+
8+ h2 {
9+ @apply text-3xl font-montserrat font-700 pb-5 pt-8;
10+ }
11+
12+ p {
13+ @apply text-base font-merriweather py-3;
314}
415
5- .ch-scrollycoding-sticker {
6- flex : 1 1 ;
7- max-height : unset;
8- height : 95vh ;
9- top : 2.5vh ;
16+ a {
17+ @apply cursor-pointer underline underline-dashed;
1018}
1119
12- .ch-scrollycoding-sticker .ch-codeblock ,
13- .ch-scrollycoding-sticker .ch-codegroup {
14- max-height : unset;
15- height : 95vh ;
20+ .ch-scrollycoding {
21+ @apply max-w-screen-xl flex-row-reverse mx-auto my-0 gap-0;
22+
23+ .ch-scrollycoding-content {
24+ @apply flex-1 text-brand-1 p-10 bg-brand-2;
25+
26+ .ch-scrollycoding-step-content {
27+ @apply px-5 max-w-lg min-w-0;
28+ /* @apply w-full */
29+ /* @apply border-none; */
30+
31+ .ch-codeblock ,
32+ .ch-codegroup ,
33+ .ch-inline-code {
34+ --ch-t-background : var (--brand-1 );
35+ --ch-t-tab-activeBackground : var (--brand-1 );
36+ --ch-t-tab-inactiveBackground : var (--brand-1 );
37+ --ch-t-tab-activeBorder : # ffffff1f ;
38+ --ch-t-editorGroupHeader-tabsBackground : var (
39+ --brand-1
40+ );
41+ --ch-t-lighter-inlineBackground : var (--brand-1 );
42+ }
43+ }
44+ .ch-scrollycoding-step-content [data-selected ] {
45+ @apply border-brand-1;
46+ }
47+ }
48+
49+ .ch-scrollycoding-sticker {
50+ @apply flex-1 max-h-unset h-screen top-0 py-5 px-10 bg-brand-1;
51+
52+ .ch-codegroup {
53+ --ch-t-colorScheme : dark;
54+ --ch-t-foreground : # a6accd ;
55+ --ch-t-background : # 33333333 ;
56+ --ch-t-lighter-inlineBackground : # 3333332e ;
57+ --ch-t-editor-background : # 33333333 ;
58+ --ch-t-editor-foreground : # a6accd ;
59+ --ch-t-editor-lineHighlightBackground : # 717cb425 ;
60+ --ch-t-editor-rangeHighlightBackground : # ffffff0b ;
61+ --ch-t-editor-infoForeground : # ffffffff ;
62+ --ch-t-editor-selectionBackground : # 717cb425 ;
63+ --ch-t-focusBorder : # 00000000 ;
64+ --ch-t-tab-activeBackground : # 33333366 ;
65+ --ch-t-tab-activeForeground : # e4f0fb ;
66+ --ch-t-tab-inactiveBackground : # 33333333 ;
67+ --ch-t-tab-inactiveForeground : # 767c9d ;
68+ --ch-t-tab-border : # 00000000 ;
69+ --ch-t-tab-activeBorder : # 33333366 ;
70+ --ch-t-editorGroup-border : # 00000030 ;
71+ --ch-t-editorGroupHeader-tabsBackground : # 33333333 ;
72+ --ch-t-editorLineNumber-foreground : # 767c9d50 ;
73+ --ch-t-input-background : # ffffff05 ;
74+ --ch-t-input-foreground : # e4f0fb ;
75+ --ch-t-input-border : # ffffff10 ;
76+ --ch-t-icon-foreground : # a6accd ;
77+ --ch-t-sideBar-background : # 1b1e28 ;
78+ --ch-t-sideBar-foreground : # 767c9d ;
79+ --ch-t-sideBar-border : # 1b1e28 ;
80+ --ch-t-list-activeSelectionBackground : # 30334080 ;
81+ --ch-t-list-activeSelectionForeground : # e4f0fb ;
82+ --ch-t-list-hoverBackground : # 30334080 ;
83+ --ch-t-list-hoverForeground : # e4f0fb ;
84+ @apply max-h-unset h-screen;
85+ }
86+
87+ .ch-codeblock {
88+ --ch-t-background : var (--brand-1 );
89+ --ch-t-tab-activeBackground : var (--brand-1 );
90+ --ch-t-tab-inactiveBackground : var (--brand-1 );
91+ --ch-t-tab-activeBorder : # ffffff1f ;
92+ --ch-t-editorGroupHeader-tabsBackground : var (
93+ --brand-1
94+ );
95+ --ch-t-lighter-inlineBackground : var (--brand-1 );
96+ }
97+
98+ .ch-expand-dialog-content {
99+ @apply border-4;
100+ border-color : var (--brand-2 );
101+
102+ .ch-code-browser-sidebar {
103+ @apply bg-brand-2;
104+ }
105+
106+ .ch-code-browser-content {
107+ @apply bg-brand-1 text-sm;
108+ }
109+ }
110+ }
111+ }
112+
113+ .ch-scrollycoding-static {
114+ @apply bg-brand-2 text-brand-1 p-5;
115+
116+ .ch-codeblock ,
117+ .ch-codegroup ,
118+ .ch-inline-code {
119+ --ch-t-background : var (--brand-1 );
120+ --ch-t-tab-activeBackground : var (--brand-1 );
121+ --ch-t-tab-inactiveBackground : var (--brand-1 );
122+ --ch-t-tab-activeBorder : # ffffff1f ;
123+ --ch-t-editorGroupHeader-tabsBackground : var (--brand-1 );
124+ --ch-t-lighter-inlineBackground : var (--brand-1 );
125+ }
16126}
17127
18128img .tutorial {
@@ -21,7 +131,6 @@ img.tutorial {
21131
22132table {
23133 border-collapse : collapse;
24- border-color : inherit;
25134 border-spacing : 0 ;
26135 display : block;
27136 margin-bottom : 2.5rem ;
@@ -35,10 +144,8 @@ table {
35144
36145table th {
37146 background-color : transparent;
38- --border-color : rgb (200 200 200 );
39147 --border-width : 2px ;
40- border-bottom : var (--border-width ) solid
41- var (--border-color );
148+ border-bottom : var (--border-width ) solid var (--brand-1 );
42149 font-weight : 600 ;
43150 padding : 0 1rem 0.25rem 0 ;
44151 position : sticky;
@@ -47,10 +154,8 @@ table th {
47154
48155table td {
49156 background-color : transparent;
50- --border-color : rgb (227 227 227 );
51157 --border-width : 1px ;
52- border-bottom : var (--border-width ) solid
53- var (--border-color );
158+ border-bottom : var (--border-width ) solid var (--brand-1 );
54159 padding : 0.5rem 1rem 0.5rem 0 ;
55160 white-space : nowrap;
56161}
0 commit comments