diff -u b/core/modules/system/system.module b/core/modules/system/system.module --- b/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -3139,8 +3139,11 @@ return array(); } - $info = $themes[$theme_key]->info; - return isset($info['breakpoints']) ? $info['breakpoints'] : array(); + $config = config('breakpoints.' . $theme_key); + if ($config) { + return $config->get(); + } + return array(); } /** reverted: --- b/core/themes/bartik/bartik.info +++ a/core/themes/bartik/bartik.info @@ -4,10 +4,6 @@ version = VERSION core = 8.x -breakpoints[mobile] = (min-width: 0px) -breakpoints[narrow] = all and (min-width: 560px) and (max-width:850px) -breakpoints[wide] = all and (min-width: 851px) - stylesheets[all][] = css/layout.css stylesheets[all][] = css/style.css stylesheets[all][] = css/colors.css diff -u b/core/themes/seven/seven.info b/core/themes/seven/seven.info --- b/core/themes/seven/seven.info +++ b/core/themes/seven/seven.info @@ -4,9 +4,6 @@ version = VERSION core = 8.x -breakpoints[mobile] = (min-width: 0em) -breakpoints[wide] = screen and (min-width: 40em) - stylesheets[screen][] = reset.css stylesheets[screen][] = style.css diff -u b/core/themes/stark/stark.info b/core/themes/stark/stark.info --- b/core/themes/stark/stark.info +++ b/core/themes/stark/stark.info @@ -6,6 +6,2 @@ -breakpoints[mobile] = (min-width: 0px) -breakpoints[narrow] = all and (min-width: 480px) and (max-width: 959px) -breakpoints[wide] = all and (min-width: 960px) - stylesheets[all][] = css/layout.css only in patch2: unchanged: --- /dev/null +++ b/core/themes/bartik/config/breakpoints.bartik.yml @@ -0,0 +1,3 @@ +mobile: '(min-width: 0px)' +narrow: 'all and (min-width: 560px) and (max-width:850px)' +wide: 'all and (min-width: 851px)' \ No newline at end of file only in patch2: unchanged: --- /dev/null +++ b/core/themes/seven/config/breakpoints.seven.yml @@ -0,0 +1,2 @@ +mobile: '(min-width: 0em)' +wide: 'screen and (min-width: 40em)' \ No newline at end of file only in patch2: unchanged: --- /dev/null +++ b/core/themes/stark/config/breakpoints.stark.yml @@ -0,0 +1,3 @@ +mobile: '(min-width: 0px)' +narrow: 'all and (min-width: 480px) and (max-width: 959px)' +wide: 'all and (min-width: 960px)' \ No newline at end of file