【问题标题】:Rickshaw Graph Dashing scss editsRickshaw Graph Dashing scss 编辑
【发布时间】:2015-01-26 23:00:08
【问题描述】:

我正在尝试更改 scss 文件使用的一些颜色并放大图例的文本。我已经在 rickshawgraph.scss 文件中编辑了这些值,但是当我启动 dashing rickshaw graph 时它保持不变。

https://gist.github.com/jwalton/6614023 这是我的编辑块。

// ----------------------------------------------------------------------------
// Sass declarations
// ----------------------------------------------------------------------------
$background-color:  #dc5945;

$title-color:       rgba(126, 126, 126, 0.7);
$moreinfo-color:    rgba(126, 126, 126, 0.5);
$tick-color:        rgba(0, 0, 0, 0.4);

这是原始文件中的块。

// ----------------------------------------------------------------------------
// Sass declarations
// ----------------------------------------------------------------------------
$background-color:  #dc5945;

$title-color:       rgba(255, 255, 255, 0.7);
$moreinfo-color:    rgba(255, 255, 255, 0.5);
$tick-color:        rgba(0, 0, 0, 0.4);

任何帮助将不胜感激。

【问题讨论】:

    标签: coffeescript sass rickshaw dashing


    【解决方案1】:

    对于图例编辑:

    .rickshaw_legend {
    

    并添加...

    font-size: YOURFONTSIZEpx;
    

    您可能还想通过添加以下内容来更改高度或类似内容:

    height: YOURHEIGHTSIZEpx;
    

    我认为您可能遇到的颜色问题是不透明度保持不变 - rgba(255, 255, 255, 0.7);

    将此不透明度设为 1...

    rgba(255, 255, 255, 1);
    

    【讨论】:

    • 不久前,当我遇到这个问题时,我几乎就是这样做的,它确实有效。感谢您抽出宝贵时间在这里回复。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多