Change @media screen sizes in mobileangularui

随声附和 提交于 2020-01-06 07:44:49

问题


I am just starting a project in PhoneGap, Angular JS and mobileangularui.

I am aware that mobileangularui uses bootstrap CSS and has components written in Angular JS. I am testing the responsive grid of bootstrap in my project.

The default screen sizes defined in bootstrap for breakpoints are:

  • xs: 480px and up.
  • sm: 768px and up.
  • md: 992px and up.
  • lg: 1280px and up.

I would like to change these to custom values. If I was using bootstrap (without mobileangularui), I would have customized the values here and downloaded the CSS. But, how do I make these changes in mobileangularui?


回答1:


Open the variables.less in <project-directory>\bower_components\bootstrap\less.

Edit the following variable values:

@screen-xs:                  480px;
@screen-sm:                  768px;
@screen-md:                  992px;
@screen-lg:                  1200px;

@container-tablet:             (720px + @grid-gutter-width);
@container-desktop:            (940px + @grid-gutter-width);
@container-large-desktop:      (1140px + @grid-gutter-width);

Run gulp build again.

This will overwrite the app.min.css, responsive.min.css in your project with new screen size values.



来源:https://stackoverflow.com/questions/33795511/change-media-screen-sizes-in-mobileangularui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!