/*
Copyright 2020 The Matrix.org Foundation C.I.C.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.mx_CreateCommunityPrototypeDialog {
    .mx_Dialog_content {
        display: flex;
        flex-direction: row;
        margin-bottom: 12px;

        .mx_CreateCommunityPrototypeDialog_colName {
            flex-basis: 66.66%;
            padding-right: 100px;

            .mx_Field input {
                font-size: $font-16px;
                line-height: $font-20px;
            }

            .mx_CreateCommunityPrototypeDialog_subtext {
                display: block;
                color: $muted-fg-color;
                margin-bottom: 16px;

                &:last-child {
                    margin-top: 16px;
                }

                &.mx_CreateCommunityPrototypeDialog_subtext_error {
                    color: $warning-color;
                }
            }

            .mx_CreateCommunityPrototypeDialog_communityId {
                position: relative;

                .mx_InfoTooltip {
                    float: right;
                }
            }

            .mx_AccessibleButton {
                display: block;
                height: 32px;
                font-size: $font-16px;
                line-height: 32px;
            }
        }

        .mx_CreateCommunityPrototypeDialog_colAvatar {
            flex-basis: 33.33%;

            .mx_CreateCommunityPrototypeDialog_avatarContainer {
                margin-top: 12px;
                margin-bottom: 20px;

                .mx_CreateCommunityPrototypeDialog_avatar,
                .mx_CreateCommunityPrototypeDialog_placeholderAvatar {
                    width: 96px;
                    height: 96px;
                    border-radius: 96px;
                }

                .mx_CreateCommunityPrototypeDialog_placeholderAvatar {
                    background-color: #368bd6; // hardcoded for both themes

                    &::before {
                        display: inline-block;
                        background-color: #fff; // hardcoded because the background is
                        mask-repeat: no-repeat;
                        mask-size: 96px;
                        width: 96px;
                        height: 96px;
                        mask-position: center;
                        content: '';
                        vertical-align: middle;
                        mask-image: url('$(res)/img/element-icons/add-photo.svg');
                    }
                }
            }

            .mx_CreateCommunityPrototypeDialog_tip {
                & > b, & > span {
                    display: block;
                    color: $muted-fg-color;
                }
            }
        }
    }
}
