@import "access-history";
@import "activity-log";
@import "webhooks";

.user-settings {
    min-height:300px;
    .table-responsive {
        max-width: 560px;
        max-height: 300px;
    }
}

.settings-modal {
    width:800px;
    max-width: 100%;
    .modal-content {
        width:800px;
        max-width: 100%;
    }
    .modal-back {
        width: 40px;
        height: 56px;
        background: url("../images/arrow-left.png") no-repeat;
        @include background-size(8px 13px);
        background-position: center;
        top: 0;
        left: 0;
        cursor: pointer;
        position: absolute;
    }
    .modal-body {
        padding: 0;
    }
    li {
        list-style: none;
    }
    label {
        font-weight: 600;
    }

	.no-padding--left {
        padding-left: 0;
    }
    .padding-top {
        padding-top: 7px;
        &.x2 {
            padding-top: 14px;
        }
        &.x3 {
            padding-top: 21px;
        }
    }
    .padding-bottom {
        padding-bottom: 7px;
        &.x2 {
            padding-bottom: 14px;
        }
        &.x3 {
            padding-bottom: 21px;
        }
        .control-label {
            font-weight: 600;
            &.text-left {
                text-align: left;
            }
        }
    }
    .profile-img {
        width: 128px;
        height: 128px;
    }
    .settings-table {
        display: table;
        table-layout: fixed;
        width: 100%;
        > div {
            display: table-cell;
            vertical-align: top;
        }
        .nav {
            position: fixed;
            width: 179px;
            &.absolute {
                position: absolute;
                top: 0;
            }
        }
        .security-links {
            margin-right: 20px;
            .fa {
                margin-right: 6px;
            }
        }
        .settings-links {
            width: 180px;
            background: #FAFAFA;
            border-right: 1px solid #DDD;
        }
        .settings-content {
            padding: 0px 20px 30px;
            .modal-header {
                display: none;
            }
            .section-min {
                padding: 1em 0;
                margin-bottom: 0;
                cursor: pointer;
                position: relative;
                @include clearfix;
                &:hover {
                    background: #f9f9f9;
                }
                &:hover .fa {
                    display: inline-block;
                }
                &:hover .section-edit {
                    text-decoration: underline;
                }
            }

            .section-max {
                background: rgba(black, 0.05);
                padding: 1em 0 1.3em;
                margin-bottom: 0;
                @include clearfix;
                .section-title {
                    margin-bottom: 10px;
                }
            }

            .appearance-section {
                .theme-group {
                    .input-group-addon {
                        padding: 4px 5px;
                        width: 40px;
                        img {
                            border: 1px solid rgba(black, 0.15);
                        }
                    }
                }
                .premade-themes {
                    margin-bottom: 10px;
                    .theme-label {
                        font-weight: 400;
                        margin-top: 5px;
                    }
                    img {
                        border: 3px solid transparent;
                    }
                    .active {
                        img {
                            border-color: $primary-color;
                        }
                    }
                }
                .custom-label {
                    font-weight: normal;
                    font-size: 13px;
                    width: 100%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    margin-bottom: 0;
                }
                .input-group-addon {
                    background: transparent;
                }
                .radio {
                    label {
                        font-weight: 600;
                    }
                }
            }

            .section-title {
                margin-bottom: 5px;
                font-weight: 600;
            }

            .section-edit {
                text-align: right;
                margin-bottom: 5px;
                .fa {
                    margin-right: 7px;
                    font-size: 12px;
                    @include opacity(0.5);
                    display: none;
                }
            }

            .section-describe {
                @include opacity(0.7);
                white-space:pre;
            }

            .divider-dark {
                border-bottom:1px solid #aaaaaa;
            }

            .divider-light {
                border-bottom:1px solid lightgrey;
            }

            .setting-list {
                padding: 0;
                list-style-type:none;
            }

            .setting-list__hint {
                margin-top: 20px;
            }

            .mentions-input {
                margin-top: 10px;
            }

            .setting-list-item {
                margin-top:7px;
            }
            .has-error {
                color: #a94442;
            }

            .file-status {
                font-size: 13px;
                margin-top: 8px;
                color: #555;
            }

            .confirm-import {
                padding: 4px 10px;
                margin: 10px 0;
            }

        }
    }
    .nav-pills {
        > li {
            margin: 0;
            a {
                border-radius: 0;
                color: #777;
            }
            .glyphicon {
                width: 25px;
                top: 2px;
            }
            &:hover {
                a {
                    background: #E6F2FA;
                }
            }
            &.active {
                a {
                    color: #111;
                    background-color: #E1E1E1;
                    &:before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 5px;
                        height: 100%;
                        background: #000;
                    }
                }
                a, a:hover, a:focus {
                    padding-right: 10px;
                    background-color: rgba(black, 0.1);
                    border-radius: 0;
                    font-weight: 400;
                    position: relative;
                }
            }
        }
    }
    h3 {
        font-size: em(20px);
    }
}

.channel-settings {
    padding: 0 10px;
}

.tab-header {
    margin-bottom:1em;
}

.setting-name {
    color:grey;
    font-weight:500;
}

.sel-btn {
    margin-right:5px;
}

.member-div {
    border-bottom:1px solid lightgrey;
    position:relative;
    padding:2px;
    margin: 0;
    width:100%;
    &:first-child {
        border-top:1px solid lightgrey;
    }
    .post-profile-img {
        @include border-radius(50px);
        margin-right: 8px;
    }
    .member-name {
        font-weight:500;
        display: block;
    }

    .member-email {
        color:darkgrey;
        display: block;
    }

    .member-role, .member-drop {
        position:absolute;
        right:15px;
        top:13px;
    }
}

.member-invite {
    position:absolute;
    right:10px;
    top:7px;
}

.member-menu {
    right:0px;
    left:auto;
}

.member-list {
    width:100%;
    overflow-x:visible;
}

.member-page {
    padding-top:50px;
}

.active-border {
    border:1px solid red;
}

.color-btn {
    margin:4px;
}

.no-resize {
    resize:none;
}
