style.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. *{
  2. box-sizing: border-box;
  3. margin: 0;
  4. }
  5. body{
  6. padding: 50px;
  7. display: flex;
  8. justify-content: center;
  9. }
  10. .carTrafficLight{
  11. width: 100px;
  12. height: 250px;
  13. background-color: darkcyan;
  14. margin: 0 auto;
  15. display: flex;
  16. flex-direction: column;
  17. justify-content: space-around;
  18. align-items: center;
  19. div{
  20. width: 70px;
  21. height: 70px;
  22. border-radius: 50%;
  23. border: 2px solid black;
  24. text-align: center;
  25. padding: 14px;
  26. }
  27. .light-red{
  28. background-color: red;
  29. }
  30. .light-yellow{
  31. background-color: yellow;
  32. }
  33. .light-green{
  34. background-color: green;
  35. }
  36. .light{
  37. background-color: darkcyan;
  38. }
  39. }
  40. .pedestrianTrafficLight{
  41. width: 100px;
  42. height: 180px;
  43. background-color: darkcyan;
  44. margin: 0 auto;
  45. display: flex;
  46. flex-direction: column;
  47. justify-content: space-around;
  48. align-items: center;
  49. .light-red{
  50. background-color: red;
  51. }
  52. .light-green{
  53. background-color: green;
  54. }
  55. .light{
  56. background-color: darkcyan;
  57. width: 70px;
  58. height: 70px;
  59. border-radius: 50%;
  60. border: 2px solid black;
  61. text-align: center;
  62. padding: 14px;
  63. }
  64. }
  65. .btnTurnOn{
  66. width: 100px;
  67. height: 30px
  68. }
  69. span{
  70. font-size: 30px;
  71. }