File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,13 @@ $Command,
1414[switch ]
1515$InvokeExample ,
1616
17- # The width of the sample code, in characters
17+ # The width of the sample code (in landscape mode) , in characters
1818[int ]
19- $SampleCodeWidth = 80
19+ $SampleCodeWidthLandscape = 80 ,
20+
21+ # The width of the sample code (in portrait mode), in characters
22+ [int ]
23+ $SampleCodeWidthPortrait = 80
2024)
2125
2226# Try to get command help
@@ -58,12 +62,16 @@ if ($notes) {
5862}"
5963" .sampleCode {
6064 text-align: center;
61- width: 60ch ;
65+ width: ${SampleCodeWidthLandscape} ch ;
6266 font-size: .9rem;
6367 margin-left: auto;
6468 margin-right: auto;
6569}"
6670
71+ " @media (orientation: portrait) {
72+ sampleCode { width: ${SampleCodeWidthPortrait} ch }
73+ }"
74+
6775" code { text-align: left}"
6876
6977" .example-outputs {
You can’t perform that action at this time.
0 commit comments