0
Welcome Guest! Login
0 items Join Now

SOLVED Gantry responsive administrator template?

    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 14
    • Another Old Hack!

    SOLVED Gantry responsive administrator template?

    Posted 9 years 8 months ago
    • Has RT and anyone else developed a responsive administrator template based on the Gantry Framework?
    • Just another old hacker!
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Gantry responsive administrator template?

    Posted 9 years 8 months ago
    • What joomla version ? what do you mean by "responsive admin template" - they're all responsive in admin?

      mission control is our admin template for j2.5 - bu tit does not (yet) work on J3.x

      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.
    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 14
    • Another Old Hack!

    Re: SOLVED Gantry responsive administrator template?

    Posted 9 years 8 months ago
    • MrT,

      I downloaded and tried out Mission Control and it's only partially responsive.

      Here is a screenshot taken directly from my phone:

      This image is hidden for guests.
      Please log in or register to see it.


      Now this is a much larger image than what my phone actually displays. Now I will admit that my vision is not as sharp as it was many years ago but even with glasses, here is the problem with Mission Control. I can read the Main content description "MissionControl is a brand-new take on the Joomla Administrator template....." just fine. However, the sidebar ID "mc-sidebar" that displays the 'Statistics Overview, User Activity Chart' and 'Admin Audit Trail' does not collapse below the main content area like Gantry templates where the sidebars do collapse. This means that the text is reduced horizontally thus making it much smaller and almost impossible to read unless you expand the screen by using your two fingers to enlarge the view. If they can collapse this sidebar, it will probably resolve the issue.

      FYI, I do like this administrator template and plan to implement it's use on my clients websites but I sure wish they would collapse the sidebars on mobile phones. I have edited the core.css and index.php files which works fine when I reduced the width of a browser but the mobile doesn't change.

      I edited the index.php file to move the 'mc-sidebar' below the 'mc-component' area. When it collapses, this allows the 'mc-component' area to display above the 'mc-sidebar' area.
      			<div id="mc-body">
      				<div class="mc-wrapper">
      					<jdoc:include type="message" />
      					<div id="content-box">
      						<div id="toolbar-box"><div class="m">
      							<div id="mc-title">
      								<?php $mctrl->displayTitle(); ?>
      								<?php $mctrl->displayHelpButton(); ?>
      								<?php $mctrl->displayToolbar(); ?>
      								<div class="mc-clr"></div>
      							</div>
      							<?php if (!JRequest::getInt('hidemainmenu')): ?>
      							<div id="mc-submenu">
      								<?php $mctrl->displaySubMenu(); ?>
      							</div>
      						<?php endif; ?>
      						</div></div>
      					</div>
      
      					<?php if ($option == 'com_cpanel') : ?>
      					<div id="mc-cpanel">
      						<?php $mctrl->displayDashText(); ?>
      						<jdoc:include type="modules" name="dashboard" style="standard"  />
      					<?php endif; ?>
      
      					<div id="mc-component" class="clearfix">
      						<jdoc:include type="component" />
      					</div>
      					<?php if ($option == 'com_cpanel') : ?>
      					</div>
      					<?php endif; ?>
      					<div id="mc-sidebar">
      						<jdoc:include type="modules" name="sidebar" style="sidebar"  />
      					</div>
      					<div class="mc-clr"></div>
      				</div>
      			</div>


      I added media queries to the end of code.css, move some of the declarations into this area and added some styling.
      /* mobile query size is 480px and below */
      @media (max-width: 320px) {
        /* put css here */
      	.mc-wrapper{width:295px}
      	#mc-sidebar{clear:both;width:295px;margin-top:20px;}
      }
      /* tablets query size is 321px to 480px */
      @media (min-width: 321px) and (max-width: 480px) {
        /* put css here */
      	.mc-wrapper{width:313px}
      	#mc-sidebar{clear:both;width:313px;margin-top:20px;}
      }
      /* tablets query size is 481px to 767px */
      @media (min-width: 481px) and (max-width: 767px) {
        /* put css here */
      	.mc-wrapper{width:473px}
      	#mc-sidebar{clear:both;width:473px;margin-top:20px;}
      }
      /* tablets or less - max width 959px */
      @media (max-width: 959px) {
      		.adminlist { display: block; position: relative; width: 90%; }
        	.adminlist th { width:100% !important;}
      		.adminlist thead { display: block; float: left; margin-bottom:34px;}
      		.adminlist tbody { display: -webkit-box; overflow-x: auto; }
      		.adminlist th { display: block;line-height:18px !important;font-size:12px !important;}
      		.adminlist tr,
      		.adminlist td { display: block;line-height:18px !important;font-size:12px !important;}
          table.adminlist{width:100%;border-collapse:collapse;}
          .adminlist thead th{font-weight:normal;padding:4px;border-right:1px solid #fff}
      		.grid_true {margin-top:1px;margin-bottom:1px;}
      		.adminlist tfoot tr {display: block;font-size: 12px !important;line-height:29px !important;height:37px !important;
      }
      	}
      /* tablets query size is 768px to 959px */
      @media (min-width: 768px) and (max-width: 959px) {
        /* put css here */
      	.mc-wrapper{width:760px}
      	#mc-component{width:60%;float:left;}
      	#mc-cpanel {width:60%;float:left;}
      	#mc-sidebar{width:30%;float:right;}
      	#rok-userchart img {width:100%;}
      }
      /* default desktop query size is 960px to 1199px */
      @media (min-width: 960px) and (max-width: 1199px) {
        /* put css here */
      	.mc-wrapper{width:960px}
      	#mc-component{width:70%;float:left;}
      	#mc-cpanel {width:70%;float:left;}
      	#mc-sidebar{width:20%;float:right;}
      	#rok-userchart img {width:100%;}
        table.adminlist{width:90%;border-collapse:collapse;font-size:10px !important;}
        .adminlist thead th{font-weight:normal;padding:5px;line-height:15px;font-size:10px;border-right:1px solid #fff}
      }
      /* large display query size is 1200px and up */
      @media (min-width: 1200px) {
        /* put css here */
      	.mc-wrapper{width:1200px}
      	#mc-component{width:70%;float:left;}
      	#mc-cpanel {width:70%;float:left;}
      	#mc-sidebar{width:25%;float:right;}
      	#rok-userchart img {width:100%;}
        table.adminlist{width:100%;border-collapse:collapse;font-size:12px !important;}
        .adminlist thead th{font-weight:normal;padding:5px;line-height:15px;font-size:12px;border-right:1px solid #fff}
      }

      As you can see, I included code to collapse tables, such as User Manager table, so that the table doesn't overlap the floating 'mc-sidebar'.

      Again, this works just fine for reducing the width of a browser but it did nothing for mobile. I can only assume there is some functionality that is calling other files for mobile devices. If you can give me a bit of insight into how this is done, I'll see if I can make it truly mobile ready and supply you the code.
    • Just another old hacker!
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Gantry responsive administrator template?

    Posted 9 years 8 months ago
    • Mission control has been around a long time - and I doubt it would be updated now (that's why there is no J3 version). I also think that ysing a phone (or even tablet) to administer a joomla site will give you lots of other issues (the least of which will be responsive behaviour). I'm afraid what you are trying to achieve now is beyond the scope we can offer as part of this support forum. You can always try to post your request in our The Marketplace forum and get (paid) support from someone that is willing to do this.

      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.
    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 14
    • Another Old Hack!

    Re: SOLVED Gantry responsive administrator template?

    Posted 9 years 8 months ago
    • MrT,

      It's understandable that you can only do so much as far as what you offer. Again, it's a nice layout and arrangement for an administrator template. I'll just keep playing around with this until I can figure out how the 'mobile' styling is done.
    • Just another old hacker!

Time to create page: 0.041 seconds