Kode_Omut

Untitled

Jan 20th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. <style type="text/css">
  2.  
  3. square {
  4. position: absolute;
  5. top: 70px;
  6. right: 1070px;
  7. }
  8. square1 {
  9. position: absolute;
  10. top: 130px;
  11. right: 100px;
  12. }
  13.  
  14. square2 {
  15. position: absolute;
  16. top: 70px;
  17. right: 950px;
  18. }
  19.  
  20. square3 {
  21. position: absolute;
  22. top: 70px;
  23. right: 785px;
  24. }
  25.  
  26. .modalDialog {
  27. background: none repeat scroll 0 0 rgba(0, 0, 0, 0.8);
  28. bottom: 0;
  29. font-family: Arial,Helvetica,sans-serif;
  30. left: 0;
  31. opacity: 0;
  32. pointer-events: none;
  33. position: fixed;
  34. right: 0;
  35. top: 0;
  36. transition: opacity 400ms ease-in 0s;
  37. z-index: 99999;
  38. }
  39. .modalDialog:target {
  40. opacity: 1;
  41. pointer-events: auto;
  42. }
  43. .modalDialog > div {
  44. background: linear-gradient(#fff, #999) repeat scroll 0 0 rgba(0, 0, 0, 0);
  45. border-radius: 10px;
  46. margin: 10% auto;
  47. padding: 5px 20px 13px;
  48. position: relative;
  49. width: 400px;
  50. }
  51. .close {
  52. background: none repeat scroll 0 0 #606061;
  53. border-radius: 12px;
  54. box-shadow: 1px 1px 3px #000;
  55. color: #ffffff;
  56. font-weight: bold;
  57. line-height: 25px;
  58. position: absolute;
  59. right: -12px;
  60. text-align: center;
  61. text-decoration: none;
  62. top: -10px;
  63. width: 24px;
  64. }
  65. .close:hover {
  66. background: none repeat scroll 0 0 #00d9ff;
  67. }
  68.  
  69. .c {
  70. border: 1px solid #333; /* Рамка */
  71. display: inline-block;
  72. padding: 5px 15px; /* Поля */
  73. text-decoration: none; /* Убираем подчёркивание */
  74. color: #000; /* Цвет текста */
  75. }
  76. .c:hover {
  77. box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Тень */
  78. background: linear-gradient(to bottom, #fcfff4, #e9e9ce); /* Градиент */
  79. color: #a00;
  80. }
  81.  
  82. </style>
  83. <body>
  84.  
  85. <!--------------------------------------------Кнопка добавления---------------------------------------------->
  86. <square>
  87. <a class="c" href="#openModal">Добавление</a>
  88. <div id="openModal" class="modalDialog">
  89. <div>
  90. <a class="close1" title="Close1" href="#close">X</a>
  91. <h2>Добавление</h2>
  92. <?php
  93. include 'form.php';
  94. ?>
  95. </div>
  96. </div>
  97. </square>
  98. <!------------------------------------------------------------------------------------------>
  99.  
  100.  
  101. <!--------------------------------------------Кнопка удаления---------------------------------------------->
  102. <square2>
  103. <a class="c" href="#openModal">Удаление</a>
  104. <div id="openModal" class="modalDialog">
  105. <div>
  106. <a class="close1" title="Close1" href="#close">X</a>
  107. <h2>Удаление</h2>
  108. <?php
  109. include 'del.php';
  110. ?>
  111. </div>
  112. </div>
  113. </square2>
  114. <!------------------------------------------------------------------------------------------>
  115.  
  116. <!--------------------------------------------Кнопка редактирования---------------------------------------------->
  117. <square3>
  118. <a class="c" href="#openModal">Редактирование</a>
  119. <div id="openModal" class="modalDialog">
  120. <div>
  121. <a class="close1" title="Close1" href="#close">X</a>
  122. <h2>Редактирование</h2>
  123. <?php
  124. include 'reda.php';
  125. ?>
  126. </div>
  127. </div>
  128. </square3>
  129. <!------------------------------------------------------------------------------------------>
Advertisement
Add Comment
Please, Sign In to add comment