Browse Source

icon jsw

master
rdrew 1 year ago
parent
commit
fa8eb1df22
  1. 29
      css/global-style.css
  2. 2
      css/global-style.css.map
  3. 15
      css/sass/components/_diy.scss
  4. 23
      diy_layout/diy-layout.tpl.php
  5. 39
      diy_layout/diy_layout.inc
  6. BIN
      diy_layout/diy_layout.png
  7. BIN
      images/nav-arrow.png

29
css/global-style.css

@ -22,7 +22,7 @@ body {
margin: 0;
}
h1 {
h1, .field--name-field-guide-page-title {
font-size: 2em;
margin: 0.67em 0;
}
@ -571,6 +571,7 @@ ul,
ol,
li,
h1,
.field--name-field-guide-page-title,
h2,
h3,
.field--name-field__help-me-section-title,
@ -611,7 +612,7 @@ small {
line-height: inherit;
}
h1, .h1,
h1, .field--name-field-guide-page-title, .h1,
h2, .h2,
h3,
.field--name-field__help-me-section-title, .h3,
@ -624,7 +625,7 @@ h6, .h6 {
color: inherit;
text-rendering: optimizeLegibility;
}
h1 small, .h1 small,
h1 small, .field--name-field-guide-page-title small, .h1 small,
h2 small, .h2 small,
h3 small,
.field--name-field__help-me-section-title small, .h3 small,
@ -635,7 +636,7 @@ h6 small, .h6 small {
color: #c0c0c0;
}
h1, .h1 {
h1, .field--name-field-guide-page-title, .h1 {
font-size: 1.5rem;
line-height: 1.4;
margin-top: 0;
@ -678,7 +679,7 @@ h6, .h6 {
}
@media print, screen and (min-width: 40em) {
h1, .h1 {
h1, .field--name-field-guide-page-title, .h1 {
font-size: 2rem;
}
h2, .h2 {
@ -18336,7 +18337,7 @@ main,
.layout-content::after {
clear: both;
}
.layout-content h1 {
.layout-content h1, .layout-content .field--name-field-guide-page-title {
border-bottom: 1px solid #c0c0c0;
margin-bottom: 1rem;
}
@ -18700,7 +18701,7 @@ main,
}
.diy-grid .diy-grid--block a, .related-diys .attachment .diy-grid--block a, .related-diys .diy-grid--block a {
background: white url(../img/nav-arrow.png) no-repeat 95% 92%;
background: white url(../imgages/nav-arrow.png) no-repeat 95% 92%;
color: #333;
width: 200px;
padding: 20px;
@ -18739,7 +18740,7 @@ main,
height: initial;
}
}
.diy-main-title h1 {
.diy-main-title h1, .diy-main-title .field--name-field-guide-page-title {
font-size: 2rem;
border-bottom: none;
margin-bottom: 0.5rem;
@ -18928,6 +18929,12 @@ main,
display: flex;
justify-content: space-around;
}
.page-node-type-front_page nav.tabs,
.page-node-type-front_page h1.page-title,
.page-node-type-front_page .page-title.field--name-field-guide-page-title {
display: none;
}
.diy-grid .view-content {
display: flex;
flex-flow: row wrap;
@ -18955,8 +18962,8 @@ main,
}
}
.bryant-content.bryant-content-region {
border-left: 1px solid #ccc;
.field--name-field-guide-page-title {
margin-top: 1rem;
}
.add-new-diy-guide {
@ -18974,7 +18981,7 @@ main,
width: 100%;
}
.diy-home-title h1 {
.diy-home-title h1, .diy-home-title .field--name-field-guide-page-title {
line-height: 1.1;
}

2
css/global-style.css.map

File diff suppressed because one or more lines are too long

15
css/sass/components/_diy.scss

@ -1,6 +1,6 @@
//@format;
%diy-card {
background: white url(../img/nav-arrow.png) no-repeat 95% 92%;
background: white url(../imgages/nav-arrow.png) no-repeat 95% 92%;
color: #333;
//font-size: 120%;
width: 200px;
@ -136,6 +136,12 @@ $diy-header-height: initial;
@extend %diy-card;
}
}
.page-node-type-front_page {
nav.tabs,
h1.page-title {
display: none;
}
}
.diy-grid {
//&--block {
//a {
@ -158,12 +164,13 @@ $diy-header-height: initial;
}
}
}
.field--name-field-guide-page-title {
@extend h1;
margin-top: $global-margin;
}
.diy-sidebar-title {
//text-align: center;
}
.bryant-content.bryant-content-region {
border-left: 1px solid #ccc;
}
.add-new-diy-guide {
text-align: right;
line-height: 1;

23
diy_layout/diy-layout.tpl.php

@ -1,23 +0,0 @@
<?php
/**
* @file
* Template for a 1 column panel layout.
*
* This template provides a very simple "one column" panel display layout.
*
* Variables:
* - $css_id: An optional CSS ID.
* - $id_attribute: The whole id="$css_id" string.
* - $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['middle']: The only panel in the layout.
*/
?>
<section class="grid-x <?php print $panel_classes; ?>"<?php print $panel_id; ?>>
<div class="cell medium-4 diy_side">
<?php print $content['side']; ?>
</div>
<div class="cell medium-8 diy_content">
<?php print $content['content']; ?>
</div>
</section>

39
diy_layout/diy_layout.inc

@ -1,39 +0,0 @@
<?php
/**
* @file
* Define the a single-column style plugin.
*/
// Plugin definition.
$plugin = array(
'title' => t('DIY layout'),
'category' => t('Rob Custom'),
'icon' => 'onecol_clean.png',
'theme' => 'diy_layout',
'regions' => array(
'side' => t('Side'),
'content' => t('Content')
));
/**
* Prepares variables for panels_onecol_clean templates.
*
* Default template: panels-onecol-clean.tpl.php.
*
* @param array $variables
* An associative array containing:
* - $content: An array of content, each item in the array is keyed to one
* panel of the layout.
*/
function template_preprocess_diy_layout(&$variables) {
// Construct an ID/Class attributes.
$variables['panel_classes'] = 'panel-display diy-layout clearfix';
if ($variables['css_id']) {
$variables['panel_id'] = ' id="' . $variables['css_id'] . '"';
$variables['panel_classes'] .= ' ' . $variables['css_id'];
}
else {
$variables['panel_id'] = '';
}
}

BIN
diy_layout/diy_layout.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 B

BIN
images/nav-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Loading…
Cancel
Save