11/* ==========================================================================
2- NOTES PAGES
3- ========================================================================== */
2+ NOTES PAGES
3+ ========================================================================== */
44
55.course-entry ,
66.note-entry {
7- border-bottom : 1px solid # ddd ;
8- padding : 0.7rem 0 ;
97 display : flex;
108 justify-content : space-between;
9+ padding : 0.7rem 0 ;
10+ border-bottom : 1px solid # ddd ;
1111}
1212
1313.course-title ,
2727 color : # aaa ;
2828}
2929
30+ /* ==========================================================================
31+ NOTE CONTENT
32+ ========================================================================== */
33+
34+ # note-content {
35+ overflow-x : auto;
36+ }
37+
3038# note-content ul ,
3139# note-content ol {
3240 margin : 0 0 0 1.5rem ;
3543}
3644
3745# note-content ul ul ,
38- # note-content ol ul ,
3946# note-content ul ol ,
47+ # note-content ol ul ,
4048# note-content ol ol {
4149 margin-left : 3rem ;
4250}
4351
44- # note-content li + li {
52+ # note-content li + li {
4553 margin-top : 0.25rem ;
4654}
4755
48- h1 {
56+ # note-content h1 {
4957 font-size : 2rem ;
5058 margin-bottom : 0.5rem ;
5159}
5260
61+ /* ==========================================================================
62+ TABLE OF CONTENTS
63+ ========================================================================== */
64+
65+ nav .table-of-contents ,
5366.table-of-contents {
5467 border-left : 3px solid # eee ;
5568 padding-left : 1em ;
5669 margin : 1em 0 ;
5770 font-size : 0.95em ;
5871}
5972
73+ nav .table-of-contents ul ,
6074.table-of-contents ul {
6175 list-style : none;
6276 margin : 0 ;
6377 padding : 0 ;
6478}
6579
66- .table-of-contents li + li {
80+ nav .table-of-contents li + li ,
81+ .table-of-contents li + li {
6782 margin-top : 0.3em ;
6883}
6984
85+ nav .table-of-contents a ,
7086.table-of-contents a {
87+ display : block;
7188 text-decoration : none;
89+ color : var (--link-color , # 0055aa );
7290 border-left : 1px solid var (--border-color , # ddd );
7391 padding-left : 1rem ;
74- margin : 1rem 0 ;
92+ margin : 0.5em 0 ;
93+ }
94+
95+ nav .table-of-contents a : hover ,
96+ .table-of-contents a : hover {
97+ text-decoration : underline;
98+ }
99+
100+ /* Dark mode variants */
101+ .dark-mode nav .table-of-contents ,
102+ .dark-mode .table-of-contents {
103+ border-left-color : var (--border-color , # 444 );
104+ }
75105
76- ts a : hover {
77- font-size : 0.95rem ;
78- text-decoration : underline;
79- }
106+ .dark-mode nav .table-of-contents a ,
107+ .dark-mode .table-of-contents a {
108+ color : var (--link-color );
109+ border-left-color : var (--border-color );
110+ }
111+
112+ .dark-mode nav .table-of-contents a : hover ,
113+ .dark-mode .table-of-contents a : hover {
114+ color : var (--link-hover-color );
115+ text-decoration : underline;
116+ }
117+
118+ /* ==========================================================================
119+ MATH JAX IPA
120+ ========================================================================== */
121+
122+ .mjx-chtml .ipa {
123+ font-family : "Charis SIL" , "Doulos SIL" , "Noto Sans IPA" , sans-serif;
124+ }
80125
81- .table-of-contents ul {
82- list-style : none;
83- margin : 0 ;
84- padding : 0 ;
85- }
126+ /* ==========================================================================
127+ TABLE STYLING IN NOTES
128+ ========================================================================== */
86129
87- .table-of-contents li + li {
88- margin-top : 0.25rem ;
89- }
130+ # note-content table {
131+ border-collapse : collapse;
132+ white-space : nowrap;
133+ min-width : max-content;
134+ }
90135
91- .table-of-contents a {
92- text-decoration : none;
93- color : var (--link-color , # 0055aa );
136+ # note-content th ,
137+ # note-content td {
138+ border : 1px solid # ccc ;
139+ padding : 0.5em 1em ;
140+ }
94141
95- . table-of-contents a : hover {
96- text-decoration : underline ;
97- }
142+ # note-content tr : nth-child (even) {
143+ background : # fafafa ;
144+ }
98145
99- .dark-mode .table-of-contents {
100- border-color : # 444 ;
101- border-left-color : var (--border-color );
102- }
146+ /* ==========================================================================
147+ TABLE WRAPPER
148+ ========================================================================== */
103149
104- . dark-mode . table-of-contents a {
105- color : var ( --link-color ) ;
106- border-left-color : var ( --border-color ) ;
107- }
150+ . table-wrapper {
151+ overflow-x : auto ;
152+ margin : 1 em 0 ;
153+ }
108154
109- .dark-mode .table-of-contents a : hover {
110- text-decoration : underline;
111- color : var (--link-hover-color );
112- }
113- }
155+ .table-wrapper table {
156+ border-collapse : collapse;
157+ white-space : nowrap;
114158}
115159
116- .mjx-chtml .ipa {
117- font-family : "Charis SIL" , "Doulos SIL" , "Noto Sans IPA" , sans-serif;
160+ .table-wrapper th ,
161+ .table-wrapper td {
162+ border : 1px solid # ccc ;
163+ padding : 0.5em 1em ;
118164}
0 commit comments