Commit 2869dbc1 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-5061:additional css for the header search forms to unify a common look...

ISTWCMS-5061:additional css for the header search forms to unify a common look for placeholder text color
parent 989b96b8
......@@ -10563,18 +10563,23 @@ picture img {
} }
.uw-header-search .uw-search--form .uw-input.uw-input--search::-webkit-input-placeholder {
color: #fff;
opacity: 0.5;
}
.uw-header-search .uw-search--form .uw-input.uw-input--search::-moz-placeholder {
color: #fff;
opacity: 0.5;
}
.uw-header-search .uw-search--form .uw-input.uw-input--search:-ms-input-placeholder {
color: #fff;
opacity: 0.5;
}
.uw-header-search .uw-search--form .uw-input.uw-input--search::-ms-input-placeholder {
color: #fff;
opacity: 0.5;
}
.uw-header-search .uw-search--form .uw-input.uw-input--search::placeholder {
color: #fff;
opacity: 0.5;
}
.uw-header-search .uw-search--form .uw-input.uw-input--search::-webkit-input-placeholder:hover {
color: #000;
......@@ -10798,23 +10803,28 @@ picture img {
}
.uw-header-searchbar .uw-search--form .uw-input.uw-input--search::-webkit-input-placeholder {
color: #fff;
font-weight: 200;
font-weight: regular;
opacity: 0.5;
}
.uw-header-searchbar .uw-search--form .uw-input.uw-input--search::-moz-placeholder {
color: #fff;
font-weight: 200;
font-weight: regular;
opacity: 0.5;
}
.uw-header-searchbar .uw-search--form .uw-input.uw-input--search:-ms-input-placeholder {
color: #fff;
font-weight: 200;
font-weight: regular;
opacity: 0.5;
}
.uw-header-searchbar .uw-search--form .uw-input.uw-input--search::-ms-input-placeholder {
color: #fff;
font-weight: 200;
font-weight: regular;
opacity: 0.5;
}
.uw-header-searchbar .uw-search--form .uw-input.uw-input--search::placeholder {
color: #fff;
font-weight: 200;
font-weight: regular;
opacity: 0.5;
}
.uw-header-searchbar .uw-search--form .uw-input.uw-input--search::-webkit-input-placeholder:hover {
color: #000;
......
/**
* @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
*/
......@@ -47,6 +64,58 @@
* @file
*/
/**
* @file
*/
(function ($, Drupal) {
Drupal.behaviors.factfigure = {
attach: function (context, settings) {
$(document).ready(function () {
// Step through each FF on the page.
$('.uw-ff').each(function () {
var result = $(this).find('.uw-ff__has-carousel-settings').length;
// Get the id to reference the individual FF.
// Need this to ensure that if more than one FF on the page,
// that all FFs get the carousel added.
var id = '#uw-ff-' + $(this).data('id');
// Get the number of items for the carousel, if any.
var num_of_items = $(id).data('num-per-carousel') !== '' ? $(this).data('num-per-carousel') : 3;
// Add the carousel to the FF using the id.
$(id + ' .owl-carousel').owlCarousel({
margin: 10,
nav: true,
navContainerClass: 'uw-owl-nav',
navText:[
'‹ prev',
'next ›'
],
responsiveClass: true,
responsive: {
0: {
items: 1
},
600: {
items: num_of_items <= 2 ? (num_of_items - 1 > 0) ? num_of_items - 1 : 1 : 2
},
1000: {
items: num_of_items
}
}
});
});
});
}
};
})(jQuery, Drupal);
/**
* @file
*/
......@@ -117,58 +186,6 @@
};
})(jQuery, Drupal);
/**
* @file
*/
(function ($, Drupal) {
Drupal.behaviors.factfigure = {
attach: function (context, settings) {
$(document).ready(function () {
// Step through each FF on the page.
$('.uw-ff').each(function () {
var result = $(this).find('.uw-ff__has-carousel-settings').length;
// Get the id to reference the individual FF.
// Need this to ensure that if more than one FF on the page,
// that all FFs get the carousel added.
var id = '#uw-ff-' + $(this).data('id');
// Get the number of items for the carousel, if any.
var num_of_items = $(id).data('num-per-carousel') !== '' ? $(this).data('num-per-carousel') : 3;
// Add the carousel to the FF using the id.
$(id + ' .owl-carousel').owlCarousel({
margin: 10,
nav: true,
navContainerClass: 'uw-owl-nav',
navText:[
'‹ prev',
'next ›'
],
responsiveClass: true,
responsive: {
0: {
items: 1
},
600: {
items: num_of_items <= 2 ? (num_of_items - 1 > 0) ? num_of_items - 1 : 1 : 2
},
1000: {
items: num_of_items
}
}
});
});
});
}
};
})(jQuery, Drupal);
/**
* @file
*/
......@@ -373,23 +390,6 @@ else {
};
})(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
*/
......
......@@ -110,6 +110,7 @@
}
&::placeholder{
color:#fff;
opacity:0.5;
&:hover{
color:#000;
}
......
......@@ -109,7 +109,8 @@ $uw-search--form-bg: gesso-brand(org-default,uw-black,lvl4);
width:100%;
&::placeholder{
color:#fff;
font-weight:200;
font-weight:regular;
opacity:0.5;
&:hover{
color:#000;
}
......
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