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

(-)a/Koha/Template/Plugin/Branches.pm (+11 lines)
Lines 175-178 sub GetBranchSpecificCSS { Link Here
175
    return $opacusercss;
175
    return $opacusercss;
176
}
176
}
177
177
178
sub GetBranchColor {
179
    my ( $self, $branchcode ) = @_;
180
181
    return q{} unless defined $branchcode;
182
183
    my $library     = Koha::Libraries->find($branchcode);
184
    my $branchcolor = $library ? $library->branchcolor : q{};
185
186
    return $branchcolor;
187
}
188
178
1;
189
1;
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_header.scss (-15 / +10 lines)
Lines 52-62 a.navbar-toggle { Link Here
52
}
52
}
53
53
54
#header_search {
54
#header_search {
55
    background-color: $background-color-primary;
56
    border-radius: 0;
55
    border-radius: 0;
57
    border: 1px solid $background-color-primary;
56
    border: 1px solid $background-color-primary;
58
    display: flex;
57
    display: flex;
59
    padding: 0 .8em;
58
    padding: 0.6em;
60
59
61
    ul {
60
    ul {
62
        padding: 0;
61
        padding: 0;
Lines 65-71 a.navbar-toggle { Link Here
65
        display: flex;
64
        display: flex;
66
        align-items: center;
65
        align-items: center;
67
        color: white;
66
        color: white;
68
        background-color: $background-color-primary;
69
        z-index: 2;
67
        z-index: 2;
70
        flex-grow: 1;
68
        flex-grow: 1;
71
69
Lines 97-105 a.navbar-toggle { Link Here
97
    }
95
    }
98
96
99
    .form-title {
97
    .form-title {
100
        padding: 0 16px 0 0;
98
        padding: 0 16px;
101
        background-color: $background-color-primary;
99
        border-radius: 16px;
102
        border-radius: 0 16px 16px 0;
103
        display: flex;
100
        display: flex;
104
        align-items: center;
101
        align-items: center;
105
        justify-content: flex-end;
102
        justify-content: flex-end;
Lines 110-117 a.navbar-toggle { Link Here
110
        label {
107
        label {
111
            color: white;
108
            color: white;
112
            font-weight: bold;
109
            font-weight: bold;
113
            margin: 0;
110
            margin: 0i auto;
114
            white-space: nowrap;
111
            white-space: nowrap;
112
            margin-bottom: 0;
115
        }
113
        }
116
    }
114
    }
117
115
Lines 210-216 a.navbar-toggle { Link Here
210
    input[type="submit"],
208
    input[type="submit"],
211
    button[type="submit"] {
209
    button[type="submit"] {
212
        height: 31px;
210
        height: 31px;
213
        background-color: $background-color-secondary;
214
        color: white;
211
        color: white;
215
        border: 0;
212
        border: 0;
216
        text-shadow: unset;
213
        text-shadow: unset;
Lines 256-274 a.navbar-toggle { Link Here
256
        > li {
253
        > li {
257
254
258
            > a {
255
            > a {
259
                background-color: $background-color-primary;
256
                border: 2px solid;
260
                border: 2px solid $background-color-primary;
261
                border-radius: 0;
257
                border-radius: 0;
262
                color: #FFF;
258
                color: #FFF;
263
                font-weight: normal;
259
                font-weight: normal;
264
                line-height: 1.3;
260
                line-height: 1.3;
265
                margin: 0 .25em;
261
                margin: 0 .25em;
266
                padding: 0 .25em;
262
                padding: .25em .5em;
267
263
268
                &:hover, &:focus, &:active {
264
                &:hover, &:focus, &:active {
269
                    background-color: $background-color-primary;
265
                    border: 2px solid;
270
                    border: 2px solid $background-color-primary;
266
                    border-bottom-color: currentColor;
271
                    border-bottom-color: $background-color-secondary;
272
                    border-bottom: 0;
267
                    border-bottom: 0;
273
                    padding: 0 .25em;
268
                    padding: 0 .25em;
274
                    text-decoration: none;
269
                    text-decoration: none;
Lines 279-285 a.navbar-toggle { Link Here
279
                a {
274
                a {
280
                    cursor: default;
275
                    cursor: default;
281
                    padding: 0 .25em;
276
                    padding: 0 .25em;
282
                    border-bottom: 2px solid #FFF;
277
                    border-bottom: 2px solid currentColor !important;
283
278
284
                    &:hover,
279
                    &:hover,
285
                    &:focus {
280
                    &:focus {
(-)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 52-57 var Koha = {}; Link Here
52
[% IF ( login ) %]
53
[% IF ( login ) %]
53
    [% Asset.css("css/login.css") | $raw %]
54
    [% Asset.css("css/login.css") | $raw %]
54
[% END %]
55
[% END %]
56
[% SET branchcolor = Branches.GetBranchColor( Branches.GetLoggedInBranchcode() ) || '#408540' %]
57
<style>
58
    .toptabs,
59
    #header_search,
60
    #header_search ul,
61
    #header_search .nav-tabs > li > a {
62
        background: [% branchcolor | html %] !important;
63
        border-color: [% branchcolor | html %] !important;
64
    }
65
66
    .form-title, #header_search button[type="submit"] {
67
        background: [% branchcolor | html %] !important;
68
        filter: brightness(85%);
69
    }
70
71
    #header_search .nav-tabs > li > a {
72
        background: [% branchcolor | html %] !important;
73
        border-color: [% branchcolor | html %] !important;
74
    }
75
</style>
55
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
76
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
56
77
57
[% KohaPlugins.get_plugins_intranet_head | $raw %]
78
[% KohaPlugins.get_plugins_intranet_head | $raw %]
58
- 

Return to bug 37054