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.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* https://www.drupal.org/node/2815083.
* @preserve
**/
......@@ -15,7 +16,8 @@ document.documentElement.className += ' js';
var domReady = function domReady(callback) {
if (document.readyState !== 'loading') {
callback();
} else {
}
else {
var listener = function listener() {
callback();
document.removeEventListener('DOMContentLoaded', listener);
......
/**
* @file
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* https://www.drupal.org/node/2815083.
* @preserve
**/
......@@ -23,7 +24,8 @@ window.Drupal = { behaviors: {}, locale: {} };
if (typeof behaviors[i].attach === 'function') {
try {
behaviors[i].attach(context, settings);
} catch (e) {
}
catch (e) {
Drupal.throwError(e);
}
}
......@@ -40,7 +42,8 @@ window.Drupal = { behaviors: {}, locale: {} };
if (typeof behaviors[i].detach === 'function') {
try {
behaviors[i].detach(context, settings, trigger);
} catch (e) {
}
catch (e) {
Drupal.throwError(e);
}
}
......@@ -126,7 +129,9 @@ window.Drupal = { behaviors: {}, locale: {} };
try {
url = decodeURIComponent(url);
} catch (e) {}
}
catch (e) {
}
urlParsingNode.setAttribute('href', url);
......@@ -144,10 +149,14 @@ window.Drupal = { behaviors: {}, locale: {} };
try {
absoluteUrl = decodeURIComponent(absoluteUrl);
} catch (e) {}
}
catch (e) {
}
try {
baseUrl = decodeURIComponent(baseUrl);
} catch (e) {}
}
catch (e) {
}
return absoluteUrl === baseUrl || absoluteUrl.indexOf(baseUrl + '/') === 0;
};
......@@ -162,7 +171,8 @@ window.Drupal = { behaviors: {}, locale: {} };
if (typeof drupalTranslations !== 'undefined' && drupalTranslations.pluralFormula) {
index = count in drupalTranslations.pluralFormula ? drupalTranslations.pluralFormula[count] : drupalTranslations.pluralFormula.default;
} else if (args['@count'] !== 1) {
}
else if (args['@count'] !== 1) {
index = 1;
}
......
/**
* @file
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* https://www.drupal.org/node/2815083.
* @preserve
**/
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -47,6 +47,76 @@
* @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
*/
......@@ -240,76 +310,6 @@ else if (e.keyCode === 37) {
};
})(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
*/
......@@ -666,4 +666,4 @@ else {
});
}
};
})(jQuery, Drupal);
\ No newline at end of file
})(jQuery, Drupal);
......@@ -511,4 +511,4 @@ $gesso: (
xxl: 96px,
),
gutter-width: 40px,
);
\ No newline at end of file
);
......@@ -4,6 +4,6 @@
// .l-content {}
.uw-main{
&.layout.uw-contained-width{
padding:1rem 0;
padding:0 0 1rem
}
}
......@@ -76,9 +76,6 @@ $card-padding: rem(gesso-spacing(sm)) !default;
);
}
}
// body
.card__body {
@include uw-flex-grid();
......@@ -95,7 +92,6 @@ $card-padding: rem(gesso-spacing(sm)) !default;
margin-bottom: rem(gesso-spacing(md));
width: 100%;
}
.card__media {
//background:$test-color-4;
margin-bottom: rem(gesso-spacing(md));
......@@ -129,7 +125,6 @@ $card-padding: rem(gesso-spacing(sm)) !default;
}
// footer
.card__footer {
//background:$test-color-12;
margin-top: auto;
padding: rem(gesso-spacing(md));
width: 100%;
......
......@@ -103,19 +103,11 @@
margin-bottom: 1rem;
padding-bottom: 4rem;
.card__title {
padding: gesso-spacing(xs) gesso-spacing(md);
}
.card__sub-title {
padding: gesso-spacing(xs) gesso-spacing(md);
}
.card__date {
}
.card__author {
padding: gesso-spacing(xs) gesso-spacing(md);
}
......@@ -162,7 +154,6 @@
}
}
}
}
}
}
......
......@@ -24,4 +24,4 @@
});
}
};
})(jQuery, Drupal);
\ No newline at end of file
})(jQuery, Drupal);
......@@ -104,6 +104,7 @@ $sidebar-width: 18.75rem;
height:100%;
margin-top:-2.5rem;
overflow: inherit;
padding: 1rem;
width:100%;
z-index: gesso-z-index(overlay);
~ .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