I have been using media queries to modify my code.
@media (min-width: 576px)
.modal-dialog {
max-width: 500px;
margin: 14% auto;
}
I want to change the media query, but after searching online, I couldn't find a suitable solution. I know the following code is incorrect:
@media (min-width: 576px)
.modal-dialog
{
@extend @media (min-width: 576px)
.modal-dialog{
max-width: 800px
}
}
I am not familiar with this approach, can anyone explain it to me?
Any assistance would be greatly appreciated.
Here is the updated code:
@mixin modal-dialog-mixin() {
max-width: 800px;
}
@media ( min-width : 576px ){
@extend .modal-dialog; //error here
@include modal-dialog-mixin();
}
Unfortunately, it doesn't work and shows an error at @extend .modal-dialog;