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

(-)a/koha-tmpl/intranet-tmpl/prog/css/elasticsearch/autocomplete.css (-28 lines)
Lines 1-28 Link Here
1
.autocomplete {
2
  /*the container must be positioned relative:*/
3
  position: relative;
4
  display: inline-block;
5
}
6
.autocomplete-items {
7
    position: absolute;
8
    border: 1px solid #d4d4d4;
9
    border-bottom: none;
10
    border-top: none;
11
    z-index: 99;
12
    /*position the autocomplete items to be the same width as the container:*/
13
  }
14
  .autocomplete-items div {
15
    padding: 10px;
16
    cursor: pointer;
17
    background-color: #fff;
18
    border-bottom: 1px solid #d4d4d4;
19
  }
20
  .autocomplete-items div:hover {
21
    /*when hovering an item:*/
22
    background-color: #e9e9e9;
23
  }
24
  .autocomplete-active {
25
    /*when navigating through the items using the arrow keys:*/
26
    background-color: #cedfb1 !important;
27
    color: #ffffff;
28
  }
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+33 lines)
Lines 4617-4622 div .suggestion_note { Link Here
4617
        white-space:nowrap
4617
        white-space:nowrap
4618
    }
4618
    }
4619
}
4619
}
4620
/* Elasticsearch autocomplete menu */
4621
.autocomplete {
4622
    /*the container must be positioned relative:*/
4623
    position: relative;
4624
    display: inline-block;
4625
}
4626
4627
.autocomplete-items {
4628
    position: absolute;
4629
    border: 1px solid #d4d4d4;
4630
    border-bottom: none;
4631
    border-top: none;
4632
    z-index: 99;
4633
    /*position the autocomplete items to be the same width as the container:*/
4634
4635
    div {
4636
        padding: 10px;
4637
        cursor: pointer;
4638
        background-color: #fff;
4639
        border-bottom: 1px solid #d4d4d4;
4640
4641
        &:hover {
4642
            /*when hovering an item:*/
4643
            background-color: #e9e9e9;
4644
        }
4645
4646
        &.autocomplete-active {
4647
            /*when navigating through the items using the arrow keys:*/
4648
            background-color: lighten(#85CA11, 45%);
4649
        }
4650
    }
4651
}
4652
/* /Elasticsearch autocomplete menu */
4620
4653
4621
@media (min-width: 200px) {
4654
@media (min-width: 200px) {
4622
4655
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-5 lines)
Lines 22-32 Link Here
22
[% Asset.css("css/print.css", { media = "print" }) | $raw %]
22
[% Asset.css("css/print.css", { media = "print" }) | $raw %]
23
[% INCLUDE intranetstylesheet.inc %]
23
[% INCLUDE intranetstylesheet.inc %]
24
[% IF ( bidi ) %][% Asset.css("css/right-to-left.css") | $raw %][% END %]
24
[% IF ( bidi ) %][% Asset.css("css/right-to-left.css") | $raw %][% END %]
25
<!-- Intranet inc CSS IntranetAutocompleteElasticSearch -->
26
[% IF ( Koha.Preference('IntranetAutocompleteElasticSearch') ) %]
27
    [% SET Optylesheet = 'elasticsearch/autocomplete.css' %]
28
    <link rel="stylesheet" type="text/css" href="[% interface | url %]/[% theme | url %]/css/[% Optylesheet | url %]" />
29
[% END %]
30
25
31
<script>
26
<script>
32
var Koha = {};
27
var Koha = {};
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/opac-elasticsearch/opac-autocomplete.css (-29 lines)
Lines 1-29 Link Here
1
/* CSS file OPACAutocompleteElasticSearch */
2
.autocomplete {
3
  /*the container must be positioned relative:*/
4
  position: relative;
5
  display: inline-block;
6
  width: 100%;
7
}
8
.autocomplete-items {
9
    position: absolute;
10
    border: 1px solid #d4d4d4;
11
    border-bottom: none;
12
    border-top: none;
13
    z-index: 99;
14
  }
15
  .autocomplete-items div {
16
    padding: 10px;
17
    cursor: pointer;
18
    background-color: #fff;
19
    border-bottom: 1px solid #d4d4d4;
20
  }
21
  .autocomplete-items div:hover {
22
    /*when hovering an item:*/
23
    background-color: #e9e9e9;
24
  }
25
  .autocomplete-active {
26
    /*when navigating through the items using the arrow keys:*/
27
    background-color: #cedfb1 !important;
28
    color: #ffffff;
29
  }
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (+35 lines)
Lines 2856-2859 $star-selected: #EDB867; Link Here
2856
    }
2856
    }
2857
}
2857
}
2858
2858
2859
/* Elasticsearch autocomplete menu */
2860
.autocomplete {
2861
    /*the container must be positioned relative:*/
2862
    position: relative;
2863
    display: inline-block;
2864
    width: 100%;
2865
}
2866
2867
.autocomplete-items {
2868
    position: absolute;
2869
    border: 1px solid #d4d4d4;
2870
    border-bottom: none;
2871
    border-top: none;
2872
    z-index: 99;
2873
2874
    div {
2875
        padding: 10px;
2876
        cursor: pointer;
2877
        background-color: #fff;
2878
        border-bottom: 1px solid #d4d4d4;
2879
2880
        &:hover {
2881
            /*when hovering an item:*/
2882
            background-color: #e9e9e9;
2883
        }
2884
2885
        &.autocomplete-active {
2886
            /*when navigating through the items using the arrow keys:*/
2887
            background-color: lighten( $input-btn-focus-color, 45% );
2888
        }
2889
    }
2890
}
2891
2892
/* /Elasticsearch autocomplete menu */
2893
2859
@import "responsive";
2894
@import "responsive";
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (-6 lines)
Lines 23-33 Link Here
23
        [% SET opaclayoutstylesheet = 'opac.css' %]
23
        [% SET opaclayoutstylesheet = 'opac.css' %]
24
    [% END %]
24
    [% END %]
25
[% END %]
25
[% END %]
26
<!-- OPAC inc CSS OPACAutocompleteElasticSearch -->
27
[% IF ( Koha.Preference('OPACAutocompleteElasticSearch') ) %]
28
    [% SET Optylesheet = 'opac-elasticsearch/opac-autocomplete.css' %]
29
    <link rel="stylesheet" type="text/css" href="[% interface | url %]/[% theme | url %]/css/[% Optylesheet | url %]" />
30
[% END %]
31
[% IF (opaclayoutstylesheet.match('^https?:|^\/')) %]
26
[% IF (opaclayoutstylesheet.match('^https?:|^\/')) %]
32
    <link rel="stylesheet" type="text/css" href="[% opaclayoutstylesheet | url %]" />
27
    <link rel="stylesheet" type="text/css" href="[% opaclayoutstylesheet | url %]" />
33
[% ELSE %]
28
[% ELSE %]
34
- 

Return to bug 27113