Search Results for '.select2-container'

Forums › Forums › Search › Search Results for '.select2-container'

Viewing 10 results – 11 through 20 (of 36 total)
  • Author
    Search Results
  • #245012

    Anonymous
    Inactive

    Hi,

    My filtering form has some CSS problem. Please check the below link:
    https://www.lightemsystems.com/telecom-datacom-systems/industrial-switch/

    Post per page i.e. View dropdown is not same as other dropdown design.
    CSS code I used:

    .searchandfilter > ul > li {
    display: inline-block;
    margin-right: 15px;
    float: left;
    }
    .searchandfilter[data-sf-form-id=”10523″] select,
    .select2-container .select2-results__option,
    .searchandfilter[data-sf-form-id=”10523″] .select2-container–default .select2-selection–single .select2-selection__rendered {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: grey;
    border-color: grey;
    }
    .searchandfilter >ul > li input[type=submit] {
    background-color: #1569ae; /* Blue */
    border: 4px;
    color: white;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    }

    Please help me.

    #243521

    In reply to: Styling form


    Trevor
    Participant

    This should start you on your way:

    .searchandfilter[data-sf-form-id="971"] li.sf-field-search input {
      padding: 1.5px 10px;
    }
    .searchandfilter[data-sf-form-id="971"] > ul > li,
    .searchandfilter[data-sf-form-id="971"] li.sf-field-search input,
    .searchandfilter[data-sf-form-id="971"] li.sf-field-search label,
    .searchandfilter[data-sf-form-id="971"] .select2-container {
      min-width: 245px;
      float: left;
    }
    .searchandfilter[data-sf-form-id="971"] > ul {
      display: table;
    }
    .searchandfilter[data-sf-form-id="971"] li.sf-field-submit {
        clear: both;
    }

    Note that you have some CSS you already made:

    input.sf-input-text {
        background-color: white;
        border: 1px solid #aaa !important;
        margin-top: 3px;
        font-size: 14px;
    }

    The font-size and margin-top in that block may need to be removed. It may also be that you need to place the CSS in a media query to apply only to desktop, but this should get you started. This is really outside the scope of our normal support, so if you need more doing, you may need to hire a third party coder to help you.

    #239646

    Trevor
    Participant

    Could you first change the combobox script to Select2 (there is an option in our settings page to choose which Combobox script to use). Your current form uses Chosen, which is set within our plugin by default. However, it is now pretty much abandoned and has not received any major updates in a long time. It has poor support for iOS devices for example.

    Select2 is maintained now by the WooCommerce team, who are, of course, owned by Automattic, the owners of WordPress, and as such is used by a lot of themes and plugins.

    This custom CSS might then do it for you:

    .searchandfilter[data-sf-form-id="9331"] li.sf-field-search input,
    .searchandfilter[data-sf-form-id="9331"] li.sf-field-search label,
    .searchandfilter[data-sf-form-id="9331"] .select2-container {
      min-width: 100%;
    }

    Please note that we are now into an extended public holiday weekend (Friday to Monday inclusive) here in the UK. We may be working for some of this period, but replies may be delayed at times.

    #237005

    Trevor
    Participant

    I think it would be like this:

    .searchandfilter[data-sf-form-id="13155"] .sf-field-taxonomy-partysize .select2-container {
      max-width: 150px;
    }
    #236254

    Trevor
    Participant

    If there is no other place to add custom CSS in your theme, then Customize – Additional CSS will suffice.

    I think this is it then:

    .searchandfilter[data-sf-form-id="2703"] select.sf-input-range-select {
      border: 1px solid #aaa;
      padding: 2px 0;
      border-radius: 4px;
    }
    .searchandfilter[data-sf-form-id="2703"] > ul > li:first-child {
      margin-left: 0;
      padding-top: 0;
    }
    .searchandfilter[data-sf-form-id="2703"] li.sf-field-search h4 {
      font-size: 24px;
      font-weight: 400;
      letter-spacing: 3px;
      padding-top: 0;
    }
    .searchandfilter[data-sf-form-id="2703"] h4 {
      font-size: 16px;
      font-weight:600;
      color: #02213d;
    }
    .searchandfilter[data-sf-form-id="2703"] select,
    .searchandfilter[data-sf-form-id="2703"] .select2-container .select2-results__option,
    .searchandfilter[data-sf-form-id="2703"] .select2-container--default .select2-selection--single .select2-selection__rendered {
      color: black;
      font-size: 14px;
    }
    .searchandfilter[data-sf-form-id="2703"] li.sf-field-search input,
    .searchandfilter[data-sf-form-id="2703"] li.sf-field-search label,
    .searchandfilter[data-sf-form-id="2703"] .select2-container {
      min-width: 100%;
    }
    .searchandfilter[data-sf-form-id="2703"] > ul {
      margin: 20px;
      border: 1px solid #02213d;
      padding: 15px;
      background: #f3f3f3;
    }
    .searchandfilter[data-sf-form-id="2703"] .meta-slider {
      max-width: calc(100% - 12px);
    }
    .searchandfilter[data-sf-form-id="2703"] li .sf-meta-range.sf-meta-range-slider label  {
      width: calc(50% - 9px);
    }
    .searchandfilter[data-sf-form-id="2703"] li .sf-meta-range.sf-meta-range-slider input {
      width: 100%;
      max-width: 100%;
      font-size: 14px;
      color: #000;
      border-color: #02213d;
    }
    .searchandfilter[data-sf-form-id="2703"] .select2-container .select2-selection,
    .select2-container--open .select2-dropdown--above {
      border-color: #02213d;
    }
    .searchandfilter[data-sf-form-id="2703"] .select2-container, .select2-container--open {
      font-size: 14px;
      color: #000;
    }
    .select2-container--open .select2-search--dropdown .select2-search__field {
      border-color: #02213d;
    }
    #235608

    Trevor
    Participant

    Could you try this custom CSS:

    .select2-container--open {
        position: fixed !important;
        z-index: 9999;
    }
    .select2-container--focus {
        position: relative !important
    }
    #235600

    Trevor
    Participant

    This Custom CSS is my first hit at it:

    .searchandfilter[data-sf-form-id="2703"] select.sf-input-range-select {
      border: 1px solid #aaa;
      padding: 2px 0;
      border-radius: 4px;
    }
    .searchandfilter[data-sf-form-id="2703"] > ul > li:first-child {
      margin-left: 0;
      padding-top: 0;
    }
    .searchandfilter[data-sf-form-id="2703"] li.sf-field-search h4 {
      font-size: 26px;
      font-weight: 400;
      letter-spacing: 3px;
      padding-top: 0;
    }
    .searchandfilter[data-sf-form-id="2703"] h4 {
      font-size: 18px;
      font-weight:600;
    }
    .searchandfilter[data-sf-form-id="2703"] select,
    .searchandfilter[data-sf-form-id="2703"] .select2-container .select2-results__option,
    .searchandfilter[data-sf-form-id="2703"] .select2-container--default .select2-selection--single .select2-selection__rendered {
      color: black;
      font-size: 14px;
    }
    .searchandfilter[data-sf-form-id="2703"] li.sf-field-search input,
    .searchandfilter[data-sf-form-id="2703"] li.sf-field-search label,
    .searchandfilter[data-sf-form-id="2703"] .select2-container {
      min-width: 100%;
    }
    .searchandfilter[data-sf-form-id="2703"] > ul {
      margin: 20px;
      border: 1px solid #002f60;
      padding: 15px;
    }
    .searchandfilter[data-sf-form-id="2703"] .meta-slider {
      max-width: calc(100% - 12px);
    }
    .searchandfilter[data-sf-form-id="2703"] li .sf-meta-range.sf-meta-range-slider label  {
      width: calc(50% - 9px);
    }
    .searchandfilter[data-sf-form-id="2703"] li .sf-meta-range.sf-meta-range-slider input {
      width: 100%;
      max-width: 100%;
    }

    However. The following need specifying:

    font colors for each field
    font sizes for each field
    border colors for the form and fields

    #235252

    Anonymous
    Inactive

    I’ve a form, managed from Trevor ( Thank you ) that now has this CSS code :

    .searchandfilter[data-sf-form-id="9080"] select.sf-input-range-select {
      border: 1px solid #aaa;
      padding: 2px 0;
      border-radius: 4px;
    }
    .searchandfilter[data-sf-form-id="9080"] > ul > li:first-child {
      margin-left: 0;
    }
    .searchandfilter[data-sf-form-id="9080"] > ul > li {
      margin-left: 25px;
      float:left;
    }
    .searchandfilter[data-sf-form-id="9080"] {
      background: #fff;
      float: left;
      width: 100%;
    }
    .searchandfilter[data-sf-form-id="9080"] h4 {
      color: black;
      font-family: "Montserrat", Sans-serif;
      font-size: 18px;
      font-weight:600
    }
    .searchandfilter[data-sf-form-id="9080"] select,
    .searchandfilter[data-sf-form-id="9080"] .select2-container .select2-results__option,
    .searchandfilter[data-sf-form-id="9080"] .select2-container--default .select2-selection--single .select2-selection__rendered {
      color: black;
      font-family: "Montserrat", Sans-serif;
      font-size: 14px;
    }
    .searchandfilter[data-sf-form-id="9080"] .select2-container {
      min-width: 230px;
    }
    .searchandfilter[data-sf-form-id="9080"] > ul {
      display: table;
      margin: 0 auto;
    }

    but i’ve two problems :

    1) the last field ( price range ) is not of the same dimension of others.
    2) when i select a field the form give me immediately the result redirecting me on teh search result page using only a filter

    My old form give me the possibility to select one or moe fields to have the final result correctly filtered .

    F.e.

    select first field
    second field show me only elements that respect the first query
    Select second field
    Third field show me only elements that respect the second query that respect the first
    etc etc

    Why now it does not work ?
    i do not see more the partial result for every step for every field inserted .

    Thank you for your help

    #234681

    Topic: CSS RULES


    Anonymous
    Inactive

    having this code : ( Trevor has created this to solve a form problem )

    .searchandfilter[data-sf-form-id=”1146″] select.sf-input-range-select {
    border: 1px solid #aaa;
    padding: 2px 0;
    border-radius: 4px;
    }
    .searchandfilter[data-sf-form-id=”1146″] > ul > li:first-child {
    margin-left: 0;
    }
    .searchandfilter[data-sf-form-id=”1146″] > ul > li {
    margin-left: 25px;
    float:left;
    }
    .searchandfilter[data-sf-form-id=”1146″] {
    background: #fff;
    float: left;
    width: 100%;
    }
    .searchandfilter[data-sf-form-id=”1146″] h4 {
    color: black;
    font-family: “Montserrat”, Sans-serif;
    font-size: 18px
    }
    .searchandfilter[data-sf-form-id=”1146″] select,
    .searchandfilter[data-sf-form-id=”1146″] .select2-container .select2-results__option,
    .searchandfilter[data-sf-form-id=”1146″] .select2-container–default .select2-selection–single .select2-selection__rendered {
    color: black;
    font-family: “Montserrat”, Sans-serif;
    font-size: 14px;
    }
    .searchandfilter[data-sf-form-id=”1146″] .select2-container {
    min-width: 230px;
    }
    .searchandfilter[data-sf-form-id=”1146″] > ul {
    display: table;
    margin: 0 auto;
    }

    how can i separate the font and color for LAbel and text in field and how to have the label in bold style ?

    i think that i’ve to manage the portion :

    .searchandfilter[data-sf-form-id=”1146″] h4 {
    color: black;
    font-family: “Montserrat”, Sans-serif;
    font-size: 18px
    }

    but also inserting the riles –> { font-weight: bold; } it do not change and i do not see where to distinguis label from filed.

    Can you help me ?

    #234074

    In reply to: CSS rules


    Trevor
    Participant

    I had to comment out all the custom CSS you made, so can you remove all of that?

    #3 Change background color to what? Inside and outside the black boxed area? I assumed for now you wanted it white and to the whole form.

    This is the CSS I made:

    .searchandfilter[data-sf-form-id="289"] select.sf-input-range-select {
      border: 1px solid #aaa;
      padding: 2px 0;
      border-radius: 4px;
    }
    .searchandfilter[data-sf-form-id="289"] > ul > li:first-child {
      margin-left: 0;
    }
    .searchandfilter[data-sf-form-id="289"] > ul > li {
      margin-left: 25px;
      float:left;
    }
    .searchandfilter[data-sf-form-id="289"] {
      background: #fff;
      display: table;
      padding: 15px;
    }
    .searchandfilter[data-sf-form-id="289"] h4 {
      color: red;
      font-family: "Montserrat", Sans-serif;
      font-size: 18px
    }
    .searchandfilter[data-sf-form-id="289"] select,
    .select2-container .select2-results__option,
    .searchandfilter[data-sf-form-id="289"] .select2-container--default .select2-selection--single .select2-selection__rendered {
      color: green;
      font-family: "Montserrat", Sans-serif;
      font-size: 14px;
    }
Viewing 10 results – 11 through 20 (of 36 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.