HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/web.enelar.com.co/node_modules/primeflex/core/_mixins.scss
@use 'sass:math';

@mixin style-class($prop, $map, $responsive: false, $states: false) {
    @each $key, $val in $map {
        .#{$prefix}#{$key} {
            #{$prop}: #{$val} !important;
        }
    }

    @if ($states) {
        @each $key, $val in $map {
            .focus#{$separator} {
                &#{$prefix}#{$key}:focus {
                    #{$prop}: #{$val} !important;
                }
            }

            .hover#{$separator} {
                &#{$prefix}#{$key}:hover {
                    #{$prop}: #{$val} !important;
                }
            }

            .active#{$separator} {
                &#{$prefix}#{$key}:active {
                    #{$prop}: #{$val} !important;
                }
            }
        }
    }

    @if ($responsive) {
        @each $key, $val in $breakpoints {
            @media screen and (min-width: #{$val}) {
                .#{$key + $separator} {
                    @each $key, $val in $map {
                        &#{$prefix}#{$key} {
                            #{$prop}: #{$val} !important;
                        }
                    }

                    @if ($states) {
                        @each $key, $val in $map {
                            &focus#{$separator} {
                                &#{$prefix}#{$key}:focus {
                                    #{$prop}: #{$val} !important;
                                }
                            }
                
                            &hover#{$separator} {
                                &#{$prefix}#{$key}:hover {
                                    #{$prop}: #{$val} !important;
                                }
                            }
                
                            &active#{$separator} {
                                &#{$prefix}#{$key}:active {
                                    #{$prop}: #{$val} !important;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

@mixin color-class($name, $prop, $colors, $shades) {
    @each $color in $colors {
        .#{$prefix}#{$name}#{$color} {
            @each $shade in $shades {
                &-#{$shade} {
                    #{$prop}: var(--#{$color}-#{$shade}) !important;
                }
            }
        }

        .focus#{$separator} {
            &#{$prefix}#{$name}#{$color} {
                @each $shade in $shades {
                    &-#{$shade}:focus {
                        #{$prop}: var(--#{$color}-#{$shade}) !important;
                    }
                }
            }
        }

        .hover#{$separator} {
            &#{$prefix}#{$name}#{$color} {
                @each $shade in $shades {
                    &-#{$shade}:hover {
                        #{$prop}: var(--#{$color}-#{$shade}) !important;
                    }
                }
            }
        }

        .active#{$separator} {
            &#{$prefix}#{$name}#{$color} {
                @each $shade in $shades {
                    &-#{$shade}:active {
                        #{$prop}: var(--#{$color}-#{$shade}) !important;
                    }
                }
            }
        }
    }
}

@mixin surface-class($name, $prop, $shades) {
    @each $shade in $shades {
        .#{$prefix}#{$name}-#{$shade} {
            #{$prop}: var(--surface-#{$shade}) !important;
        }
    }

    @each $shade in $shades {
        .focus#{$separator} {
            &#{$prefix}#{$name}-#{$shade}:focus {
                #{$prop}: var(--surface-#{$shade}) !important;
            }
        }

        .hover#{$separator} {
            &#{$prefix}#{$name}-#{$shade}:hover {
                #{$prop}: var(--surface-#{$shade}) !important;
            }
        }

        .active#{$separator} {
            &#{$prefix}#{$name}-#{$shade}:active {
                #{$prop}: var(--surface-#{$shade}) !important;
            }
        }
    }
}

@mixin border-class($name, $directions, $scales) {
    @each $dir, $prop in $directions {
        @for $i from 0 through length($scales) - 1 {
            $borderValue: if($i == 0, 'none', $i);
            $className: #{$name}-#{$dir}-#{$borderValue};
            @if ($dir == '') {
                $className: #{$name}-#{$borderValue};
            }
            
            .#{$prefix}#{$className} {
                @each $propName in $prop {
                    #{$propName}-width: nth($scales, $i + 1) !important;
                    #{$propName}-style: if($i == 0, none, solid);
                }
            }
        }
    }

    @each $key, $val in $breakpoints {
        @media screen and (min-width: #{$val}) {
            .#{$key + $separator} {
                @each $dir, $prop in $directions {
                    @for $i from 0 through length($scales) - 1 {
                        $borderValue: if($i == 0, 'none', $i);
                        $className: #{$name}-#{$dir}-#{$borderValue};
                        @if ($dir == '') {
                            $className: #{$name}-#{$borderValue};
                        }
                        
                        &#{$prefix}#{$className} {
                            @each $propName in $prop {
                                #{$propName}-width: nth($scales, $i + 1) !important;
                                #{$propName}-style: if($i == 0, none, solid);
                            }
                        }
                    }
                }
            }
        }
    }
}

@mixin border-radius-class($map, $directions) {
    @each $key, $val in $map {
        $prefixName: $key;
        $suffixName: '';
        $index: str-index($key, 'border-round');

        @if $index != null {
            $prefixName: 'border-round';
            $suffixName: str-slice($key, str-length('border-round') + 1, str-length($key));
        }

        @each $dir, $prop in $directions {
            .#{$prefix}#{$prefixName}-#{$dir}#{$suffixName} {
                @each $propName in $prop {
                    #{$propName}: #{$val} !important;
                }
            }
        }
    }
    
    @each $key, $val in $breakpoints {
        @media screen and (min-width: #{$val}) {
            .#{$key + $separator} {
                @each $key, $val in $map {
                    $prefixName: $key;
                    $suffixName: '';
                    $index: str-index($key, 'border-round');
            
                    @if $index != null {
                        $prefixName: 'border-round';
                        $suffixName: str-slice($key, str-length('border-round') + 1, str-length($key));
                    }
            
                    @each $dir, $prop in $directions {
                        &#{$prefix}#{$prefixName}-#{$dir}#{$suffixName} {
                            @each $propName in $prop {
                                #{$propName}: #{$val} !important;
                            }
                        }
                    }
                }
            }
        }
    }
}

@mixin rgba-color-class($name, $prop, $colors, $shades) {
    @each $colorName, $colorValue in $colors {
        .#{$prefix}#{$name}#{$colorName}-alpha {
            @each $shade in $shades {
                &-#{$shade} {
                    #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
                }
            }
        }

        .hover#{$separator} {
            &#{$prefix}#{$name}#{$colorName}-alpha {
                @each $shade in $shades {
                    &-#{$shade}:hover {
                        #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
                    }
                }
            }
        }

        .focus#{$separator} {
            &#{$prefix}#{$name}#{$colorName}-alpha {
                @each $shade in $shades {
                    &-#{$shade}:focus {
                        #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
                    }
                }
            }
        }

        .active#{$separator} {
            &#{$prefix}#{$name}#{$colorName}-alpha {
                @each $shade in $shades {
                    &-#{$shade}:active {
                        #{$prop}: #{"rgba(#{$colorValue},#{math.div($shade, 100)})"} !important;
                    }
                }
            }
        }
    }
}

@mixin spacing-class($inPrefix, $map, $scales, $responsive: true, $auto: false, $negative: false) {
    $inPrefix: $prefix + $inPrefix;

    @each $name, $prop in $map {
        @for $i from 0 through length($scales) - 1 {
            .#{$inPrefix}#{$name}-#{$i} {
                @each $propName in $prop {
                    #{$propName}: $spacer * nth($scales, $i + 1) !important;
                }
            }
        }

        @if ($negative) {
            @for $i from 1 through length($scales) - 1 {
                .-#{$inPrefix}#{$name}-#{$i} {
                    @each $propName in $prop {
                        #{$propName}: -1 * $spacer * nth($scales, $i + 1) !important;
                    }
                }
            }
        }

        @if ($auto) {
            .#{$inPrefix}#{$name}-auto {
                @each $propName in $prop {
                    #{$propName}: auto !important;
                }
            }
        } 
    }

    @if ($responsive) {
        @each $key, $val in $breakpoints {
            @media screen and (min-width: #{$val}) {
                @each $name, $prop in $map {
                    @for $i from 0 through length($scales) - 1 {
                        .#{$key + $separator}#{$inPrefix}#{$name}-#{$i} {
                            @each $propName in $prop {
                                #{$propName}: $spacer * nth($scales, $i + 1) !important;;
                            }
                        }
                    }

                    @if ($negative) {
                        @for $i from 1 through length($scales) - 1 {
                            .#{$key + $separator}-#{$inPrefix}#{$name}-#{$i} {
                                @each $propName in $prop {
                                    #{$propName}: -1 * $spacer * nth($scales, $i + 1) !important;
                                }
                            }
                        }
                    }

                    @if ($auto) {
                        .#{$key + $separator}#{$inPrefix}#{$name}-auto {
                            @each $propName in $prop {
                                #{$propName}: auto !important;;
                            }
                        }
                    }
                }
            }
        }
    }
}

@mixin generate-class($map, $responsive: false, $states: false) {
    @each $name, $propMap in $map {
        .#{$prefix}#{$name} {
            @each $prop, $val in $propMap {
                #{$prop}: #{$val} !important;
            }
        }
    }

    @if ($states) {
        @each $name, $propMap in $map {
            .focus#{$separator} {
                &#{$prefix}#{$name}:focus {
                    @each $prop, $val in $propMap {
                        #{$prop}: #{$val} !important;
                    }
                }
            }

            .hover#{$separator} {
                &#{$prefix}#{$name}:hover {
                    @each $prop, $val in $propMap {
                        #{$prop}: #{$val} !important;
                    }
                }
            }

            .active#{$separator} {
                &#{$prefix}#{$name}:active {
                    @each $prop, $val in $propMap {
                        #{$prop}: #{$val} !important;
                    }
                }
            }
        }
    }

    @if ($responsive) {
        @each $key, $val in $breakpoints {
            @media screen and (min-width: #{$val}) {
                .#{$key + $separator} {
                    @each $name, $propMap in $map {
                        &#{$prefix}#{$name} {
                            @each $prop, $val in $propMap {
                                #{$prop}: #{$val} !important;
                            }
                        }
                    }
                
                    @if ($states) {
                        @each $name, $propMap in $map {
                            &focus#{$separator} {
                                &#{$prefix}#{$name}:focus {
                                    @each $prop, $val in $propMap {
                                        #{$prop}: #{$val} !important;
                                    }
                                }
                            }
                
                            &hover#{$separator} {
                                &#{$prefix}#{$name}:hover {
                                    @each $prop, $val in $propMap {
                                        #{$prop}: #{$val} !important;
                                    }
                                }
                            }
                
                            &active#{$separator} {
                                &#{$prefix}#{$name}:active {
                                    @each $prop, $val in $propMap {
                                        #{$prop}: #{$val} !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}