0
Welcome Guest! Login
0 items Join Now

Responsive Support Classes of Gantry 5

    • Jason's Avatar
    • Jason
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0

    Responsive Support Classes of Gantry 5

    Posted 8 years 3 months ago
    • The responsive support classes of gantry 5 , like explained here: www.rockettheme.com/docs/joomla/basic/re...e_support_classes.md
      are not working like they are supposed to.
      More spesifically, i defined one menu as visible-desktop and another menu as visible-tablet. While desktops indeed dont show the tablet menu, the tablets show both menus.. Please advise. Thanks in advance!
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Responsive Support Classes of Gantry 5

    Posted 8 years 3 months ago
    • Please would you post your URL, superuser id and pswd in the secure tab of your post and i'll have a look for you.

      They should work the same in Gantry 5.

      Tell me where you used them and on which page I can see the issue.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Jason's Avatar
    • Jason
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 0

    Re: Responsive Support Classes of Gantry 5

    Posted 8 years 3 months ago
    • Hello Mark and thanks for your answer. I gave u all the info you need and a more detailed description , in the secure section. Thanks again.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Responsive Support Classes of Gantry 5

    Posted 8 years 3 months ago
    • Use this code:
      // Gantry 5 custom CSS file
      
      // import breakpoints
      @import "dependencies";
      
      // Typical values are the default breakpoints set in Gantry 5
      // but these values are user definable in style settings
      // so that is why the code below uses mixins to get the actual 
      // values from Gantry 5 template.
      
      // commonly used media queries
      
      //  typically min 75rem 
      @include breakpoint(large-desktop-range) {
          .g-block.visible-desktop {
              display: block !important;
          }
      }
      // typically range 60rem to 74.938rem 
      @include breakpoint(desktop-range) {
          .g-block.visible-desktop {
              display: block !important;
          }
      }
      
      // typically 48rem to 59.938rem
      @include breakpoint(tablet-range) {
          .g-block.visible-desktop {
              display: none !important;
          }
      }
      // typically 30rem to 47.938rem
      @include breakpoint(large-mobile-range) {
          .g-block.visible-desktop {
              display: none !important;
          }
      }
      // typically max 30rem
      @include breakpoint(small-mobile-range) {
          .g-block.visible-desktop {
               display: none !important;
          }
      }
      
      // Less commonly used media queries
      
      // typically min 60rem
      @include breakpoint(desktop-only) {
      
      }
      // typically min 48rem
      @include breakpoint(no-mobile) {
      
      }
      // typically max 47.938 rem
      @include breakpoint(mobile-only) {
      
      }
      // typically max 59.938rem
      @include breakpoint(no-desktop) {
      
      }
      
      // Mobile Menu Breakpoint
      @media only all and (max-width: $breakpoints-mobile-menu-breakpoint) { 
      
      }
      
      @import "nucleus/mixins/breakpoints";

      To create a custom CSS compatible with Gantry 5 please read this http://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet .

      Remember to recompile CSS from base outline too.

      Regards, Mark.
    • Last Edit: 8 years 3 months ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.057 seconds