djibe / material

Material Design 2 for Bootstrap 4 (active fork of Daemonite Material)
https://djibe.github.io/material/
MIT License
68 stars 11 forks source link

Change modal box shadow #37

Closed Posandu closed 3 years ago

Posandu commented 3 years ago

Please can you change the box shadow of the modal component to this

.modal-content {
    border-radius: 2px;
    background-color: #ffffff;
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2),0px 24px 38px 3px rgba(0, 0, 0, 0.14),0px 9px 46px 8px rgba(0,0,0,.12);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    outline: 0;
    pointer-events: auto;
    position: relative;
    vertical-align: baseline;
    width: 100%;
}

Before

After adding the code

The 2nd one is the material design modal. See it https://material.io/inline-tools/dialog/

djibe commented 3 years ago

Hi, as stated in _dialog.scss, shadows come from Material Components for the web: https://material-components.github.io/material-components-web-catalog/#/component/elevation

Posandu commented 3 years ago

Can you add the box shadow that is officially in material design ?

djibe commented 3 years ago

OK I will. Can you provide me links to material.io components to check all Components shadows ? Screen Shot 04-24-21 at 05 03 PM

Posandu commented 3 years ago

Thanks for responding , You can see all the components Here

djibe commented 3 years ago

Thx I know :D

Posandu commented 3 years ago

Did you try adding this to your search ? Created by Google https://programmablesearchengine.google.com/cse/create/new

Posandu commented 3 years ago

closing the issue thanks !

djibe commented 3 years ago

Hi, you can keep it open. I will change the shadows tonight. Then I'll work on bringing back the search menu.

djibe commented 3 years ago

Well, didn't find any diffrence between my modals and Google's ones.

.modal-content {
    box-shadow: 0 24px 38px 3px rgb(0 0 0 / 14%), 0 9px 46px 8px rgb(0 0 0 / 12%), 0 11px 15px -7px rgb(0 0 0 / 20%);
}

and

.mdc-dialog__surface {
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0,0,0,.12);
}