【发布时间】:2017-07-29 08:34:00
【问题描述】:
我尝试为中等屏幕和更小的屏幕设置不同的字体大小:
// _settings.scss
$global-font-size: 100%;
$global-width: rem-calc(1000);
$breakpoints: (
small: 0px,
medium: 640px,
large: 1000px
);
// _header.scss
.top-bar-left {
h1 {
font-size: 1.5rem;
@include breakpoint(medium down) {
font-size: 3rem;
}
}
}
生成以下 CSS:
@media screen and (max-width: 62.4375em)
.top-bar .top-bar-left h1 {
font-size: 3rem;
}
这是问题所在,因为我想要中等大小(640px 40em 而不是 62.5em)。
我是不是忘记了什么?也许在我的设置中?
更新
我的 sass 入口文件:
@charset 'utf-8';
@import 'settings';
@import '../node_modules/foundation-sites/scss/foundation';
/**
* Foundation 6
*/
@include foundation-everything;
/**
* App
*/
@import 'base';
@import 'header';
@import 'homepage';
【问题讨论】:
标签: css responsive-design zurb-foundation