pinafore/src/routes/_utils/getMainTopMargin.js

11 lines
260 B
JavaScript
Raw Normal View History

// 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
}
}