<commit_before>/*
Copyright 2021 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_SpaceRoomDirectory_dialogWrapper > .mx_Dialog {
    max-width: 960px;
    height: 100%;
}

.mx_SpaceRoomDirectory {
    height: 100%;
    margin-bottom: 12px;
    color: $primary-fg-color;
    word-break: break-word;
    display: flex;
    flex-direction: column;

    .mx_Dialog_title {
        display: flex;

        .mx_BaseAvatar {
            margin-right: 12px;
            align-self: center;
        }

        .mx_BaseAvatar_image {
            border-radius: 8px;
        }

        > div {
            > h1 {
                font-weight: $font-semi-bold;
                font-size: $font-18px;
                line-height: $font-22px;
                margin: 0;
            }

            > div {
                font-weight: 400;
                color: $secondary-fg-color;
                font-size: $font-15px;
                line-height: $font-24px;
            }
        }
    }

    .mx_Dialog_content {
        .mx_AccessibleButton_kind_link {
            padding: 0;
        }

        .mx_SearchBox {
            margin: 24px 0 16px;
        }

        .mx_SpaceRoomDirectory_noResults {
            text-align: center;

            > div {
                font-size: $font-15px;
                line-height: $font-24px;
                color: $secondary-fg-color;
            }
        }

        .mx_SpaceRoomDirectory_listHeader {
            display: flex;
            min-height: 32px;
            align-items: center;
            font-size: $font-15px;
            line-height: $font-24px;
            color: $primary-fg-color;

            .mx_AccessibleButton {
                padding: 2px 8px;
                font-weight: normal;

                & + .mx_AccessibleButton {
                    margin-left: 16px;
                }
            }

            > span {
                margin-left: auto;
            }
        }

        .mx_SpaceRoomDirectory_error {
            position: relative;
            font-weight: $font-semi-bold;
            color: $notice-primary-color;
            font-size: $font-15px;
            line-height: $font-18px;
            margin: 20px auto 12px;
            padding-left: 24px;
            width: max-content;

            &::before {
                content: "";
                position: absolute;
                height: 16px;
                width: 16px;
                left: 0;
                background-image: url("$(res)/img/element-icons/warning-badge.svg");
            }
        }
    }
}

.mx_SpaceRoomDirectory_list {
    margin-top: 16px;
    padding-bottom: 40px;

    .mx_SpaceRoomDirectory_roomCount {
        > h3 {
            display: inline;
            font-weight: $font-semi-bold;
            font-size: $font-18px;
            line-height: $font-22px;
            color: $primary-fg-color;
        }

        > span {
            margin-left: 8px;
            font-size: $font-15px;
            line-height: $font-24px;<commit_msg>Fix space hierarchy css not applying as it should<commit_after>/*
Copyright 2021 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_SpaceRoomDirectory_dialogWrapper > .mx_Dialog {
    max-width: 960px;
    height: 100%;
}

.mx_SpaceRoomDirectory {
    height: 100%;
    margin-bottom: 12px;
    color: $primary-fg-color;
    word-break: break-word;
    display: flex;
    flex-direction: column;
}

.mx_SpaceRoomDirectory,
.mx_SpaceRoomView_landing {
    .mx_Dialog_title {
        display: flex;

        .mx_BaseAvatar {
            margin-right: 12px;
            align-self: center;
        }

        .mx_BaseAvatar_image {
            border-radius: 8px;
        }

        > div {
            > h1 {
                font-weight: $font-semi-bold;
                font-size: $font-18px;
                line-height: $font-22px;
                margin: 0;
            }

            > div {
                font-weight: 400;
                color: $secondary-fg-color;
                font-size: $font-15px;
                line-height: $font-24px;
            }
        }
    }

    .mx_AccessibleButton_kind_link {
        padding: 0;
    }

    .mx_SearchBox {
        margin: 24px 0 16px;
    }

    .mx_SpaceRoomDirectory_noResults {
        text-align: center;

        > div {
            font-size: $font-15px;
            line-height: $font-24px;
            color: $secondary-fg-color;
        }
    }

    .mx_SpaceRoomDirectory_listHeader {
        display: flex;
        min-height: 32px;
        align-items: center;
        font-size: $font-15px;
        line-height: $font-24px;
        color: $primary-fg-color;

        .mx_AccessibleButton {
            padding: 2px 8px;
            font-weight: normal;

            & + .mx_AccessibleButton {
                margin-left: 16px;
            }
        }

        > span {
            margin-left: auto;
        }
    }

    .mx_SpaceRoomDirectory_error {
        position: relative;
        font-weight: $font-semi-bold;
        color: $notice-primary-color;
        font-size: $font-15px;
        line-height: $font-18px;
        margin: 20px auto 12px;
        padding-left: 24px;
        width: max-content;

        &::before {
            content: "";
            position: absolute;
            height: 16px;
            width: 16px;
            left: 0;
            background-image: url("$(res)/img/element-icons/warning-badge.svg");
        }
    }
}

.mx_SpaceRoomDirectory_list {
    margin-top: 16px;
    padding-bottom: 40px;

    .mx_SpaceRoomDirectory_roomCount {
        > h3 {
            display: inline;
            font-weight: $font-semi-bold;
            font-size: $font-18px;
            line-height: $font-22px;
            color: $primary-fg-color;
        }

        > span {
            margin-left: 8px;
            font-size: $font-15px;
            line-height: $font-24px;
{'fraction_non_alphanumeric': 0.09761732851985559, 'fraction_numerical': 0.024259927797833935, 'mean_word_length': 1.4779964221824686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4813140', 'n_tokens_mistral': 2200, 'n_tokens_neox': 1995, 'n_words': 474}