Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Bootstrap Delete Confirmation Modal</title>
  8. <link href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round" rel="stylesheet">
  9. <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  10. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  11. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  12. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  13. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  14. <style type="text/css">
  15. body {
  16. font-family: 'Varela Round', sans-serif;
  17. }
  18. .modal-confirm {
  19. color: #636363;
  20. width: 400px;
  21. }
  22. .modal-confirm .modal-content {
  23. padding: 20px;
  24. border-radius: 5px;
  25. border: none;
  26. text-align: center;
  27. font-size: 14px;
  28. }
  29. .modal-confirm .modal-header {
  30. border-bottom: none;
  31. position: relative;
  32. }
  33. .modal-confirm h4 {
  34. text-align: center;
  35. font-size: 26px;
  36. margin: 30px 0 -10px;
  37. }
  38. .modal-confirm .close {
  39. position: absolute;
  40. top: -5px;
  41. right: -2px;
  42. }
  43. .modal-confirm .modal-body {
  44. color: #999;
  45. }
  46. .modal-confirm .modal-footer {
  47. border: none;
  48. text-align: center;
  49. border-radius: 5px;
  50. font-size: 13px;
  51. padding: 10px 15px 25px;
  52. }
  53. .modal-confirm .modal-footer a {
  54. color: #999;
  55. }
  56. .modal-confirm .icon-box {
  57. width: 80px;
  58. height: 80px;
  59. margin: 0 auto;
  60. border-radius: 50%;
  61. z-index: 9;
  62. text-align: center;
  63. border: 3px solid #f15e5e;
  64. }
  65. .modal-confirm .icon-box i {
  66. color: #f15e5e;
  67. font-size: 46px;
  68. display: inline-block;
  69. margin-top: 13px;
  70. }
  71. .modal-confirm .btn {
  72. color: #fff;
  73. border-radius: 4px;
  74. background: #60c7c1;
  75. text-decoration: none;
  76. transition: all 0.4s;
  77. line-height: normal;
  78. min-width: 120px;
  79. border: none;
  80. min-height: 40px;
  81. border-radius: 3px;
  82. margin: 0 5px;
  83. outline: none !important;
  84. }
  85. .modal-confirm .btn-info {
  86. background: #c1c1c1;
  87. }
  88. .modal-confirm .btn-info:hover, .modal-confirm .btn-info:focus {
  89. background: #a8a8a8;
  90. }
  91. .modal-confirm .btn-danger {
  92. background: #f15e5e;
  93. }
  94. .modal-confirm .btn-danger:hover, .modal-confirm .btn-danger:focus {
  95. background: #ee3535;
  96. }
  97. .trigger-btn {
  98. display: inline-block;
  99. margin: 100px auto;
  100. }
  101. </style>
  102. </head>
  103. <body>
  104. <div class="text-center">
  105. <!-- Button HTML (to Trigger Modal) -->
  106. <a href="#myModal" class="trigger-btn" data-toggle="modal">Click to Open Confirm Modal</a>
  107. </div>
  108.  
  109. <!-- Modal HTML -->
  110. <div id="myModal" class="modal fade">
  111. <div class="modal-dialog modal-confirm">
  112. <div class="modal-content">
  113. <div class="modal-header">
  114. <div class="icon-box">
  115. <i class="material-icons">&#xE5CD;</i>
  116. </div>
  117. <h4 class="modal-title">Are you sure?</h4>
  118. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  119. </div>
  120. <div class="modal-body">
  121. <p>Do you really want to delete these records? This process cannot be undone.</p>
  122. </div>
  123. <div class="modal-footer">
  124. <button type="button" class="btn btn-info" data-dismiss="modal">Cancel</button>
  125. <button type="button" class="btn btn-danger">Delete</button>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </body>
  131. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement