Skip to content
Snippets Groups Projects
_button.scss 2.91 KiB
Newer Older
  • Learn to ignore specific revisions
  •     padding: 0;
    
        background-color: transparent;
        background-image: none;
        border: 0;
        box-shadow: none;
    
        &:hover {
            cursor: pointer;
        }
    
        &--left-space {
            margin-left: 20px;
        }
    
    
        &--contains-icons {
            display: flex;
            align-items: center;
    
    
            .header--narrow & {
                margin-right: 20px;
            }
    
        &--transparent,
        &--transparent--wide {
    
            .header--light-bg & {
                @include button(transparent, $color--black);
                @include button--narrow;
                color: $color--black;
                border: 1px solid $color--black;
    
        &--transparent {
            @include button--narrow;
        }
    
    
        // cannot conform to BEM here in order to be able to override google button styles
        &--google-translate {
    
            margin-left: 10px;
    
            @include media-query(tablet-landscape) {
                width: 180px;
            }
    
    
            .goog-te-gadget-simple {
    
                @include button(transparent, $color--white);
    
                font-family: $font--primary;
                font-weight: $weight--bold;
    
                .header--light-bg & {
                    @include button(transparent, $color--black);
                    @include button--narrow;
                    border: 1px solid $color--black;
    
                &:hover {
                    .goog-te-menu-value {
                        span {
                            color: $color--dark-blue !important; // sass-lint:disable-line no-important
    
    
                            .header--light-bg & {
                                color: $color--white !important; // sass-lint:disable-line no-important
                            }
    
                .goog-te-menu-value {
                    color: $color--white;
    
    
                    .header--light-bg & {
                        color: $color--black; // sass-lint:disable-line no-important
                    }
    
    
                    span {
                        // color of the arrow is inlined hence !important
                        color: $color--white !important; // sass-lint:disable-line no-important
    
                        transition: color  $transition;
    
                        .header--light-bg & {
                            color: $color--black !important; // sass-lint:disable-line no-important
                        }
    
    
                        &:nth-of-type(2) {
                            // hide the pipe
                            display: none;
                        }
                    }
                }
            }
    
            .goog-te-gadget-icon {
                // hide the google icon
                display: none;
            }
        }