style.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .card {
  2. color: black;
  3. }
  4. header {
  5. width: 100%;
  6. position: relative;
  7. background-size: cover;
  8. background-position: 50% 50%;
  9. background-image: url(./img/banner3.jpg);
  10. }
  11. header:after {
  12. content: "";
  13. position: absolute;
  14. background: rgb(20, 10, 1);
  15. opacity: 0.7;
  16. top: 0;
  17. right: 0;
  18. bottom: 0;
  19. left: 0;
  20. }
  21. .card {
  22. box-shadow: 0 10px 15px rgba(0,0,0,0.2), 0 8px 8px rgba(0,0,0,0.2);
  23. transition: .2s linear;
  24. }
  25. .card:hover {
  26. cursor: pointer;
  27. box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  28. }
  29. .navbar {
  30. width: 100%;
  31. display: flex;
  32. justify-content: space-between;
  33. z-index: 2;
  34. }
  35. .navbar-brand {
  36. margin-right: auto;
  37. }
  38. .btn-cart {
  39. display: flex;
  40. width: 200px;
  41. align-items: center;
  42. padding: 0 5px;
  43. border-radius: 10px;
  44. background-color: rgba(63, 37, 3, 0.356);
  45. color: #fff;
  46. }
  47. .btn-cart:hover {
  48. color: rgb(238, 11, 11);
  49. cursor: pointer;
  50. }
  51. .icon-basket {
  52. width: 40px;
  53. height: 40px;
  54. margin-right: 5px;
  55. fill: #f8f8f8;
  56. transition: all .2s;
  57. }
  58. .btn-cart-info {
  59. display: inline-block;
  60. padding: 0 5px;
  61. font-size: 14px;
  62. text-align: center;
  63. }
  64. .pizza-caloricity {
  65. position: absolute;
  66. top: 10px;
  67. right: 10px;
  68. font-size: .8rem;
  69. font-weight: 600;
  70. color: rgb(199, 7, 7);
  71. }
  72. .card-price {
  73. font-size: 1.5rem;
  74. font-weight: 600;
  75. color: rgb(199, 7, 7);
  76. }
  77. .card-footer {
  78. padding: 0;
  79. padding-bottom: 20px;
  80. border: none;
  81. background-color: #fff;
  82. }
  83. .btn-add-to-basket {
  84. width: 70%;
  85. margin: 0 auto;
  86. font-size: 20px;
  87. text-align: center;
  88. color: #fff;
  89. background-image: url(./img/btn2.jpeg);
  90. }
  91. .btn-favorite {
  92. position: absolute;
  93. top: 15px;
  94. left: 15px;
  95. display: block;
  96. width: 22px;
  97. height: 20px;
  98. background-color: transparent;
  99. background-image: url(../img/emptyheart.png);
  100. background-size: cover;
  101. border: none;
  102. outline: none;
  103. }
  104. .btn-cart:active,
  105. .btn-cart:focus,
  106. .btn-favorite:active,
  107. .btn-favorite:focus {
  108. border: none;
  109. outline: none;
  110. }
  111. .btn-favorite--active {
  112. background-image: url(../img/heart.png);
  113. }
  114. .modal-content {
  115. padding: 10px;
  116. }
  117. footer {
  118. background-color: rgb(31, 13, 1);
  119. }