/*
 * Copyright (c) 2020 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.issue {
    padding: 0 8px;
    overflow: hidden;
    flex: none;
    transition: background-color 200ms;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-width: 0 0 1px;
    --breaking-change-color: #F29900;
    --issue-gray: #5F6368;
    --issue-link: #1967D2;
    --issue-black: #202124;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
}

.icon {
    margin-right: 4px;
}

.title {
    flex: 1;
    font-size: 14px;
    color: var(--issue-black);
    font-weight: 450;
}

.issue.collapsed .title {
    font-weight: normal;
}

.header::after {
    transition: transform 200ms;
    user-select: none;
    -webkit-mask-image: url(Images/treeoutlineTriangles.svg);
    -webkit-mask-size: 32px 24px;
    content: '\00a0\00a0';
    text-shadow: none;
    margin-right: -2px;
    height: 12px;
    width: 13px;
    background: var(--issue-gray);
    transform: rotate(90deg);
    transform-origin: 25% 50%;
}

.body-wrapper {
    max-height: 400px;
    transition: max-height 200ms;
}

.body {
    padding: 6px 0;
    margin-left: 9.5px;
    border-left: 2px solid var(--breaking-change-color);
    padding-left: 21px;
    margin-bottom: 20px;
}

.message {
    line-height: 20px;
    font-size: 14px;
    color: var(--issue-gray);
    margin-bottom: 4px;
}

.message .example {
    margin-top: 2px;
    margin-bottom: 2px;
}

.message .example code {
    color: var(--issue-black);
    font-size: 90%;
    user-select: text;
    cursor: text;
}

.message .example .comment::before {
   content: ' — ';
}

.kind-code-line {
    font-size: 12px;
    color: var(--issue-gray);
    margin-bottom: 4px;
    user-select: none;
}

.separator::before {
    content: '\B7';
    padding-left: 1ex;
    padding-right: 1ex;
}

.issue-code {
    color: rgba(95, 99, 104, 0.5);
    user-select: text;
    cursor: text;
}

.issue-kind {
    color: var(--breaking-change-color);
}

.link {
    font-size: 14px;
    color: var(--issue-link);
}

.link-wrapper {
    margin-top: 8px;
}

.issue.collapsed {
    background:  #f3f3f3
}

.issue.collapsed .header::after {
    transform: rotate(-90deg);
}

.issue.collapsed .body-wrapper {
    max-height: 0;
}

.issues-toolbar-container {
    display: flex;
    flex: none;
}

.issues-toolbar-container > .toolbar {
    background-color: var(--toolbar-bg-color);
    border-bottom: var(--divider-border);
}

.issues-toolbar-left {
    flex: 1 1 auto;
}

.issues-toolbar-right {
    padding-right: 6px;
}

.affected-resources-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 2em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.affected-resource {
    background: #F8F9FA;
    padding: 12px 3px 12px 20px;
    position: relative;
}

.affected-resource-label-wrapper {
    position: relative;
    margin-left: -12px;
    cursor: pointer;
}

.affected-resource-label-wrapper::before {
    transition: transform 200ms;
    user-select: none;
    -webkit-mask-image: url(Images/treeoutlineTriangles.svg);
    -webkit-mask-size: 32px 24px;
    -webkit-mask-position: -1px 1px;
    content: '\00a0\00a0';
    text-shadow: none;
    background: var(--issue-gray);
    transform-origin: center;
    position: absolute;
    top: 3px;
}

.affected-resource-label {
    font-size: 14px;
    line-height: 20px;
    color: var(--issue-black);
    position: relative;
    margin-left: 12px;
}

.affected-resource.expanded .affected-resource-label-wrapper::before {
    transform: rotate(90deg);
}

.affected-resource-cookie {
    font-size: 14px;
    line-height: 20px;
    color: var(--issue-link);
    border: 0;
    border-collapse: collapse;
}

.affected-resource-request {
    font-size: 14px;
    line-height: 20px;
    color: var(--issue-link);
    border: 0;
    border-collapse: collapse;
}

.affected-resource-list-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height ease-in-out 200ms;
}

@media (prefers-reduced-motion: reduce) {
    .affected-resource-list-wrapper {
        transition: none;
    }
}

.affected-resource.expanded .affected-resource-list-wrapper {
    max-height: 100vh;
}

.affected-resource-list {
    border-spacing: 0;
}

.affected-resource-header {
    font-size: 12px;
    color: rgba(95, 99, 104, 0.5);
}

.affected-resource-header-info {
    padding-left: 16px;
}

.affected-resource-cookie-info {
    color: #9AA0A6;
    padding-left: 16px;
    opacity: 1;
    transition: opacity 200ms;
}

.affected-resource-cookie:hover .affected-resource-cookie-info {
    opacity: 1;
}
