aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/css/flowdetail.less
blob: 200ec46dde61762de6f4dfc8f696561b5542e17d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highligh
//TODO: Move into some utils
.monospace() {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

.flow-detail {
    width: 100%;
    overflow:hidden;
    display: flex;
    flex-direction: column;

    nav {
        background-color: #F2F2F2;
    }

    section {
        overflow-y: scroll;
        >article{
            overflow: auto;
            padding: 5px 12px 0;
        }
        >footer {
            box-shadow: 0 0 3px gray;
            padding: 2px;
            margin: 0;
            height:23px;
        }
    }

    section.detail, section.error{
        overflow: auto;
        padding: 5px 12px 0;
    }


    .first-line {
        .monospace();
        background-color: #428bca;
        color: white;
        margin: 0 -8px;
        padding: 4px 8px;
        border-radius: 5px;
        word-break: break-all;
        max-height: 100px;
        overflow-y: auto;

        .inline-input.editable {
            border-color: rgba(255,255,255,0.5);
        }
    }
    .request-line {
        margin-bottom: 2px;
    }

    hr {
        margin: 0 0 5px;
    }
}


.inline-input {
    display: inline;
    margin: 0 -3px;
    padding: 0 3px;

    border: solid transparent 1px;
    &.editable {
        border-color: #ccc;
    }

    &[contenteditable] {

        background-color: rgba(255, 255, 255, 0.2);

        &.has-warning {
            color: rgb(255, 184, 184);
        }
        &.has-success {
            //color: green;
        }
    }
}

.view-all-content-btn{
    float: right;
    margin-bottom: 12px;
}

.flow-detail table {
    .monospace();
    width: 100%;
    table-layout: fixed;
    word-break: break-all;

    tr {
        &:not(:first-child) {
            border-top: 1px solid #f7f7f7;
        }
    }

    td {
        vertical-align: top;
        //alt:
        //white-space: nowrap;
        //overflow: hidden;
        //text-overflow: ellipsis;
    }
}

.connection-table {
    td:first-child {
        width: 50%;
        padding-right: 1em;
    }
}

.header-table {
    td {
        line-height: 1.3em;
    }
    .header-name {
        width: 33%;
    }
    .header-value {

    }

    // This exists so that you can copy
    // and paste headers out of mitmweb.
    .header-colon {
        position: absolute;
        opacity: 0;
    }

    .inline-input {
        display: inline-block;
        width: 100%;
        height: 100%;
    }
}

.connection-table, .timing-table {
    td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}