Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ignite
GitHub Repository: ignite/cli
Path: blob/main/docs/src/css/custom.css
1007 views
1
@import 'tailwindcss/base';
2
@import './fonts.css';
3
@import './base.css';
4
@import 'tailwindcss/components';
5
@import 'tailwindcss/utilities';
6
7
.code-block-removed-line {
8
background-color: #ff000020;
9
display: block;
10
margin: 0 calc(-1 * var(--ifm-pre-padding));
11
padding: 0 var(--ifm-pre-padding);
12
border-left: 3px solid #ff000080;
13
text-decoration: line-through;
14
}
15
16
/* You can override the default Infima variables here. */
17
:root {
18
--ifm-color-primary: theme(colors.gray.1000);
19
--ifm-color-primary-dark: theme(colors.gray.1000);
20
--ifm-color-primary-darker: theme(colors.gray.1000);
21
--ifm-color-primary-darkest: theme(colors.gray.1000);
22
--ifm-color-primary-light: theme(colors.gray.1000);
23
--ifm-color-primary-lighter: theme(colors.gray.1000);
24
--ifm-color-primary-lightest: theme(colors.gray.1000);
25
--ifm-code-font-size: 95%;
26
--ifm-breadcrumb-item-background-active: transparent;
27
--ifm-breadcrumb-padding-horizontal: 0;
28
--ifm-list-paragraph-margin: 0;
29
--ifm-spacing-horizontal: theme(spacing.7);
30
--ifm-blockquote-border-color: theme(colors.gray.1000);
31
--ifm-menu-link-padding-vertical: 0.6rem;
32
--ifm-background-color: theme(colors.gray.0);
33
--ifm-footer-link-color: var(--ifm-font-color-base);
34
--ifm-menu-link-sublist-icon: url('~/img/ico-chevron.svg');
35
--docsearch-searchbox-background: #f7f7f7;
36
--docsearch-modal-background: theme(colors.card) !important;
37
--ifm-navbar-height: 5.563rem;
38
--ifm-navbar-sidebar-width: 100vw;
39
--docsearch-highlight-color: theme(colors.fg) !important;
40
--docsearch-searchbox-shadow: inset 0 0 0 1px var(--docsearch-primary-color);
41
42
/* temp: local search bar */
43
--aa-primary-color-rgb: 0, 0, 0;
44
45
@media screen and (prefers-reduced-motion) {
46
transition: ;
47
}
48
--ifm-menu-color-background-active: none;
49
--ifm-menu-color-background-hover: none;
50
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
51
}
52
53
/* For readability concerns, you should choose a lighter palette in dark mode. */
54
html[data-theme='dark'] {
55
--ifm-color-primary: theme(colors.gray.0);
56
--ifm-color-primary-dark: #e6e6e6;
57
--ifm-color-primary-darker: #d9d9d9;
58
--ifm-color-primary-darkest: #b3b3b3;
59
--ifm-color-primary-light: theme(colors.gray.0);
60
--ifm-color-primary-lighter: theme(colors.gray.0);
61
--ifm-color-primary-lightest: theme(colors.gray.0);
62
--ifm-background-color: theme(colors.gray.1000);
63
--docusaurus-highlighted-code-line-bg: theme(colors.inactive);
64
--docsearch-modal-background: theme(colors.gray.1000) !important;
65
--docsearch-highlight-color: theme(colors.inactiveLight) !important;
66
--docsearch-hit-background: theme(colors.lightfg) !important;
67
--docsearch-searchbox-shadow: inset 0 0 0 1px var(--docsearch-primary-color);
68
--docsearch-key-gradient: linear-gradient(
69
-26.5deg,
70
#5d5d5d,
71
#3c3c3c
72
) !important;
73
--docsearch-key-shadow: inset 0 -2px 0 0 #353535, inset 0 0 1px 1px #7a7a7b,
74
0 2px 2px 0 rgba(45, 45, 45, 0.3) !important;
75
--docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, inset -1px 1px 0 0 #2c2e40, 0 3px 8px 0 theme(colors.gray.1000) !important
76
}
77
78
html {
79
@apply bg-docusaurusBgColor;
80
body > div {
81
@apply max-w-[90rem] m-auto;
82
@media (min-width: 997px) {
83
@apply px-6;
84
}
85
}
86
87
/* IGNT */
88
.ignt-backlink {
89
@apply text-2 text-muted pl-6 order-last;
90
& > svg {
91
@apply hidden;
92
}
93
}
94
95
/* Banner */
96
97
#__docusaurus > div[role='banner'] {
98
@apply bg-gray-30 text-gray-1000 font-normal;
99
& > div {
100
@apply flex py-3;
101
}
102
a {
103
@apply no-underline block w-full text-2;
104
}
105
@media (min-width: 997px) {
106
@apply hidden;
107
}
108
}
109
&[data-theme='dark'] #__docusaurus > div[role='banner'] {
110
@apply bg-fg text-mutedLight font-normal;
111
}
112
113
/* MAINNAV */
114
.navbar {
115
@apply py-6 mx-6 px-0 h-auto border-b border-b-docusaurusColorBorder shadow-none bg-docusaurusBgColor;
116
@media (min-width: 997px) {
117
@apply mx-0;
118
}
119
&__toggle {
120
border-radius: .5rem;
121
@apply bg-card h-8 w-8 flex justify-center items-center;
122
123
@media (min-width: 997px) {
124
@apply hidden;
125
}
126
}
127
&__brand {
128
& + * {
129
@apply ml-auto;
130
}
131
}
132
&__link--active {
133
@apply text-muted;
134
}
135
&__items:not(:last-child) {
136
@apply justify-between;
137
@media (min-width: 997px) {
138
@apply justify-start px-3;
139
}
140
button {
141
@apply order-2 mr-0;
142
}
143
}
144
&__items--right > :last-child {
145
@apply right-8.5;
146
}
147
}
148
&[data-theme='dark'] .navbar__item {
149
@apply text-mutedLight;
150
}
151
&[data-theme='dark'] .navbar__toggle {
152
@apply bg-fg;
153
}
154
155
.github-icon {
156
@apply hover:opacity-50;
157
}
158
159
/* SEARCHBAR */
160
/* algolia */
161
.DocSearch {
162
&-Hits mark {
163
@apply text-docusaurusColorBase;
164
}
165
&-Button {
166
@apply text-inactive rounded-sm h-8 w-8 bg-card justify-center mr-3;
167
@media (min-width: 997px) {
168
@apply w-auto justify-between;
169
}
170
.DocSearch-Search-Icon {
171
@media (min-width: 997px) {
172
@apply hidden;
173
}
174
}
175
.DocSearch-Button-Placeholder {
176
@apply pr-8;
177
}
178
.DocSearch-Button-Key {
179
background: none;
180
@apply shadow-none bg-transparent border border-inactive text-inactive p-3 text-2 rounded-s h-6 w-6;
181
}
182
.DocSearch-Button-Keys,
183
.DocSearch-Button-Placeholder {
184
@apply hidden;
185
@media (min-width: 997px) {
186
@apply flex;
187
}
188
}
189
}
190
191
&-Search-Icon path {
192
@apply fill-transparent;
193
}
194
path {
195
@apply fill-transparent;
196
}
197
&-Logo path {
198
@apply fill-docusaurusColorBase;
199
}
200
}
201
202
.navbar-sidebar {
203
@apply w-full;
204
&__brand {
205
@apply pb-7 pt-9 px-6 h-auto;
206
}
207
&__item {
208
@apply px-6 w-full;
209
}
210
&__back {
211
@apply px-0 hidden;
212
}
213
&__close {
214
border-radius: .5rem;
215
@apply bg-gray-1000 h-8 w-8 flex justify-center items-center ml-0;
216
217
& > svg > g {
218
@apply stroke-gray-0;
219
}
220
}
221
}
222
.navbar-sidebar {
223
&__brand {
224
@apply shadow-none relative;
225
&::after {
226
content: '';
227
@apply absolute block h-px bg-border bottom-0 right-3 left-0 mx-6;
228
}
229
}
230
}
231
&[data-theme='dark'] .navbar-sidebar {
232
@apply bg-gray-1000;
233
&__brand {
234
&::after {
235
content: '';
236
@apply bg-linkHover;
237
}
238
}
239
&__close {
240
@apply bg-gray-0;
241
& > svg > g {
242
@apply stroke-gray-1000;
243
}
244
}
245
}
246
&[data-theme='dark'] .DocSearch-Modal {
247
@apply bg-gray-1000;
248
}
249
&[data-theme='dark'] .DocSearch-Footer {
250
@apply bg-gray-1000;
251
}
252
&[data-theme='dark'] .DocSearch-Button {
253
@apply bg-fg text-inactiveLight;
254
}
255
&[data-theme='dark'] .DocSearch-Button-Key {
256
@apply text-inactiveLight border-inactiveLight;
257
}
258
259
/* BREADCRUMBS */
260
.breadcrumbs__item {
261
&:first-child {
262
& > a {
263
&::after {
264
content: 'Docs';
265
}
266
& > svg {
267
@apply hidden;
268
}
269
}
270
}
271
&:not(:last-child)::after {
272
content: '>';
273
@apply bg-none;
274
}
275
}
276
.theme-doc-breadcrumbs {
277
@media (min-width: 997px) {
278
@apply pt-[calc(theme(spacing.7)-1rem)];
279
}
280
}
281
.theme-doc-toc-mobile {
282
@apply bg-card px-6 py-5.5 pb-0 rounded;
283
& > button {
284
@apply p-0 pb-5.5 flex justify-between;
285
&::after {
286
@apply order-last ml-5;
287
background-image: var(--ifm-menu-link-sublist-icon);
288
background-size: 70%;
289
}
290
}
291
& ul li {
292
@apply my-5 mx-0;
293
}
294
}
295
&[data-theme='dark'] .theme-doc-toc-mobile {
296
@apply bg-fg;
297
}
298
299
/* SIDEBAR */
300
.theme-doc-sidebar-container {
301
@media (min-width: 997px) {
302
@apply border-r border-r-docusaurusColorBorder;
303
}
304
& > div:first-child > a {
305
@apply m-0;
306
}
307
nav {
308
@media (min-width: 997px) {
309
@apply pt-7;
310
}
311
}
312
}
313
314
&[data-theme='dark'] .theme-doc-sidebar-menu .menu__list::before {
315
@apply bg-inactiveLight;
316
}
317
.theme-doc-sidebar-menu {
318
@apply font-normal;
319
320
.menu__list {
321
@apply relative pl-0;
322
&::before {
323
content: '';
324
@apply absolute block left-3 top-0 h-full w-[2px] bg-border;
325
}
326
ul::before {
327
@apply hidden;
328
}
329
}
330
331
.menu__link {
332
@apply pl-0 pr-5;
333
&--active:not(.menu__link--sublist) {
334
@apply text-docusaurusColorBase font-medium;
335
}
336
}
337
338
li li {
339
@apply pl-7;
340
.menu__link--active:not(.menu__link--sublist) {
341
@apply relative text-docusaurusColorBase font-medium;
342
&::before {
343
content: '';
344
@apply absolute block left-0 top-0 h-full w-[2px] bg-docusaurusColorBase;
345
@apply -left-[calc(theme(space.7)-theme(space.3))];
346
}
347
}
348
}
349
li li li {
350
@apply pl-5;
351
}
352
li li li .menu__link--active:not(.menu__link--sublist)::before {
353
@apply -left-[calc(theme(space.5)*1+theme(space.7)-theme(space.3))];
354
}
355
li li li li .menu__link--active:not(.menu__link--sublist)::before {
356
@apply -left-[calc(theme(space.5)*2+theme(space.7)-theme(space.3))];
357
}
358
li li li li li .menu__link--active:not(.menu__link--sublist)::before {
359
@apply -left-[calc(theme(space.5)*3+theme(space.7)-theme(space.3))];
360
}
361
li li li li li li .menu__link--active:not(.menu__link--sublist)::before {
362
@apply -left-[calc(theme(space.5)*4+theme(space.7)-theme(space.3))];
363
}
364
li li li li li li li .menu__link--active:not(.menu__link--sublist)::before {
365
@apply -left-[calc(theme(space.5)*5+theme(space.7)-theme(space.3))];
366
}
367
}
368
369
&[data-theme='dark'] .menu__link {
370
@apply text-mutedLight;
371
}
372
.theme-doc-sidebar-item-link .menu__link[target='_blank'] {
373
&::after {
374
content: '\2197';
375
@apply ml-1;
376
}
377
}
378
.menu__link {
379
@apply text-muted;
380
&:hover {
381
text-shadow: 0.1px 0.1px 0 var(--ifm-font-color-base),
382
-0.1px -0.1px 0 var(--ifm-font-color-base),
383
0.1px -0.1px 0 var(--ifm-font-color-base),
384
-0.1px 0.1px 0 var(--ifm-font-color-base),
385
-0.1px 0 0 var(--ifm-font-color-base),
386
0.1px 0 0 var(--ifm-font-color-base),
387
0 0.1px 0 var(--ifm-font-color-base),
388
0 -0.1px 0 var(--ifm-font-color-base);
389
@apply text-docusaurusColorBase;
390
}
391
392
& > svg {
393
@apply hidden;
394
}
395
}
396
397
.menu__link--sublist-caret {
398
@apply flex;
399
&::after {
400
background-size: 16px;
401
background-repeat: no-repeat;
402
@apply order-first ml-0 mr-4;
403
}
404
}
405
.menu__list-item--collapsed .menu__link--sublist:after,
406
.menu__list-item--collapsed .menu__caret:before {
407
transform: rotateZ(0);
408
}
409
.menu__caret,
410
li li .menu__link--sublist-caret::after {
411
@apply hidden;
412
}
413
414
/* TOC */
415
.table-of-contents__link:hover,
416
.table-of-contents__link--active {
417
text-shadow: 0.1px 0.1px 0 var(--ifm-font-color-base),
418
-0.1px -0.1px 0 var(--ifm-font-color-base),
419
0.1px -0.1px 0 var(--ifm-font-color-base),
420
-0.1px 0.1px 0 var(--ifm-font-color-base),
421
-0.1px 0 0 var(--ifm-font-color-base),
422
0.1px 0 0 var(--ifm-font-color-base), 0 0.1px 0 var(--ifm-font-color-base),
423
0 -0.1px 0 var(--ifm-font-color-base);
424
}
425
426
/* RELATED ARTICLES */
427
&[data-theme='dark'] .pagination-nav > a {
428
@apply bg-fg;
429
}
430
.pagination-nav {
431
@apply pb-7 mt-9;
432
& > a {
433
box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.07);
434
@apply border-transparent rounded pb-8.5 col-span-2 pt-6 px-6 hover:shadow-none;
435
436
@media (min-width: 997px) {
437
@apply col-span-1;
438
}
439
}
440
441
.pagination-nav {
442
&__link--next {
443
@apply text-left;
444
@media (min-width: 997px) {
445
@apply text-right;
446
}
447
}
448
&__sublabel {
449
@apply mb-3.5 text-gray-1000 dark:text-docusaurusColorBase text-3;
450
}
451
&__label {
452
@apply text-4 font-semibold;
453
}
454
}
455
}
456
457
/* FOOTER */
458
.footer {
459
background-color: var(--ifm-background-color);
460
@apply border-t border-t-docusaurusColorBorder pt-10 mb-10;
461
&__link-item {
462
@apply hover:no-underline hover:text-linkHover;
463
}
464
&__bottom {
465
margin: 0 calc(var(--ifm-spacing-horizontal) * -1);
466
}
467
&__copyright {
468
@apply text-left mt-9 text-2;
469
@media (min-width: 997px) {
470
@apply grid grid-cols-5;
471
}
472
& > div {
473
padding: 0 var(--ifm-spacing-horizontal);
474
&:nth-child(2) {
475
@apply col-span-4;
476
}
477
}
478
& a {
479
@apply pr-5 hover:text-linkHover hover:no-underline;
480
}
481
}
482
}
483
.footer__col:not(:first-child) {
484
@apply basis-1/2;
485
@media (min-width: 997px) {
486
@apply basis-0;
487
}
488
}
489
.footer__col:first-child .footer__title {
490
@apply hidden;
491
}
492
.footer__link-item {
493
& > svg {
494
@apply hidden;
495
}
496
}
497
498
.theme-back-to-top-button {
499
@apply rotate-180;
500
&::after {
501
@apply w-1/2;
502
}
503
}
504
505
/* MARKDOWN */
506
.markdown {
507
--ifm-heading-vertical-rhythm-bottom: 1;
508
--ifm-h1-vertical-rhythm-bottom: 1;
509
}
510
.theme-doc-markdown {
511
@apply mt-7 pb-8 border-b border-b-border;
512
513
h1 {
514
@apply text-7 font-bold leading-10 tracking-tight;
515
}
516
h2 {
517
@apply text-6 font-bold leading-9 tracking-tight;
518
}
519
h3 {
520
@apply text-4 font-semibold leading-7 tracking-tight;
521
}
522
p {
523
@apply leading-relaxed;
524
}
525
p,
526
ul,
527
ol,
528
code,
529
blockquote {
530
@apply text-[1.125rem];
531
}
532
code {
533
@apply border-0 px-3;
534
}
535
blockquote {
536
@apply my-7;
537
}
538
a {
539
@apply underline underline-offset-2 hover:text-linkHover hover:decoration-linkHover;
540
}
541
ol,
542
ul {
543
@apply my-6;
544
}
545
ul li {
546
@apply relative pl-6 mb-4 before:absolute before:block before:w-[4px] before:h-[4px] before:bg-current before:left-0 before:top-[calc(1em/2)];
547
}
548
ul li li {
549
@apply last:mb-6 before:border before:border-current before:bg-transparent;
550
}
551
li:last-child li {
552
@apply last:mb-0;
553
}
554
ol {
555
list-style-type: none;
556
counter-reset: item;
557
& > li {
558
@apply relative pl-8 mb-5.5;
559
&::before {
560
counter-increment: item;
561
content: counters(item, '.', decimal-leading-zero) '.';
562
@apply absolute flex left-0 top-[.2rem] text-3 font-semibold tracking-tight;
563
}
564
}
565
}
566
ol ol {
567
counter-reset: subitem;
568
& > li {
569
&::before {
570
counter-increment: subitem;
571
content: counters(subitem, '.', decimal-leading-zero) '.';
572
}
573
}
574
}
575
li {
576
& > ul,
577
& > ol {
578
@apply my-5;
579
}
580
& > p + .theme-code-block {
581
@apply mt-3;
582
}
583
}
584
}
585
}
586
587