Sha256: 8c0d5e4565c17bb797bf1e6228190d66483072f1475a710a25b4099cd6d4d6ab

Contents?: true

Size: 1.93 KB

Versions: 20

Compression:

Stored size: 1.93 KB

Contents

.linechart{
  //common
  svg{
    overflow: visible;
  }

  .background{
    fill: darken($body-background, 2.5);
  }

  .title{
    fill: $muted;
    font-weight: 600;
    font-size: rem-calc(24);
  }

  .subtitle{
    fill: $muted;
    font-size: rem-calc(14);
  }

  .tick{
    opacity: .5;

    .dashed{
      stroke-dasharray: 3;
    }
  }

  .line{
    fill: none;
    stroke-width: 3px;
  }

  // helper to colors
  @mixin loop-colors-types($color, $max: 12){
    @for $i from 0 through ($max - 1){
      $interval: ($i % 4) * 24 + 1;
      $tints: tint($color, $interval);
      $shades: shade($color, $interval);
      $adjusts: adjust-color($color, $lightness: $interval * 1%, $hue: -$interval);

      .type-#{$i}:not(.legend){
        @if $i < 4{
          stroke: $tints;

          &:hover{
            cursor: pointer;
            stroke: complement($tints);
          }
        }

        @else if $i >= 4 and $i < 8{
          stroke: $shades;

          &:hover{
            cursor: pointer;
            stroke: complement($shades);
          }
        }

        @else{
          stroke: $adjusts;

          &:hover{
            cursor: pointer;
            stroke: complement($adjusts);
          }
        }
      }

      .type-#{$i}:not(.line){
        @if $i < 4{
          fill: $tints;

          &:hover{
            cursor: pointer;
            fill: complement($tints);
          }
        }

        @else if $i >= 4 and $i < 8{
          fill: $shades;

          &:hover{
            cursor: pointer;
            fill: complement($shades);
          }
        }

        @else{
          fill: $adjusts;

          &:hover{
            cursor: pointer;
            fill: complement($adjusts);
          }
        }
      }
    }
  }

  // default color
  @include loop-colors-types($proposals);

  // colors modifiers
  $map: $foundation-palette;

  @each $key, $value in $map{
    &.#{$key}{
      @include loop-colors-types($value);
    }
  }
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-core-0.26.5 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.27.2 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.27.1 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.26.4 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.27.0 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.26.3 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.27.0.rc2 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.27.0.rc1 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.26.2 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.26.1 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.26.0 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.26.0.rc2 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.26.0.rc1 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.25.2 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.25.1 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.25.0 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.25.0.rc4 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.25.0.rc3 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.25.0.rc2 app/packs/stylesheets/decidim/vizzs/_linechart.scss
decidim-core-0.25.0.rc1 app/packs/stylesheets/decidim/vizzs/_linechart.scss