| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680 |
- .admin-products
- padding: 20px
- background: #f8f9fa
- min-height: 100vh
- &__header
- display: flex
- justify-content: space-between
- align-items: center
- margin-bottom: 24px
- padding: 24px
- background: white
- border-radius: 8px
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1)
- &__title
- font-size: 24px
- font-weight: 600
- color: #1f2937
- margin: 0
- &__actions
- display: flex
- gap: 12px
- &__button
- padding: 10px 16px
- border: none
- border-radius: 6px
- font-size: 14px
- font-weight: 500
- cursor: pointer
- transition: all 0.2s ease
- text-decoration: none
- display: inline-flex
- align-items: center
- gap: 8px
- &--primary
- background: #3b82f6
- color: white
- &:hover
- background: #2563eb
- &--secondary
- background: #6b7280
- color: white
- &:hover
- background: #4b5563
- &--success
- background: #10b981
- color: white
- &:hover
- background: #059669
- &--warning
- background: #f59e0b
- color: white
- &:hover
- background: #d97706
- &--danger
- background: #ef4444
- color: white
- &:hover
- background: #dc2626
- &:disabled
- opacity: 0.6
- cursor: not-allowed
- &__filters
- display: flex
- gap: 16px
- margin-bottom: 24px
- padding: 20px
- background: white
- border-radius: 8px
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1)
- &__search
- flex: 1
- &-input
- width: 100%
- padding: 10px 12px
- border: 1px solid #d1d5db
- border-radius: 6px
- font-size: 14px
- transition: border-color 0.2s ease
- &:focus
- outline: none
- border-color: #3b82f6
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1)
- &__filter-group
- display: flex
- gap: 12px
- &__select
- padding: 10px 12px
- border: 1px solid #d1d5db
- border-radius: 6px
- font-size: 14px
- background: white
- cursor: pointer
- transition: border-color 0.2s ease
- &:focus
- outline: none
- border-color: #3b82f6
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1)
- &__content
- background: white
- border-radius: 8px
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1)
- overflow: hidden
- &__table-container
- overflow-x: auto
- &__table
- width: 100%
- border-collapse: collapse
- &__th
- padding: 16px
- text-align: left
- font-weight: 600
- color: #374151
- border-bottom: 1px solid #e5e7eb
- background: #f9fafb
- &--checkbox
- width: 40px
- &__tr
- border-bottom: 1px solid #e5e7eb
- transition: background-color 0.2s ease
- &:hover
- background: #f9fafb
- &--inactive
- opacity: 0.6
- &__td
- padding: 16px
- border-bottom: 1px solid #e5e7eb
- &--checkbox
- width: 40px
- &--sku
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace
- font-size: 12px
- color: #6b7280
- &--name
- font-weight: 500
- color: #1f2937
- &--price
- text-align: right
- &--actions
- display: flex
- gap: 8px
- &__checkbox
- width: 16px
- height: 16px
- cursor: pointer
- &__old-price
- text-decoration: line-through
- color: #6b7280
- font-size: 12px
- margin-right: 8px
- &__current-price
- font-weight: 600
- color: #1f2937
- &__status
- padding: 4px 8px
- border-radius: 12px
- font-size: 12px
- font-weight: 500
- &--active
- background: #d1fae5
- color: #065f46
- &--inactive
- background: #fee2e2
- color: #991b1b
- &__action-button
- padding: 6px 12px
- border: none
- border-radius: 4px
- font-size: 12px
- font-weight: 500
- cursor: pointer
- transition: all 0.2s ease
- &--edit
- background: #dbeafe
- color: #1e40af
- &:hover
- background: #bfdbfe
- &--activate
- background: #d1fae5
- color: #065f46
- &:hover
- background: #a7f3d0
- &--deactivate
- background: #fef3c7
- color: #92400e
- &:hover
- background: #fde68a
- &__empty
- padding: 60px 20px
- text-align: center
- &-text
- color: #6b7280
- font-size: 16px
- margin: 0
- &__modal
- position: fixed
- top: 0
- left: 0
- right: 0
- bottom: 0
- background: rgba(0, 0, 0, 0.5)
- display: flex
- align-items: center
- justify-content: center
- z-index: 1000
- &__modal-content
- background: white
- border-radius: 8px
- width: 90%
- max-width: 600px
- max-height: 90vh
- overflow-y: auto
- &__modal-header
- display: flex
- justify-content: space-between
- align-items: center
- padding: 24px
- border-bottom: 1px solid #e5e7eb
- &__modal-title
- font-size: 20px
- font-weight: 600
- color: #1f2937
- margin: 0
- &__modal-close
- background: none
- border: none
- font-size: 24px
- cursor: pointer
- color: #6b7280
- padding: 0
- width: 30px
- height: 30px
- display: flex
- align-items: center
- justify-content: center
- &:hover
- color: #374151
- &__modal-body
- padding: 24px
- &__modal-footer
- display: flex
- justify-content: flex-end
- gap: 12px
- padding: 24px
- border-top: 1px solid #e5e7eb
- &__import-progress
- text-align: center
- &__progress-bar
- width: 100%
- height: 8px
- background: #e5e7eb
- border-radius: 4px
- overflow: hidden
- margin-bottom: 12px
- &__progress-fill
- height: 100%
- background: #3b82f6
- transition: width 0.3s ease
- &__progress-text
- color: #6b7280
- font-size: 14px
- margin: 0
- &__import-form
- text-align: center
- &__file-input
- width: 100%
- padding: 12px
- border: 2px dashed #d1d5db
- border-radius: 6px
- margin-bottom: 12px
- &:focus
- outline: none
- border-color: #3b82f6
- &__help-text
- color: #6b7280
- font-size: 14px
- margin: 0
- &__import-results
- margin-top: 20px
- &__result
- padding: 16px
- border-radius: 6px
- &--success
- background: #d1fae5
- border: 1px solid #a7f3d0
- &--error
- background: #fee2e2
- border: 1px solid #fecaca
- h3
- margin: 0 0 8px 0
- font-size: 16px
- font-weight: 600
- p
- margin: 0 0 8px 0
- font-size: 14px
- ul
- margin: 8px 0 0 0
- padding-left: 20px
- li
- font-size: 12px
- color: #6b7280
- &__mass-actions
- display: grid
- grid-template-columns: 1fr 1fr
- gap: 12px
- // Адаптивные стили
- @media (max-width: 768px)
- .admin-products
- padding: 12px
- &__header
- flex-direction: column
- gap: 16px
- align-items: stretch
- &__actions
- flex-wrap: wrap
- justify-content: center
- &__filters
- flex-direction: column
- &__filter-group
- flex-direction: column
- &__td--actions
- flex-direction: column
- &__mass-actions
- grid-template-columns: 1fr
- &__modal-content
- width: 95%
- margin: 20px
- &__modal-footer
- flex-direction: column
- // ... предыдущие стилы остаются без изменений ...
- // Стили для формы редактирования
- .admin-products
- &__modal-content--large
- max-width: 800px
- &__form
- display: flex
- flex-direction: column
- gap: 16px
- &__form-row
- display: grid
- grid-template-columns: 1fr 1fr
- gap: 16px
- @media (max-width: 768px)
- grid-template-columns: 1fr
- &__form-group
- display: flex
- flex-direction: column
- gap: 8px
- &__label
- font-weight: 500
- color: #374151
- font-size: 14px
- &--checkbox
- display: flex
- align-items: center
- gap: 8px
- cursor: pointer
- &__input
- padding: 10px 12px
- border: 1px solid #d1d5db
- border-radius: 6px
- font-size: 14px
- transition: border-color 0.2s ease
- &:focus
- outline: none
- border-color: #3b82f6
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1)
- &__textarea
- padding: 10px 12px
- border: 1px solid #d1d5db
- border-radius: 6px
- font-size: 14px
- resize: vertical
- min-height: 80px
- transition: border-color 0.2s ease
- &:focus
- outline: none
- border-color: #3b82f6
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1)
- // Стили для загрузки изображений
- &__image-upload
- display: flex
- flex-direction: column
- gap: 12px
- &__image-preview
- display: flex
- align-items: center
- gap: 12px
- padding: 12px
- border: 1px solid #e5e7eb
- border-radius: 6px
- background: #f9fafb
- &__preview-img
- width: 60px
- height: 60px
- object-fit: cover
- border-radius: 4px
- &__image-info
- color: #6b7280
- font-size: 14px
- &__upload-controls
- display: flex
- gap: 8px
- @media (max-width: 768px)
- flex-direction: column
- &__additional-images
- display: grid
- grid-template-columns: repeat(auto-fill, minmax(80px, 1fr))
- gap: 8px
- margin-bottom: 12px
- &__additional-image
- position: relative
- width: 80px
- height: 80px
- &__image-remove
- position: absolute
- top: -8px
- right: -8px
- width: 24px
- height: 24px
- background: #ef4444
- color: white
- border: none
- border-radius: 50%
- cursor: pointer
- display: flex
- align-items: center
- justify-content: center
- font-size: 14px
- line-height: 1
- &:hover
- background: #dc2626
- // ... предыдущие стили остаются без изменений ...
- // Стили для управления атрибутами
- .admin-products
- &__attributes
- display: flex
- flex-direction: column
- gap: 8px
- margin-bottom: 12px
- &__attribute
- display: flex
- align-items: center
- gap: 8px
- padding: 8px
- border: 1px solid #e5e7eb
- border-radius: 4px
- background: #f9fafb
- &__attribute-key
- flex: 1
- font-weight: 500
- color: #374151
- font-size: 14px
- &__input--small
- flex: 2
- padding: 6px 8px
- font-size: 13px
- &__attribute-remove
- width: 24px
- height: 24px
- background: #ef4444
- color: white
- border: none
- border-radius: 4px
- cursor: pointer
- display: flex
- align-items: center
- justify-content: center
- font-size: 14px
- line-height: 1
- &:hover
- background: #dc2626
- &__attribute-add
- display: flex
- gap: 8px
- align-items: center
- @media (max-width: 768px)
- flex-direction: column
- // Стили для управления тегами
- .admin-products
- &__tags
- display: flex
- flex-wrap: wrap
- gap: 6px
- margin-bottom: 12px
- &__tag
- display: inline-flex
- align-items: center
- gap: 4px
- padding: 4px 8px
- background: #dbeafe
- color: #1e40af
- border-radius: 12px
- font-size: 12px
- font-weight: 500
- &__tag-remove
- width: 16px
- height: 16px
- background: #93c5fd
- color: #1e40af
- border: none
- border-radius: 50%
- cursor: pointer
- display: flex
- align-items: center
- justify-content: center
- font-size: 10px
- line-height: 1
- &:hover
- background: #60a5fa
- &__tag-add
- display: flex
- gap: 8px
- align-items: center
- @media (max-width: 768px)
- flex-direction: column
- // Стили для управления категориями
- .admin-products
- &__categories-header
- margin-bottom: 16px
- &__categories-list
- display: flex
- flex-direction: column
- gap: 8px
- &__category-item
- display: flex
- justify-content: space-between
- align-items: center
- padding: 12px
- border: 1px solid #e5e7eb
- border-radius: 6px
- background: white
- @media (max-width: 768px)
- flex-direction: column
- align-items: stretch
- gap: 8px
- &__category-info
- flex: 1
- &__category-name
- font-weight: 500
- color: #1f2937
- margin-bottom: 4px
- &__category-meta
- display: flex
- gap: 12px
- font-size: 12px
- color: #6b7280
- &__category-actions
- display: flex
- gap: 8px
- @media (max-width: 768px)
- justify-content: flex-end
|