How to customize overlay of intro.js - tooltip

I would like to customize the tooltip in intro.js .(Change the background color of tooltip to blue) Is it possible to achieve in intro.js

overlayOpacity property Adjust the overlay opacity of backdrop created by intojs. The range is 0 to 1
Add overlayOpacity:0 in introJs options to completely remove the backdrop.
introJs().setOption("overlayOpacity", 0);
override .introjs-tooltip class to change background of tooltip.
.introjs-tooltip{
background-color:#0000FF;
}

All you need to do is adding a new CSS rule to override the background-color of .introjs-overlay:
.introjs-overlay {
background-color: blue;
}
Also you can add background gradient, opacity, whatever you want.

Related

change placeholder colour antdesign datepicker

How can I change ant design date picker placeholder color? I couldn't find CSS for placeholders color
https://ant.design/components/date-picker/
As far as I can see, you can try the next selector for it:
.ant-picker-input>input::placeholder {
color: red;
}

Angular-material: Adding border to a button in the theme

My goal is to make all "accent" buttons (<button mat-raised-button color="accent">) in my theme to have a blue border, blue text and a white background. I was reading about the custom theme setting in angular-material.
What I could do is, set my "primary" and "accent" colors in a theme and set that to all the button elements. With this, all my primary buttons are solid blue and accent buttons are white.
$my-button-primary: mat-palette($my-blue, 500, 200, 800);
$my-button-accent: mat-palette($my-white, 500, 200, 800);
$my-button-theme: mat-light-theme(
$my-button-primary,
$my-button-accent
);
#include mat-button-theme($my-button-theme);
But, to set a blue border and a blue text, I need to manually write an SCSS style.
#mixin buttons-theme($theme) {
$accent: map-get($theme, accent);
.mat-raised-button.mat-accent,
.mat-stroked-button.mat-accent,
.mat-flat-button.mat-accent,
.mat-button.mat-accent {
background-color: white;
color: mat-color($accent);
border: solid 1px mat-color($accent);
}
}
Now, is there a way to include the button style while creating the theme? Or is there a better way to write the above code?

Angular ui-grid with cellNav - how to remove blue border when focused?

I am using ui-grid with CellNav feature on: http://ui-grid.info/docs/#/tutorial/309_editable_with_cellnav
Can't figure out which CSS style adds blue shadowed border around the grid when focused.
Which CSS class should I override in order to get rid of this border?
Finally I got it after read the source code, use this one:
.ui-grid-focuser:focus {
box-shadow: none !important;
}
This will stop the blue border appearing.
.ui-grid-cell-focus {
border: 0 !important;
}

Transparent modal backdrop

I'm trying to make a modal backdrop completely transparent (specifically for one modal) and I'm having a difficult time achieving this. From the docs it says I can apply a custom class with backdropClass. When I open my modal, I call:
backdropClass: 'transparent-backdrop'
But no matter what styling I put in this class (whether to achieve transparency or just change the backdrop color), the backdrop does not change. My CSS looks like this:
.transparent-backdrop {
opacity: 0;
}
I can modify the backdrop color using windowClass (and the 'in' class):
windowClass: 'my-window-class'
.my-window-class.in {
background-color: #000;
}
However, if I try to set the opacity in a similar way:
.my-window-class.in {
opacity: 0;
}
my backdrop is still present, but now my modal disappears. Can anyone tell me the correct way to modify the opacity of the backdrop?
This works for me:
.transparent-backdrop.in {
opacity: 0;
}
Here's a screenshot showing the transparent backdrop in Chrome

Animate background color change with toggleClass?

Is it possible to animate a background color change with toggleClass?
Here is the page working currently. - this has been updated since first post
Is it possible to animate this? I have to use toggleClass instead of the JQuery UI extended animate because there are background-images in the original CSS and animate will change the background-color, but not remove the background-image. Plus, I want to toggle it, not change the background-color permanently.
Here is the current javascript:
function ToggleClass() {
$("#Section2").toggleClass("errorpanel");
$("#Secion2HeaderText").toggleClass("errortext");
}
Secondly, as you see, I have to change the CSS files twice. I can't understand why this class for the
.errorpanel{ color: #ffffff !important; background: red !important;}
does not endtend down to the tag. It will change the accordion header to white when it is not selected, but when it is selected, it leaves the background as red, but changes the color to the original shade of blue. I can override that and get it to stay white all the time by adding this class:
.errortext{color: #ffffff !important;}
Anyway, I would like to animate those both forward and back.
Edit:
I am thinking something like this:
function ToggleClass() {
var color = $("#Section2").css("background-color");
if (color == 'rgb(255, 0, 0)') {
$("#Section2").animate({ backgroundColor: "#507CD1" }, 2500);
$("#Section2").toggleClass("testerrorpanel");
}
else {
$("#Section2").toggleClass("testerrorpanel");
$("#Section2").animate({ backgroundColor: "red" }, 2500);
}
$("#Secion2HeaderText").toggleClass("errortext");
}
That looks to see if the background is red. If it is, it changes the background color back to the original value, with the background image (and the panel still changes to a lighter color when selected, so all original functionality is returned), it just doesn't animate back to blue. The only thing the toggle does now is remove the background image because that can't be animated. This page shows the current functionality.
You could try using delay
$("#Section2").animate({ backgroundColor: "red" }, 2500).delay(800).animate({ backgroundColor: "#507CD1" }, 2500);
Not 100% sure but I think this may work.

Resources