positions.sass 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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: nowrap
  10. align-content: center
  11. align-items: center
  12. background-color: $secondary
  13. color: $primary
  14. input, button, select
  15. background-color: transparent
  16. color: $primary
  17. transition: transform 0.5s
  18. border: 2px solid $primary
  19. border-radius: 10px
  20. padding: 10px
  21. margin-left: 10px
  22. margin-right: 10px
  23. input:focus
  24. transform: scale(1.1)
  25. outline: 0 !important
  26. button:hover
  27. transform: rotate(20deg)
  28. .left, .right
  29. margin: 10px
  30. .left form
  31. display: flex
  32. flex-direction: row
  33. align-items: stretch
  34. align-content: stretch
  35. .products
  36. display: flex
  37. justify-content: space-evenly
  38. align-items: center
  39. align-content: center
  40. flex-wrap: wrap
  41. flex-direction: row
  42. .top-bar-spacing
  43. width: 100%
  44. .product
  45. border: 2px solid $primary
  46. border-radius: 10px
  47. padding: 10px
  48. margin: 10px
  49. max-width: 500px
  50. .header
  51. width: 100%
  52. display: flex
  53. flex-direction: row
  54. align-items: center
  55. justify-content: space-between
  56. button
  57. background-color: $primary
  58. color: $secondary
  59. border: none
  60. padding: 10px
  61. border-radius: 10px
  62. margin-left: 5px
  63. margin-right: 5px
  64. transition: transform 0.5s
  65. &:hover
  66. transform: rotate(30deg)
  67. .avairable
  68. color: green
  69. .unavairable
  70. color: red
  71. .image
  72. border-radius: 10px
  73. border: 2px solid $primary
  74. max-width: 50%
  75. transition: transform 0.5s
  76. &:hover
  77. transform: scale(1.1)
  78. .author, .barcode
  79. display: flex
  80. align-items: center
  81. align-content: center
  82. flex-direction: row
  83. flex-wrap: nowrap
  84. span:last-child
  85. margin-left: 5px
  86. .bottom-container
  87. display: flex
  88. align-items: center
  89. align-content: center
  90. flex-direction: row
  91. flex-wrap: nowrap
  92. justify-content: space-between
  93. .title
  94. width: calc(100% - 40px)
  95. text-align: center
  96. margin: 20px
  97. h1
  98. border: 2px solid $primary
  99. padding: 10px
  100. border-radius: 10px
  101. display: inline