123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- .main-container {
- display: flex;
- width: 100%;
- height: 100vh;
- }
- #aside {
- display: flex;
- flex-direction: column;
- background-color: #eb0000;
- padding: 10px;
- width: 15%;
- position: fixed;
- }
- #aside a {
- text-decoration: none;
- color: white;
- margin: 10px 0;
- transition: all 0.5s;
- }
- #main {
- display: flex;
- flex-direction: column;
- width: 85%;
- margin-left: 20%;
- margin-top: 20px;
- }
- #main h2 {
- margin-left: 20px;
- }
- .cards {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-start;
- width: 100%;
- padding: 20px;
- text-align: center;
- }
- .cards a {
- text-decoration: none;
- color: #000;
- margin: 15px;
- border-radius: 10px;
- width: 25%;
- transition: all 0.5s;
- box-shadow: 0 0 2px rgb(8, 8, 8);
- }
- .cards a:hover {
- transform: scale(1.05);
- }
- .card img {
- max-width: 80%;
- margin: 10px 0;
- }
- .card {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- height: 100%;
- padding: 15px;
- }
- button {
- box-sizing: border-box;
- background-color: transparent;
- border: 2px solid #e74c3c;
- border-radius: 0.6em;
- color: #e74c3c;
- cursor: pointer;
- line-height: 1;
- margin: 10px;
- padding: 0.5em;
- text-decoration: none;
- text-align: center;
- text-transform: uppercase;
- transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
- }
- button:hover {
- color: #fff;
- outline: 0;
- box-shadow: 0 0 40px 40px #e74c3c inset;
- }
- input {
- width: 40px;
- height: 35px;
- text-align: center;
- border: 2px solid #e74c3c;
- border-radius: 0.6em;
- }
- #cart {
- position: relative;
- color: #000;
- margin-right: 20px;
- }
- #cart span {
- position: absolute;
- top: 0;
- right: -5px;
- border: 1px solid #000;
- background-color: #fff;
- border-radius: 10px;
- padding: 0 4px;
- font-size: 12px;
- text-align: center;
- }
- .cart-item {
- display: flex;
- align-items: center;
- font-size: 18px;
- border-bottom: 1px solid #8d8d8d;
- }
- .btn-plus,
- .btn-minus,
- .btn-del {
- position: relative;
- width: 25px;
- height: 25px;
- border-radius: 55%;
- border: none;
- }
- .btn-plus::before,
- .btn-plus::after,
- .btn-minus::before,
- .btn-del::before,
- .btn-del::after {
- content: "";
- display: block;
- position: absolute;
- width: 2px;
- height: 12px;
- background-color: #e74c3c;
- top: 50%;
- left: 50%;
- margin-right: -50%;
- transition: background-color 0.3s;
- }
- .btn-plus::before,
- .btn-minus::before {
- transform: translate(-50%, -50%) rotate(90deg);
- }
- .btn-plus::after {
- transform: translate(-50%, -50%);
- }
- .btn-del::before {
- transform: translate(-50%, -50%) rotate(45deg);
- }
- .btn-del::after {
- transform: translate(-50%, -50%) rotate(-45deg);
- }
- .btn-plus:hover::after,
- .btn-plus:hover::before,
- .btn-minus:hover::before,
- .btn-del:hover::after,
- .btn-del:hover::before {
- background-color: #fff;
- }
- .btn-plus:active,
- .btn-minus:active,
- .btn-del:active {
- transform: scale(0.95);
- }
- .btn-minus:disabled,
- .form button:disabled {
- border-color: grey;
- color: grey;
- cursor: default;
- box-shadow: none;
- }
- .btn-minus:disabled::before {
- background-color: grey;
- }
- .cart-item-count {
- color: #e74c3c;
- width: 30px;
- height: 30px;
- }
- .btn-clear {
- color: #706e6e;
- border-color: #706e6e;
- }
- .btn-clear:hover {
- box-shadow: 0 0 40px 40px #706e6e inset;
- }
- #userpanel {
- display: flex;
- align-items: center;
- position: absolute;
- right: 10px;
- justify-content: space-between;
- width: 30vw;
- }
- #userpanel a {
- text-decoration: none;
- color: inherit;
- margin: 0 10px;
- transition: all 0.3s;
- }
- #userpanel a:hover {
- color: grey;
- }
- #userpanel button {
- color: #000;
- border: none;
- margin-right: 0;
- }
- #userpanel button:hover {
- box-shadow: none;
- color: grey;
- }
- #userpanel span {
- font-weight: 600;
- text-transform: uppercase;
- }
- .form {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: space-around;
- padding: 5px;
- color: #424141;
- }
- .form input {
- width: unset;
- margin: 10px 0;
- }
- .form button {
- order: 1;
- margin: 0;
- margin-top: 15px;
- transition: all 0.3s ease-in-out;
- }
|