@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

@property --color-quick-link-header-bg {syntax: "<color>";inherits: true;initial-value: #0160ac}
@property --color-quick-link-title {syntax: "<color>";inherits: true;initial-value: #FFFFFF}
@property --color-quick-link-border {syntax: "<color>";inherits: true;initial-value: #CCC}
@property --color-quick-link-item {syntax: "<color>";inherits: true;initial-value: #0160ac}
@property --color-quick-link-li {syntax: "<color>";inherits: true;initial-value: #00bb08}
@property --color-quick-link-a {syntax: "<color>";inherits: true;initial-value: #0160ac}
@property --color-quick-link-a-hover {syntax: "<color>";inherits: true;initial-value: #3a96e0}

.rdg-blocks .rdg-quick-links {
    .preview-thumbs {
        background-image: url('../images/rdg-quick-links-template-preview.jpg');
    }
    width: 100%;

    .content {
        width: 100%;
        display: flex;
        flex-direction: column;
        border-radius: .8rem;

        .header {
            display: flex;
            justify-content: center;
            padding: .5rem;
            border-top-left-radius: .8rem;
            border-top-right-radius: .8rem;
            background-color: var(--color-quick-link-header-bg);

            .title {
                color: var(--color-quick-link-title);
            }
        }

        .body {
            padding: 1rem;

            li {
                display: list-item;
                margin: inherit;
                align-items: center;
                list-style: disc;
                padding: .3rem 0;
                border-bottom: 1px solid var(--color-quick-link-border);
                color: var(--color-quick-link-item);

                &:first-of-type {
                    padding-top: 0;
                }

                &:last-of-type {
                    border-bottom: none;
                    padding-bottom: 0;
                }

                &::marker {
                    color: var(--color-quick-link-li);
                }

                a {
                    color: var(--color-quick-link-a);

                    &:hover {
                        color: var(--color-quick-link-a-hover);
                    }
                }
            }
        }

        @include message;
    }
}

.acf-block-preview {
    .rdg-quick-links {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;

        .content {
            a {
                text-decoration: none;
            }
        }
    }
}
