summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/website/header.less
blob: 39d49c3e3c3b827d453768706a35f1a502e2e9ee (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.book {
    .book-header {
        font-family: @font-family-sans;

        position: absolute;
        overflow: visible;
        top: 0px;
        right: 0px;
        left: 0px;
        height: @header-height;
        z-index: 2;

        font-size: 0.85em;
        color: @header-color;
        background: @header-background;
        border-bottom: 1px solid @header-border;

        .btn {
            display: block;
            height: @header-height;
            padding: 0px 15px;
            border-bottom: none;
            color: @header-button-color;
            text-transform: uppercase;
            line-height: @header-height;
            .box-shadow(none) !important;
            position:relative;

            &:hover {
                position: relative;
                text-decoration: none;
                color: @header-button-hover-color;
                background: @header-button-hover-background;
            }
        }

        h1 {
            margin: 0px;
            font-size: 20px;
            text-align: center;
            line-height: @header-height;

            padding-left: 200px;
            padding-right: 200px;
            .transition(margin-left 0.5s ease);

            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

            a, a:hover {
                color: inherit;
                text-decoration: none;
            }

            @media (max-width: 1000px) {
                display: none;
            }

            i {
                display: none;
            }
        }
    }

    &.is-loading {
        .book-header h1 {
            i {
                display: inline-block;
            }
            a {
                display: none;
            }
        }
    }
    &.with-summary {
        .book-header h1 {
            margin-left: 250px;
        }
    }
    &.without-animation {
        .book-header h1 {
            .transition(none) !important;
        }
    }
    &.color-theme-1{
        .book-header{
            color: @header-color-1;
            background: @header-background-1;
            .btn {
                color: @header-button-color-1;
                &:hover {
                    color: @header-button-hover-color-1;
                    background: @header-button-hover-background-1;
                }
            }
        }
    }
    &.color-theme-2{
        .book-header{
            color: @header-color-2;
            background: @header-background-2;
            .btn {
                color: @header-button-color-2;
                &:hover {
                    color: @header-button-hover-color-2;
                    background: @header-button-hover-background-2;
                }
            }
        }
    }
}