positions.sass 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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: right
  83. flex-wrap: wrap
  84. gap: 10px
  85. width: 40%
  86. margin-bottom: 10px
  87. button
  88. background-color: $primary
  89. color: $secondary
  90. border: none
  91. padding: 10px
  92. border-radius: 10px
  93. transition: transform 0.5s
  94. &:hover
  95. transform: rotate(30deg)
  96. .avairable
  97. color: green
  98. .unavairable
  99. color: red
  100. .image
  101. border-radius: 10px
  102. border: 2px solid $primary
  103. max-width: 50%
  104. transition: transform 0.5s
  105. &:hover
  106. transform: scale(1.1)
  107. .author, .barcode
  108. display: flex
  109. align-items: center
  110. align-content: center
  111. flex-direction: row
  112. flex-wrap: nowrap
  113. span:last-child
  114. margin-left: 5px
  115. .bottom-container
  116. display: flex
  117. align-items: center
  118. align-content: center
  119. flex-direction: row
  120. flex-wrap: nowrap
  121. justify-content: space-between
  122. gap: 10px
  123. @media only screen and (max-width: 400px)
  124. flex-direction: column
  125. .title
  126. width: min(90%, 500px)
  127. margin-left: calc(50% - min(90%, 500px) / 2)
  128. margin-right: calc(50% - min(90%, 500px) / 2)
  129. text-align: center
  130. border: 2px solid $primary
  131. padding: 10px
  132. border-radius: 10px
  133. box-sizing: border-box
  134. h1
  135. display: inline