New theme base for SuiteDesk

This commit is contained in:
Manuel Cillero 2017-07-25 13:55:37 +02:00
parent c1bbd9d6f5
commit 8cf3c56044
137 changed files with 12866 additions and 8 deletions

View file

@ -0,0 +1,42 @@
/**
* @file
* Page manager layout
*
* We are using percentages in the admin instead of fixed widths so that the
* admin can work nicely in different admin themes.
*/
#page-manager-edit .zen-one-sidebar-second .panel-header {
height: auto;
margin-bottom: 10px;
}
#page-manager-edit .zen-one-sidebar-second .panel-content {
float: left; /* LTR */
width: 66%;
margin-left: 0; /* LTR */
margin-right: -66%; /* LTR */ /* Negative value of #content's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to #content-inner. */
margin-top: 0px;
}
#page-manager-edit .zen-one-sidebar-second .panel-content .inside {
margin-right: 10px;
}
#page-manager-edit .zen-one-sidebar-second .with-panel-header .panel-content,
#page-manager-edit .zen-one-sidebar-second .with-panel-header .panel-sidebar-first {
margin-top: 0; /* Set this to the same value as the navbar height above. */
}
#page-manager-edit .zen-one-sidebar-second .panel-sidebar-first {
float: left; /* LTR */
width: 34%;
margin-left: 66%; /* LTR */ /* Width of #content. */
margin-right: -100%; /* LTR */ /* Negative value of #sidebar-first's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-first-inner. */
}
.zen-one-sidebar-second .panel-sidebar-first .panel-sidebar-first-inner {
margin: 0 0 0 0;
}

View file

@ -0,0 +1,50 @@
/**
* @file
* Zen panel layout
*
* This layout does include the standar Zen navbar, content and right sidebar
* layout. Markup has been reordered for Accessibility and SEO optimizations.
*/
.zen-one-sidebar-second {
/* overflow: hidden; */
position: relative;
margin-top: 0;
padding-top: 0;
}
.zen-one-sidebar-second .panel-navbar {
width: 100%;
float: left; /* LTR */
margin-left: 0; /* LTR */
margin-right: -100%; /* LTR */ /* Negative value of #navbar's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-navbar. */
height: 8.3em; /* The navbar can have any arbritrary height. We picked one
that is the line-height plus 1em: 1.3 + 1 = 2.3
Set this to the same value as the margin-top below. */
}
.zen-one-sidebar-second .with-panel-header .panel-content,
.zen-one-sidebar-second .with-panel-header .panel-sidebar-first {
margin-top: 8.3em; /* Set this to the same value as the navbar height above. */
}
.zen-one-sidebar-second .panel-content {
float: left; /* LTR */
width: 640px;
margin-left: 0; /* LTR */
margin-right: -640px; /* LTR */ /* Negative value of #content's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to #content-inner. */
}
.zen-one-sidebar-second .panel-sidebar-first {
float: left; /* LTR */
width: 320px;
margin-left: 640px; /* LTR */ /* Width of #content. */
margin-right: -960px; /* LTR */ /* Negative value of #sidebar-first's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-first-inner. */
}
.zen-one-sidebar-second .panel-sidebar-first .panel-sidebar-first-inner {
margin-left: 20px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

View file

@ -0,0 +1,20 @@
<?php
/**
* Implements hook_panels_layouts().
*/
function zen_one_sidebar_second_panels_layouts() {
$items['one_sidebar_second'] = array(
'title' => t('Zen Layout: one sidebar after content'),
'icon' => 'one-sidebar-second.png',
'theme' => 'zen_one_sidebar_second',
'admin theme' => 'zen_one_sidebar_second_admin',
'css' => 'one-sidebar-second.css',
'admin css' => 'one-sidebar-second-admin.css',
'panels' => array(
'content' => t('Content'),
'sidebar_first' => t('First sidebar'),
),
);
return $items;
}

View file

@ -0,0 +1,28 @@
<?php
/**
* @file
* Template for a 1 row, 2 column Zen-based panel layout.
*
* This template provides a two column panel display layout, with
* additional areas for the top and the bottom.
*
* Variables:
* - $css_id: An optional CSS id to use for the layout.
* - $content: An array of content, each item in the array is keyed to one
* panel of the layout. This layout supports the following sections:
* - $content['content']: Content in the main column.
* - $content['sidebar_first']: Content in the first column.
*/
?>
<div class="panel-display zen-one-sidebar-second clear-block" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div class="panel-content"><div class="panel-content-inner inside panel-panel">
<?php print $content['content']; ?>
</div></div> <!-- /.panel-content-inner, /.panel-content -->
<div class="panel-sidebar-first"><div class="panel-sidebar-first-inner inside panel-panel">
<?php print $content['sidebar_first']; ?>
</div></div> <!-- /.panel-sidebar-first-inner, /.panel-sidebar-first -->
</div> <!-- /.zen-one-sidebar-second -->

View file

@ -0,0 +1,28 @@
<?php
/**
* @file
* Template for a 1 row, 2 column Zen-based panel layout.
*
* This template provides a two column panel display layout, with
* additional areas for the top and the bottom.
*
* Variables:
* - $css_id: An optional CSS id to use for the layout.
* - $content: An array of content, each item in the array is keyed to one
* panel of the layout. This layout supports the following sections:
* - $content['content']: Content in the main column.
* - $content['sidebar_first']: Content in the first column.
*/
?>
<div class="panel-display zen-one-sidebar-second clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div class="panel-content"><div class="panel-content-inner inside panel-panel">
<?php print $content['content']; ?>
</div></div> <!-- /.panel-content-inner, /.panel-content -->
<div class="panel-sidebar-first"><div class="panel-sidebar-first-inner inside panel-panel">
<?php print $content['sidebar_first']; ?>
</div></div> <!-- /.panel-sidebar-first-inner, /.panel-sidebar-first -->
</div> <!-- /.zen-one-sidebar-second -->