github-docs 0.0.5 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/default.html +12 -4
- data/_sass/cherry/_base-normalize.scss +274 -0
- data/_sass/cherry/_buttons.scss +305 -0
- data/_sass/cherry/_columns.scss +220 -0
- data/_sass/cherry/_elements.scss +339 -0
- data/_sass/cherry/_forms-vue-select.scss +250 -0
- data/_sass/cherry/_forms.scss +567 -0
- data/_sass/cherry/_functions.scss +201 -0
- data/_sass/cherry/_index.scss +14 -0
- data/_sass/cherry/_layout.scss +207 -0
- data/_sass/cherry/_modal.scss +82 -0
- data/_sass/cherry/_spacing.scss +56 -0
- data/_sass/cherry/_tooltips.scss +113 -0
- data/_sass/cherry/_typography.scss +90 -0
- data/_sass/cherry/_utilities.scss +552 -0
- data/_sass/cherry/_variables-computed.scss +79 -0
- data/_sass/cherry/_variables.scss +48 -0
- data/_sass/{github-docs.scss → main.scss} +18 -15
- data/_sass/primer-markdown/blob-csv.scss +23 -25
- data/_sass/primer-markdown/code.scss +26 -40
- data/_sass/primer-markdown/headings.scss +5 -19
- data/_sass/primer-markdown/images.scss +1 -19
- data/_sass/primer-markdown/index.scss +112 -1
- data/_sass/primer-markdown/lists.scss +8 -42
- data/_sass/primer-markdown/tables.scss +4 -9
- data/_sass/rouge.scss +16 -8
- data/assets/css/index.scss +9 -7
- data/readme.md +13 -4
- metadata +19 -35
- data/_sass/primer-base/base.scss +0 -84
- data/_sass/primer-base/index.scss +0 -3
- data/_sass/primer-base/normalize.scss +0 -421
- data/_sass/primer-base/typography-base.scss +0 -86
- data/_sass/primer-layout/columns.scss +0 -54
- data/_sass/primer-layout/container.scss +0 -30
- data/_sass/primer-layout/grid-offset.scss +0 -19
- data/_sass/primer-layout/grid.scss +0 -64
- data/_sass/primer-layout/index.scss +0 -4
- data/_sass/primer-markdown/markdown-body.scss +0 -106
- data/_sass/primer-support/index.scss +0 -11
- data/_sass/primer-support/mixins/buttons.scss +0 -160
- data/_sass/primer-support/mixins/layout.scss +0 -58
- data/_sass/primer-support/mixins/misc.scss +0 -29
- data/_sass/primer-support/mixins/typography.scss +0 -84
- data/_sass/primer-support/variables/color-system.scss +0 -114
- data/_sass/primer-support/variables/colors.scss +0 -67
- data/_sass/primer-support/variables/layout.scss +0 -78
- data/_sass/primer-support/variables/misc.scss +0 -40
- data/_sass/primer-support/variables/typography.scss +0 -43
- data/_sass/primer-utilities/animations.scss +0 -184
- data/_sass/primer-utilities/borders.scss +0 -100
- data/_sass/primer-utilities/box-shadow.scss +0 -26
- data/_sass/primer-utilities/colors.scss +0 -106
- data/_sass/primer-utilities/details.scss +0 -18
- data/_sass/primer-utilities/flexbox.scss +0 -52
- data/_sass/primer-utilities/index.scss +0 -13
- data/_sass/primer-utilities/layout.scss +0 -85
- data/_sass/primer-utilities/margin.scss +0 -53
- data/_sass/primer-utilities/padding.scss +0 -54
- data/_sass/primer-utilities/typography.scss +0 -215
- data/_sass/primer-utilities/visibility-display.scss +0 -87
| @@ -1,54 +0,0 @@ | |
| 1 | 
            -
            // Grid system
         | 
| 2 | 
            -
            //
         | 
| 3 | 
            -
            // Create rows with `.columns` to clear the floated columns and outdent the
         | 
| 4 | 
            -
            // padding on `.column`s with negative margin for alignment.
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            .columns {
         | 
| 7 | 
            -
              margin-right: -$grid-gutter;
         | 
| 8 | 
            -
              margin-left: -$grid-gutter;
         | 
| 9 | 
            -
              @include clearfix;
         | 
| 10 | 
            -
            }
         | 
| 11 | 
            -
             | 
| 12 | 
            -
            // Base class for every column (requires a column width from below)
         | 
| 13 | 
            -
            .column {
         | 
| 14 | 
            -
              float: left;
         | 
| 15 | 
            -
              padding-right: $grid-gutter;
         | 
| 16 | 
            -
              padding-left: $grid-gutter;
         | 
| 17 | 
            -
            }
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            // Column widths
         | 
| 20 | 
            -
            .one-third {
         | 
| 21 | 
            -
              width: 33.333333%;
         | 
| 22 | 
            -
            }
         | 
| 23 | 
            -
             | 
| 24 | 
            -
            .two-thirds {
         | 
| 25 | 
            -
              width: 66.666667%;
         | 
| 26 | 
            -
            }
         | 
| 27 | 
            -
             | 
| 28 | 
            -
            .one-fourth {
         | 
| 29 | 
            -
              width: 25%;
         | 
| 30 | 
            -
            }
         | 
| 31 | 
            -
             | 
| 32 | 
            -
            .one-half {
         | 
| 33 | 
            -
              width: 50%;
         | 
| 34 | 
            -
            }
         | 
| 35 | 
            -
             | 
| 36 | 
            -
            .three-fourths {
         | 
| 37 | 
            -
              width: 75%;
         | 
| 38 | 
            -
            }
         | 
| 39 | 
            -
             | 
| 40 | 
            -
            .one-fifth {
         | 
| 41 | 
            -
              width: 20%;
         | 
| 42 | 
            -
            }
         | 
| 43 | 
            -
             | 
| 44 | 
            -
            .four-fifths {
         | 
| 45 | 
            -
              width: 80%;
         | 
| 46 | 
            -
            }
         | 
| 47 | 
            -
             | 
| 48 | 
            -
            // Centers content horizontally. Can be used inside or outside the grid.
         | 
| 49 | 
            -
            .centered {
         | 
| 50 | 
            -
              display: block;
         | 
| 51 | 
            -
              float: none;
         | 
| 52 | 
            -
              margin-right: auto;
         | 
| 53 | 
            -
              margin-left: auto;
         | 
| 54 | 
            -
            }
         | 
| @@ -1,30 +0,0 @@ | |
| 1 | 
            -
            // Fixed-width, centered column for site content.
         | 
| 2 | 
            -
            // This will be deprecated and replaced with container-lg in future
         | 
| 3 | 
            -
            .container {
         | 
| 4 | 
            -
              width: $container-width;
         | 
| 5 | 
            -
              margin-right: auto;
         | 
| 6 | 
            -
              margin-left: auto;
         | 
| 7 | 
            -
              @include clearfix;
         | 
| 8 | 
            -
            }
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            // Handy container styles that match our breakpoints
         | 
| 11 | 
            -
            // 768px
         | 
| 12 | 
            -
            .container-md {
         | 
| 13 | 
            -
              max-width: $container-md;
         | 
| 14 | 
            -
              margin-right: auto;
         | 
| 15 | 
            -
              margin-left: auto;
         | 
| 16 | 
            -
            }
         | 
| 17 | 
            -
             | 
| 18 | 
            -
            // 1004px - this matches the current fixed width: 980px + padding: px-3
         | 
| 19 | 
            -
            .container-lg {
         | 
| 20 | 
            -
              max-width: $container-lg;
         | 
| 21 | 
            -
              margin-right: auto;
         | 
| 22 | 
            -
              margin-left: auto;
         | 
| 23 | 
            -
            }
         | 
| 24 | 
            -
             | 
| 25 | 
            -
            // 1280px
         | 
| 26 | 
            -
            .container-xl {
         | 
| 27 | 
            -
              max-width: $container-xl;
         | 
| 28 | 
            -
              margin-right: auto;
         | 
| 29 | 
            -
              margin-left: auto;
         | 
| 30 | 
            -
            }
         | 
| @@ -1,19 +0,0 @@ | |
| 1 | 
            -
            // Optional offset options to work with grid.scss
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            // Offset Columns
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            @each $breakpoint, $variant in $responsive-variants {
         | 
| 6 | 
            -
              @include breakpoint($breakpoint) {
         | 
| 7 | 
            -
                .offset#{$variant}-1 { margin-left: (1 / 12 * 100%) !important; }
         | 
| 8 | 
            -
                .offset#{$variant}-2 { margin-left: (2 / 12 * 100%) !important; }
         | 
| 9 | 
            -
                .offset#{$variant}-3 { margin-left: (3 / 12 * 100%) !important; }
         | 
| 10 | 
            -
                .offset#{$variant}-4 { margin-left: (4 / 12 * 100%) !important; }
         | 
| 11 | 
            -
                .offset#{$variant}-5 { margin-left: (5 / 12 * 100%) !important; }
         | 
| 12 | 
            -
                .offset#{$variant}-6 { margin-left: (6 / 12 * 100%) !important; }
         | 
| 13 | 
            -
                .offset#{$variant}-7 { margin-left: (7 / 12 * 100%) !important; }
         | 
| 14 | 
            -
                .offset#{$variant}-8 { margin-left: (8 / 12 * 100%) !important; }
         | 
| 15 | 
            -
                .offset#{$variant}-9 { margin-left: (9 / 12 * 100%) !important; }
         | 
| 16 | 
            -
                .offset#{$variant}-10 { margin-left: (10 / 12 * 100%) !important; }
         | 
| 17 | 
            -
                .offset#{$variant}-11 { margin-left: (11 / 12 * 100%) !important; }
         | 
| 18 | 
            -
              }
         | 
| 19 | 
            -
            }
         | 
| @@ -1,64 +0,0 @@ | |
| 1 | 
            -
            // GRID
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            // Columns
         | 
| 4 | 
            -
            .col-1 { width: (1 / 12 * 100%); }
         | 
| 5 | 
            -
            .col-2 { width: (2 / 12 * 100%); }
         | 
| 6 | 
            -
            .col-3 { width: (3 / 12 * 100%); }
         | 
| 7 | 
            -
            .col-4 { width: (4 / 12 * 100%); }
         | 
| 8 | 
            -
            .col-5 { width: (5 / 12 * 100%); }
         | 
| 9 | 
            -
            .col-6 { width: (6 / 12 * 100%); }
         | 
| 10 | 
            -
            .col-7 { width: (7 / 12 * 100%); }
         | 
| 11 | 
            -
            .col-8 { width: (8 / 12 * 100%); }
         | 
| 12 | 
            -
            .col-9 { width: (9 / 12 * 100%); }
         | 
| 13 | 
            -
            .col-10 { width: (10 / 12 * 100%); }
         | 
| 14 | 
            -
            .col-11 { width: (11 / 12 * 100%); }
         | 
| 15 | 
            -
            .col-12 { width: 100%; }
         | 
| 16 | 
            -
             | 
| 17 | 
            -
            @each $breakpoint in map-keys($breakpoints) {
         | 
| 18 | 
            -
              @include breakpoint($breakpoint) {
         | 
| 19 | 
            -
                .col-#{$breakpoint}-1 { width: ( 1 / 12 * 100%); }
         | 
| 20 | 
            -
                .col-#{$breakpoint}-2 { width: ( 2 / 12 * 100%); }
         | 
| 21 | 
            -
                .col-#{$breakpoint}-3 { width: ( 3 / 12 * 100%); }
         | 
| 22 | 
            -
                .col-#{$breakpoint}-4 { width: ( 4 / 12 * 100%); }
         | 
| 23 | 
            -
                .col-#{$breakpoint}-5 { width: ( 5 / 12 * 100%); }
         | 
| 24 | 
            -
                .col-#{$breakpoint}-6 { width: ( 6 / 12 * 100%); }
         | 
| 25 | 
            -
                .col-#{$breakpoint}-7 { width: ( 7 / 12 * 100%); }
         | 
| 26 | 
            -
                .col-#{$breakpoint}-8 { width: ( 8 / 12 * 100%); }
         | 
| 27 | 
            -
                .col-#{$breakpoint}-9 { width: ( 9 / 12 * 100%); }
         | 
| 28 | 
            -
                .col-#{$breakpoint}-10 { width: ( 10 / 12 * 100%); }
         | 
| 29 | 
            -
                .col-#{$breakpoint}-11 { width: ( 11 / 12 * 100%); }
         | 
| 30 | 
            -
                .col-#{$breakpoint}-12 { width: 100%; }
         | 
| 31 | 
            -
              }
         | 
| 32 | 
            -
            }
         | 
| 33 | 
            -
             | 
| 34 | 
            -
            // Gutters
         | 
| 35 | 
            -
            // Apply padding and a negative margin to the outside of the container
         | 
| 36 | 
            -
            @mixin gutters ($gutter-width: $spacer-3) {
         | 
| 37 | 
            -
              margin-right: -$gutter-width;
         | 
| 38 | 
            -
              margin-left: -$gutter-width;
         | 
| 39 | 
            -
             | 
| 40 | 
            -
              > [class*="col-"] {
         | 
| 41 | 
            -
                padding-right: $gutter-width !important;
         | 
| 42 | 
            -
                padding-left: $gutter-width !important;
         | 
| 43 | 
            -
              }
         | 
| 44 | 
            -
            }
         | 
| 45 | 
            -
             | 
| 46 | 
            -
            .gutter {
         | 
| 47 | 
            -
              @include gutters($spacer-3);
         | 
| 48 | 
            -
            }
         | 
| 49 | 
            -
             | 
| 50 | 
            -
            .gutter-condensed {
         | 
| 51 | 
            -
              @include gutters($spacer-2);
         | 
| 52 | 
            -
            }
         | 
| 53 | 
            -
             | 
| 54 | 
            -
            .gutter-spacious {
         | 
| 55 | 
            -
              @include gutters($spacer-4);
         | 
| 56 | 
            -
            }
         | 
| 57 | 
            -
             | 
| 58 | 
            -
            @each $breakpoint in map-keys($breakpoints) {
         | 
| 59 | 
            -
              @include breakpoint($breakpoint) {
         | 
| 60 | 
            -
                .gutter-#{$breakpoint} { @include gutters($spacer-3); }
         | 
| 61 | 
            -
                .gutter-#{$breakpoint}-condensed { @include gutters($spacer-2); }
         | 
| 62 | 
            -
                .gutter-#{$breakpoint}-spacious { @include gutters($spacer-4); }
         | 
| 63 | 
            -
              }
         | 
| 64 | 
            -
            }
         | 
| @@ -1,106 +0,0 @@ | |
| 1 | 
            -
            // All of our block level items should have the same margin
         | 
| 2 | 
            -
            // stylelint-disable selector-max-type
         | 
| 3 | 
            -
             | 
| 4 | 
            -
            // This is styling for generic markdownized text. Anything you put in a
         | 
| 5 | 
            -
            // container with .markdown-body on it should render generally well. It also
         | 
| 6 | 
            -
            // includes some GitHub Flavored Markdown specific styling (like @mentions)
         | 
| 7 | 
            -
            .markdown-body {
         | 
| 8 | 
            -
              font-family: $body-font;
         | 
| 9 | 
            -
              font-size: $h4-size;
         | 
| 10 | 
            -
              line-height: $body-line-height;
         | 
| 11 | 
            -
              word-wrap: break-word;
         | 
| 12 | 
            -
             | 
| 13 | 
            -
              // Clearfix on the markdown body
         | 
| 14 | 
            -
              &::before {
         | 
| 15 | 
            -
                display: table;
         | 
| 16 | 
            -
                content: "";
         | 
| 17 | 
            -
              }
         | 
| 18 | 
            -
             | 
| 19 | 
            -
              &::after {
         | 
| 20 | 
            -
                display: table;
         | 
| 21 | 
            -
                clear: both;
         | 
| 22 | 
            -
                content: "";
         | 
| 23 | 
            -
              }
         | 
| 24 | 
            -
             | 
| 25 | 
            -
              > *:first-child {
         | 
| 26 | 
            -
                margin-top: 0 !important;
         | 
| 27 | 
            -
              }
         | 
| 28 | 
            -
             | 
| 29 | 
            -
              > *:last-child {
         | 
| 30 | 
            -
                margin-bottom: 0 !important;
         | 
| 31 | 
            -
              }
         | 
| 32 | 
            -
             | 
| 33 | 
            -
              // Anchors like <a name="examples">. These sometimes end up wrapped around
         | 
| 34 | 
            -
              // text when users mistakenly forget to close the tag or use self-closing tag
         | 
| 35 | 
            -
              // syntax. We don't want them to appear like links.
         | 
| 36 | 
            -
              // FIXME: a:not(:link):not(:visited) would be a little clearer here (and
         | 
| 37 | 
            -
              // possibly faster to match), but it breaks styling of <a href> elements due
         | 
| 38 | 
            -
              // to https://bugs.webkit.org/show_bug.cgi?id=142737.
         | 
| 39 | 
            -
              a:not([href]) {
         | 
| 40 | 
            -
                color: inherit;
         | 
| 41 | 
            -
                text-decoration: none;
         | 
| 42 | 
            -
              }
         | 
| 43 | 
            -
             | 
| 44 | 
            -
              // Link Colors
         | 
| 45 | 
            -
              .absent {
         | 
| 46 | 
            -
                color: $red-600;
         | 
| 47 | 
            -
              }
         | 
| 48 | 
            -
             | 
| 49 | 
            -
              .anchor {
         | 
| 50 | 
            -
                float: left;
         | 
| 51 | 
            -
                padding-right: $spacer-1;
         | 
| 52 | 
            -
                margin-left: -20px;
         | 
| 53 | 
            -
                line-height: $lh-condensed-ultra;
         | 
| 54 | 
            -
             | 
| 55 | 
            -
                &:focus {
         | 
| 56 | 
            -
                  outline: none;
         | 
| 57 | 
            -
                }
         | 
| 58 | 
            -
              }
         | 
| 59 | 
            -
             | 
| 60 | 
            -
              p,
         | 
| 61 | 
            -
              blockquote,
         | 
| 62 | 
            -
              ul,
         | 
| 63 | 
            -
              ol,
         | 
| 64 | 
            -
              dl,
         | 
| 65 | 
            -
              table,
         | 
| 66 | 
            -
              pre {
         | 
| 67 | 
            -
                margin-top: 0;
         | 
| 68 | 
            -
                margin-bottom: $spacer-3;
         | 
| 69 | 
            -
              }
         | 
| 70 | 
            -
             | 
| 71 | 
            -
              hr {
         | 
| 72 | 
            -
                height: $em-spacer-3;
         | 
| 73 | 
            -
                padding: 0;
         | 
| 74 | 
            -
                margin: $spacer-4 0;
         | 
| 75 | 
            -
                background-color: $gray-200;
         | 
| 76 | 
            -
                border: 0;
         | 
| 77 | 
            -
              }
         | 
| 78 | 
            -
             | 
| 79 | 
            -
              blockquote {
         | 
| 80 | 
            -
                padding: 0 1em;
         | 
| 81 | 
            -
                color: $gray-500;
         | 
| 82 | 
            -
                border-left: 0.25em solid lighten($gray-300, 5%);
         | 
| 83 | 
            -
             | 
| 84 | 
            -
                > :first-child {
         | 
| 85 | 
            -
                  margin-top: 0;
         | 
| 86 | 
            -
                }
         | 
| 87 | 
            -
             | 
| 88 | 
            -
                > :last-child {
         | 
| 89 | 
            -
                  margin-bottom: 0;
         | 
| 90 | 
            -
                }
         | 
| 91 | 
            -
              }
         | 
| 92 | 
            -
             | 
| 93 | 
            -
              kbd {
         | 
| 94 | 
            -
                display: inline-block;
         | 
| 95 | 
            -
                padding: 3px 5px;
         | 
| 96 | 
            -
                font-size: 11px;
         | 
| 97 | 
            -
                line-height: 10px;
         | 
| 98 | 
            -
                color: $gray-700;
         | 
| 99 | 
            -
                vertical-align: middle;
         | 
| 100 | 
            -
                background-color: $gray-000;
         | 
| 101 | 
            -
                border: solid 1px darken($gray-300, 4%);
         | 
| 102 | 
            -
                border-bottom-color: $gray-400;
         | 
| 103 | 
            -
                border-radius: 3px;
         | 
| 104 | 
            -
                box-shadow: inset 0 -1px 0 $gray-400;
         | 
| 105 | 
            -
              }
         | 
| 106 | 
            -
            }
         | 
| @@ -1,11 +0,0 @@ | |
| 1 | 
            -
            // variables
         | 
| 2 | 
            -
            @import "./variables/typography.scss";
         | 
| 3 | 
            -
            @import "./variables/colors.scss";
         | 
| 4 | 
            -
            @import "./variables/layout.scss";
         | 
| 5 | 
            -
            @import "./variables/misc.scss";
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            // mixins
         | 
| 8 | 
            -
            @import "./mixins/typography.scss";
         | 
| 9 | 
            -
            @import "./mixins/layout.scss";
         | 
| 10 | 
            -
            @import "./mixins/buttons.scss";
         | 
| 11 | 
            -
            @import "./mixins/misc.scss";
         | 
| @@ -1,160 +0,0 @@ | |
| 1 | 
            -
            // stylelint-disable block-closing-brace-newline-after
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            // Button color generator for primary and themed buttons
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            // New button hotness
         | 
| 6 | 
            -
            @mixin btn-solid($color, $bg, $bg2) {
         | 
| 7 | 
            -
              color: $color;
         | 
| 8 | 
            -
              background-color: $bg2;
         | 
| 9 | 
            -
              background-image: linear-gradient(-180deg, $bg 0%, $bg2 90%);
         | 
| 10 | 
            -
             | 
| 11 | 
            -
              @if $bg == $gray-000 {
         | 
| 12 | 
            -
                &:focus,
         | 
| 13 | 
            -
                &.focus {
         | 
| 14 | 
            -
                  box-shadow: $btn-input-focus-shadow;
         | 
| 15 | 
            -
                }
         | 
| 16 | 
            -
             | 
| 17 | 
            -
                &:hover,
         | 
| 18 | 
            -
                &.hover {
         | 
| 19 | 
            -
                  background-color: darken($bg2, 3%);
         | 
| 20 | 
            -
                  background-image: linear-gradient(-180deg, darken($bg, 3%) 0%, darken($bg2, 3%) 90%);
         | 
| 21 | 
            -
                  background-position: 0 -$em-spacer-5;
         | 
| 22 | 
            -
                  border-color: rgba($black, 0.35);
         | 
| 23 | 
            -
                }
         | 
| 24 | 
            -
             | 
| 25 | 
            -
                &:active,
         | 
| 26 | 
            -
                &.selected,
         | 
| 27 | 
            -
                [open] > & {
         | 
| 28 | 
            -
                  background-color: darken(desaturate($bg, 10%), 6%);
         | 
| 29 | 
            -
                  background-image: none;
         | 
| 30 | 
            -
                  border-color: rgba($black, 0.35); // repeat to avoid shift on click-drag off of button
         | 
| 31 | 
            -
                  box-shadow: $btn-active-shadow;
         | 
| 32 | 
            -
                }
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                &:disabled,
         | 
| 35 | 
            -
                &.disabled {
         | 
| 36 | 
            -
                  color: rgba($color, 0.4);
         | 
| 37 | 
            -
                  background-color: $bg2;
         | 
| 38 | 
            -
                  background-image: none;
         | 
| 39 | 
            -
                  border-color: transparentize($black, 0.8); // back to default .btn
         | 
| 40 | 
            -
                  box-shadow: none;
         | 
| 41 | 
            -
                }
         | 
| 42 | 
            -
             | 
| 43 | 
            -
              } @else {
         | 
| 44 | 
            -
                &:focus,
         | 
| 45 | 
            -
                &.focus {
         | 
| 46 | 
            -
                  box-shadow: 0 0 0 0.2em rgba($bg, 0.4);
         | 
| 47 | 
            -
                }
         | 
| 48 | 
            -
             | 
| 49 | 
            -
                &:hover,
         | 
| 50 | 
            -
                &.hover {
         | 
| 51 | 
            -
                  background-color: darken($bg2, 2%);
         | 
| 52 | 
            -
                  background-image: linear-gradient(-180deg, darken($bg, 2%) 0%, darken($bg2, 2%) 90%);
         | 
| 53 | 
            -
                  background-position: 0 -$em-spacer-5;
         | 
| 54 | 
            -
                  border-color: $black-fade-50;
         | 
| 55 | 
            -
                }
         | 
| 56 | 
            -
             | 
| 57 | 
            -
                &:active,
         | 
| 58 | 
            -
                &.selected,
         | 
| 59 | 
            -
                [open] > & {
         | 
| 60 | 
            -
                  background-color: darken(mix($bg, $bg2, 50%), 7%);
         | 
| 61 | 
            -
                  background-image: none;
         | 
| 62 | 
            -
                  border-color: $black-fade-50; // repeat to avoid shift on click-drag off of button
         | 
| 63 | 
            -
                  box-shadow: $btn-active-shadow;
         | 
| 64 | 
            -
                }
         | 
| 65 | 
            -
             | 
| 66 | 
            -
                &:disabled,
         | 
| 67 | 
            -
                &.disabled {
         | 
| 68 | 
            -
                  color: rgba($color, 0.75);
         | 
| 69 | 
            -
                  background-color: mix($bg2, $white, 50%);
         | 
| 70 | 
            -
                  background-image: none;
         | 
| 71 | 
            -
                  border-color: transparentize($black, 0.8); // repeat .btn default to avoid shift on click-drag off of button
         | 
| 72 | 
            -
                  box-shadow: none;
         | 
| 73 | 
            -
                }
         | 
| 74 | 
            -
             | 
| 75 | 
            -
                .Counter {
         | 
| 76 | 
            -
                  color: darken($bg, 8%);
         | 
| 77 | 
            -
                  background-color: $white;
         | 
| 78 | 
            -
                }
         | 
| 79 | 
            -
              }
         | 
| 80 | 
            -
            }
         | 
| 81 | 
            -
             | 
| 82 | 
            -
            // Inverse button hover style
         | 
| 83 | 
            -
            @mixin btn-inverse($color, $bg, $bg2) {
         | 
| 84 | 
            -
              color: $color;
         | 
| 85 | 
            -
              background-color: $bg;
         | 
| 86 | 
            -
              background-image: linear-gradient(-180deg, $bg 0%, $bg2 90%);
         | 
| 87 | 
            -
             | 
| 88 | 
            -
              &:focus {
         | 
| 89 | 
            -
                box-shadow: 0 0 0 0.2em rgba($color, 0.4);
         | 
| 90 | 
            -
              }
         | 
| 91 | 
            -
             | 
| 92 | 
            -
              &:hover {
         | 
| 93 | 
            -
                color: $text-white;
         | 
| 94 | 
            -
                background-color: $color;
         | 
| 95 | 
            -
                background-image: linear-gradient(-180deg, lighten($color, 10%) 0%, $color 90%);
         | 
| 96 | 
            -
                border-color: $black-fade-50;
         | 
| 97 | 
            -
             | 
| 98 | 
            -
                .Counter {
         | 
| 99 | 
            -
                  color: $text-white;
         | 
| 100 | 
            -
                }
         | 
| 101 | 
            -
              }
         | 
| 102 | 
            -
             | 
| 103 | 
            -
              &:active,
         | 
| 104 | 
            -
              &.selected,
         | 
| 105 | 
            -
              [open] > & {
         | 
| 106 | 
            -
                color: $text-white;
         | 
| 107 | 
            -
                background-color: darken($color, 5%);
         | 
| 108 | 
            -
                background-image: none;
         | 
| 109 | 
            -
                border-color: $black-fade-50;
         | 
| 110 | 
            -
                box-shadow: $btn-active-shadow;
         | 
| 111 | 
            -
              }
         | 
| 112 | 
            -
             | 
| 113 | 
            -
              &:disabled,
         | 
| 114 | 
            -
              &.disabled {
         | 
| 115 | 
            -
                color: rgba($color, 0.4);
         | 
| 116 | 
            -
                background-color: $bg2;
         | 
| 117 | 
            -
                background-image: none;
         | 
| 118 | 
            -
                border-color: transparentize($black, 0.8); // back to default .btn
         | 
| 119 | 
            -
                box-shadow: none;
         | 
| 120 | 
            -
              }
         | 
| 121 | 
            -
            }
         | 
| 122 | 
            -
             | 
| 123 | 
            -
            // Outline color generator for btn-outline to make the hover state inverse the text and bg colors.
         | 
| 124 | 
            -
            @mixin btn-outline($text-color: $text-blue, $bg-color: $bg-white) {
         | 
| 125 | 
            -
              color: $text-color;
         | 
| 126 | 
            -
              background-color: $bg-color;
         | 
| 127 | 
            -
              background-image: none;
         | 
| 128 | 
            -
             | 
| 129 | 
            -
              .Counter {
         | 
| 130 | 
            -
                background-color: rgba($black, 0.07);
         | 
| 131 | 
            -
              }
         | 
| 132 | 
            -
             | 
| 133 | 
            -
              &:hover,
         | 
| 134 | 
            -
              &:active,
         | 
| 135 | 
            -
              &.selected,
         | 
| 136 | 
            -
              [open] > & {
         | 
| 137 | 
            -
                color: $bg-color;
         | 
| 138 | 
            -
                background-color: $text-color;
         | 
| 139 | 
            -
                background-image: none;
         | 
| 140 | 
            -
                border-color: $text-color;
         | 
| 141 | 
            -
             | 
| 142 | 
            -
                .Counter {
         | 
| 143 | 
            -
                  color: $text-color;
         | 
| 144 | 
            -
                  background-color: $bg-color;
         | 
| 145 | 
            -
                }
         | 
| 146 | 
            -
              }
         | 
| 147 | 
            -
             | 
| 148 | 
            -
              &:focus {
         | 
| 149 | 
            -
                border-color: $text-color;
         | 
| 150 | 
            -
                box-shadow: 0 0 0 0.2em rgba($text-color, 0.4);
         | 
| 151 | 
            -
              }
         | 
| 152 | 
            -
             | 
| 153 | 
            -
              &:disabled,
         | 
| 154 | 
            -
              &.disabled {
         | 
| 155 | 
            -
                color: $black-fade-30;
         | 
| 156 | 
            -
                background-color: $bg-white;
         | 
| 157 | 
            -
                border-color: $black-fade-15;
         | 
| 158 | 
            -
                box-shadow: none;
         | 
| 159 | 
            -
              }
         | 
| 160 | 
            -
            }
         |