Forums Forums Search Search Results for 'horizontal'

Viewing 10 results - 151 through 160 (of 323 total)
  • Author
    Search Results
  • #191822

    Trevor
    Participant

    To display your search form horizontally, add the following to you theme’s CSS:

    .searchandfilter > ul > li {
        display: inline-block;
        vertical-align: top;
        padding: 0 20px;
    }

    Here is our documentation on this:

    (link)

    #191811

    Anonymous
    Inactive

    How to put search option Horizontally in Shortcode option instead of current view in page see
    https://careervistar.com/candidates-search/

    #191440

    Trevor
    Participant

    Hi

    I don’t see a space on the right, and I see no horizontal scrollbar. I have tried this on my mobile phone and in mobile view in Chrome, and neither show it. Looking at the code for the form, there are no minimum widths set, nor any right margins or paddings.


    Trevor
    Participant

    They would normally be vertical but in your child theme CSS, on line 566, you have made them display: inline-block, which makes them horizontal.

    .searchandfilter > ul > li {
        display: inline-block;
        vertical-align: top;
        padding: 0 12px;
        border: none;
        background-color: none;
    }

    It is not possible to change them from a list to just line breaks, but the cause is this CSS you have added. Do you need them to look differently from Desktop to Mobile? In which case, wrap the CSS in a media query so it affects on desktop screen widths.

    #190942

    Anonymous
    Inactive

    Hi Trevor,

    The code you’ve provided has helped me re-initiate the masonry grid after a search has taken place, which was another problem that I need to overcome.

    I’ve modified the code slightly for responsiveness…

    
    (function ($)
     {
        
    	"use strict";
    	
    	function loadMasonry(){
    		
    		//$container will always be a new copy
    		var $container = $('.search-filter-results-list');
    		
    		//running images loaded again after page load / ajax event 
    		$container.imagesLoaded(function () {
    			// INITIALIZE MASONRY
    			$container.masonry({
    				itemSelector: '.search-filter-result-item',
    				columnWidth: '.grid-sizer',
    				gutter: '.gutter-sizer',
    				percentPosition: true,
    				horizontalOrder: true
    			});
    			// Masonry has been initialized, okay to call methods
    			
    			// not sure if you will need this here but might be worth adding in
    			//$container.masonry('reloadItems');
    		});
    	}
    	
    	
    	//then also call it after ajax event
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function () {
    		console.log("ajax complete");
    		loadMasonry();
    	});
    
    	//an event fired when S&F is initialised and S&F scripts have been loaded
    	$(document).on("sf:init", ".searchandfilter", function(){
    		console.log("S&F JS initialised");
    		loadMasonry();
    	});
    
    	
    }(jQuery));
    

    I’m still having issues with the next items loading in via AJAX in a masonry layout though.
    https://mgg.devrap.co.uk/

    I’m currently investigating, but if you have any further suggestions, please let me know.

    Thanks for your time so far.

    Regards,

    Kirk

    #189871

    Trevor
    Participant

    We use the jquery nouislider – 11.1.0.

    I would advise playing with the css. This is what is used by default:

    .noUi-target, .noUi-target * {
      -webkit-touch-callout: none;
      -webkit-tap-highlight-color: transparent;
      -webkit-user-select: none;
      -ms-touch-action: none;
      touch-action: none;
      -ms-user-select: none;
      -moz-user-select: none;
      user-select: none;
      -moz-box-sizing: border-box;
      box-sizing: border-box; }
    
    .noUi-target {
      position: relative;
      direction: ltr; }
    
    .noUi-base, .noUi-connects {
      width: 100%;
      height: 100%;
      position: relative;
      z-index: 1; }
    
    .noUi-connects {
      overflow: hidden;
      z-index: 0; }
    
    .noUi-connect, .noUi-origin {
      will-change: transform;
      position: absolute;
      z-index: 1;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      -ms-transform-origin: 0 0;
      -webkit-transform-origin: 0 0;
      transform-origin: 0 0; }
    
    html:not([dir=rtl]) .noUi-horizontal .noUi-origin {
      left: auto;
      right: 0; }
    
    .noUi-vertical .noUi-origin {
      width: 0; }
    
    .noUi-horizontal .noUi-origin {
      height: 0; }
    
    .noUi-handle {
      position: absolute; }
    
    .noUi-state-tap .noUi-connect, .noUi-state-tap .noUi-origin {
      -webkit-transition: transform .3s;
      transition: transform .3s; }
    
    .noUi-state-drag * {
      cursor: inherit !important; }
    
    .noUi-horizontal {
      height: 18px; }
    
    .noUi-horizontal .noUi-handle {
      width: 34px;
      height: 28px;
      left: -17px;
      top: -6px; }
    
    .noUi-vertical {
      width: 18px; }
    
    .noUi-vertical .noUi-handle {
      width: 28px;
      height: 34px;
      left: -6px;
      top: -17px; }
    
    html:not([dir=rtl]) .noUi-horizontal .noUi-handle {
      right: -17px;
      left: auto; }
    
    .noUi-target {
      background: #FAFAFA;
      border-radius: 4px;
      border: 1px solid #D3D3D3;
      box-shadow: inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB; }
    
    .noUi-connects {
      border-radius: 3px; }
    
    .noUi-connect {
      background: #3FB8AF; }
    
    .noUi-draggable {
      cursor: ew-resize; }
    
    .noUi-vertical .noUi-draggable {
      cursor: ns-resize; }
    
    .noUi-handle {
      border: 1px solid #D9D9D9;
      border-radius: 3px;
      background: #FFF;
      cursor: default;
      box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB; }
    
    .noUi-active {
      box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB; }
    
    .noUi-handle:after, .noUi-handle:before {
      content: "";
      display: block;
      position: absolute;
      height: 14px;
      width: 1px;
      background: #E8E7E6;
      left: 14px;
      top: 6px; }
    
    .noUi-handle:after {
      left: 17px; }
    
    .noUi-vertical .noUi-handle:after, .noUi-vertical .noUi-handle:before {
      width: 14px;
      height: 1px;
      left: 6px;
      top: 14px; }
    
    .noUi-vertical .noUi-handle:after {
      top: 17px; }
    
    [disabled] .noUi-connect {
      background: #B8B8B8; }
    
    [disabled] .noUi-handle, [disabled].noUi-handle, [disabled].noUi-target {
      cursor: not-allowed; }
    
    .noUi-pips, .noUi-pips * {
      -moz-box-sizing: border-box;
      box-sizing: border-box; }
    
    .noUi-pips {
      position: absolute;
      color: #999; }
    
    .noUi-value {
      position: absolute;
      white-space: nowrap;
      text-align: center; }
    
    .noUi-value-sub {
      color: #ccc;
      font-size: 10px; }
    
    .noUi-marker {
      position: absolute;
      background: #CCC; }
    
    .noUi-marker-large, .noUi-marker-sub {
      background: #AAA; }
    
    .noUi-pips-horizontal {
      padding: 10px 0;
      height: 80px;
      top: 100%;
      left: 0;
      width: 100%; }
    
    .noUi-value-horizontal {
      -webkit-transform: translate(-50%, 50%);
      transform: translate(-50%, 50%); }
    
    .noUi-rtl .noUi-value-horizontal {
      -webkit-transform: translate(50%, 50%);
      transform: translate(50%, 50%); }
    
    .noUi-marker-horizontal.noUi-marker {
      margin-left: -1px;
      width: 2px;
      height: 5px; }
    
    .noUi-marker-horizontal.noUi-marker-sub {
      height: 10px; }
    
    .noUi-marker-horizontal.noUi-marker-large {
      height: 15px; }
    
    .noUi-pips-vertical {
      padding: 0 10px;
      height: 100%;
      top: 0;
      left: 100%; }
    
    .noUi-value-vertical {
      -webkit-transform: translate(0, -50%);
      transform: translate(0, -50%, 0);
      padding-left: 25px; }
    
    .noUi-rtl .noUi-value-vertical {
      -webkit-transform: translate(0, 50%);
      transform: translate(0, 50%); }
    
    .noUi-marker-vertical.noUi-marker {
      width: 5px;
      height: 2px;
      margin-top: -1px; }
    
    .noUi-marker-vertical.noUi-marker-sub {
      width: 10px; }
    
    .noUi-marker-vertical.noUi-marker-large {
      width: 15px; }
    
    .noUi-tooltip {
      display: block;
      position: absolute;
      border: 1px solid #D9D9D9;
      border-radius: 3px;
      background: #fff;
      color: #000;
      padding: 5px;
      text-align: center;
      white-space: nowrap; }
    
    .noUi-horizontal .noUi-tooltip {
      -webkit-transform: translate(-50%, 0);
      transform: translate(-50%, 0);
      left: 50%;
      bottom: 120%; }
    
    .noUi-vertical .noUi-tooltip {
      -webkit-transform: translate(0, -50%);
      transform: translate(0, -50%);
      top: 50%;
      right: 120%; }

    You can make your won CSS by preceding these selectors with .searchandfilter, for example, like this:

    .searchandfilter .noUi-connect {
      background: #358aaf;
    }
    #189154

    Trevor
    Participant

    I think the basic CSS you need is covered in this page in our documentation (Making your search form horizontal – at the bottom of the page)?

    https://searchandfilter.com/documentation/getting-started/display-search-form/

    #186807

    Anonymous
    Inactive

    Hi,
    I turned my search form horizontally. Now I would like to change the length of the input search field because it is too short.
    Which CSS class should I use?
    Thank you.

    #186777

    Trevor
    Participant

    It isn’t possible to use a different slider script. This the one that we use:

    https://jqueryui.com/slider/

    You would need to apply custom CSS to override the default appearance of our slider. This is the default CSS that we use:

    .noUi-target, .noUi-target * {
      -webkit-touch-callout: none;
      -webkit-tap-highlight-color: transparent;
      -webkit-user-select: none;
      -ms-touch-action: none;
      touch-action: none;
      -ms-user-select: none;
      -moz-user-select: none;
      user-select: none;
      -moz-box-sizing: border-box;
      box-sizing: border-box; }
    
    .noUi-target {
      position: relative;
      direction: ltr; }
    
    .noUi-base, .noUi-connects {
      width: 100%;
      height: 100%;
      position: relative;
      z-index: 1; }
    
    .noUi-connects {
      overflow: hidden;
      z-index: 0; }
    
    .noUi-connect, .noUi-origin {
      will-change: transform;
      position: absolute;
      z-index: 1;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      -ms-transform-origin: 0 0;
      -webkit-transform-origin: 0 0;
      transform-origin: 0 0; }
    
    html:not([dir=rtl]) .noUi-horizontal .noUi-origin {
      left: auto;
      right: 0; }
    
    .noUi-vertical .noUi-origin {
      width: 0; }
    
    .noUi-horizontal .noUi-origin {
      height: 0; }
    
    .noUi-handle {
      position: absolute; }
    
    .noUi-state-tap .noUi-connect, .noUi-state-tap .noUi-origin {
      -webkit-transition: transform .3s;
      transition: transform .3s; }
    
    .noUi-state-drag * {
      cursor: inherit !important; }
    
    .noUi-horizontal {
      height: 18px; }
    
    .noUi-horizontal .noUi-handle {
      width: 34px;
      height: 28px;
      left: -17px;
      top: -6px; }
    
    .noUi-vertical {
      width: 18px; }
    
    .noUi-vertical .noUi-handle {
      width: 28px;
      height: 34px;
      left: -6px;
      top: -17px; }
    
    html:not([dir=rtl]) .noUi-horizontal .noUi-handle {
      right: -17px;
      left: auto; }
    
    .noUi-target {
      background: #FAFAFA;
      border-radius: 4px;
      border: 1px solid #D3D3D3;
      box-shadow: inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB; }
    
    .noUi-connects {
      border-radius: 3px; }
    
    .noUi-connect {
      background: #3FB8AF; }
    
    .noUi-draggable {
      cursor: ew-resize; }
    
    .noUi-vertical .noUi-draggable {
      cursor: ns-resize; }
    
    .noUi-handle {
      border: 1px solid #D9D9D9;
      border-radius: 3px;
      background: #FFF;
      cursor: default;
      box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB; }
    
    .noUi-active {
      box-shadow: inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB; }
    
    .noUi-handle:after, .noUi-handle:before {
      content: "";
      display: block;
      position: absolute;
      height: 14px;
      width: 1px;
      background: #E8E7E6;
      left: 14px;
      top: 6px; }
    
    .noUi-handle:after {
      left: 17px; }
    
    .noUi-vertical .noUi-handle:after, .noUi-vertical .noUi-handle:before {
      width: 14px;
      height: 1px;
      left: 6px;
      top: 14px; }
    
    .noUi-vertical .noUi-handle:after {
      top: 17px; }
    
    [disabled] .noUi-connect {
      background: #B8B8B8; }
    
    [disabled] .noUi-handle, [disabled].noUi-handle, [disabled].noUi-target {
      cursor: not-allowed; }
    
    .noUi-pips, .noUi-pips * {
      -moz-box-sizing: border-box;
      box-sizing: border-box; }
    
    .noUi-pips {
      position: absolute;
      color: #999; }
    
    .noUi-value {
      position: absolute;
      white-space: nowrap;
      text-align: center; }
    
    .noUi-value-sub {
      color: #ccc;
      font-size: 10px; }
    
    .noUi-marker {
      position: absolute;
      background: #CCC; }
    
    .noUi-marker-large, .noUi-marker-sub {
      background: #AAA; }
    
    .noUi-pips-horizontal {
      padding: 10px 0;
      height: 80px;
      top: 100%;
      left: 0;
      width: 100%; }
    
    .noUi-value-horizontal {
      -webkit-transform: translate(-50%, 50%);
      transform: translate(-50%, 50%); }
    
    .noUi-rtl .noUi-value-horizontal {
      -webkit-transform: translate(50%, 50%);
      transform: translate(50%, 50%); }
    
    .noUi-marker-horizontal.noUi-marker {
      margin-left: -1px;
      width: 2px;
      height: 5px; }
    
    .noUi-marker-horizontal.noUi-marker-sub {
      height: 10px; }
    
    .noUi-marker-horizontal.noUi-marker-large {
      height: 15px; }
    
    .noUi-pips-vertical {
      padding: 0 10px;
      height: 100%;
      top: 0;
      left: 100%; }
    
    .noUi-value-vertical {
      -webkit-transform: translate(0, -50%);
      transform: translate(0, -50%, 0);
      padding-left: 25px; }
    
    .noUi-rtl .noUi-value-vertical {
      -webkit-transform: translate(0, 50%);
      transform: translate(0, 50%); }
    
    .noUi-marker-vertical.noUi-marker {
      width: 5px;
      height: 2px;
      margin-top: -1px; }
    
    .noUi-marker-vertical.noUi-marker-sub {
      width: 10px; }
    
    .noUi-marker-vertical.noUi-marker-large {
      width: 15px; }
    
    .noUi-tooltip {
      display: block;
      position: absolute;
      border: 1px solid #D9D9D9;
      border-radius: 3px;
      background: #fff;
      color: #000;
      padding: 5px;
      text-align: center;
      white-space: nowrap; }
    
    .noUi-horizontal .noUi-tooltip {
      -webkit-transform: translate(-50%, 0);
      transform: translate(-50%, 0);
      left: 50%;
      bottom: 120%; }
    
    .noUi-vertical .noUi-tooltip {
      -webkit-transform: translate(0, -50%);
      transform: translate(0, -50%);
      top: 50%;
      right: 120%; }

    You can copy/use/modify parts of the above in your own custom CSS file/code block and precede with .searchandfilter to override. e.g.

    .searchandfilter .noUi-tooltip {
      color: #fff;
    }
    #184021

    Anonymous
    Inactive

    Thanks for your reply. Clarifications & such below in response:

    1) I have a taxonomy for years and understand how to put them on the search form as checkboxes, multiselect, etc. but I’d really like a slider-thingy as you have in the movies demo for “Oscars Won”: http://demo.designsandcode.com/sfpro-movie-reviews/. Is that possible?

    2) Here’s the page I’d like to have the search form displaying horizontally: https://www.dev.ptfund.org/experts/. I see on the link you sent how to make all search forms horizontal, but I’m using multiple, and would only like it to apply to this one. I tried to play around with the CSS but failed (obviously I’m not well versed!). Got the background how I’d like but would still like to make the ‘all items label text’ red (#ad1b3f) if possible.

    As far as the search results, I’d like it to look similar to the format I have displaying the ‘expert profiles’ on the page now. I’m pretty sure I can tweak if you could provide a general framework for this.

    3) I like it! Thank you. Follow up: For some of the taxonomies with lots of tags, could I show the top three and then have a “see more” expandable area to display the rest?

    4) Yes, it’s my site. We do use the WPBakery plugin — version 5.5.2.

Viewing 10 results - 151 through 160 (of 323 total)