<commit_before>/**
 * Glass effect
 * Use this on image for better effect render
 * 
 * Inspired from Simurai's IMDB redisign
 *
 * @link http://lab.simurai.com/redesign/imdb
 * @thanks Simurai @simurai
 */

@import '../shared/pseudo-element';

@mixin effect-glass(
    $color: #fff,
    $reflectDegree: -45deg,
    $border-radius: 4px
)
{
    position: relative;
    @include border-radius($border-radius);

    &:after
    {
        @include pseudo-element($width: auto);
        overflow: hidden;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: transparent solid 1px;
        @include border-radius($border-radius);
        @include box-shadow(
            inset $color 0 0 2px,
            inset rgba($color,.4) 0 5px 10px
        );
        @include background(
            linear-gradient($reflectDegree, rgba($color,.12) 50%, rgba($color, 0) 50.5% ));
    }
}<commit_msg>Make highlights optional by default, no border-radius.<commit_after>/**
 * Glass effect
 * Use this on image for better effect render
 * 
 * Inspired from Simurai's IMDB redisign
 *
 * @link http://lab.simurai.com/redesign/imdb
 * @thanks Simurai @simurai
 */

@import '../shared/pseudo-element';

@mixin effect-glass(
    $color: #fff,
    $reflectDegree: -45deg,
    $border-radius: 0,
    $include-highlight: true
)
{
    position: relative;
    @include border-radius($border-radius);

    &:after
    {
        @include pseudo-element($width: auto);
        overflow: hidden;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: transparent solid 1px;
        @include border-radius($border-radius);

        @if $include-highlight {
            @include box-shadow(
                inset rgba($color, .2) 0 0 1px,
                inset rgba($color, .1) 0 5px 10px
            );
        }

        @include background(
            linear-gradient($reflectDegree, rgba($color,.12) 50%, rgba($color, 0) 50.5% ));
    }
}
{'fraction_non_alphanumeric': 0.13482007095793208, 'fraction_numerical': 0.02483527622909275, 'mean_word_length': 2.1634615384615383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3001711', 'n_tokens_mistral': 698, 'n_tokens_neox': 612, 'n_words': 162}