graycoreio/daffodil

View on GitHub
libs/design/media-gallery/src/media-gallery-theme.scss

Summary

Maintainability
Test Coverage
@use 'sass:map';
@use '../../scss/theming';
@use '../../scss/core';

@mixin daff-media-gallery-theme($theme) {
    $neutral: core.daff-map-deep-get($theme, 'core.neutral');

    .daff-media-gallery {
        $root: &;

        .daff-thumbnail {
            border: 1px solid transparent;

            &--selected {
                border: 1px solid theming.daff-color($neutral);
            }
        }

        &.daff-skeleton {
            .daff-thumbnail {
                &--selected {
                    border: none;
                }
            }
        }
    }
}