positions.sass 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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: space-evenly
  53. align-items: stretch
  54. flex-wrap: wrap
  55. flex-direction: row
  56. width: calc(100% - 40px)
  57. margin: 20px
  58. gap: 20px
  59. .top-bar-spacing
  60. width: 100%
  61. .product
  62. border: 2px solid $primary
  63. border-radius: 10px
  64. padding: 10px
  65. margin: 0px
  66. max-width: 450px
  67. width: 100%
  68. box-sizing: border-box
  69. .header
  70. width: 100%
  71. display: flex
  72. flex-direction: row
  73. align-items: center
  74. justify-content: space-between
  75. @media only screen and (max-width: 450px)
  76. flex-direction: column
  77. justify-content: center
  78. margin-bottom: 10px
  79. .manage
  80. display: flex
  81. flex-direction: row
  82. justify-content: center
  83. flex-wrap: wrap
  84. gap: 10px
  85. button
  86. background-color: $primary
  87. color: $secondary
  88. border: none
  89. padding: 10px
  90. border-radius: 10px
  91. transition: transform 0.5s
  92. &:hover
  93. transform: rotate(30deg)
  94. .avairable
  95. color: green
  96. .unavairable
  97. color: red
  98. .image
  99. border-radius: 10px
  100. border: 2px solid $primary
  101. max-width: 50%
  102. transition: transform 0.5s
  103. &:hover
  104. transform: scale(1.1)
  105. .author, .barcode
  106. display: flex
  107. align-items: center
  108. align-content: center
  109. flex-direction: row
  110. flex-wrap: nowrap
  111. span:last-child
  112. margin-left: 5px
  113. .bottom-container
  114. display: flex
  115. align-items: center
  116. align-content: center
  117. flex-direction: row
  118. flex-wrap: nowrap
  119. justify-content: space-between
  120. gap: 10px
  121. @media only screen and (max-width: 400px)
  122. flex-direction: column
  123. .title
  124. width: min(90%, 500px)
  125. margin-left: calc(50% - min(90%, 500px) / 2)
  126. margin-right: calc(50% - min(90%, 500px) / 2)
  127. text-align: center
  128. border: 2px solid $primary
  129. padding: 10px
  130. border-radius: 10px
  131. box-sizing: border-box
  132. h1
  133. display: inline