I am using Angular and the Kendo control suite. In particular I'm wondering about tooltip styling.
I have successfully styled the tooltip how I want it with one minor exception that I can't figure out. There seems to be a shadow on the tooltip but it's around the entire extents including the little triangle callout piece so it doesn't fit the actual representation.
It's pretty faint, but you can see the light edge of the shadow below the triangle (the red arrow I added to highlight it).
Here is my style:
.tooltipStandard *{
background: var(--adskBlue);
color: white;
box-shadow: none;
text-shadow: none;
}
.tooltipStandard .k-callout{
background-color: transparent;
color: var(--adskBlue);
}
and I'm just using it like this:
<div class="contentSections" style="flex: 1" kendoTooltip tooltipClass="tooltipStandard">
Ideally I would like to have the shadow around just the blue portion of the tooltip but turning it off entirely would be fine too.
I tried to use the Chrome console to look at the styles but since it's a tooltip it won't stay open long enough for me to go to the inspection panel and select it. It also doesn't show up when I force hover state from the developer console. Is there any other way to inspect the element from the browser?
Any help would be appreciated.
EDIT
Thanks to the comment below I was able to get the tooltip to stay up and therefore find what I needed to override. Here is the much better output:
For anyone else having this issue, here are the styles I put into my code to make this update:
.k-animation-container-shown, .k-animation-container>.k-popup{
box-shadow: none;
}
.k-tooltip-wrapper .k-tooltip{
box-shadow: 2px 2px 7px 0 rgba(0, 0, 0, 0.5);
}
.tooltipStandard .k-callout{
filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}
The bottom style places the shadow onto the triangle and unfortunately it goes over the rectangle just a hair but you'd have to look pretty hard to see that so I'm not super concerned about that. You could also just remove the triangle shadow. If anyone has a good solution to 'clip' the triangle shadow on the top only that would be awesome.
Posting this answer based on the comment by #yazantahhan above.
I just needed to find the right styles to apply. Thanks to the comment I was able to set the tooltip to show on click using the showOn property. To do so I changed this:
<div class="contentSections" style="flex: 1" kendoTooltip tooltipClass="tooltipStandard">
to this:
<div class="contentSections" style="flex: 1" kendoTooltip tooltipClass="tooltipStandard" showOn="click">
That allowed me to click the element and the tooltip stayed up and I could inspect it in the developer console.
Once I found that out I found the right styles pretty quickly. Here are the css overrides I put into my style sheet to make it work:
.k-animation-container-shown, .k-animation-container>.k-popup{
box-shadow: none;
}
.k-tooltip-wrapper .k-tooltip{
box-shadow: 2px 2px 7px 0 rgba(0, 0, 0, 0.5);
}
.tooltipStandard .k-callout{
filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}
And this is the result:
Related
This seems to have the solution I need...
Border radius on Focus input field
Where I want the focus border to match the border radius used for the box itself. As it is right now, the box has curved corners but the focus does not so it looks odd.
I tried...
*:focus {
outline: none;
box-shadow: 0px 0px 2px blue;
}
and...
.field-box:focus {
outline: none;
box-shadow: 0px 0px 2px blue;
}
but neither work so I'm thinking something at a parent level is overriding it. When I check for the css in inspect, I don't see it show up so I can't confirm that is the case. I just know that I can make other changes to the form box but not the focus border itself. Anyone know how to address or if there is a way to identify what might be overriding it?
So, my problem is I am using a template with WordPress that has a blue "headline" box that I need to change the color to #333399. Right clicked on the headline, selected "inspect element", searched through the code and identified the following code as what I thought should be changed:
#headline, #headline2 {
width: 100%;
height:55px;
padding:20px 0 10px;
background: #fafafa;
border-bottom: 1px solid #fff;
border-top: 1px solid #d9d9d9;
box-shadow: 0px 0px 3px rgba(50, 50, 50, 0.08) inset, 0px 2px 5px rgba(50, 50, 50, 0.02);
}
In WordPress I went to "Theme Options"--> "Custom CSS" and added the above code with with the exception of changing the "background: #fafafa;" to "background: #333399;". After this, the box at the very top of my website changed from a black bar to clear with the above CSS coding showing. After seeing this, I add the original coding back into the "Custom CSS" box. It still showed the same problem. I deleted browsing history, but it was still there. How do I:
Change the top to back how it was (a black bar)?
Change the blue title bar on the page to the #333399?
website: http://roseoftexashospice.no-ip.biz/about-us/
The existing background color is hard-coded using inline styling so the answer is not in custom CSS but in changing the HTML
<section id="headline" style="background-color:#128ABC;">
You need <style> tags or you need to link your css externally
http://www.w3schools.com/css/css_howto.asp
First question on Stackoverflow but I've used it constantly while learning how to make websites and a bunch of other stuff. I've been using Bootstrap to create a website with a friend and in the past we've both seen websites with really beautiful navbars.
What we're wondering is if we can utilise Bootstrap's navbars and add some additional code to add a sort of under-glow to the buttons! In an ideal world too, this glow would move from button to button following the cursor and reset to the currently active page button if none are hovered over. I'm hoping you've seen something like this before but it's actually difficult for me to find an example of this now.
I've been looking at using this sort of effect but turned upside down
body { margin: 30px; }
hr {
border: none;
border-top: 1px solid #eee;
height: 5px;
background: -webkit-radial-gradient(50% 0%, 50% 5px, #aaa 0%, white 100%);
}
<hr>
(Source: http://jsfiddle.net/sonic1980/65Hfc/; (provided by another amazing stackoverflow user))
Is this possible? Thanks for any help, let me know if I can provide any further information.
I tried to replicate it with a box shadow, check it out:
.btn{
box-shadow: 0px 5px 5px #888888;
}
http://jsfiddle.net/gumxt15q/
Using inset
http://jsfiddle.net/q0ere00q/
This is maybe a bit of a simple question to be asking here... I am a newbie so sorry if it is...
I am having problems with a CSS border around the main image on my website, I have got it to work on my blog pages but cannot get the same style work on the royalslider plugin on my homepage. Basically I want it to look exactly the same on the homepage as it does around the image on the blog page.
Working Link:http://alanbrandt.com/blog/copenhagen-wedding-photographer/
Not working: http://alanbrandt.com/
What am I doing wrong?
CSS:
.ab-royalslider {
position: relative;
zoom: 1;
padding: 32px;
-webkit-box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.2);
box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.2);
EDIT:
It appears as if we are getting there... Thank you for all your help! I still have a bottom border that is too far away from the image???
I had hoped to achieve this in the Royalslider CSS style sheet for the .abSliderSkin style but I cannot get it to work... :( If anyone has ideas on how I can improve this I would very much appritiate it.
.ab-royalslider - add padding: 42px 0;
#homepage, #stories - remove margin
#new-royalslider-1 - there is inline stile, height should be about 415px; width: 684px;
Try that, although I dont like this structure, it could be done easier and cleaner.
I think you should check your div's first. When i inspected the elements i noticed that the structure is different. And also the width of the area is different. At first link you have a div called header preview. and in the second you dont basically the container is different.
This is my first relply hope it helps you out.
It could be because there is no element of class ab-royalslider in the second link, so you'll have to apply the shadow to other elements. Try using .rsOverflow or .royalSlider.
Well I think you should disable the 'css optimization/combining" in the admin area, so we can pin point what edit you have to do in which file, because right now we are getting an optimized/combined css file so figuring out which file has the fault is really difficult.
You need to do changes in your CSS files:
http://alanbrandt.com/wp-content/cache/minify/000001/ZYxBCoAwDAQ_ZImefEhfkLZRgjGFpCL6esWT4m1nZ9kBctWGuYWp2hpGYM2yFXLI7uDtEPKuBxTUZKilPb3eWxQ-6a9mUjKUbgClPVg9UFy4kIFwgje_8v8GU3xMXFg_cAE.css
on Line number 1390
.rsContent img{
//Remove margin:0px !important and also other styles
}
AND
http://alanbrandt.com/wp-content/cache/minify/000001/ZYxBCoAwDAQ_ZImefEhfkLZRgjGFpCL6esWT4m1nZ9kBctWGuYWp2hpGYM2yFXLI7uDtEPKuBxTUZKilPb3eWxQ-6a9mUjKUbgClPVg9UFy4kIFwgje_8v8GU3xMXFg_cAE.css
on line number 1392
.rsOverflow{
//Remove height:415px !important
}
Try out this will work
I figure out these changes using fire-bug
looking on this page: http://acecontainerbuilder.com.dnnspeed.com/news-events.html you will see if using iOS device (iPad, iPhone) that the background color of the input in the bottom left corner bleeds through the border radius. Does anyone know of a way to prevent this without using images?
Try adding -webkit-background-clip: padding-box; to the style of the input box.
Edit: if that doesn't work, try -webkit-background-clip: content-box;, or either of those properties without the -box in the value.
I just encountered this same problem, and the best solution I could come up with was to wrap the input element in a div tag and apply the styles to the div instead of the input element.
#sidebar div.search-wrapper {
background-color:#fff;
border-radius: 14px;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) inset;
}
#sidebar input[type="text"] {
background-color: transparent!important;
box-shadow:none!important;
}
For whatever reason, mobile safari isn't honoring the border radius on input elements even though desktop safari is. Strange.