style.css 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .traffic-lights {
  2. font-family: sans-serif;
  3. display: flex;
  4. flex-wrap: nowrap;
  5. justify-content: space-evenly;
  6. }
  7. .traffic-lights__wrap {
  8. width: 106px;
  9. display: flex;
  10. flex-wrap: wrap;
  11. align-self: flex-end;
  12. background-color: grey;
  13. border-radius: 5px;
  14. padding: 10px;
  15. }
  16. .traffic-lights__light {
  17. position: relative;
  18. width: 100px;
  19. height: 100px;
  20. background-color: darkgray;
  21. border: 3px solid #000000;
  22. border-radius: 50%;
  23. }
  24. .traffic-lights__light + .traffic-lights__light {
  25. margin-top: 10px;
  26. }
  27. .traffic-lights__counter {
  28. color: rgba(0, 0, 0, 0.4);
  29. font-size: 44px;
  30. font-weight: 600;
  31. position: absolute;
  32. top: 50%;
  33. left: 50%;
  34. transform: translate(-50%, -50%);
  35. }
  36. .traffic-lights__light--red {
  37. background-color: red;
  38. }
  39. .traffic-lights__light--yellow {
  40. background-color: yellow;
  41. }
  42. .traffic-lights__light--green {
  43. background-color: green;
  44. }
  45. .traffic-lights__pedestrian-button {
  46. align-self: flex-end;
  47. }