// Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved.
// This software is released under MIT license.
// The full license information can be found in LICENSE in the root directory of this project.

@mixin generate-calendar-button($height: $clr-calendar-click-target, $padding: $clr-calendar-btn-padding) {
    //Dimensions
    height: $height;
    min-width: $height;
    padding: 0 $padding;
    margin: 0 !important; //Because stupid forms target buttons directly. We really need to refactor forms.

    //Other Props
    color: inherit;
    border: none;
    border-radius: $clr-default-borderradius;
    background: none;
    cursor: pointer;
    line-height: $clr-calendar-click-target;
}

@mixin generate-calendar-focus-style() {
    &:hover,
    &:focus {
        background: $clr-calendar-btn-hover-focus-color;
    }

    &:focus {
        //Only because we have defined a background color for focus above
        outline: 0;
    }
}
