Sha256: d77e56c204d3b9cba092faffbe7b64dbd20f13bf1ebe026e41dc39df1dbfee34

Contents?: true

Size: 1.54 KB

Versions: 51

Compression:

Stored size: 1.54 KB

Contents

/* code-header
 */
@mixin code-header {

  .code-header {
    @extend .bg-light;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
    font-size: small; 

    &--description {
      &-code {
        &:before { @extend .fas; content: fa-content($fa-var-code); padding-right: 5px; }
      }
      &-python {
        &:before { @extend .fab; content: fa-content($fa-var-python); padding-right: 5px; }
      }
      &-terminal {
        &:before { @extend .fas; content: fa-content($fa-var-terminal); padding-right: 5px; }
      }
      &-key {
        &:before { @extend .fas; content: fa-content($fa-var-key); padding-right: 5px; }
      }
      &-markdown {
        &:before { @extend .fab; content: fa-content($fa-var-markdown); padding-right: 5px; }
      }
    }

    &--button {
      .copy-code-button {
        @extend .btn, .btn-light, .shadow-none, .btn-sm;
        border-radius: 0px;
        display: grid;
        grid-auto-flow: column;
        align-items: center;
        grid-column-gap: 4px;
        border: none;
        cursor: pointer;
        font-size: small;

        &:before {
          @extend .fas;
          content: fa-content($fa-var-clipboard);
        }
        &:after {
          content: "Copy";
        }

        // This class will be toggled via JavaScript
        &.copied {
          &:before {
            @extend .fas;
            content: fa-content($fa-var-clipboard-check);
          }
          &:after {
            content: "Copied!";
          }
        }
      }
    }
  }
}

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
jekyll-theme-centos-0.7.5 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.7.4 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.7.3 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.7.2 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.7.1 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.7.0 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.29 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.28 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.27 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.25 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.24 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.23 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.22 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.21 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.20 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.19 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.18 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.17 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.16 _sass/centos/mixins/_code-header.scss
jekyll-theme-centos-0.6.15 _sass/centos/mixins/_code-header.scss