Skip to content
Snippets Groups Projects
Commit 4cb51599 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

css for the card_node content to not break grid when text is really long

parent 7c956f66
No related branches found
No related tags found
1 merge request!85Feature istwcms 4619 m26lebla theme pager
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
/**
* @file
* Ckeditor Modal.
*/
(function ($, Drupal) {
if ($.ui && $.ui.dialog) {
orig_allowInteraction = $.ui.dialog.prototype._allowInteraction;
$.ui.dialog.prototype._allowInteraction = function (event) {
if ($(event.target).closest('.cke_dialog').length) {
return true;
}
return orig_allowInteraction.apply(this, arguments);
};
}
})(jQuery, Drupal);
/** /**
* @file * @file
*/ */
...@@ -390,6 +373,23 @@ else { ...@@ -390,6 +373,23 @@ else {
}; };
})(jQuery); })(jQuery);
/**
* @file
* Ckeditor Modal.
*/
(function ($, Drupal) {
if ($.ui && $.ui.dialog) {
orig_allowInteraction = $.ui.dialog.prototype._allowInteraction;
$.ui.dialog.prototype._allowInteraction = function (event) {
if ($(event.target).closest('.cke_dialog').length) {
return true;
}
return orig_allowInteraction.apply(this, arguments);
};
}
})(jQuery, Drupal);
/** /**
* @file * @file
*/ */
......
...@@ -11,7 +11,17 @@ $test-color-10: #00ff58; ...@@ -11,7 +11,17 @@ $test-color-10: #00ff58;
$test-color-11: #3e3d12; $test-color-11: #3e3d12;
$test-color-12: #f00; $test-color-12: #f00;
@mixin uw-no-breakout {
//-ms-hyphens: auto;
//-moz-hyphens: auto;
//-webkit-hyphens: auto;
//hyphens: auto;
overflow-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
word-wrap: break-word;
}
@mixin uw-contained-width { @mixin uw-contained-width {
margin-left: auto; margin-left: auto;
......
...@@ -45,7 +45,7 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -45,7 +45,7 @@ $card-padding: rem(gesso-spacing(sm)) !default;
} }
// top // top
.card__header{ .card__header{
//background: $test-color-2; @include uw-no-breakout();
color: $card-meta-color; color: $card-meta-color;
margin-bottom: rem(gesso-spacing(sm)); margin-bottom: rem(gesso-spacing(sm));
width: 100%; width: 100%;
...@@ -67,6 +67,7 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -67,6 +67,7 @@ $card-padding: rem(gesso-spacing(sm)) !default;
} }
} }
.card__author{ .card__author{
@include uw-no-breakout();
font-family: gesso-font-family(systemmedium); font-family: gesso-font-family(systemmedium);
font-size: gesso-font-size(-1); font-size: gesso-font-size(-1);
a { a {
...@@ -125,8 +126,8 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -125,8 +126,8 @@ $card-padding: rem(gesso-spacing(sm)) !default;
} }
// footer // footer
.card__footer { .card__footer {
@include uw-no-breakout();
margin-top: auto; margin-top: auto;
padding: rem(gesso-spacing(md)); padding: rem(gesso-spacing(md));
width: 100%; width: 100%;
...@@ -138,7 +139,6 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -138,7 +139,6 @@ $card-padding: rem(gesso-spacing(sm)) !default;
} }
} }
.card__tags{ .card__tags{
overflow:hidden;
width: 100%; width: 100%;
} }
......
...@@ -65,19 +65,6 @@ ...@@ -65,19 +65,6 @@
.card__sub-title { .card__sub-title {
font-size: gesso-font-size(4); font-size: gesso-font-size(4);
} }
.card__date {
width: 100%;
@include large{
width: inherit;
}
.uw-date {
@include large{
width: inherit;
}
}
}
.card__author { .card__author {
padding: gesso-spacing(xs) gesso-spacing(md); padding: gesso-spacing(xs) gesso-spacing(md);
} }
...@@ -110,7 +97,6 @@ ...@@ -110,7 +97,6 @@
} }
.card__date { .card__date {
margin-top: -2.25rem; margin-top: -2.25rem;
max-width:27rem;
.uw-date { .uw-date {
} }
} }
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
.details{ .details{
margin:0; margin:0;
&__summary{ &__summary{
//padding: $details-padding gesso-spacing(xl) $details-padding $details-padding; //padding: $details-padding gesso-spacing(xl) $details-padding $details-padding;
padding-right: rem(gesso-spacing(xl));
text-transform: inherit; text-transform: inherit;
white-space:normal; white-space:normal;
} }
...@@ -22,7 +24,6 @@ ...@@ -22,7 +24,6 @@
font-family:gesso-font-family(primary); font-family:gesso-font-family(primary);
font-size:rem(gesso-font-size(2)); font-size:rem(gesso-font-size(2));
font-weight:400; font-weight:400;
padding-right:1.5rem;
text-decoration:none; text-decoration:none;
text-transform: inherit; text-transform: inherit;
width:100%; width:100%;
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
.node--type-uw-ct-event &, .node--type-uw-ct-event &,
.node--type-uw-ct-blog &, .node--type-uw-ct-blog &,
.node--type-uw-ct-news-item &{ .node--type-uw-ct-news-item &{
margin-left: -1rem;
width:auto; width:auto;
@include large { @include large {
margin-left:inherit; margin-left:inherit;
......
...@@ -43,6 +43,7 @@ $details-font-family: gesso-font-family(primary); ...@@ -43,6 +43,7 @@ $details-font-family: gesso-font-family(primary);
.seven-details__summary, .seven-details__summary,
.details__summary { .details__summary {
@include uw-no-breakout();
@include svg-background(mobile-arrow-down); @include svg-background(mobile-arrow-down);
background-color: $details-background-color; background-color: $details-background-color;
background-position: right 1rem center; // LTR background-position: right 1rem center; // LTR
...@@ -95,6 +96,7 @@ $details-font-family: gesso-font-family(primary); ...@@ -95,6 +96,7 @@ $details-font-family: gesso-font-family(primary);
} }
.details__content { .details__content {
@include uw-no-breakout();
background: $details-content-background-color; background: $details-content-background-color;
border: 1px solid $details-background-color; border: 1px solid $details-background-color;
border-top: 0; border-top: 0;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
margin-bottom:0; margin-bottom:0;
} }
.page-title { .page-title {
@include uw-no-breakout();
margin:0; margin:0;
padding:0; padding:0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment