1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 [Responsive] Hide forum discriptions on landscape mode too

Discussion in 'Styling and Customization Questions' started by imthebest, Jul 4, 2014.

  1. imthebest

    imthebest Formerly Super120

    I noticed that when browsing the forums on responsive mode (portrait) the forum descriptions are hidden (good idea!). However when switching to landscape mode the descriptions appear and it looks bad on a small screen. I'd like to also hide the descriptions on landscape mode just how it happens when on portrait mode. How can I do that? Thanks!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to edit the existing CSS to modify the media query width, or create your own and add it to EXTRA.css to override it.
     
  3. imthebest

    imthebest Formerly Super120

    I prefer editing the existing CSS, how I can do that or what specific lines should I look for? Any guidance will be appreciated.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It's in the node_list.css template.
    Search for nodeDescription.
     
  5. imthebest

    imthebest Formerly Super120

    I'm on that piece of code but I can't figure where is the snippet that controls whether the node descriptions are displayed or not when on responsive landscape mode... if when on responsive portrait mode the descriptions are hidden then I want the same behavior for responsive landscape mode, seems an easy copy-paste work but can't figure where is the code that controls this.
     
  6. imthebest

    imthebest Formerly Super120

    I found this:

    Code:
    <xen:if is="@enableResponsive">
    @media (max-width:@maxResponsiveMediumWidth)
    {
       .Responsive.Touch .node .nodeDescriptionTooltip,
       .Responsive .node .nodeDescription
       {
         display: none;
       }
       .Responsive .nodeDescriptionTip
       {
         width: auto;
         max-width: 350px;
       }
    Where should I work? On the blue line or the red line?
     

Share This Page