【问题标题】:Semantic-UI: Cheatsheet with all theme variablesSemantic-UI:包含所有主题变量的备忘单
【发布时间】:2017-02-15 01:33:10
【问题描述】:

正如您在http://semantic-ui.com/usage/theming.html 看到的那样,每个元素、集合、模块等都有预定义的变量(例如 button.variables:https://github.com/Semantic-Org/Semantic-UI/blob/master/src/themes/amazon/elements/button.variables)。

很遗憾,我找不到每个元素、模块、集合等的所有可能变量。是否有类似备忘单的东西,其中包含 Semantic-UI 的所有可能主题变量?

【问题讨论】:

    标签: variables themes semantic-ui theming


    【解决方案1】:

    您真正要查找的是在文件夹 src 下标记为定义。

    https://github.com/Semantic-Org/Semantic-UI-Meteor-Data/tree/master/lib/semantic-ui/src/definitions

    这里是一个例子:https://github.com/Semantic-Org/Semantic-UI-Meteor-Data/blob/master/lib/semantic-ui/src/definitions/globals/site.import.less

    每个标签只能更改几个变量,例如body:

    body {
      margin: 0px;
      padding: 0px;
      overflow-x: @pageOverflowX;
      min-width: @pageMinWidth;
      background: @pageBackground;
      font-family: @pageFont;
      font-size: @fontSize;
      line-height: @lineHeight;
      color: @textColor;
      font-smoothing: @fontSmoothing;
    }
    

    希望对你有所帮助!

    最好的!

    朱尔斯

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-17
      • 1970-01-01
      相关资源
      最近更新 更多