positions.sass 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. .top-bar
  2. position: fixed
  3. top: 0px
  4. left: 0px
  5. width: 100%
  6. display: flex
  7. flex-direction: row
  8. justify-content: space-between
  9. flex-wrap: wrap
  10. align-content: center
  11. align-items: center
  12. background-color: $secondary
  13. color: $primary
  14. @media only screen and (max-width: 800px)
  15. justify-content: space-around
  16. @media only screen and (max-width: 600px)
  17. position: absolute
  18. input, button, select
  19. background-color: transparent
  20. color: $primary
  21. transition: transform 0.5s
  22. border: 2px solid $primary
  23. border-radius: 10px
  24. padding: 10px
  25. margin-left: 10px
  26. margin-right: 10px
  27. box-sizing: border-box
  28. input:focus
  29. transform: scale(1.1)
  30. outline: 0 !important
  31. button:hover
  32. transform: rotate(20deg)
  33. .left, .right
  34. margin: 10px
  35. .left form
  36. display: flex
  37. flex-direction: row
  38. align-items: stretch
  39. align-content: stretch
  40. flex-wrap: wrap
  41. justify-content: center
  42. gap: 10px 0px
  43. @media only screen and (max-width: 500px)
  44. input
  45. width: calc(100% - 20px)
  46. button, select
  47. width: calc(50% - 20px)
  48. button:hover
  49. transform: rotate(5deg)
  50. .products
  51. display: flex
  52. justify-content: center
  53. align-items: center
  54. flex-wrap: wrap
  55. flex-direction: column
  56. width: calc(100% - 40px)
  57. margin: 20px
  58. gap: 20px
  59. input[type="button"]
  60. background-color: $primary
  61. color: $secondary
  62. border: 2px solid $secondary
  63. padding: 10px
  64. border-radius: 10px
  65. transition: transform 0.5s
  66. &:hover
  67. transform: scale(0.9)
  68. .products-list
  69. display: flex
  70. justify-content: space-evenly
  71. align-items: stretch
  72. flex-wrap: wrap
  73. flex-direction: row
  74. width: 100%
  75. margin: 0px
  76. gap: 20px
  77. .top-bar-spacing
  78. width: 100%
  79. .product
  80. border: 2px solid $primary
  81. border-radius: 10px
  82. padding: 10px
  83. margin: 0px
  84. max-width: 450px
  85. width: 100%
  86. box-sizing: border-box
  87. .header
  88. width: 100%
  89. display: flex
  90. flex-direction: row
  91. align-items: center
  92. justify-content: space-between
  93. @media only screen and (max-width: 450px)
  94. flex-direction: column
  95. justify-content: center
  96. margin-bottom: 10px
  97. .manage
  98. display: flex
  99. flex-direction: row
  100. justify-content: right
  101. flex-wrap: wrap
  102. gap: 10px
  103. width: 40%
  104. margin-bottom: 10px
  105. button
  106. background-color: $primary
  107. color: $secondary
  108. border: none
  109. padding: 10px
  110. border-radius: 10px
  111. transition: transform 0.5s
  112. &:hover
  113. transform: rotate(30deg)
  114. .avairable
  115. color: green
  116. .unavairable
  117. color: red
  118. .image
  119. border-radius: 10px
  120. border: 2px solid $primary
  121. max-width: 50%
  122. transition: transform 0.5s
  123. &:hover
  124. transform: scale(1.1)
  125. .author, .barcode
  126. display: flex
  127. align-items: center
  128. align-content: center
  129. flex-direction: row
  130. flex-wrap: nowrap
  131. span:last-child
  132. margin-left: 5px
  133. .bottom-container
  134. display: flex
  135. align-items: center
  136. align-content: center
  137. flex-direction: row
  138. flex-wrap: nowrap
  139. justify-content: space-between
  140. gap: 10px
  141. @media only screen and (max-width: 400px)
  142. flex-direction: column
  143. .title
  144. width: min(90%, 500px)
  145. margin-left: calc(50% - min(90%, 500px) / 2)
  146. margin-right: calc(50% - min(90%, 500px) / 2)
  147. text-align: center
  148. border: 2px solid $primary
  149. padding: 10px
  150. border-radius: 10px
  151. box-sizing: border-box
  152. h1
  153. display: inline