UNPKG

modale-react-rm

Version:

Simple modale with a popup reaction style in React

51 lines (50 loc) 949 B
.modale { position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.555); } .content { display: block; position: relative; top: 35%; left: 0; width: 55%; min-height: 150px; line-height: 150px; margin: auto; padding: 20px; border: solid 1px; border-radius: 5px; background-color: #fff; text-align: center; box-shadow: 3px 3px 8px #000; } .text { display: block; width: 100%; overflow: auto; margin: auto; font-size: 2rem; } .close { position: absolute; top: -16px; right: -16px; border-radius: 100%; border: solid 3px #000; background: rgba(255, 254, 254, 0.831); color: #000; font-size: 1.2rem; font-weight: bold; box-shadow: 3px 3px 8px #000; cursor: pointer; transition: 0.3s; } .close:hover { transform: scale(1.1); }