aboutsummaryrefslogtreecommitdiff
path: root/doc/that_style/sass/_fragment_base.scss
blob: b46e46efbc7c89d3a68c4b1f99d42b29ae5e8205 (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
/*
 Basic styling for fragments shared by all themes.
*/

div.fragment {
    padding: 0;
    margin: 4px 8px 4px 2px;
    color: #bebebe;
    background-color: #323232;
    border: 3px solid #e8e8e8;
    border-radius: 2px;
    overflow-y: hidden;
    overflow-x: auto;
    position: relative;
    
}

div.line {
    font-family: monospace, fixed;
    font-size: 13px;
    min-height: 13px;
    line-height: 1.0;
    text-indent: -53px;
    margin: 0px;
    padding: 1px 0 1px 53px;
    white-space: pre;
    
    @include transition-property(background-color);
    @include transition-duration(0s);

    &:hover {
        background-color: #1a1a1a;
    }

    &::after {
        // insert linefeed
        content:"\000A";
        white-space: pre;
    }
}

span.lineno {
    padding-right: 4px;
    text-align: right;
    color: black;
    height: 100px;
    white-space: pre;
    border-right: 3px solid #1d7567;
    background-color: #a0a0a0;
}

span.lineno a, span.lineno a:visited {
    background-color: inherit;
    color: #1e595a;
}

span.lineno a:hover {
    background-color: #C8C8C8;
    text-decoration: none;
}

.lineno {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}