Browse Source

icon jsw

master
rdrew 2 years ago
parent
commit
03fd45865f
  1. 300
      css/global-style.css
  2. 2
      css/global-style.css.map
  3. 2
      css/sass/_component_import.scss
  4. 213
      css/sass/components/_diy.scss
  5. 23
      diy_layout/diy-layout.tpl.php
  6. 39
      diy_layout/diy_layout.inc
  7. BIN
      diy_layout/diy_layout.png
  8. 23
      templates/diy_layout/diy-layout.tpl.php
  9. 39
      templates/diy_layout/diy_layout.inc
  10. BIN
      templates/diy_layout/diy_layout.png

300
css/global-style.css

@ -18698,4 +18698,304 @@ main,
.news-grid__text { .news-grid__text {
overflow: hidden; overflow: hidden;
} }
.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%;
color: #333;
width: 200px;
padding: 20px;
margin: 15px 5px;
max-height: 120px;
min-height: 120px;
display: block;
border-top: 4px solid #8c2004;
border-collapse: separate;
box-shadow: 4px 4px 6px grey;
border-bottom-right-radius: 15px;
text-decoration: none;
line-height: 1.3;
}
/*
*page layout
*/
.diy-layout {
display: flex;
flex-direction: column;
}
@media screen and (min-width: 39.75em) {
.diy-layout {
flex-direction: row;
}
.diy-layout .diy_side {
flex: 0 0 300px;
}
}
.diy-main-title {
border-bottom: 1px solid #ccc !important;
}
@media screen and (min-width: 39.75em) {
.diy-main-title {
height: initial;
}
}
.diy-main-title h1 {
font-size: 2rem;
border-bottom: none;
margin-bottom: 0.5rem;
}
.home-link {
margin: 1rem;
}
.home-link a {
display: inline-block;
vertical-align: middle;
margin: 0 0 1rem 0;
padding: 0.85em 1em;
border: 1px solid transparent;
border-radius: 6px;
transition: background-color 0.25s ease-out, color 0.25s ease-out;
font-family: "Roboto Condensed", sans-serif;
font-size: 0.9rem;
-webkit-appearance: none;
line-height: 1;
text-align: center;
cursor: pointer;
display: inline-block;
vertical-align: middle;
margin: 0 0 1rem 0;
padding: 0.85em 1em;
border: 1px solid transparent;
border-radius: 6px;
transition: background-color 0.25s ease-out, color 0.25s ease-out;
font-family: "Roboto Condensed", sans-serif;
font-size: 0.9rem;
-webkit-appearance: none;
line-height: 1;
text-align: center;
cursor: pointer;
}
[data-whatinput=mouse] .home-link a {
outline: 0;
}
.home-link a, .home-link a.disabled, .home-link a[disabled], .home-link a.disabled:hover, .home-link a[disabled]:hover, .home-link a.disabled:focus, .home-link a[disabled]:focus {
background-color: #8c2004;
color: #fefefe;
}
.home-link a:hover, .home-link a:focus {
background-color: #771b03;
color: #fefefe;
}
[data-whatinput=mouse] .home-link a {
outline: 0;
}
.home-link a, .home-link a:hover, .home-link a:focus, .home-link a.disabled, .home-link a.disabled:hover, .home-link a.disabled:focus, .home-link a[disabled], .home-link a[disabled]:hover, .home-link a[disabled]:focus {
background-color: transparent;
}
.home-link a, .home-link a.disabled, .home-link a[disabled], .home-link a.disabled:hover, .home-link a[disabled]:hover, .home-link a.disabled:focus, .home-link a[disabled]:focus {
border: 1px solid #8c2004;
color: #8c2004;
}
.home-link a:hover, .home-link a:focus {
border-color: #461002;
color: #461002;
}
.related-diys h2 {
text-align: center;
}
.related-diys .item-list a {
font-family: "Roboto Condensed", sans-serif;
text-decoration: none;
}
@media screen and (min-width: 39.75em) {
.diy_content {
padding-left: 1rem;
border-left: 1px solid #ccc;
}
}
@media screen and (min-width: 39.75em) {
.diy-guide-title {
height: initial;
}
}
.related-diys {
display: none;
}
@media screen and (min-width: 39.75em) {
.related-diys {
display: block;
}
}
.add-new .views-row {
margin-bottom: 1rem;
display: flex;
flex-wrap: wrap;
align-items: stretch;
flex-grow: 1;
display: flex;
justify-content: flex-end;
}
.add-new .views-row::before, .add-new .views-row::after {
display: table;
content: " ";
flex-basis: 0;
order: 1;
}
.add-new .views-row::after {
clear: both;
}
.add-new .views-row::before, .add-new .views-row::after {
display: none;
}
.add-new .views-row .button {
margin: 0;
margin-right: 1px;
margin-bottom: 1px;
font-size: 0.9rem;
flex: 0 0 auto;
}
.add-new .views-row .button:last-child {
margin-right: 0;
}
.add-new a {
display: inline-block;
vertical-align: middle;
margin: 0 0 1rem 0;
padding: 0.85em 1em;
border: 1px solid transparent;
border-radius: 6px;
transition: background-color 0.25s ease-out, color 0.25s ease-out;
font-family: "Roboto Condensed", sans-serif;
font-size: 0.9rem;
-webkit-appearance: none;
line-height: 1;
text-align: center;
cursor: pointer;
margin-left: 10px;
}
[data-whatinput=mouse] .add-new a {
outline: 0;
}
.add-new a, .add-new a:hover, .add-new a:focus, .add-new a.disabled, .add-new a.disabled:hover, .add-new a.disabled:focus, .add-new a[disabled], .add-new a[disabled]:hover, .add-new a[disabled]:focus {
background-color: transparent;
}
.add-new a, .add-new a.disabled, .add-new a[disabled], .add-new a.disabled:hover, .add-new a[disabled]:hover, .add-new a.disabled:focus, .add-new a[disabled]:focus {
border: 1px solid #8c2004;
color: #8c2004;
}
.add-new a:hover, .add-new a:focus {
border-color: #461002;
color: #461002;
}
.related-diys .attachment .diy-grid--block a {
display: inline-block;
vertical-align: middle;
margin: 0 0 1rem 0;
padding: 0.85em 1em;
border: 1px solid transparent;
border-radius: 6px;
transition: background-color 0.25s ease-out, color 0.25s ease-out;
font-family: "Roboto Condensed", sans-serif;
font-size: 0.9rem;
-webkit-appearance: none;
line-height: 1;
text-align: center;
cursor: pointer;
}
[data-whatinput=mouse] .related-diys .attachment .diy-grid--block a {
outline: 0;
}
.related-diys .attachment .diy-grid--block a, .related-diys .attachment .diy-grid--block a:hover, .related-diys .attachment .diy-grid--block a:focus, .related-diys .attachment .diy-grid--block a.disabled, .related-diys .attachment .diy-grid--block a.disabled:hover, .related-diys .attachment .diy-grid--block a.disabled:focus, .related-diys .attachment .diy-grid--block a[disabled], .related-diys .attachment .diy-grid--block a[disabled]:hover, .related-diys .attachment .diy-grid--block a[disabled]:focus {
background-color: transparent;
}
.related-diys .attachment .diy-grid--block a, .related-diys .attachment .diy-grid--block a.disabled, .related-diys .attachment .diy-grid--block a[disabled], .related-diys .attachment .diy-grid--block a.disabled:hover, .related-diys .attachment .diy-grid--block a[disabled]:hover, .related-diys .attachment .diy-grid--block a.disabled:focus, .related-diys .attachment .diy-grid--block a[disabled]:focus {
border: 1px solid #8c2004;
color: #8c2004;
}
.related-diys .attachment .diy-grid--block a:hover, .related-diys .attachment .diy-grid--block a:focus {
border-color: #461002;
color: #461002;
}
.diy-grid .diy-grid--block {
display: flex;
justify-content: space-around;
}
.diy-grid .view-content {
display: flex;
flex-flow: row wrap;
}
.diy-grid .view-content > .diy-grid--block {
flex: 0 0 auto;
width: calc(100% - 1.25rem);
margin-left: 0.625rem;
margin-right: 0.625rem;
}
@media screen and (min-width: 52.25em) {
.diy-grid .view-content > .diy-grid--block {
flex: 0 0 auto;
width: calc(50% - 1.25rem);
margin-left: 0.625rem;
margin-right: 0.625rem;
}
}
@media screen and (min-width: 67.125em) {
.diy-grid .view-content > .diy-grid--block {
flex: 0 0 auto;
width: calc(33.3333333333% - 1.25rem);
margin-left: 0.625rem;
margin-right: 0.625rem;
}
}
.bryant-content.bryant-content-region {
border-left: 1px solid #ccc;
}
.add-new-diy-guide {
text-align: right;
line-height: 1;
}
.add-new-diy-guide a {
font-size: 0.8rem;
text-decoration: none;
}
.diy-category-wrapper .diy-category-title {
text-align: center;
margin-bottom: 0;
width: 100%;
}
.diy-home-title h1 {
line-height: 1.1;
}
.diy-admin-links {
float: right;
}
.diy-admin-links a {
margin-left: 1rem;
}
.panel-pane {
border: none;
}
.related-diys ul {
list-style-type: none;
text-align: center;
margin: 0;
}
.related-diys ul li a:before {
content: "> ";
}
/*# sourceMappingURL=global-style.css.map */ /*# sourceMappingURL=global-style.css.map */

2
css/global-style.css.map

File diff suppressed because one or more lines are too long

2
css/sass/_component_import.scss vendored

@ -37,4 +37,4 @@
@import "components/blocks"; @import "components/blocks";
@import "components/landingpage"; @import "components/landingpage";
@import "components/landingpage_events"; @import "components/landingpage_events";
@import "components/diy";

213
css/sass/components/_diy.scss

@ -0,0 +1,213 @@
//@format;
%diy-card {
background: white url(../img/nav-arrow.png) no-repeat 95% 92%;
color: #333;
//font-size: 120%;
width: 200px;
padding: 20px;
margin: 15px 5px;
max-height: 120px;
min-height: 120px;
display: block;
border-top: 4px solid $red;
border-collapse: separate;
box-shadow: 4px 4px 6px grey;
border-bottom-right-radius: 15px;
text-decoration: none;
line-height: 1.3;
}
/*
*page layout
*/
$diy-layout-bp: rem-calc(636);
.diy-layout {
display: flex;
flex-direction: column;
@include breakpoint($diy-layout-bp) {
flex-direction: row;
.diy_side {
flex: 0 0 300px;
}
}
.diy_side {
//flex: 0 0 300px;
}
.diy_content {
}
}
//$diy-header-height: rem-calc(110);
$diy-header-height: initial;
.diy-main-title {
border-bottom: 1px solid #ccc !important;
@include breakpoint($diy-layout-bp) {
height: $diy-header-height;
}
h1 {
font-size: 2rem;
border-bottom: none;
margin-bottom: 0.5rem;
}
}
.home-link {
margin: $global-margin;
a {
@include button();
@include button(
false,
$button-background,
$button-background-hover,
$button-color,
hollow
);
}
}
.related-diys {
//background: #ccc;
h2 {
text-align: center;
}
//ul {
//list-style: none;
//margin: 0;
//}
.item-list a {
font-family: 'Roboto Condensed', sans-serif;
text-decoration: none;
}
.field-content {
//display: flex;
//justify-content: space-around;
}
}
.diy_content {
@include breakpoint($diy-layout-bp) {
padding-left: 1rem;
border-left: 1px solid #ccc;
}
}
.diy-guide-title {
//font-size: 2.4rem;
@include breakpoint($diy-layout-bp) {
height: $diy-header-height;
}
}
.related-diys {
display: none;
@include breakpoint($diy-layout-bp) {
display: block;
}
}
.related-diys .diy-grid--block a {
@extend %diy-card;
}
.add-new .views-row {
//@include button-group($child-selector, $spacing);
@include button-group();
display: flex;
justify-content: flex-end;
}
.add-new a {
@include button(
false,
$button-background,
$button-background-hover,
$button-color,
hollow
);
margin-left: 10px;
}
.related-diys .attachment .diy-grid--block a {
@extend %diy-card;
@include button(
false,
$button-background,
$button-background-hover,
$button-color,
hollow
);
}
.diy-grid .diy-grid--block {
display: flex;
justify-content: space-around;
a {
@extend %diy-card;
}
}
.diy-grid {
//&--block {
//a {
//@extend %diy-card;
////padding: 1em;
////@include card-container;
////border-top: 4px solid #8c2004;
////height: 5rem;
//}
//}
.view-content {
//@include flex-grid-row(null, $grid-row-width, 4, true, 2em);
@include xy-grid;
@include xy-grid-layout(1, '.diy-grid--block');
@include breakpoint(836px) {
@include xy-grid-layout(2, '.diy-grid--block');
}
@include breakpoint(1074px) {
@include xy-grid-layout(3, '.diy-grid--block');
}
}
}
.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;
a {
font-size: 0.8rem;
text-decoration: none;
}
}
.diy-guide-title .field__items {
//height: 10rem;
//display: flex;
.field__item {
//align-self: flex-end;
}
}
.diy-category-wrapper {
//height: 106px;
.diy-category-title {
text-align: center;
margin-bottom: 0;
width: 100%;
}
}
.diy-home-title h1 {
line-height: 1.1;
//height: 106px;
}
.section-lib-diy .content .page_title {
//display: none;
}
.diy-admin-links {
float: right;
a {
margin-left: 1rem;
}
}
.panel-pane {
border: none;
}
.related-diys ul {
list-style-type: none;
text-align: center;
margin: 0;
}
.related-diys ul li a:before {
content: '> ';
}

23
diy_layout/diy-layout.tpl.php

@ -0,0 +1,23 @@
<?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

@ -0,0 +1,39 @@
<?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.

After

Width:  |  Height:  |  Size: 122 B

23
templates/diy_layout/diy-layout.tpl.php

@ -0,0 +1,23 @@
<?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
templates/diy_layout/diy_layout.inc

@ -0,0 +1,39 @@
<?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
templates/diy_layout/diy_layout.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

Loading…
Cancel
Save