File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const MiddlePanel = styled.div`
5
5
width: calc(100% - ${ props => props . theme . rightPanel . width } );
6
6
padding: 0 ${ props => props . theme . spacing . sectionHorizontal } px;
7
7
8
- ${ media . lessThan ( 'medium' ) `
8
+ ${ media . lessThan ( 'medium' , true ) `
9
9
width: 100%;
10
10
padding: ${ props =>
11
11
`${ props . theme . spacing . sectionVertical } px ${ props . theme . spacing . sectionHorizontal } px` } ;
@@ -19,7 +19,7 @@ export const Section = withProps<{ underlined?: boolean }>(
19
19
) `
20
20
padding: ${ props => props . theme . spacing . sectionVertical } px 0;
21
21
22
- ${ media . lessThan ( 'medium' ) `
22
+ ${ media . lessThan ( 'medium' , true ) `
23
23
padding: 0;
24
24
` }
25
25
${ props =>
@@ -45,7 +45,7 @@ export const RightPanel = styled.div`
45
45
background-color: ${ props => props . theme . rightPanel . backgroundColor } ;
46
46
padding: 0 ${ props => props . theme . spacing . sectionHorizontal } px;
47
47
48
- ${ media . lessThan ( 'medium' ) `
48
+ ${ media . lessThan ( 'medium' , true ) `
49
49
width: 100%;
50
50
padding: ${ props =>
51
51
`${ props . theme . spacing . sectionVertical } px ${ props . theme . spacing . sectionHorizontal } px` } ;
@@ -61,7 +61,7 @@ export const Row = styled.div`
61
61
width: 100%;
62
62
padding: 0;
63
63
64
- ${ media . lessThan ( 'medium' ) `
64
+ ${ media . lessThan ( 'medium' , true ) `
65
65
flex-direction: column;
66
66
` } ;
67
67
` ;
Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ export const ApiContentWrap = styled.div`
30
30
position: relative;
31
31
overflow: hidden;
32
32
width: calc(100% - ${ props => props . theme . menu . width } );
33
- ${ media . lessThan ( 'small' ) `
33
+ ${ media . lessThan ( 'small' , true ) `
34
34
width: 100%;
35
35
` } ;
36
+
36
37
contain: layout;
37
38
` ;
38
39
@@ -43,7 +44,7 @@ export const BackgroundStub = styled.div`
43
44
bottom: 0;
44
45
right: 0;
45
46
width: calc((100% - ${ ( { theme } ) => theme . menu . width } ) * 0.4);
46
- ${ media . lessThan ( 'medium' ) `
47
+ ${ media . lessThan ( 'medium' , true ) `
47
48
display: none;
48
49
` } ;
49
50
` ;
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ const StyledStickySidebar = withProps<{ open?: boolean }>(styled.div)`
43
43
background: #ffffff;
44
44
display: ${ props => ( props . open ? 'flex' : 'none' ) } ;
45
45
` } ;
46
+
47
+ @media print {
48
+ display: none;
49
+ }
46
50
` ;
47
51
48
52
const FloatingButton = styled . div `
@@ -60,11 +64,16 @@ const FloatingButton = styled.div`
60
64
${ media . lessThan ( 'small' ) `
61
65
display: flex;
62
66
` } ;
67
+
63
68
bottom: 44px;
64
69
65
70
width: 60px;
66
71
height: 60px;
67
72
padding: 0 20px;
73
+
74
+ @media print {
75
+ display: none;
76
+ }
68
77
` ;
69
78
70
79
@observer
Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ const {
26
26
> ;
27
27
28
28
export const media = {
29
- lessThan ( breakpoint ) {
29
+ lessThan ( breakpoint , print ?: boolean ) {
30
30
return ( ...args ) => css `
31
- @media (max-width: ${ props => props . theme . breakpoints [ breakpoint ] } ) {
31
+ @media ${ print ? 'print, ' : '' } screen and (max-width: ${ props =>
32
+ props . theme . breakpoints [ breakpoint ] } ) {
32
33
${ ( css as any ) ( ...args ) } ;
33
34
}
34
35
` ;
You can’t perform that action at this time.
0 commit comments