How to put a shadow on ag-grid fixed columns - reactjs

I tried to put a shadow on ag-grid fixed columns like this, but it's not doing anything:
.ag-pinned-left-cols-container {
box-shadow: inset 10px 0 8px 8px rgb(0 0 0 / 15%);
}
How do you get a shadow onto the fixed columns, so it goes vertically along the fixed column (including the header and body)?

I needed to do this as well, so that we can tell that these are pinned columns and this is how I did it :
For the columns pinned on the left side :
.ag-header .ag-pinned-left-header,
.ag-body-viewport .ag-pinned-left-cols-container {
position: relative;
z-index: 1;
-webkit-box-shadow: 9px 1px 15px -4px rgba(0, 0, 0, 0.1);
box-shadow: 9px 1px 15px -4px rgba(0, 0, 0, 0.1);
}
For the columns pinned on the right side :
.ag-header .ag-pinned-right-header,
.ag-body-viewport .ag-pinned-right-cols-container {
position: relative;
z-index: 1;
-webkit-box-shadow: -9px 1px 15px -4px rgba(0, 0, 0, 0.1);
box-shadow: -9px 1px 15px -4px rgba(0, 0, 0, 0.1);
}
Note : I used this with the material theme and it looks great ! it should work with all the themes except the dark ones in which you can make the color lighter.
Note 2 : I had to add the "position: relative;" and "z-index: 1;" to make it work because there are many background colors on cell and row levels and with this it should work with all settings.

Related

Ionic ion-modal height with keyboard bug

I have a ion modal which i want to show of 60% of my screen, but when keyboard appears the modal resizes to 60% of the screen (including keyboard) so it shrinks a lot. I want the modal to stay the same size (ideally the size of its contents). Pictures explain a lot.
This is the css
.ion-modal.modal {
width: 90%;
min-height: 0 !important;
height: 60% !important;
top: 5%;
left: 5%;
right: 5%;
bottom: 5%;
background-color: #fff;
-webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); }
And this the html
<ion-modal-view id="details_modal" class="ion-modal">
STUFF
</ion-modal-view>
I fixed this issue using <ion-content overflow-scroll="false"></ion-content>
overflow-scroll="false"
fix the issue for me.

Hover is not working in mobile device touch - Ionic mobile application

I am using ionic framework to develop an application . I am trying to apply some css on hover(on touch on mobile). it is working well in browser but not working in the real device.
Please help me to resolve the problem.
What is way to proceed to apply css for touch event.
The element:
<div class="deviceListItem">
<i class="myIcon ion-ios-unlocked-outline" ></i> <br>
Door Open
</div>
CSS for the element:
.myIcon {
background-color: #fff !important;
color: #000 !important;
-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.5) !important;
-moz-box-shadow:0 0 10px rgba(0, 0, 0, 0.5) !important;
box-shadow:0 0 10px rgba(0, 0, 0, 0.5) !important;
}
CSS for Hover effect:
.myIcon:hover {
background-color: #0078D7 !important;
color: #fff !important;
-webkit-box-shadow:0 0 12px rgba(0, 0, 0, 0.5) !important;
-moz-box-shadow:0 0 12px rgba(0, 0, 0, 0.5) !important;
box-shadow:0 0 12px rgba(0, 0, 0, 0.5) !important;
}

Bootstrap Navbar transparaent

this is my css ; how do i set the navbar header to transparent. I have tried to set background-color; transparent; but this don't change anything
.navbar-inner {
min-height: 40px;
padding-right: 20px;
padding-left: 20px;
background-color: #fafafa;
background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
background-repeat: repeat-x;
border: 1px solid #d4d4d4;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
*zoom: 1;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
Try this
.navbar-inner {
background-color: #ffffff;
opacity: 0.6;
filter: alpha(opacity=60); /* For IE8 and earlier */
}
For more details check out w3schools - CSS Image Opacity / Transparency

AngularJS with Breeze - Highlight textarea when required

I am building a SPA with AngularJs and Breeze using VS 2013 project based on John Papa's HotTowel.
We have all the latest nuget packages for Angular, Breeze and BootStrap. One of my requirements is to highlight a text area when the field is invalid (in our case required). This functionality has been implemented with many other fields in the app (primarily input and select fields) and works just fine. However, when I try to apply the data-ng-required directive to the textarea, I do not get the red outline around the textarea.
After some digging I found a fix for this by modifying the breeze.directives.css file:
Before:
input:invalid,
select:invalid {
border: red solid 1px !important;
border-left: 5px solid red !important;
}
span.z-decorator span.invalid,
input:invalid + .z-decorator > .invalid,
select:invalid + .z-decorator > .invalid {
visibility: visible;
display: inline-block;
background-color: rgb(189, 54, 47);
margin: 0.3em 0 0 1em;
padding: 4px 10px;
-ms-border-radius: 3px 3px 3px 3px !important;
border-radius: 3px 3px 3px 3px !important;
background-position: 15px center;
background-repeat: no-repeat;
-webkit-box-shadow: 0 0 12px #999999;
-ms-box-shadow: 0 0 12px #999999;
box-shadow: 0 0 12px #999999;
color: #ffffff;
-ms-opacity: 0.8;
opacity: 0.8;
z-index: 20;
}
select:invalid + .z-decorator > .invalid {
margin: 0.1em 0 0 1em;
}
After:
input:invalid,
textarea:invalid,
select:invalid {
border: red solid 1px !important;
border-left: 5px solid red !important;
}
span.z-decorator span.invalid,
input:invalid + .z-decorator > .invalid,
textarea:invalid + .z-decorator > .invalid,
select:invalid + .z-decorator > .invalid {
visibility: visible;
display: inline-block;
background-color: rgb(189, 54, 47);
margin: 0.3em 0 0 1em;
padding: 4px 10px;
-ms-border-radius: 3px 3px 3px 3px !important;
border-radius: 3px 3px 3px 3px !important;
background-position: 15px center;
background-repeat: no-repeat;
-webkit-box-shadow: 0 0 12px #999999;
-ms-box-shadow: 0 0 12px #999999;
box-shadow: 0 0 12px #999999;
color: #ffffff;
-ms-opacity: 0.8;
opacity: 0.8;
z-index: 20;
}
select:invalid + .z-decorator > .invalid {
margin: 0.1em 0 0 1em;
}
I simply inserted the following:
"textarea:invalid," in the definition of each class
This gives the results I was expecting, however, I really did not want to modify the breeze.directives.css file as this could get over-written the next time we update the breeze files.
To prevent this, I copied the both sections of the css to the bottom of our custometheme.css file where we add customizations then modified them to only point to the textarea:invalid.
My questions is, does anybody know of a reason they left this functionality out? Might this cause problems later?
I did some fairly extensive research to find the solution to this problem and was not able to find any references to other people running into this.
Anyone else run into this?
I'm afraid the breeze directives are more of a proof of concept. That's one reason they are in Breeze Labs.
That said, we take pull requests and I have no objection to adding a textarea selector.

Select2 not working on Kendo UI Window

I am trying to use Select2 plugin on Kendo Window. But its not working for me. ComboBox content is not visible when trying to open that.
Just need to select2.css class select2-drop changed the z-index and it works just fine
.select2-drop {
width: 100%;
margin-top: -1px;
position: absolute;
z-index: 10010;
top: 100%;
background: #fff;
color: #000;
border: 1px solid #aaa;
border-top: 0;
border-radius: 0 0 4px 4px;
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
}

Resources