Amp-accordion's animation removes the outline in animation/transition - animation

.focusOutline:focus-visible { outline: 3px solid green; outline-offset:5px; z-index:99; }
I have added an outline and animation to the amp-accordion. During the animation/transition the outline outside of the accordion disappears.
https://codepen.io/wilson-ruan/pen/yLjwyNO
Can the outline not disappear?

Related

How to change the background color Kendo Grid

I create the one kendo grid .kendo grid use default white or off white color i want to change full background area white e to transparent.I tried many thing but not get the actual result.If any body know please respond to me.thanksYou can see image now is background color is white but i want to change transparent color
You need to override the following styles:
<style>
/* Grid header */
#grid .k-grouping-header, #grid .k-grid-header {
background: transparent;
}
/* Grid content */
#grid.k-grid, #grid.k-grid div.k-grid-content {
background: transparent;
}
#grid.k-grid tr.k-alt {
background: transparent;
}
/* Grid footer */
#grid .k-pager-wrap, #grid .k-pager-wrap .k-pager-numbers, #grid .k-pager-wrap .k-dropdown-wrap {
background: transparent;
}
</style>
Working example: https://dojo.telerik.com/#GaloisGirl/UqaPagec

JavaFx Css, 'Not' selector

the following css would select all cells with 'new' style class and set it's color to green
.table-view .new:filled {
-fx-background-color: green;
}
but on selection, it stays green, what I want is to respect the usual selection color, so is there something like:
.table-view .new:filled:not(selected){
-fx-background-color: green;
}
also I've noticed a strange behavior, the following css
.table-view :selected{
-fx-background-color: yellow;
}
would normally turn selection color of talbe to yellow, where as the following css to set the selection color of updated cells is not working
.table-view .updated:selected{
-fx-background-color: yellow;
}

Chromecast, Styled Media Receiver, gray bars

Can we change the background color used for the bars which display on top and below a video, when a video doesn't fit the screen?
By default it is a dark gray, which is very distracting.
I tried this to see if it can be changed at all. But it didn't change:
.background {
background: center no-repeat url(my_background_url)
background-color: rgb(255, 255, 255);
...
}
Adding this to your custom stylesheet will do the trick:
#player video {
background-color: black;
}
However, I think Google should not set a background-color on the video element (currently #111 I think)

Rect in a skin with border

It is possible to draw a rect with a border, which appears left, right and top.
What I want is a tabbar with a border around everything (content and buttons), but the borderline between button and content should disappear.
I think, the easiest way would be to draw a border around a rect without the bottomline.
Try using the CSS "outline" command.
Something like this :
#tabContainer {
border: 1px solid #DDD;
outline: black solid thick;
}

CSS3 Animation Question

How can I make a CSS3 Animation play to the end and then stop dead. I don't want it to return the elements being transformed back to their initial states.
Right now I'm using some javascript to add a class to the element after the animation's duration with the same properties as 100% in the animation.
This is possible with the "animation-fill-mode" defined as "forwards", at least in Webkit. I got this result with code like this:
#-webkit-keyframes test {
100% { background-color: #0000ff; }
}
a { background-color: #ff0000; }
a:hover { -webkit-animation: test 1s 1 ease forwards }
Note that specifying start color in 0% keyframe and end color in :hover was not necessary.
Of course, this code is Webkit specific. I haven't tried in other browsers with other vendor prefixes or with the general "animation" property.
put your end values in the main css class and the start values in the animation keyframes at 0%:
#keyframes test {
0% {
background-color: #ff0000; /* start value */
}
100% {
background-color: #0000ff;
}
}
a {
background-color: #ff0000; /* normal state */
}
a:hover {
animation-name: test;
animation-duration: 1s;
background-color: #ff0000; /* final state, after animation is finished */
}
In case this question is still open, I don't think this is possible using CSS3 animations as they're currently specified:
An animation does not affect the computed value before the application of the animation, before the animation delay has expired, and after the end of the animation.
However, you should be able to use CSS3 transitions for basic effects. There's a slide in the html5rocks.com presentation that shows how to do this. Here's the relevant [paraphrased] excerpt:
#box.left { margin-left: 0; }
#box.right { margin-left: 1000px; }
#box { -webkit-transition: margin-left 1s ease-in-out; }
// Run this to animate to the left
document.getElementById('box').className = 'left';
// Run this to animate to the right
document.getElementById('box').className = 'right';
animation-fill-mode: forwards
The animation-fill-mode CSS property specifies how a CSS animation should apply styles to its target before and after it is executing

Resources