////
/// File block.
///
/// @group  Blocks
/// @author Sky Shabatura <theme@sky.camp>
/// @link   https://taproot-theme.com
////

.wp-block-file {
    @extend .has-block-spacing;

    &.aligncenter {
        text-align: center;
    }

    &.alignright {
        text-align: right;
    }

    // todo: extend the theme button styles here instead.

    &__button {
        @extend .wp-block-button__link;
    }
}

// Give the file block button some spacing to the left if there's another element
// preceding it.
* + .wp-block-file__button {
    margin-left: 0.75em;
}
