123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651 |
- :root {
- --font-color: lightseagreen;
- --primary-color: #303030;
- }
- * {
- margin: 0;
- padding: 0;
- }
- *,
- *::before,
- *::after {
- box-sizing: inherit;
- }
- @mixin btn {
- margin-top: 1rem;
- width: 50%;
- background-color: var(--primary-color);
- border: none;
- color: white;
- padding: 15px 32px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- letter-spacing: .2rem;
- transition: .2s ease-in-out;
-
- &:hover {
- background-color: white;
- color: var(--font-color);
- border: 1px solid var(--primary-color);
- }
- &:active {
- transform: translateY(4px);
- }
- }
- @mixin card {
- display: flex;
- flex-direction: column;
- text-align: center;
- justify-content: center;
- width: 23rem;
- height: auto;
- margin: 2rem;
- padding: 2rem;
- border-radius: .5rem;
- box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
- transition: 0.4s ease-out;
- &:hover {
- box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
- transform: translateY(-15px)
- }
- img {
- max-width: 50%;
- height: 9rem;
- }
- }
- @mixin input {
- width: 80%;
- padding: 12px 20px;
- margin: 8px 0;
- box-sizing: border-box;
- border: 1px solid #555;
- outline: none;
- &::focus {
- background-color: lightblue;
- }
- }
- @mixin textarea {
- width: 95%;
- height: auto;
- outline: none;
- border: 2px solid #ccc;
- border-radius: 4px;
- background-color: #f8f8f8;
- font-size: 16px;
- resize: none;
- margin-top: .25rem;
- padding: .5rem;
- &:focus {
- border: 2px solid var(--primary-color);
- }
- }
- @mixin select {
- width: 100%;
- height: 3rem;
- outline: none;
- border: 2px solid #ccc;
- border-radius: 4px;
- background-color: #f8f8f8;
- font-size: 16px;
- margin-top: .25rem;
- text-align: center;
- &:focus {
- border: 2px solid var(--primary-color);
- }
- }
- .App {
- footer{
- background-color: #303030;
-
- .name {
- font-size: 10rem;
- }
- }
- .header {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- height: 4rem;
- background-color: var(--primary-color);
- border-bottom: 1px solid white;
- &_left {
- display: flex;
- flex-direction: row;
- align-items: center;
- &-title {
- text-decoration: none;
- letter-spacing: .3rem;
- color: white;
- margin-right: 2rem;
- margin-left: 2rem;
- transition: .2s ease-in-out;
- &:hover {
- color: var(--font-color);
- }
- }
- }
- &_right {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 2rem;
- margin-left: 2rem;
- }
- }
- main {
- display: flex;
- flex-direction: row;
- aside {
- width: 30%;
- margin-top: 2px;
- background-color: var(--primary-color)
- }
- }
- }
- li {
- list-style-type: none;
- }
- .RootCategories {
- display: block;
- background-color: var(--primary-color);
- .sub-link {
- display: block;
- color: white;
- padding: 15px 20px;
- text-decoration: none;
- letter-spacing: .2rem;
- display: block;
- transition: .2s ease-in-out;
-
- &:hover {
- background-color: var(--primary-color);
- color: var(--font-color);
- border-bottom: 1px solid white;
- }
- }
- }
- .loginButtons {
- display: flex;
- flex-direction: column;
- .btn {
- width: 100%;
- background-color: var(--primary-color);
- border: none;
- color: white;
- padding: 15px 32px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- transition: .2s ease-in-out;
- cursor: pointer;
- letter-spacing: .2rem;
-
- &:hover {
- background-color: white;
- color: var(--font-color);
- }
- }
- }
- .LoginButtons {
- display: flex;
- flex: 1;
- flex-direction: column;
- .exit {
- display: flex;
- background-color: var(--primary-color);
- border: none;
- color: white;
- padding: 15px 32px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- letter-spacing: .2rem;
- transition: .2s ease-in-out;
- cursor: pointer;
-
- &:hover {
- background-color: white;
- color: var(--font-color);
- }
- }
- }
- .dropzone {
- display: flex;
- border: none;
- background-color: #fafafa;
- border: 1px dashed var(--primary-color);
- color: #bdbdbd;
- outline: none;
- transition: .24s ease-in-out;
- height: 3rem;
- text-align: center;
- align-items: center;
- transition: .2s ease-in-out;
-
- &:hover {
- border-width: 1px;
- border-radius: 2;
- border-style: dashed;
- border-color: var(--font-color);
- color: var(--primary-color);
- }
- }
- .popup {
- height: 100vh;
- width: 100%;
- position: fixed;
- top: 0;
- left: 0;
- background-color: rgba(black, .95);
- z-index: 9999;
- text-align: center;
- position: fixed;
- &_content {
- width: 30%;
- height: 25rem;
- box-shadow: var(--shadow-cool);
- border-radius: 1rem;
- background-color: rgba(240, 238, 238);
- padding: 2rem;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- transition: all .4s .2s;
- &-close {
- text-decoration: none;
- color: var(--primary-color);
- font-weight: bold;
- opacity: .7;
- position: absolute;
- top: 2rem;
- right: 2rem;
- font-size: 1rem;
- text-decoration: none;
- display: inline-block;
- transition: all .2s;
- line-height: 1;
- transition: .2s ease-in-out;
-
- &:hover {
- transform: scale(1.5);
- opacity: 1;
- color: var(--font-color);
- }
- }
- }
- &_label {
- color: var(--font-color);
- }
- &_loginForm {
- display: flex;
- flex-direction: column;
- align-items: center;
- &-input {
- @include input();
- }
- &-btn {
- @include btn();
- cursor: pointer;
- }
- }
- }
- .content {
- display: flex;
- flex: 70%;
- flex-direction: row;
- flex-wrap: wrap;
- .category {
- margin-top: 2px;
- margin-left: 1px;
-
- &-row {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .goodCard {
- @include card();
- &_title {
- display: flex;
- margin-bottom: 1rem;
- color: var(--primary-color);
- }
- &_cart {
- &-title {
- letter-spacing: .1rem;
- color: var(--primary-color);
- }
- &-price {
- display: flex
- }
- &-btns {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- margin: 1rem;
- &--btn {
- @include btn();
- margin-right: .1rem;
- }
- &--link {
- @include btn();
- }
- }
- }
- img {
- max-width: 50%;
- }
- &_img {
- display: flex;
- justify-content: center;
- }
- &_change {
- display: flex;
- flex-direction: column;
-
- textarea {
- @include textarea();
- }
- &-btn {
- @include btn();
- }
- }
- }
- }
-
- }
- .good {
- @include card();
- &_title {
- display: flex;
- padding-bottom: 1rem;
- color: var(--primary-color);
- }
- &_cart {
- &-price {
- display: flex
- }
- &-desc {
- font-size: 16px;
- text-indent: 50px;
- text-align: justify;
- letter-spacing: .1rem;
- }
- &-btns {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- &--btn {
- @include btn();
- margin-right: .1rem;
- }
- &--link {
- @include btn();
- }
- }
- }
- &_input {
- @include input();
- width: 100%;
- }
- &_delete {
- @include btn();
- }
- &_btns {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- &-btn {
- @include btn();
- margin-right: .1rem;
- &:hover {
- color: red;
- }
- }
- &-link {
- @include btn();
- }
- }
- }
- .cart {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .cartPage {
-
- width: 100%;
- &-btns {
- display: flex;
- flex-direction: row;
- &-btn {
- @include btn();
- }
- }
- }
- .order {
- @include card();
- height: 25rem;
- &_title {
- display: flex;
- padding-bottom: 1rem;
- color: var(--primary-color);
- }
- }
- .orderHistory {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- flex: 70%;
- }
- .subCats {
- display: flex;
- flex-direction: column;
- }
- .searchResult {
- display: flex;
- flex: 70%;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .adminPage {
- display: flex;
- flex: 70%;
- flex-direction: column;
- &_dashboard {
- &-title {
- letter-spacing: .2rem;
- margin-bottom: 1rem;
- color: var(--primary-color);
- }
- &-goodChange {
- @include card();
- select {
- @include select();
- margin-bottom: 1rem;
- }
- }
- &-createCat {
- @include card();
- input {
- @include textarea();
- margin-bottom: 1rem;
- }
- button {
- @include btn();
- margin-bottom: 1rem;
- }
- select {
- @include select();
- margin-bottom: 1rem;
- }
- }
- &-goodAdd {
- @include card();
- &--container {
- display: flex;
- flex-direction: column;
- textarea {
- @include textarea();
- width: 95%;
- }
- select {
- @include select();
- margin-bottom: 1rem
- }
- button {
- @include btn();
- }
- }
- }
- }
- }
- .search {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- &-input {
- border: 1px solid white;
- padding: .4rem 2rem;
- border-radius: 100px;
- width: 3rem;
- transition: all .2s;
- &:focus {
- outline: none;
- width: 10rem;
- }
- }
- }
- .cart {
- display: flex;
- flex-direction: row;
- align-items: center;
- &_counter {
- display: flex;
- flex-direction: row;
- align-items: center;
- text-decoration: none;
- color: white;
- transition: .2s ease-in-out;
-
- &:hover {
- color: var(--font-color);
- }
- &-icon {
- color: white;
- font-size: 1.4rem;
- margin-right: .5rem;
- transition: .2s ease-in-out;
-
- &:hover {
- color: var(--font-color);
- }
- }
- }
- }
|