首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Nebular中更改主题变量值?

如何在Nebular中更改主题变量值?
EN

Stack Overflow用户
提问于 2021-02-21 10:13:20
回答 1查看 127关注 0票数 0

假设我想要更改header height,Nebular显示nb-layout-header height的变量名为header-height

https://akveo.github.io/nebular/docs/components/layout/theme#nblayoutheadercomponent

如何修改变量值?我必须为此创建一个自定义主题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-02-21 11:55:45

我已经查看了Nebular文档,要更改标题高度,您可以转到themes.scss并在那里定义header-height

我在星云样本Stackblitz上试过了

代码语言:javascript
复制
@import '~@nebular/theme/styles/theming';
@import '~@nebular/theme/styles/themes/default';

$nb-themes: nb-register-theme((
  header-height: 3rem
), default, default);

Nebular组件引用here的更改

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66298483

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档