<small id='A4uCU'></small><noframes id='A4uCU'>

    <i id='A4uCU'><tr id='A4uCU'><dt id='A4uCU'><q id='A4uCU'><span id='A4uCU'><b id='A4uCU'><form id='A4uCU'><ins id='A4uCU'></ins><ul id='A4uCU'></ul><sub id='A4uCU'></sub></form><legend id='A4uCU'></legend><bdo id='A4uCU'><pre id='A4uCU'><center id='A4uCU'></center></pre></bdo></b><th id='A4uCU'></th></span></q></dt></tr></i><div id='A4uCU'><tfoot id='A4uCU'></tfoot><dl id='A4uCU'><fieldset id='A4uCU'></fieldset></dl></div>

  1. <tfoot id='A4uCU'></tfoot>
      • <bdo id='A4uCU'></bdo><ul id='A4uCU'></ul>

      <legend id='A4uCU'><style id='A4uCU'><dir id='A4uCU'><q id='A4uCU'></q></dir></style></legend>
    1. 如何覆盖 sass 中的引导变量?

      How to override bootstrap variables in sass?(如何覆盖 sass 中的引导变量?)

        <i id='tRMZe'><tr id='tRMZe'><dt id='tRMZe'><q id='tRMZe'><span id='tRMZe'><b id='tRMZe'><form id='tRMZe'><ins id='tRMZe'></ins><ul id='tRMZe'></ul><sub id='tRMZe'></sub></form><legend id='tRMZe'></legend><bdo id='tRMZe'><pre id='tRMZe'><center id='tRMZe'></center></pre></bdo></b><th id='tRMZe'></th></span></q></dt></tr></i><div id='tRMZe'><tfoot id='tRMZe'></tfoot><dl id='tRMZe'><fieldset id='tRMZe'></fieldset></dl></div>

            <bdo id='tRMZe'></bdo><ul id='tRMZe'></ul>
          • <small id='tRMZe'></small><noframes id='tRMZe'>

                <tbody id='tRMZe'></tbody>
              1. <tfoot id='tRMZe'></tfoot>
                <legend id='tRMZe'><style id='tRMZe'><dir id='tRMZe'><q id='tRMZe'></q></dir></style></legend>
                本文介绍了如何覆盖 sass 中的引导变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试自定义 Bootstrap 4.我想将设置从 _variable.scss 文件复制到 _custom.scss 以覆盖.但我没有在源代码中找到 _custom.scss 文件.如何在我的项目中添加这个 _custom.scss 文件?

                I was trying to customize a Bootstrap 4. I want to copy settings from _variable.scss file to _custom.scss to override. But I didn't find _custom.scss file in source code. How do I add this _custom.scss file in my project?

                推荐答案

                Bootstrap 4 大受欢迎.他们已经完全重写了它.因此,您可以非常轻松地覆盖变量.只需创建一个 _custom-variables.scss 文件并将其导入 bootstrap.scss 中的 _variables.scss 文件之前,如下所示.

                Bootstrap 4 is a big hit. They have completely rewritten it. So, You can override the variables very easily. Just create a _custom-variables.scss file and import it before _variables.scss file in bootstrap.scss as shown below.

                复制您要覆盖的变量,将其粘贴到 _custom-variables.scss 并根据需要更改值.同时删除 !default 属性.再次编译并完成.!default 属性与 !important 相反.它将采用先前声明的变量的值.

                Copy the variable which you want to override, paste it in _custom-variables.scss and change the value as you want. Also remove the !default attribute. Compile it again and done. The !default attribute is reverse of !important. It will take the value of previously declared variable.

                这篇关于如何覆盖 sass 中的引导变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to test html links with protractor?(如何用量角器测试 html 链接?)
                protractor unknown error, removing attribute from DOM(量角器未知错误,从 DOM 中删除属性)
                How to set HTML5 type=quot;datequot; input fields (e.g. in Chrome) using Selenium/Protractor?(如何设置 HTML5 type=date;使用 Selenium/Protractor 的输入字段(例如在 Chrome 中)?)
                HTML form values adding commas in Classic ASP(在经典 ASP 中添加逗号的 HTML 表单值)
                How to integrate WebSockets on top of a classic ASP web application?(如何在经典的 ASP Web 应用程序之上集成 WebSockets?)
                ActiveX Calendar Control Not Working In Windows 7(ActiveX 日历控件在 Windows 7 中不起作用)

                  <small id='RVopC'></small><noframes id='RVopC'>

                    <bdo id='RVopC'></bdo><ul id='RVopC'></ul>
                        <tbody id='RVopC'></tbody>
                    • <i id='RVopC'><tr id='RVopC'><dt id='RVopC'><q id='RVopC'><span id='RVopC'><b id='RVopC'><form id='RVopC'><ins id='RVopC'></ins><ul id='RVopC'></ul><sub id='RVopC'></sub></form><legend id='RVopC'></legend><bdo id='RVopC'><pre id='RVopC'><center id='RVopC'></center></pre></bdo></b><th id='RVopC'></th></span></q></dt></tr></i><div id='RVopC'><tfoot id='RVopC'></tfoot><dl id='RVopC'><fieldset id='RVopC'></fieldset></dl></div>

                        <tfoot id='RVopC'></tfoot>
                          <legend id='RVopC'><style id='RVopC'><dir id='RVopC'><q id='RVopC'></q></dir></style></legend>