Sha256: ea4898461a992e144f746e9af641bf740cd5c696f5e534e8db5ba8c9cef91a2b

Contents?: true

Size: 1.58 KB

Versions: 10

Compression:

Stored size: 1.58 KB

Contents

%section
  %a.scroll-target{name: 'color__class-helpers'}
  %h3.color-black Color class helpers
  %p To ease the styling of on-the-fly color changes in generated layouts.

  .panel.panel--padded
    %h4 Base
    %p
      Available for the following color names:
    %code
      = color_spans(%w(primary secondary accent black white grey required error warning success))
    %code
      %p= '.color-<color-name>'
      %p= '.bg-color-<color-name>'

    %h4 Opacity
    %p Available for the following color names:
    %code
      = color_spans(%w(primary secondary accent grey))
    %code.expandable
      = expandable_toggle
      - (1..10).each do |i|
        %p
          = ".color-<color-name>-o#{i*10}"
          = "=> color: rgba(<color-name>, #{(i*0.1).round(1)});"
      %br/
      - (1..10).each do |i|
        %p
          = ".bg-color-<color-name>-o#{i*10}"
          = "=> background-color: rgba(<color-name>,#{(i*0.1).round(1)});"

    %h4 Lighten & Darken
    %p Available for the following color names:
    %code
      = color_spans(%w(primary secondary accent grey))
    %code.expandable
      = expandable_toggle
      - (1..5).each do |i|
        %p= ".color-<color-name>-l#{i} => color: lighten(<color-name>, #{i}0%);"
      %br/
      - (1..5).each do |i|
        %p= ".bg-color-<color-name>-l#{i} => background-color: lighten(<color-name>, #{i}0%);"
      %br/
      - (1..5).each do |i|
        %p= ".color-<color-name>-d#{i} => color: darken(<color-name>, #{i}0%);"
      %br/
      - (1..5).each do |i|
        %p= ".bg-color-<color-name>-d#{i} => background-color: darken(<color-name>, #{i}0%);"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tenon-2.1.0 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.8 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.7 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.6 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.5 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.4 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.3 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.2 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.1 app/views/tenon/styleguides/colors/_helpers.html.haml
tenon-2.0.0 app/views/tenon/styleguides/colors/_helpers.html.haml