File tree Expand file tree Collapse file tree 1 file changed +104
-0
lines changed Expand file tree Collapse file tree 1 file changed +104
-0
lines changed Original file line number Diff line number Diff line change 1111
1212 #main {
1313 margin-bottom : 0 ;
14+
15+ /* Improve readability */
16+ line-height : 1.4 ;
17+ text-align : justify ;
18+
19+ /* Ensure it uses full page width */
20+ width : 100% ;
21+ border : none ;
22+ padding : 0 ;
1423 }
1524
1625 footer {
3342 #dark-mode-button {
3443 display : none !important ;
3544 }
45+
46+ .cheat-sheet {
47+ font-size : 8pt ;
48+
49+ section {
50+ border : 1px solid black ;
51+ display : block ;
52+ gap : 0 ;
53+ margin-bottom : 0 ;
54+
55+ .item {
56+ background : none ;
57+ border : none ;
58+
59+ h3 {
60+ margin-bottom : 0 ;
61+ }
62+
63+ code {
64+ background : none ;
65+ line-height : inherit ;
66+ padding : 1px ;
67+ }
68+ }
69+ }
70+ .commit-reference {
71+ background : none ;
72+ border-left : 0.5px ;
73+
74+ dl {
75+ gap : inherit ;
76+
77+ dt ,dt ::before ,dd {
78+ line-height : inherit ;
79+ font-size : 0.7em !important ;
80+ }
81+ }
82+ }
83+
84+ p {
85+ font-size : inherit ;
86+ line-height : inherit ;
87+ margin : 1px ;
88+ }
89+ }
90+ }
91+
92+ @media print and (min-width : 231mm ) {
93+ div #content {
94+ width : 297mm ;
95+ }
96+
97+ header {
98+ padding : 0 ;
99+ #logo img {
100+ max-height : 23px ;
101+ width : auto ;
102+ height : auto ;
103+ }
104+ }
105+
106+ /* landscape orientation */
107+ @page {
108+ size : A4 landscape ;
109+ width : 297mm ;
110+ height : 210mm ;
111+ margin : 1cm ;
112+ }
113+
114+ .cheat-sheet {
115+ /* Multi-column layout */
116+ column-count : 6 ;
117+ column-gap : 1em ;
118+
119+ h1 {
120+ column-span : all ;
121+ position : absolute ;
122+ top : -10px ;
123+ width : 100% ;
124+ font-size : 16px ;
125+ text-align : center ;
126+ }
127+
128+ div .item {
129+ display : block ;
130+ width : 100% ;
131+ padding : 1px ;
132+ margin-bottom : 1px ;
133+ break-inside : avoid ;
134+
135+ label {
136+ margin-top : 2px ;
137+ }
138+ }
139+ }
36140}
You can’t perform that action at this time.
0 commit comments