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 4623-4628 div .suggestion_note { Link Here
4623
        white-space:nowrap
4623
        white-space:nowrap
4624
    }
4624
    }
4625
}
4625
}
4626
/* Elasticsearch autocomplete menu */
4627
.autocomplete {
4628
    /*the container must be positioned relative:*/
4629
    position: relative;
4630
    display: inline-block;
4631
}
4632
4633
.autocomplete-items {
4634
    position: absolute;
4635
    border: 1px solid #d4d4d4;
4636
    border-bottom: none;
4637
    border-top: none;
4638
    z-index: 99;
4639
    /*position the autocomplete items to be the same width as the container:*/
4640
4641
    div {
4642
        padding: 10px;
4643
        cursor: pointer;
4644
        background-color: #fff;
4645
        border-bottom: 1px solid #d4d4d4;
4646
4647
        &:hover {
4648
            /*when hovering an item:*/
4649
            background-color: #e9e9e9;
4650
        }
4651
4652
        &.autocomplete-active {
4653
            /*when navigating through the items using the arrow keys:*/
4654
            background-color: lighten(#85CA11, 45%);
4655
        }
4656
    }
4657
}
4658
/* /Elasticsearch autocomplete menu */
4626
4659
4627
#camera, #output {
4660
#camera, #output {
4628
    border: 8px solid #EDF4F6;
4661
    border: 8px solid #EDF4F6;
(-)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 2854-2857 $star-selected: #EDB867; Link Here
2854
    }
2854
    }
2855
}
2855
}
2856
2856
2857
/* Elasticsearch autocomplete menu */
2858
.autocomplete {
2859
    /*the container must be positioned relative:*/
2860
    position: relative;
2861
    display: inline-block;
2862
    width: 100%;
2863
}
2864
2865
.autocomplete-items {
2866
    position: absolute;
2867
    border: 1px solid #d4d4d4;
2868
    border-bottom: none;
2869
    border-top: none;
2870
    z-index: 99;
2871
2872
    div {
2873
        padding: 10px;
2874
        cursor: pointer;
2875
        background-color: #fff;
2876
        border-bottom: 1px solid #d4d4d4;
2877
2878
        &:hover {
2879
            /*when hovering an item:*/
2880
            background-color: #e9e9e9;
2881
        }
2882
2883
        &.autocomplete-active {
2884
            /*when navigating through the items using the arrow keys:*/
2885
            background-color: lighten( $input-btn-focus-color, 45% );
2886
        }
2887
    }
2888
}
2889
2890
/* /Elasticsearch autocomplete menu */
2891
2857
@import "responsive";
2892
@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