chromium/third_party/blink/renderer/core/css/view-source.css

/*
 * Copyright (C) 2006 Apple Computer, Inc.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

body {
    margin: 0
}

table {
    width: max-content;
    min-width: 100vw;
    border-spacing: 0;
    white-space: pre;
    margin: 0;
    font-size: initial;
    font-family: monospace;
    tab-size: 4;
}

.line-wrap {
    width: 100%;
    white-space: pre-wrap !important;
    word-break: normal;
    overflow-wrap: anywhere;
}

.line-wrap-control {
    width: 100%;
    font-size: initial;
    font-family: monospace;
    user-select: none;
    background-color: light-dark(rgb(240, 240, 240), rgb(60, 60, 60));
    border-bottom: 1px solid rgb(187, 187, 187);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.line-wrap-cell {
  white-space: normal;
}

td {
    padding: 0 !important;
    vertical-align: baseline
}

.line-gutter-backdrop, .line-number {
    /* Keep this in sync with inspector.css (.webkit-line-gutter-backdrop) */
    box-sizing: border-box;
    padding: 0 4px !important;
    width: 31px;
    background-color: light-dark(rgb(240, 240, 240), rgb(60, 60, 60));
    border-right: 1px solid rgb(187, 187, 187) !important;
    user-select: none;
}

.line-gutter-backdrop {
    /* Keep this in sync with inspector.css (.webkit-line-gutter-backdrop) */
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    height: 100%
}

.line-number {
    text-align: right;
    color: light-dark(rgb(148, 132, 132), rgb(128, 128, 128));
    word-break: normal;
    white-space: nowrap;
    font-size: 9px;
    font-family: Helvetica;
    user-select: none;
}

.line-number::before {
    content: attr(value);
}

tbody:last-child .line-content:empty:before {
    content: " ";
}

.line-content {
    padding: 0 5px !important;
}

.html-tag {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-tag) */
    color: light-dark(rgb(136, 18, 128), rgb(93, 176, 215));
}

.html-attribute-name {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-name) */
    color: light-dark(rgb(153, 69, 0), rgb(155 187 220));
}

.html-attribute-value {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-value) */
    color: light-dark(rgb(26, 26, 166), rgb(242, 151, 102));
}

.html-external-link, .html-resource-link {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-external-link, .webkit-html-resource-link) */
    color: light-dark(#00e, rgb(159, 180, 214));
}

.html-external-link {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-external-link) */
    text-decoration: none;
}

.html-external-link:hover {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-external-link:hover) */
    text-decoration: underline;
}

.html-comment {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-comment) */
    color: rgb(35, 110, 37);
}

.html-doctype {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-doctype) */
    color: rgb(192, 192, 192);
}

.html-end-of-file {
    /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-end-of-file) */
    color: rgb(255, 0, 0);
    font-weight: bold;
}