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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_header.scss (-6 / +8 lines)
Lines 8-18 Link Here
8
}
8
}
9
9
10
#header_search {
10
#header_search {
11
    background-color: $background-color-primary;
11
    border-radius: 0;
12
    border-radius: 0;
12
    border: 1px solid $background-color-primary;
13
    border: 1px solid $background-color-primary;
13
    display: flex;
14
    display: flex;
14
    flex-direction: column;
15
    flex-direction: column;
15
    padding: 0.6em;
16
    padding: 0 .8em;
16
17
17
    ul {
18
    ul {
18
        padding: 0;
19
        padding: 0;
Lines 21-26 Link Here
21
        display: flex;
22
        display: flex;
22
        align-items: center;
23
        align-items: center;
23
        color: white;
24
        color: white;
25
        background-color: $background-color-primary;
24
        z-index: 2;
26
        z-index: 2;
25
        flex-grow: 1;
27
        flex-grow: 1;
26
28
Lines 65-73 Link Here
65
        label {
67
        label {
66
            color: white;
68
            color: white;
67
            font-weight: bold;
69
            font-weight: bold;
68
            margin: 0i auto;
70
            margin: 0;
69
            white-space: nowrap;
71
            white-space: nowrap;
70
            margin-bottom: 0;
71
        }
72
        }
72
    }
73
    }
73
74
Lines 166-171 Link Here
166
    input[type="submit"],
167
    input[type="submit"],
167
    button[type="submit"] {
168
    button[type="submit"] {
168
        height: 31px;
169
        height: 31px;
170
        background-color: $background-color-secondary;
169
        color: white;
171
        color: white;
170
        border: 0;
172
        border: 0;
171
        text-shadow: unset;
173
        text-shadow: unset;
Lines 218-230 Link Here
218
220
219
        > li {
221
        > li {
220
            > a {
222
            > a {
221
                border: 2px solid;
223
                background-color: $background-color-primary;
224
                border: 2px solid $background-color-primary;
222
                border-radius: 0;
225
                border-radius: 0;
223
                color: #FFF;
226
                color: #FFF;
224
                font-weight: normal;
227
                font-weight: normal;
225
                line-height: 1.3;
228
                line-height: 1.3;
226
                margin: 0 .25em;
229
                margin: 0 .25em;
227
                padding: .25em .5em;
230
                padding: 0 .25em;
228
231
229
                &.active {
232
                &.active {
230
                    border-bottom: 2px solid #FFF;
233
                    border-bottom: 2px solid #FFF;
Lines 238-244 Link Here
238
                }
241
                }
239
242
240
                &:hover, &:focus, &:active {
243
                &:hover, &:focus, &:active {
241
                    border: 2px solid;
242
                    border-bottom-color: currentColor;
244
                    border-bottom-color: currentColor;
243
                    border-bottom: 0;
245
                    border-bottom: 0;
244
                    padding: 0 .25em;
246
                    padding: 0 .25em;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-19 / +16 lines)
Lines 51-76 var Koha = {}; Link Here
51
[% IF ( login ) %]
51
[% IF ( login ) %]
52
    [% Asset.css("css/login.css") | $raw %]
52
    [% Asset.css("css/login.css") | $raw %]
53
[% END %]
53
[% END %]
54
[% SET branchcolor = Branches.GetBranchColor( Branches.GetLoggedInBranchcode() ) || '#408540' %]
54
[% SET branchcolor = Branches.GetBranchColor( Branches.GetLoggedInBranchcode() ) %]
55
<style>
55
[% IF branchcolor %]
56
    .toptabs,
56
    <style>
57
    #header_search,
57
        #header_search,
58
    #header_search ul,
58
        #header_search ul,
59
    #header_search .nav-tabs > li > a {
59
        #header_search .form-title,
60
        background: [% branchcolor | html %] !important;
60
        #header_search .nav-tabs > li > a {
61
        border-color: [% branchcolor | html %] !important;
61
            background-color: [% branchcolor | html %];
62
    }
62
            border-color: [% branchcolor | html %];
63
        }
63
64
64
    .form-title, #header_search button[type="submit"] {
65
        #header_search button[type="submit"] {
65
        background: [% branchcolor | html %] !important;
66
            background: [% branchcolor | html %];
66
        filter: brightness(85%);
67
            filter: brightness(160%);
67
    }
68
        }
68
69
    </style>
69
    #header_search .nav-tabs > li > a {
70
[% END %]
70
        background: [% branchcolor | html %] !important;
71
        border-color: [% branchcolor | html %] !important;
72
    }
73
</style>
74
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
71
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
75
72
76
[% KohaPlugins.get_plugins_intranet_head | $raw %]
73
[% KohaPlugins.get_plugins_intranet_head | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-3 / +14 lines)
Lines 366-373 Link Here
366
                    </div>
366
                    </div>
367
                </li>
367
                </li>
368
                <li>
368
                <li>
369
                    <label for="marcorgcode">Branch color</label>
369
                    <label for="colorpicker">Search bar color: </label>
370
                    <input type="color" name="branchcolor" id="branchcolor" size="16" maxlength="16" value="[% library.branchcolor | html %]" />
370
                    <input type="color" name="colorpicker" id="colorpicker" value="[% library.branchcolor | html %]" />
371
                    <input type="text" name="branchcolor" id="branchcolor" readonly="readonly" size="10" maxlength="16" value="[% library.branchcolor | html %]" />
372
                    <a href="#" class="clear_color"><i class="fa fa-fw fa-trash-can"></i> Clear</a>
371
                </li>
373
                </li>
372
            </ol>
374
            </ol>
373
        </fieldset>
375
        </fieldset>
Lines 912-917 Link Here
912
            }
914
            }
913
            $( "#" + target ).hide();
915
            $( "#" + target ).hide();
914
        });
916
        });
917
918
        $("#colorpicker").on("change", function(){
919
            let branchcolor = this.value;
920
            $("#branchcolor").val( branchcolor );
921
        });
922
923
        $(".clear_color").on("click", function(e){
924
            e.preventDefault();
925
            $("#branchcolor, #colorpicker").val( "" );
926
        });
915
    </script>
927
    </script>
916
[% END %]
928
[% END %]
917
929
918
- 

Return to bug 37054