Commit 23499ab0 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

additional css for views

parent 4213235f
/** /**
* @file
* DO NOT EDIT THIS FILE. * DO NOT EDIT THIS FILE.
* See the following change record for more information, * See the following change record for more information,
* https://www.drupal.org/node/2815083 * https://www.drupal.org/node/2815083.
* @preserve * @preserve
**/ **/
...@@ -15,7 +16,8 @@ document.documentElement.className += ' js'; ...@@ -15,7 +16,8 @@ document.documentElement.className += ' js';
var domReady = function domReady(callback) { var domReady = function domReady(callback) {
if (document.readyState !== 'loading') { if (document.readyState !== 'loading') {
callback(); callback();
} else { }
else {
var listener = function listener() { var listener = function listener() {
callback(); callback();
document.removeEventListener('DOMContentLoaded', listener); document.removeEventListener('DOMContentLoaded', listener);
......
/** /**
* @file
* DO NOT EDIT THIS FILE. * DO NOT EDIT THIS FILE.
* See the following change record for more information, * See the following change record for more information,
* https://www.drupal.org/node/2815083 * https://www.drupal.org/node/2815083.
* @preserve * @preserve
**/ **/
...@@ -23,7 +24,8 @@ window.Drupal = { behaviors: {}, locale: {} }; ...@@ -23,7 +24,8 @@ window.Drupal = { behaviors: {}, locale: {} };
if (typeof behaviors[i].attach === 'function') { if (typeof behaviors[i].attach === 'function') {
try { try {
behaviors[i].attach(context, settings); behaviors[i].attach(context, settings);
} catch (e) { }
catch (e) {
Drupal.throwError(e); Drupal.throwError(e);
} }
} }
...@@ -40,7 +42,8 @@ window.Drupal = { behaviors: {}, locale: {} }; ...@@ -40,7 +42,8 @@ window.Drupal = { behaviors: {}, locale: {} };
if (typeof behaviors[i].detach === 'function') { if (typeof behaviors[i].detach === 'function') {
try { try {
behaviors[i].detach(context, settings, trigger); behaviors[i].detach(context, settings, trigger);
} catch (e) { }
catch (e) {
Drupal.throwError(e); Drupal.throwError(e);
} }
} }
...@@ -126,7 +129,9 @@ window.Drupal = { behaviors: {}, locale: {} }; ...@@ -126,7 +129,9 @@ window.Drupal = { behaviors: {}, locale: {} };
try { try {
url = decodeURIComponent(url); url = decodeURIComponent(url);
} catch (e) {} }
catch (e) {
}
urlParsingNode.setAttribute('href', url); urlParsingNode.setAttribute('href', url);
...@@ -144,10 +149,14 @@ window.Drupal = { behaviors: {}, locale: {} }; ...@@ -144,10 +149,14 @@ window.Drupal = { behaviors: {}, locale: {} };
try { try {
absoluteUrl = decodeURIComponent(absoluteUrl); absoluteUrl = decodeURIComponent(absoluteUrl);
} catch (e) {} }
catch (e) {
}
try { try {
baseUrl = decodeURIComponent(baseUrl); baseUrl = decodeURIComponent(baseUrl);
} catch (e) {} }
catch (e) {
}
return absoluteUrl === baseUrl || absoluteUrl.indexOf(baseUrl + '/') === 0; return absoluteUrl === baseUrl || absoluteUrl.indexOf(baseUrl + '/') === 0;
}; };
...@@ -162,7 +171,8 @@ window.Drupal = { behaviors: {}, locale: {} }; ...@@ -162,7 +171,8 @@ window.Drupal = { behaviors: {}, locale: {} };
if (typeof drupalTranslations !== 'undefined' && drupalTranslations.pluralFormula) { if (typeof drupalTranslations !== 'undefined' && drupalTranslations.pluralFormula) {
index = count in drupalTranslations.pluralFormula ? drupalTranslations.pluralFormula[count] : drupalTranslations.pluralFormula.default; index = count in drupalTranslations.pluralFormula ? drupalTranslations.pluralFormula[count] : drupalTranslations.pluralFormula.default;
} else if (args['@count'] !== 1) { }
else if (args['@count'] !== 1) {
index = 1; index = 1;
} }
......
/** /**
* @file
* DO NOT EDIT THIS FILE. * DO NOT EDIT THIS FILE.
* See the following change record for more information, * See the following change record for more information,
* https://www.drupal.org/node/2815083 * https://www.drupal.org/node/2815083.
* @preserve * @preserve
**/ **/
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -47,6 +47,76 @@ ...@@ -47,6 +47,76 @@
* @file * @file
*/ */
/**
* @file
*/
(function ($, Drupal) {
Drupal.behaviors.expandcollapse = {
attach: function (context, settings) {
$(document).ready(function () {
$('.uw-expand-collapse').each(function () {
// Get the id of the expand collapse.
var id = '#uw-expand-collapse-' + $(this).data('id');
// When the expand all button is clicked, expand all the items.
$(id + ' [data-type="expand-all"]').click(function () {
// Find each of the buttons, which are the titles and change
// aria-expanded and add class to show expanded.
$(id + ' .uw-expand-collapse__items button').each(function () {
$(this).attr('aria-expanded', true);
$(this).addClass('uw-expanded');
});
// Find each of the text and add css to display them.
$(id + ' .uw-expand-collapse__items .uw-expand-collapse__text').each(function () {
$(this).css('display', 'block');
});
});
// When the collapse all button is clicked, collapse all the items.
$(id + ' [data-type="collapse-all"]').click(function () {
// Find each of the buttons, which are the titles and change
// aria-expanded and remove class to show collapsed.
$(id + ' .uw-expand-collapse__items button').each(function () {
$(this).attr('aria-expanded', true);
$(this).removeClass('uw-expanded');
});
// Find each of the text and add css to display them.
$(id + ' .uw-expand-collapse__items .uw-expand-collapse__text').each(function () {
$(this).css('display', 'none');
});
});
// Step through each of the titles and add a click function.
$(id + ' .uw-expand-collapse__items button').click(function () {
// If this has an expanded class, remove it and change aria expanded to false.
// Otherwise add the expanded class and set aria-expanded to true.
if ($(this).hasClass('uw-expanded')) {
$(this).attr('aria-expanded', false);
$(this).removeClass('uw-expanded');
}
else {
$(this).attr('aria-expanded', true);
$(this).addClass('uw-expanded');
}
// Toggle the text to show/hide.
$(this).parent().parent().find('.uw-expand-collapse__text').toggle();
})
});
});
}
};
})(jQuery, Drupal);
/** /**
* @file * @file
*/ */
...@@ -240,76 +310,6 @@ else if (e.keyCode === 37) { ...@@ -240,76 +310,6 @@ else if (e.keyCode === 37) {
}; };
})(jQuery, Drupal); })(jQuery, Drupal);
/**
* @file
*/
(function ($, Drupal) {
Drupal.behaviors.expandcollapse = {
attach: function (context, settings) {
$(document).ready(function () {
$('.uw-expand-collapse').each(function () {
// Get the id of the expand collapse.
var id = '#uw-expand-collapse-' + $(this).data('id');
// When the expand all button is clicked, expand all the items.
$(id + ' [data-type="expand-all"]').click(function () {
// Find each of the buttons, which are the titles and change
// aria-expanded and add class to show expanded.
$(id + ' .uw-expand-collapse__items button').each(function () {
$(this).attr('aria-expanded', true);
$(this).addClass('uw-expanded');
});
// Find each of the text and add css to display them.
$(id + ' .uw-expand-collapse__items .uw-expand-collapse__text').each(function () {
$(this).css('display', 'block');
});
});
// When the collapse all button is clicked, collapse all the items.
$(id + ' [data-type="collapse-all"]').click(function () {
// Find each of the buttons, which are the titles and change
// aria-expanded and remove class to show collapsed.
$(id + ' .uw-expand-collapse__items button').each(function () {
$(this).attr('aria-expanded', true);
$(this).removeClass('uw-expanded');
});
// Find each of the text and add css to display them.
$(id + ' .uw-expand-collapse__items .uw-expand-collapse__text').each(function () {
$(this).css('display', 'none');
});
});
// Step through each of the titles and add a click function.
$(id + ' .uw-expand-collapse__items button').click(function () {
// If this has an expanded class, remove it and change aria expanded to false.
// Otherwise add the expanded class and set aria-expanded to true.
if ($(this).hasClass('uw-expanded')) {
$(this).attr('aria-expanded', false);
$(this).removeClass('uw-expanded');
}
else {
$(this).attr('aria-expanded', true);
$(this).addClass('uw-expanded');
}
// Toggle the text to show/hide.
$(this).parent().parent().find('.uw-expand-collapse__text').toggle();
})
});
});
}
};
})(jQuery, Drupal);
/** /**
* @file * @file
*/ */
...@@ -666,4 +666,4 @@ else { ...@@ -666,4 +666,4 @@ else {
}); });
} }
}; };
})(jQuery, Drupal); })(jQuery, Drupal);
\ No newline at end of file
...@@ -511,4 +511,4 @@ $gesso: ( ...@@ -511,4 +511,4 @@ $gesso: (
xxl: 96px, xxl: 96px,
), ),
gutter-width: 40px, gutter-width: 40px,
); );
\ No newline at end of file
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
// .l-content {} // .l-content {}
.uw-main{ .uw-main{
&.layout.uw-contained-width{ &.layout.uw-contained-width{
padding:1rem 0; padding:0 0 1rem
} }
} }
...@@ -76,9 +76,6 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -76,9 +76,6 @@ $card-padding: rem(gesso-spacing(sm)) !default;
); );
} }
} }
// body // body
.card__body { .card__body {
@include uw-flex-grid(); @include uw-flex-grid();
...@@ -95,7 +92,6 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -95,7 +92,6 @@ $card-padding: rem(gesso-spacing(sm)) !default;
margin-bottom: rem(gesso-spacing(md)); margin-bottom: rem(gesso-spacing(md));
width: 100%; width: 100%;
} }
.card__media { .card__media {
//background:$test-color-4; //background:$test-color-4;
margin-bottom: rem(gesso-spacing(md)); margin-bottom: rem(gesso-spacing(md));
...@@ -129,7 +125,6 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -129,7 +125,6 @@ $card-padding: rem(gesso-spacing(sm)) !default;
} }
// footer // footer
.card__footer { .card__footer {
//background:$test-color-12;
margin-top: auto; margin-top: auto;
padding: rem(gesso-spacing(md)); padding: rem(gesso-spacing(md));
width: 100%; width: 100%;
......
...@@ -103,19 +103,11 @@ ...@@ -103,19 +103,11 @@
margin-bottom: 1rem; margin-bottom: 1rem;
padding-bottom: 4rem; padding-bottom: 4rem;
.card__title { .card__title {
padding: gesso-spacing(xs) gesso-spacing(md); padding: gesso-spacing(xs) gesso-spacing(md);
} }
.card__sub-title { .card__sub-title {
padding: gesso-spacing(xs) gesso-spacing(md); padding: gesso-spacing(xs) gesso-spacing(md);
} }
.card__date {
}
.card__author { .card__author {
padding: gesso-spacing(xs) gesso-spacing(md); padding: gesso-spacing(xs) gesso-spacing(md);
} }
...@@ -162,7 +154,6 @@ ...@@ -162,7 +154,6 @@
} }
} }
} }
} }
} }
} }
......
...@@ -25,4 +25,3 @@ ...@@ -25,4 +25,3 @@
} }
} }
} }
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
}); });
} }
}; };
})(jQuery, Drupal); })(jQuery, Drupal);
\ No newline at end of file
...@@ -104,6 +104,7 @@ $sidebar-width: 18.75rem; ...@@ -104,6 +104,7 @@ $sidebar-width: 18.75rem;
height:100%; height:100%;
margin-top:-2.5rem; margin-top:-2.5rem;
overflow: inherit; overflow: inherit;
padding: 1rem;
width:100%; width:100%;
z-index: gesso-z-index(overlay); z-index: gesso-z-index(overlay);
~ .view-content { ~ .view-content {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment