Advertisement
Hadi1989

Untitled

Jun 10th, 2022
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.50 KB | None | 0 0
  1. *{
  2.     margin: 0; padding: 0;
  3.     box-sizing: border-box;
  4. }
  5. button{
  6.     font-family: sans-serif;
  7. }
  8. body{
  9.     height: 100vh;
  10.     display: flex;
  11.     justify-content: center;
  12.     align-items: center;
  13.     font-family: 'Poppins', sans-serif;
  14. }
  15. .modal-btn{
  16.     padding: 20px 60px;
  17.     background-color: orangered;
  18.     border: none;
  19.     font-size: 24px;
  20.     color: #fff;
  21.     cursor: pointer;
  22. }
  23. .modal-container{
  24.     position: fixed;
  25.     width: 100%;
  26.     height: 100%;
  27.     background-color: gray;
  28.     display: flex;
  29.     justify-content: center;
  30.     align-items: center;
  31.     opacity: 0;
  32.     pointer-events: none;
  33.     transition: all 0.3s;
  34. }
  35. .modal{
  36.     background-color: #fff;
  37.     width: 95%;
  38.     max-width: 700px;
  39.     text-align: center;
  40.     transform: scale(0.6s);
  41.     transform:  transform 0.3s;
  42. }
  43. .modal-header{
  44.     background-color:  orangered;
  45.     padding: 20px;
  46. }
  47. .modal-header h2{
  48.     color: #fff;
  49.     text-transform: uppercase;
  50. }
  51. .modal-body{
  52.     padding: 20px;
  53. }
  54.  
  55.  
  56. .modal-body p{
  57.     line-height: 1.8;
  58.     margin: 20px 0;
  59. }
  60. .modal .close-btn{
  61.     padding: 15px 30px;
  62.     border: none;
  63.     background-color: orangered;
  64.     color: #fff;
  65.     text-transform: sans-serif;
  66.     font-size: 20px;
  67.     cursor: pointer;
  68.     margin-bottom: 30px;
  69. }
  70. .modal-container.show{
  71.     opacity: 1;
  72.     pointer-events: all;
  73. }
  74. .modal-container.show .modal{
  75.     transform: scale(1);
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement