View | Details | Raw Unified | Return to bug 37054
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Branches.pm (+11 lines)
Lines 191-194 sub GetBranchSpecificCSS { Link Here
191
    return $opacusercss;
191
    return $opacusercss;
192
}
192
}
193
193
194
sub GetBranchColor {
195
    my ( $self, $branchcode ) = @_;
196
197
    return q{} unless defined $branchcode;
198
199
    my $library     = Koha::Libraries->find($branchcode);
200
    my $branchcolor = $library ? $library->branchcolor : q{};
201
202
    return $branchcolor;
203
}
204
194
1;
205
1;
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_header.scss (-11 / +8 lines)
Lines 8-19 Link Here
8
}
8
}
9
9
10
#header_search {
10
#header_search {
11
    background-color: $background-color-primary;
12
    border-radius: 0;
11
    border-radius: 0;
13
    border: 1px solid $background-color-primary;
12
    border: 1px solid $background-color-primary;
14
    display: flex;
13
    display: flex;
15
    flex-direction: column;
14
    flex-direction: column;
16
    padding: 0;
15
    padding: 0.6em;
17
16
18
    ul {
17
    ul {
19
        padding: 0;
18
        padding: 0;
Lines 22-28 Link Here
22
        display: flex;
21
        display: flex;
23
        align-items: center;
22
        align-items: center;
24
        color: white;
23
        color: white;
25
        background-color: $background-color-primary;
26
        z-index: 2;
24
        z-index: 2;
27
        flex-grow: 1;
25
        flex-grow: 1;
28
26
Lines 67-74 Link Here
67
        label {
65
        label {
68
            color: white;
66
            color: white;
69
            font-weight: bold;
67
            font-weight: bold;
70
            margin: 0;
68
            margin: 0i auto;
71
            white-space: nowrap;
69
            white-space: nowrap;
70
            margin-bottom: 0;
72
        }
71
        }
73
    }
72
    }
74
73
Lines 167-173 Link Here
167
    input[type="submit"],
166
    input[type="submit"],
168
    button[type="submit"] {
167
    button[type="submit"] {
169
        height: 31px;
168
        height: 31px;
170
        background-color: $background-color-secondary;
171
        color: white;
169
        color: white;
172
        border: 0;
170
        border: 0;
173
        text-shadow: unset;
171
        text-shadow: unset;
Lines 220-233 Link Here
220
218
221
        > li {
219
        > li {
222
            > a {
220
            > a {
223
                background-color: $background-color-primary;
221
                border: 2px solid;
224
                border: 2px solid $background-color-primary;
225
                border-radius: 0;
222
                border-radius: 0;
226
                color: #FFF;
223
                color: #FFF;
227
                font-weight: normal;
224
                font-weight: normal;
228
                line-height: 1.3;
225
                line-height: 1.3;
229
                margin: 0 .25em;
226
                margin: 0 .25em;
230
                padding: 0 .25em;
227
                padding: .25em .5em;
231
228
232
                &.active {
229
                &.active {
233
                    border-bottom: 2px solid #FFF;
230
                    border-bottom: 2px solid #FFF;
Lines 241-249 Link Here
241
                }
238
                }
242
239
243
                &:hover, &:focus, &:active {
240
                &:hover, &:focus, &:active {
244
                    background-color: $background-color-primary;
241
                    border: 2px solid;
245
                    border: 2px solid $background-color-primary;
242
                    border-bottom-color: currentColor;
246
                    border-bottom-color: $background-color-secondary;
243
                    border-bottom: 0;
247
                    padding: 0 .25em;
244
                    padding: 0 .25em;
248
                    text-decoration: none;
245
                    text-decoration: none;
249
                }
246
                }
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-1 / +21 lines)
Lines 3-8 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaPlugins %]
4
[% USE KohaPlugins %]
5
[% USE String %]
5
[% USE String %]
6
[% USE Branches %]
6
[% PROCESS 'html_helpers.inc' %]
7
[% PROCESS 'html_helpers.inc' %]
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
<meta name="viewport" content="width=device-width, initial-scale=1" />
9
<meta name="viewport" content="width=device-width, initial-scale=1" />
Lines 50-55 var Koha = {}; Link Here
50
[% IF ( login ) %]
51
[% IF ( login ) %]
51
    [% Asset.css("css/login.css") | $raw %]
52
    [% Asset.css("css/login.css") | $raw %]
52
[% END %]
53
[% END %]
54
[% SET branchcolor = Branches.GetBranchColor( Branches.GetLoggedInBranchcode() ) || '#408540' %]
55
<style>
56
    .toptabs,
57
    #header_search,
58
    #header_search ul,
59
    #header_search .nav-tabs > li > a {
60
        background: [% branchcolor | html %] !important;
61
        border-color: [% branchcolor | html %] !important;
62
    }
63
64
    .form-title, #header_search button[type="submit"] {
65
        background: [% branchcolor | html %] !important;
66
        filter: brightness(85%);
67
    }
68
69
    #header_search .nav-tabs > li > a {
70
        background: [% branchcolor | html %] !important;
71
        border-color: [% branchcolor | html %] !important;
72
    }
73
</style>
53
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
74
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
54
75
55
[% KohaPlugins.get_plugins_intranet_head | $raw %]
76
[% KohaPlugins.get_plugins_intranet_head | $raw %]
56
- 

Return to bug 37054