Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="ru">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Index</title>
  6.  
  7. </head>
  8. <body>
  9.     <ul class="rings">
  10.   <li class="blue"></li>
  11.   <li class="blue chain"></li>
  12.   <li class="yellow"></li>
  13.   <li class="yellow chain"></li>
  14.   <li class="black"></li>
  15.   <li class="green"></li>
  16.   <li class="green chain"></li>
  17.   <li class="red"></li>
  18.   <li class="red chain"></li>
  19. </ul>
  20. <style>
  21.     :root {
  22.   font-size: calc(1vw + 1vh + .25vmin);
  23. }
  24.  
  25. body {
  26.   background: #fffde8;
  27. }
  28.  
  29. .rings {
  30.   list-style: none;
  31.   left: 50%;
  32.   margin: -9.75em -20.5em;
  33.   position: absolute;
  34.   top: 50%;
  35. }
  36. .rings li {
  37.   position: absolute;
  38.   margin-top: 1em;
  39.   margin-left: 1em;
  40.   border-radius: 1em;
  41.   width: 12em;
  42.   height: 12em;
  43.   font-size: 1em;
  44. }
  45. .rings li:before, .rings li:after {
  46.   position: absolute;
  47.   border-radius: 6em;
  48. }
  49. .rings li:before {
  50.   display: block;
  51.   content: "";
  52. }
  53.  
  54. .rings li:after {
  55.   border: 1.15em solid #000;
  56.   bottom: 0;
  57.   content: "";
  58.   display: block;
  59.   right: -0.1em;
  60.   left: -0.1em;
  61.   top: -0.1em;
  62. }
  63. .rings .blue {
  64.   left: 0;
  65.   top: 0;
  66.   z-index: 10;
  67. }
  68. .rings .yellow {
  69.   left: 6.8em;
  70.   top: 5.7em;
  71.   z-index: 20;
  72. }
  73. .rings .black {
  74.   left: 13.6em;
  75.   top: 0;
  76.   z-index: 21;
  77. }
  78. .rings .green {
  79.   left: 20.4em;
  80.   top: 5.7em;
  81.   z-index: 20;
  82. }
  83. .rings .red {
  84.   left: 27.2em;
  85.   top: 0;
  86.   z-index: 10;
  87. }
  88. .rings .black:after {
  89.   border-color: #000;
  90. }
  91. .rings .blue:after {
  92.   border-color: #117fcd;
  93. }
  94. .rings .green:after {
  95.   border-color: #00a650;
  96. }
  97. .rings .red:after {
  98.   border-color: #ee2049;
  99. }
  100. .rings .yellow:after {
  101.   border-color: #f9a91f;
  102. }
  103. .rings .blue.chain {
  104.   border-bottom-color: transparent;
  105.   border-left-color: transparent;
  106.   border-top-color: transparent;
  107.   z-index: 24;
  108. }
  109. .rings .blue.chain:before, .rings .blue.chain:after {
  110.   border-bottom-color: transparent;
  111.   border-left-color: transparent;
  112.   border-top-color: transparent;
  113. }
  114. .rings .green.chain {
  115.   border-bottom-color: transparent;
  116.   border-top-color: transparent;
  117.   border-right-color: transparent;
  118.   z-index: 23;
  119. }
  120. .rings .green.chain:before, .rings .green.chain:after {
  121.   border-bottom-color: transparent;
  122.   border-top-color: transparent;
  123.   border-right-color: transparent;
  124. }
  125. .rings .red.chain {
  126.   border-left-color: transparent;
  127.   border-top-color: transparent;
  128.   border-right-color: transparent;
  129.   z-index: 23;
  130. }
  131. .rings .red.chain:before, .rings .red.chain:after {
  132.   border-left-color: transparent;
  133.   border-top-color: transparent;
  134.   border-right-color: transparent;
  135. }
  136. .rings .yellow.chain {
  137.   border-bottom-color: transparent;
  138.   border-right-color: transparent;
  139.   border-left-color: transparent;
  140.   z-index: 23;
  141. }
  142. .rings .yellow.chain:before, .rings .yellow.chain:after {
  143.   border-bottom-color: transparent;
  144.   border-right-color: transparent;
  145.   border-left-color: transparent;
  146. }
  147.  
  148.  
  149. </style>
  150. </body>
  151. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement