forked from cybrespace/pinafore
11 lines
260 B
JavaScript
11 lines
260 B
JavaScript
|
// should be kept in sync with global.scss
|
||
|
export function getMainTopMargin () {
|
||
|
if (window.matchMedia('(max-width: 767px)').matches) {
|
||
|
return 62
|
||
|
} else if (window.matchMedia('(max-width: 991px').matches) {
|
||
|
return 52
|
||
|
} else {
|
||
|
return 42
|
||
|
}
|
||
|
}
|