-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathboostlook.css
1953 lines (1666 loc) · 47.3 KB
/
boostlook.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Boost Look CSS Framework
* Version: 1.0.0
* Description: A comprehensive CSS framework for styling Boost C++ Library documentation
* Author: Boost C++ Libraries
* License: BSL-1.0
*/
/**
* File Structure Overview:
* 1. Root Variables (Light/Dark themes)
* 2. HTML Variables
* 3. Font-Face Declarations
* 4. CSS Reset
* 5. Global Styles for .boostlook
* 6. Styling for Scrollbar Display
* 7. AsciiDoctor-specific Styles
* 8. Antora Templates Styles
* 9. Quickbook Documentation Styles
* 10. Library README Styles
*/
/**
* Template Structure:
* The framework supports these main documentation templates:
*
* 1. AsciiDoctor Template:
* example: https://www.boost.io/doc/libs/1_87_0/libs/charconv/doc/html/charconv.html
* <div class="boostlook">
* <div class="header">
* <h1>Title</h1>
* <div id="toc" class="toc2">
* <button id="toggle-toc">Show Table of Contents</button>
* <ul class="sectlevel1">TOC Links</ul>
* </div>
* </div>
* <div id="content">
* <div class="sect1">Content Sections</div>
* </div>
* <div id="footer">Footer Content</div>
* </div>
*
* 2. Antora Template:
* example: https://www.boost.io/doc/libs/1_87_0/doc/antora/url/index.html
* <div class="boostlook">
* <div id="header">
* <div id="toc" class="nav-container toc2">Navigation</div>
* </div>
* <div id="content">
* <article class="doc max-width-reset">
* <div class="toolbar">Breadcrumbs and Spirit Nav</div>
* <h1>Title</h1>
* <div class="sect1">Content Sections</div>
* </article>
* </div>
* <div id="footer">Footer Content</div>
* </div>
*
* 3. Quickbook Template:
* example: https://www.boost.io/doc/libs/1_87_0/doc/html/accumulators.html
* <div class="boostlook">
* <div class="spirit-nav">Navigation</div>
* <div class="chapter"> <!-- might also be .section, .refentry, .document, or .book -->
* <div class="titlepage">Title and information</div>
* <div class="toc">Table of Contents</div>
* <div class="section>Content</div>
* <div class="copyright-footer">Footer</div>
* </div>
* </div>
*
* 4. README Template:
* example: https://www.boost.io/library/1.87.0/beast/
* <section id="libraryReadMe" class="boostlook">ReadMe Content</section>
*/
/**
* Design Philosophy:
* - Consistent styling across different documentation templates
* - Responsive design with mobile-first approach
* - Dark/Light theme support
* - Accessible typography and color schemes
* - Modern scrolling and navigation experience
*/
/*----------------- Root Variables - Start -----------------*/
/* Root CSS Variables
* Defines core design tokens used throughout the framework.
* Organized into:
* 1. General Variables (cross-theme)
* 2. Light Theme Variables
* 3. Dark Theme Variables
*/
:root {
/* General Variables - Core design tokens for all themes */
--bl-primary-color: rgb(255, 159, 0); /* Boost's signature orange color */
--bl-header-height: 2.5rem; /* Standard header height */
/* Light Theme Variables - Color scheme for light mode */
/* General Variables */
--light-bl-secondary-color: rgb(2, 132, 199);
/* Background and Border Colors */
--light-bl-background: rgb(255, 255, 255);
--light-bl-border-color: rgb(209, 209, 209);
--light-bl-card-background-color: rgb(255, 255, 255);
--light-bl-code-background: rgb(248, 248, 248);
--light-bl-code-border-color: rgb(220, 220, 220);
--light-bl-pre-background: rgb(248, 248, 248);
--light-bl-quote-background: rgb(255, 255, 255);
--light-bl-table-head-background: rgb(248, 248, 248);
--light-bl-table-stripe-color: rgb(248, 248, 248);
--light-bl-tabpanel-background: rgb(255, 255, 255);
/* Text Colors */
--light-bl-code-text-color: rgb(0, 0, 0);
--light-bl-header-color: rgb(49, 74, 87);
--light-bl-nav-link-color: rgb(0, 0, 0);
--light-bl-paragraph-color: rgb(0, 0, 0);
--light-bl-text-color: rgb(51, 65, 85);
/* Interactive Elements */
--light-bl-link-color: rgb(2, 132, 199);
--light-bl-link-hover-color: rgba(255, 159, 0);
--light-bl-nav-link-hover-color: rgba(0, 0, 0, 0.6);
/* Syntax Highlighting */
--light-bl-hljs-attribute-color: rgb(70, 130, 180);
--light-bl-hljs-doctag-color: rgb(221, 17, 68);
--light-bl-hljs-keyword-color: rgb(51, 51, 51);
--light-bl-hljs-number-color: rgb(0, 128, 128);
--light-bl-hljs-section-color: rgb(153, 0, 0);
/* UI Elements */
--light-bl-breadcrumbs-svg-color: rgb(0, 0, 0);
--light-bl-caret-svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23000000'%3E%3Cpath%20d='M320-200v-560l440%20280-440%20280Z'/%3E%3C/svg%3E");
--light-bl-nav-fade-color: rgb(255, 255, 255, 1);
--light-bl-pasteboard-color: rgb(229, 231, 235);
/* Scrollbar Colors */
--light-bl-scrollbar-track-color: rgb(234, 240, 243);
--light-bl-scrollbar-thumb-color: rgb(193, 193, 193);
--light-bl-scrollbar_hover-thumb-color: rgb(193, 193, 193);
/* Additional Theme Variables */
--light-bl-table-border-color: rgb(209, 209, 209);
--light-bl-tab-background: rgb(240, 240, 240);
/**
* Dark Theme Variables
* Color palette and design tokens for dark mode
*/
/* General Variables */
--dark-bl-secondary-color: rgb(125, 211, 252);
/* Background and Border Colors */
--dark-bl-background: rgb(5, 26, 38);
--dark-bl-border-color: rgb(3, 25, 37);
--dark-bl-card-background-color: rgb(23, 42, 52);
--dark-bl-code-background: rgb(5, 26, 38);
--dark-bl-code-border-color: transparent;
--dark-bl-pre-background: rgb(5, 26, 38);
--dark-bl-quote-background: rgb(11, 59, 82);
--dark-bl-table-head-background: rgb(5, 26, 38);
--dark-bl-table-stripe-color: rgb(49,74,87);
--dark-bl-table-border-color: rgb(49, 74, 87);
--dark-bl-tabpanel-background: rgb(49, 74, 87);
--dark-bl-tab-background: rgb(30, 50, 65);
/* Text Colors */
--dark-bl-code-text-color: rgb(255, 255, 255);
--dark-bl-header-color: rgb(255, 255, 255);
--dark-bl-nav-link-color: rgb(255, 255, 255);
--dark-bl-paragraph-color: rgb(255, 255, 255);
--dark-bl-text-color: rgb(255, 255, 255);
/* Interactive Elements */
--dark-bl-link-color: rgb(125 211 252);
--dark-bl-link-hover-color: rgb(255, 159, 0);
--dark-bl-nav-link-hover-color: rgba(255, 255, 255, 0.6);
/* Syntax Highlighting */
--dark-bl-hljs-attribute-color: rgb(70, 130, 180);
--dark-bl-hljs-doctag-color: rgb(255, 99, 132);
--dark-bl-hljs-keyword-color: rgb(173, 216, 230);
--dark-bl-hljs-number-color: rgb(72, 209, 204);
--dark-bl-hljs-section-color: rgb(255, 69, 58);
/* UI Elements */
--dark-bl-breadcrumbs-svg-color: rgb(255, 255, 255);
--dark-bl-caret-svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23ccc'%3E%3Cpath%20d='M320-200v-560l440%20280-440%20280Z'/%3E%3C/svg%3E");
--dark-bl-nav-fade-color: rgb(23, 42, 52);
--dark-bl-pasteboard-color: rgb(05, 26, 38);
--dark-bl-pagination-color: rgb(200, 200, 200);
--dark-bl-quote-word-color: rgb(209, 228, 242);
/* Scrollbar Colors */
--dark-bl-scrollbar-track-color: rgb(46, 58, 66);
--dark-bl-scrollbar-thumb-color: rgb(109, 124, 133);
--dark-bl-scrollbar_hover-thumb-color: rgb(147, 161, 170);
/**
* Specific Use Colors
* Special purpose colors for both light and dark themes
*/
/* Light Theme Special Colors */
--site-light-red: red;
--site-light-green: green;
--site-light-lime: #00FF00;
--site-light-blue: blue;
--site-light-navy: rgb(20, 20, 164);
--site-light-yellow: yellow;
--site-light-magenta: magenta;
--site-light-indigo: #4B0082;
--site-light-cyan: cyan;
--site-light-purple: purple;
--site-light-gold: #987301;
--site-light-silver: silver;
--site-light-gray: #808080;
/* Dark Theme Special Colors */
--site-dark-red: #fa6f6f;
--site-dark-green: #45b945;
--site-dark-lime: #00FF00;
--site-dark-blue: #6666f8;
--site-dark-navy: #6060c4;
--site-dark-yellow: yellow;
--site-dark-magenta: magenta;
--site-dark-indigo: #a53def;
--site-dark-cyan: cyan;
--site-dark-purple: #ac43ac;
--site-dark-gold: gold;
--site-dark-silver: silver;
--site-dark-gray: #808080;
}
/*----------------- Root Variables - End -----------------*/
/*----------------- HTML Variables - Start -----------------*/
/**
* HTML Theme Variables
* These variables are applied to the HTML element and control the active theme.
* The framework supports two themes:
* 1. Light Theme (default)
* 2. Dark Theme (activated by html.dark class)
*/
/* Light Theme (Default) Configuration */
html {
/* General Variables */
--bl-secondary-color: var(--light-bl-secondary-color);
/* Background and Borders */
--bl-background: var(--light-bl-background);
--bl-border-color: var(--light-bl-border-color);
--bl-card-background-color: var(--light-bl-card-background-color);
--bl-code-background: var(--light-bl-code-background);
--bl-code-border-color: var(--light-bl-code-border-color);
--bl-pre-background: var(--light-bl-pre-background);
--bl-quote-background: var(--light-bl-quote-background);
--bl-table-border-color: var(--light-bl-table-border-color);
--bl-table-head-background: var(--light-bl-table-head-background);
--bl-table-stripe-color: var(--light-bl-table-stripe-color);
--bl-tabpanel-background: var(--light-bl-tabpanel-background);
/* Typography and Colors */
--bl-code-text-color: var(--light-bl-code-text-color);
--bl-header-color: var(--light-bl-header-color);
--bl-link-color: var(--light-bl-link-color);
--bl-link-hover-color: var(--light-bl-link-hover-color);
--bl-nav-link-color: var(--light-bl-nav-link-color);
--bl-nav-link-hover-color: var(--light-bl-nav-link-hover-color);
--bl-nav-fade-color: var(--light-bl-nav-fade-color);
--bl-paragraph-color: var(--light-bl-paragraph-color);
--bl-text-color: var(--light-bl-text-color);
/* UI Components */
--bl-breadcrumbs-svg-color: var(--light-bl-breadcrumbs-svg-color);
--bl-caret-svg: var(--light-bl-caret-svg);
--bl-pasteboard-color: var(--light-bl-pasteboard-color);
/* Syntax Highlighting */
--bl-hljs-doctag-color: var(--light-bl-hljs-doctag-color);
--bl-hljs-attribute-color: var(--light-bl-hljs-attribute-color);
--bl-hljs-keyword-color: var(--light-bl-hljs-keyword-color);
--bl-hljs-number-color: var(--light-bl-hljs-number-color);
--bl-hljs-section-color: var(--light-bl-hljs-section-color);
/* Scrollbar Styling */
--bl-scrollbar-track-color: var(--light-bl-scrollbar-track-color);
--bl-scrollbar-thumb-color: var(--light-bl-scrollbar-thumb-color);
--bl-scrollbar_hover-thumb-color: var(--light-bl-scrollbar_hover-thumb-color);
/* Special Purpose Colors */
--color-red: var(--site-light-red);
--color-green: var(--site-light-green);
--color-lime: var(--site-light-lime);
--color-blue: var(--site-light-blue);
--color-navy: var(--site-light-navy);
--color-yellow: var(--site-light-yellow);
--color-magenta: var(--site-light-magenta);
--color-indigo: var(--site-light-indigo);
--color-cyan: var(--site-light-cyan);
--color-purple: var(--site-light-purple);
--color-gold: var(--site-light-gold);
--color-silver: var(--site-light-silver);
--color-gray: var(--site-light-gray);
}
/* Dark Theme Configuration */
html.dark {
/* General Variables */
--bl-secondary-color: var(--dark-bl-secondary-color);
/* Background and Borders */
--bl-background: var(--dark-bl-background);
--bl-border-color: var(--dark-bl-border-color);
--bl-card-background-color: var(--dark-bl-card-background-color);
--bl-code-background: var(--dark-bl-code-background);
--bl-code-border-color: var(--dark-bl-code-border-color);
--bl-pre-background: var(--dark-bl-code-background);
--bl-quote-background: var(--dark-bl-quote-background);
--bl-quote-word-color: var(--dark-bl-quote-word-color);
--bl-table-border-color: var(--dark-bl-table-border-color);
--bl-table-head-background: var(--dark-bl-table-head-background);
--bl-table-stripe-color: var(--dark-bl-table-stripe-color);
--bl-tabpanel-background: var(--dark-bl-tabpanel-background);
/* Typography and Colors */
--bl-code-text-color: var(--dark-bl-code-text-color);
--bl-header-color: var(--dark-bl-header-color);
--bl-link-color: var(--dark-bl-link-color);
--bl-link-hover-color: var(--dark-bl-link-hover-color);
--bl-nav-link-color: var(--dark-bl-nav-link-color);
--bl-nav-link-hover-color: var(--dark-bl-nav-link-hover-color);
--bl-nav-fade-color: var(--dark-bl-nav-fade-color);
--bl-paragraph-color: var(--dark-bl-paragraph-color);
--bl-text-color: var(--dark-bl-text-color);
/* UI Components */
--bl-breadcrumbs-svg-color: var(--dark-bl-breadcrumbs-svg-color);
--bl-caret-svg: var(--dark-bl-caret-svg);
--bl-pasteboard-color: var(--dark-bl-pasteboard-color);
--bl-pagination-color: var(--dark-bl-pagination-color);
/* Syntax Highlighting */
--bl-hljs-attribute-color: var(--dark-bl-hljs-attribute-color);
--bl-hljs-doctag-color: var(--dark-bl-hljs-doctag-color);
--bl-hljs-keyword-color: var(--dark-bl-hljs-keyword-color);
--bl-hljs-number-color: var(--dark-bl-hljs-number-color);
--bl-hljs-section-color: var(--dark-bl-hljs-section-color);
/* Scrollbar Styling */
--bl-scrollbar-track-color: var(--dark-bl-scrollbar-track-color);
--bl-scrollbar-thumb-color: var(--dark-bl-scrollbar-thumb-color);
--bl-scrollbar_hover-thumb-color: var(--dark-bl-scrollbar_hover-thumb-color);
/* Special Purpose Colors */
--color-red: var(--site-dark-red);
--color-green: var(--site-dark-green);
--color-lime: var(--site-dark-lime);
--color-blue: var(--site-dark-blue);
--color-navy: var(--site-dark-navy);
--color-yellow: var(--site-dark-yellow);
--color-magenta: var(--site-dark-magenta);
--color-indigo: var(--site-dark-indigo);
--color-cyan: var(--site-dark-cyan);
--color-purple: var(--site-dark-purple);
--color-gold: var(--site-dark-gold);
--color-silver: var(--site-dark-silver);
--color-gray: var(--site-dark-gray);
}
/*----------------- HTML Variables - End -----------------*/
/*----------------- Font-Face Declarations start -----------------*/
/**
* Typography Configuration
* The framework uses Noto Sans family as its primary font system:
* 1. Noto Sans Display: Main text font with variable weight support
* 2. Noto Sans Mono: Monospace font for code blocks
*
* Font Loading Strategy:
* - Multiple source paths for resilient loading
* - Variable fonts for optimal performance
* - Font-display: block to prevent FOIT (Flash of Invisible Text)
*/
/* Noto Sans Display - Regular */
@font-face {
font-family: "Noto Sans Display";
font-style: normal;
font-weight: 100 900; /* Variable font weight range */
font-variation-settings: "wght" 400;
font-stretch: semi-condensed;
font-display: block; /* Prevents FOIT */
src: url('/_/fonts/NotoSansDisplay.ttf') format('truetype'),
url('../../../../tools/boostlook/NotoSansDisplay.ttf') format('truetype'),
url("https://cppalliance.org/fonts/NotoSansDisplay.ttf") format('truetype');
}
/* Noto Sans Display - Italic */
@font-face {
font-family: "Noto Sans Display";
font-style: italic;
font-weight: 100 900; /* Variable font weight range */
font-variation-settings: "wght" 400;
font-stretch: semi-condensed;
font-display: block; /* Prevents FOIT */
src: url("/font/NotoSansDisplay-Italic.ttf") format("truetype"),
url("../../../../tools/boostlook/NotoSansDisplay-Italic.ttf") format("truetype"),
url("https://cppalliance.org/fonts/NotoSansDisplay-Italic.ttf") format('truetype');
}
/* Noto Sans Mono - Variable Weight */
@font-face {
font-family: "Noto Sans Mono";
font-style: normal;
font-weight: 100 900; /* Variable font weight range */
font-variation-settings: "wght" 400;
font-stretch: semi-condensed;
font-display: block; /* Prevents FOIT */
src: url("/_/boostlook/NotoSansMono.ttf") format("truetype"),
url("../../../../tools/boostlook/NotoSansMono.ttf") format("truetype"),
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format('truetype');
}
/* Noto Sans Mono - Fixed Weight */
@font-face {
font-family: "Noto Sans Mono";
font-style: normal;
font-weight: 400; /* Fixed weight for specific use cases */
font-stretch: ultra-condensed;
font-display: block; /* Prevents FOIT */
src: url("/_/boostlook/NotoSansMono.ttf") format("truetype"),
url("../../../../tools/boostlook/NotoSansMono.ttf") format("truetype"),
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format('truetype');
}
/*----------------- Font-Face Declarations end -----------------*/
/*----------------- CSS Reset start -----------------*/
/**
* Modern CSS Reset
* A minimal CSS reset that:
* 1. Uses modern box-sizing model
* 2. Removes default margins
* 3. Improves text rendering
* 4. Handles media elements consistently
* 5. Normalizes form elements
* 6. Prevents text overflow issues
* 7. Provides proper stacking context
*/
/* Box sizing rules */
*, *::before, *::after {
box-sizing: border-box;
}
/* Remove default margin */
* {
margin: 0;
}
/* Body defaults */
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased; /* Improves text rendering on WebKit */
}
/* Media elements */
img, picture, video, canvas, svg {
display: block;
max-width: 100%; /* Responsive media elements */
}
/* Form elements */
input, button, textarea, select {
font: inherit; /* Inherit typography */
}
/* Text elements */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word; /* Prevent text overflow */
}
/* Stacking context */
#root, #__next {
isolation: isolate; /* Create new stacking context */
}
/*----------------- CSS Reset end -----------------*/
/*----------------- Global Styles for .boostlook start -----------------*/
/**
* Global Styles for .boostlook
* Core styles that apply to all .boostlook containers regardless of template.
* These styles establish:
* 1. Typography hierarchy and spacing
* 2. Link appearances and interactions
* 3. Code block formatting
* 4. List and table styles
* 5. Layout structure and spacing
*/
/* Base Container */
.boostlook {
font-family: "Noto Sans Display" !important;
font-stretch: 90%;
}
/* Typography Hierarchy
* Establishes consistent heading sizes and spacing
* while maintaining proper visual hierarchy
*/
.boostlook h1,
.boostlook h2,
.boostlook h3,
.boostlook h4,
.boostlook h5,
.boostlook h6 {
display: block;
line-height: 1;
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 500;
position: relative;
}
/* Heading Sizes */
.boostlook h1 { font-size: 1.8rem; } /* Primary headings */
.boostlook h2 { font-size: 1.65rem; } /* Section headings */
.boostlook h3 { font-size: 1.5rem; } /* Subsection headings */
.boostlook h4 { font-size: 1.35rem; } /* Topic headings */
.boostlook h5 { font-size: 1.25rem; } /* Subtopic headings */
.boostlook h6 { font-size: 1rem; } /* Minor headings */
/* Document-specific heading adjustments */
.boostlook .doc h2:not(.discrete) {
margin-left: 0;
padding-left: 0;
}
/* Anchor positioning within headings */
.boostlook .doc h1 .anchor {
margin: 3px 0 0 -1.3ex;
}
.boostlook .doc h2 .anchor,
.boostlook .doc h3 .anchor {
margin: 2px 0 0 -1.3ex;
}
.boostlook .doc h4 .anchor,
.boostlook .doc h5 .anchor,
.boostlook .doc h6 .anchor {
margin: 1px 0 0 -1.3ex;
}
/* Paragraph Styling */
.boostlook p {
font-size: 1rem;
margin-bottom: 1.5rem;
color: var(--bl-text-color);
padding-top: initial !important;
padding-bottom: initial !important;
}
/* Special paragraph cases */
.boostlook table p,
.boostlook ul p {
margin: 0;
}
/* Link Styling */
.boostlook a,
.boostlook .doc a {
color: var(--bl-link-color);
text-decoration: none;
}
/* Link Hover States */
.boostlook a:hover,
.boostlook .doc a:hover,
#libraryReadMe a:hover,
#boost-legacy-docs-wrapper a:hover {
color: var(--bl-link-hover-color);
cursor: pointer;
text-decoration: underline;
}
/* Link States */
.boostlook p a:visited,
.boostlook table a,
.boostlook .pagination a {
color: var(--bl-link-color);
}
/* Code Block Styling */
.boostlook code,
.boostlook pre code,
.boostlook .doc .content pre code {
border-color: var(--bl-code-border-color);
color: var(--bl-code-text-color);
padding: 1.2em .8em;
font-family: "Noto Sans Mono", monospace;
margin-bottom: 1.25rem;
}
/* Emphasis within code */
.boostlook em,
.boostlook code em {
font-family: "Noto Sans Display";
font-size: inherit;
}
/* Table Headings */
.boostlook h6:has(+table) {
margin-left: 1em;
}
/* List Styling */
.boostlook ul.itemizedlist,
#boost-legacy-docs-wrapper .ulist ul {
padding: 0 0 0 15px;
margin: 0;
}
/* Code Styling */
.boostlook h2 a code {
color: var(--bl-nav-link-color);
font-size: 1.65rem;
}
.boostlook h3 a code,
.boostlook h3 a:hover code {
color: var(--bl-nav-link-color) !important;
font-size: 1.5rem;
}
.boostlook code,
.boostlook p code,
.boostlook li code,
.boostlook .doc p code,
.boostlook .doc table code,
.boostlook .doc .colist > table code {
background: none;
padding: 0;
font-weight: 400;
font-stretch: 90%;
color: var(--bl-code-text-color) !important;
}
/* Code Links */
.boostlook code a,
.boostlook p code a,
.boostlook li code a,
.boostlook .doc p code a,
.boostlook .doc table code a,
.boostlook .doc .colist > table code a,
.boostlook a code,
.boostlook p a code,
.boostlook li a code,
.boostlook .doc p a code,
.boostlook .doc table a code,
.boostlook .doc .colist > table a code {
color: var(--bl-link-color) !important;
}
/* Code Link Hover States */
.boostlook code a:hover,
.boostlook p code a:hover,
.boostlook li code a:hover,
.boostlook .doc p code a:hover,
.boostlook .doc table code a:hover,
.boostlook .doc .colist > table code a:hover,
.boostlook a:hover code,
.boostlook p a:hover code,
.boostlook li a:hover code,
.boostlook .doc p a:hover code,
.boostlook .doc table a:hover code,
.boostlook .doc .colist > table a:hover code {
color: var(--bl-link-hover-color) !important;
}
/* Table Cell Code */
.boostlook td code {
margin-bottom: 10px;
}
/* Quote Blocks */
.boostlook .quoteblock,
.boostlook .verseblock {
background: var(--bl-quote-background);
border-left: 3px solid var(--bl-border-color);
color: var(--bl-text-color);
}
.boostlook .quoteblock::before,
.boostlook .verseblock::before {
color: var(--bl-quote-word-color);
}
/* Tab Panels */
.boostlook .tabpanel {
background-color: var(--bl-tabpanel-background);
}
/* Syntax Highlighting */
.boostlook .hljs-keyword,
.boostlook .hljs-selector-tag,
.boostlook .hljs-subst {
color: var(--bl-hljs-keyword-color);
}
.boostlook .hljs-number {
color: var(--bl-hljs-number-color);
}
.boostlook .hljs-doctag,
.boostlook .hljs-string {
color: var(--bl-hljs-doctag-color);
}
.boostlook .hljs-section,
.boostlook .hljs-selector-id,
.boostlook .hljs-title {
color: var(--bl-hljs-section-color);
}
.boostlook .hljs-attribute,
.boostlook .hljs-name,
.boostlook .hljs-tag {
color: var(--bl-hljs-attribute-color);
}
/* Pagination */
.boostlook nav.pagination span::before {
color: var(--bl-pagination-color);
}
/* Text Emphasis */
.boostlook b,
.boostlook strong {
font-variation-settings: "wght" 700;
}
/* Layout Structure */
.boostlook #header,
.boostlook #content,
.boostlook #footer {
padding-left: 1.25rem;
padding-right: 1.25rem;
}
.boostlook #header {
padding-top: 1.25rem;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}
.boostlook #content {
padding-top: 1.25rem;
padding-bottom: .50rem;
}
.boostlook #footer {
padding-bottom: 1.25rem;
border-bottom-left-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
}
/* First Heading Adjustment */
.boostlook h2:first-of-type {
margin-top: 0;
}
/*----------------- Global Styles for .boostlook end -----------------*/
/**
* Scrollbar Styling
* "Hide" scrollbar, and display on hover
* Comprehensive scrollbar customization for different contexts:
* 1. Global Scrollbar Styles
* 2. Template-specific adjustments
* 3. Code Elements
* 4. Table Containers
*/
/* Global Scrollbar Styles */
.boostlook * {
scrollbar-color: initial !important;
scrollbar-width: initial !important;
}
.boostlook:not(:has(.doc)) ::-webkit-scrollbar {
width: 2px;
height: 2px;
}
.boostlook ::-webkit-scrollbar-track {
border-radius: 1px;
background-color: var(--bl-background);
}
.boostlook ::-webkit-scrollbar-thumb {
background-color: var(--bl-background); /* blend into background */
}
.boostlook *:hover::-webkit-scrollbar-thumb {
background-color: var(--bl-scrollbar-thumb-color);
color: var(--bl-scrollbar-thumb-color);
}
/* Template-specific Adjustments */
/* Hide root scrollbars for Antora template */
html:has(.article > .boostlook) {
height: 100vh;
overflow: hidden;
}
/* Iframe container scrollbar handling */
html:has(#docsiframe) {
overflow-y: hidden;
}
/* Chrome/Edge scrollbar for iframe container */
html:has(#docsiframe)::-webkit-scrollbar {
width: 0;
height: 0;
}
/* Antora template - Scrollable content area */
.boostlook #content:has(> .doc) {
overflow-y: auto;
height: 100vh;
}
.boostlook #content:has(> .doc)::-webkit-scrollbar-track {
border-radius: 0 8px 0 0;
}
/* Asciidoc template - Content overflow handling */
.boostlook:has(#content > .sect1) {
overflow-y: auto;
height: 100vh;
}
/* Code Elements */
.boostlook pre::-webkit-scrollbar-track,
.boostlook code::-webkit-scrollbar-track {
background-color: var(--bl-pre-background);
border: 1px solid var(--bl-pre-background);
}
.boostlook pre::-webkit-scrollbar-thumb,
.boostlook code::-webkit-scrollbar-thumb {
background-color: var(--bl-pre-background);
}
.boostlook pre:hover::-webkit-scrollbar-thumb,
.boostlook code:hover::-webkit-scrollbar-thumb {
background-color: var(--bl-scrollbar-thumb-color);
}
.boostlook .doc pre,
.boostlook p code,
.boostlook table code,
.boostlook p tt,
.boostlook p kbd,
.boostlook p samp,
.boostlook p pre,
.boostlook:not(:has(.doc)) pre,
.boostlook code,
.boostlook pre code,
.boostlook .doc .content pre code,
.boostlook#libraryReadMe pre code {
overflow-x: auto;
scrollbar-color: initial;
scrollbar-width: initial;
}
/* Table Container */
.boostlook .content div:has(> table),
.boostlook .doc table.tableblock,
.boostlook #content .sect3:has(.tableblock) {
overflow-x: auto !important;
}
/*----------------- Styles specific to AsciiDoctor content start -----------------*/
/**
* AsciiDoctor-Specific Styles
* Styles that apply specifically to content generated by AsciiDoctor.
* These styles handle:
* 1. Article layout and structure
* 2. Table of contents (TOC) styling
* 3. Content formatting
* 4. Responsive design adjustments
*/
/* Article Layout */
.article.toc2.toc-left {
min-height: 100vh;
max-width: 80rem;
margin-left: auto;
margin-right: auto;
background-color: var(--bl-pasteboard-color);
position: relative;
}
/* Pre-formatted Text Blocks */
.boostlook:not(:has(.doc)) pre {
font-family: "Noto Sans Mono", monospace;
background-color: var(--bl-pre-background);
margin-bottom: 1.25rem;
padding: 1rem;
border-color: var(--bl-code-border-color);
}
/* Table Styling */
.boostlook:not(:has(.doc)) table {
border-collapse: collapse;
margin: 1em 0;
border: 1px solid var(--bl-table-border-color);
}
.boostlook:not(:has(.doc)) th {
background-color: var(--bl-table-head-background);
text-align: left;
padding: 0.25em 0.55em;
}
.boostlook:not(:has(.doc)) td {
border: 1px solid var(--bl-table-border-color);
padding: 0.25em 0.55em;
}
/* Header Adjustments */
.boostlook #header > h1 {
margin-top: 0;
}
/* Table of Contents Styling */
.boostlook #toc > ul.sectlevel1 {
padding-left: 0;
}
.boostlook #toc ul {
margin: 0;
padding: 0 0 0 0.8rem;
line-height: 1.5;
font-size: 1rem;
list-style: none;
}
/* Table of Contents Links */
.boostlook #toc a {
color: var(--bl-nav-link-color);
}
.boostlook #toc a:hover,
.boostlook #toc a:focus {
color: var(--bl-nav-link-hover-color);
}
.boostlook #toc.toc2 {
padding-bottom: 1.5rem;
}
.boostlook #toc .sectlevel1 > li > a {
font-variation-settings: "wght" 750;
}
.boostlook #toc #toctitle {
font-size: 1.5rem;
}
/* Background Colors */
.boostlook #toc.toc2,
.boostlook #header:not(:has(.nav-container)),
.boostlook #content,
.boostlook #footer {
background-color: var(--bl-card-background-color);
}
/* TOC Scrolling */
.boostlook #toc.toc2,
.boostlook #toc.toc2.nav-container {
overflow-y: auto;
}
/* TOC Positioning */
.boostlook #toc.toc2,
#boost-legacy-docs-wrapper:not(:has(article.doc)) #toc.toc2.is-active {