style.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. *{
  2. box-sizing :border-box;
  3. }
  4. .level1{ /*задаем фон*/
  5. width: 638px;
  6. height: 589px;
  7. background: #0d5825;
  8. position: relative;
  9. }
  10. blockquote {
  11. font-size: 24px;
  12. font-family: 'Times New Roman', Times, serif ;
  13. font-weight: 700;
  14. color: #ffffff;
  15. padding-top: 30px;
  16. text-align: center;
  17. }
  18. img {
  19. width: 150px;
  20. position: absolute;
  21. transform-origin: 0% 100%; /*задаем точку
  22. смещения (left bottom)*/
  23. transition: 1s ease; /*эффект при hover*/
  24. }
  25. .img:first-child{
  26. top: 288px;
  27. left: 212px;
  28. transform: rotate(-20deg);
  29. }
  30. .img:nth-child(2){
  31. top: 288px;
  32. left: 244px;
  33. transform: rotate(-8deg);
  34. }
  35. .img:last-child{
  36. top: 280px;
  37. left: 265px;
  38. transform: rotate(10deg);
  39. }
  40. .img:hover{
  41. top: -10px;
  42. }
  43. .holder{
  44. width: 150px;
  45. height: 150px;
  46. position: relative;
  47. }
  48. .pink, .blue, .green{
  49. width: 60px;
  50. height: 60px;
  51. position: absolute;/*привязываем к родителю
  52. (в данном случае к родительскому классу holder*/
  53. }
  54. .pink{
  55. top: 0;
  56. left: 0;
  57. background: pink;
  58. }
  59. .blue{
  60. top: 40px;
  61. left: 40px;
  62. background: blue;
  63. z-index: 2;
  64. }
  65. .green{
  66. top: 80px;
  67. left: 80px;
  68. background: green;
  69. }
  70. .nav{
  71. position: relative;
  72. background: grey;
  73. width: 200px;
  74. height: 400px;
  75. position: fixed;/*блок зафиксирован*/
  76. left: -180px;/*смещение влево
  77. так у нас блок заходит влево
  78. и мы видим лишь 20px(NENU HERE)*/
  79. z-index: 2000; /*поверх всех элементов!!!*/
  80. transition: 0.5s ease;/*время выхода блока
  81. до значения left: 0*/
  82. }
  83. .nav:hover {
  84. left: 0;/*смещение влево до 0,
  85. так у нас блок воходит полностью*/
  86. }
  87. button {
  88. position: absolute;/*привязываемся к .nav*/
  89. color:#fff;
  90. background-color: grey;
  91. border: none;
  92. transform-origin: 0% 100%;/*задаем точку трансформации(поворота)*/
  93. transform: rotate(90deg);/*поворот на 90град.*/
  94. margin-top: 120px;/*задаем положение*/
  95. margin-left: 179px;/*задаем положение*/
  96. font-size: 16px;
  97. line-height: 17px;
  98. font-family: 'Times New Roman', Times, serif;
  99. }
  100. .nav:hover/*при навелдении мышью на .nav, button перестанет быть видимым*/
  101. button{
  102. opacity:0;
  103. }
  104. li {
  105. list-style: none;
  106. line-height: 30px;
  107. }
  108. li::before{
  109. content: "\2666 ";
  110. font-size: 25px;
  111. margin: 5px;
  112. color: orange;
  113. }
  114. /*.d19 {
  115. width: 0;
  116. height: 0;
  117. border: 40px solid transparent;
  118. border-bottom-color: orange;
  119. position: relative;
  120. top: -50px;
  121. }
  122. .d19:after {
  123. content: "";
  124. width: 0;
  125. height: 0;
  126. position: absolute;
  127. left: -50px;
  128. top: 50px;
  129. border: 40px solid transparent;
  130. border-top-color: orange;
  131. } */
  132. /* }
  133. li:before {
  134. background-image: url(./img/romb.jpg);
  135. background-size: 20px 20px;
  136. background-repeat: no-repeat;
  137. background-position: 50% 50%;
  138. background-color: orange;
  139. display: inline-block;
  140. width: 20px;
  141. height: 20px;
  142. content:"";
  143. } */
  144. a {
  145. color: #fff;
  146. text-decoration: none; /*отключить стилди тега а,
  147. задать новые стили */
  148. }
  149. a:hover {
  150. color: orange;
  151. }
  152. /* .block{
  153. position: relative;
  154. width: 400px;
  155. height: 400px;
  156. border: 2px solid grey;
  157. }
  158. .red-cube, .blue-cube,
  159. .green-cube, .yellow-cube {
  160. width: 100px;
  161. height: 100px;
  162. position: absolute;
  163. }
  164. .red-cube{
  165. color:red;
  166. }
  167. .blue-cube{
  168. color:blue;
  169. }
  170. .green-cube{
  171. color:green;
  172. }
  173. .yellow-cube{
  174. color: yellow;
  175. }
  176. @keyframes */