﻿:root {
    --dnet-button-background-color: rgba(0,0,0,.05);
    --dnet-button-hover-color: #000;
    --dnet-button-hover-opacity: 0.04;
    --dnet-button-font-size: var(--dnet-component-sm-font-size);
    --dnet-button-min-width: 64px;
    --dnet-button-border-radius: 4px;
    --dnet-button-line-height: 36px;
    --dnet-button-padding: 0 16px;
    --dnet-button-margin: 0;
}


.dnet-button, .dnet-icon-button {
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: var(--dnet-button-margin);
    min-width: var(--dnet-button-min-width);
    line-height: var(--dnet-button-line-height);
    padding: var(--dnet-button-padding);
    border-radius: var(--dnet-button-border-radius);
    overflow: visible;
    font-size: var(--dnet-button-font-size);
    background: transparent;

    &.dnet-button-initial-focus{
        background-color: var(--dnet-button-background-color);
    }

    &:hover {
        background-color: rgba(0,0,0,.08);
    }

    &:focus {
        .dnet-button-focus-overlay {
            opacity: .12;
        }
    }
}

.dnet-button-ripple.mat-ripple, .dnet-button-focus-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    pointer-events: none;
    border-radius: inherit;
}

.dnet-button-focus-overlay {
    background: #000;
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1);
}

.dnet-icon-button {
    padding: 0;
    min-width: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    line-height: 40px;
    border-radius: 50%;
    outline: none;

    &:focus {
        outline: none;
    }
}

.dnet-button-ripple-round {
    border-radius: 50%;
    z-index: 1;
}

.dnet-ripple {
    overflow: hidden;
    position: relative;
}
