I have a lightning action and a component associated with it. When i click on the action, the modal pops up with a Normal size.
I want to customize the width of the Modal. I searched some css stuff and understood that the width can be altered by changing the @Media css property.
.slds-modal__container
class is not present in the component markup. It automatically takes the Lightning action Modal default size.
Default Modal value :
@media (min-width: 48em)
.slds-modal__container {
margin: 0 auto;
width: 50%;
max-width: 40rem;
min-width: 20rem;
}
I want to update the @media's min-width to 60em like this,
@media (min-width: 60em)
.THIS .slds-modal__container{
margin: 0 auto;
width: 75%;
max-width: 40rem;
min-width: 20rem;
}
But while doing this , I'm getting an CSS parser error:
Issue(s) found by CSS Parser (0Ad0k0000000HM2): Unable to parse the remaining content in the media query '.slds-modal__container': at line 2, column 1 near '(min-width: 70em) ».slds-modal__container' : Source
Is there any workaround / solution for this?