-
Notifications
You must be signed in to change notification settings - Fork 0
Dev js #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Dev js #1
Changes from all commits
a3d21b1
1a83e88
e7f4f6a
0d629f5
adb1a35
507716f
84d5a12
8f8286b
5f0e896
472bc5d
4cfd73c
aee6a5a
08e14d6
4ccb95b
402903e
9275aef
3c3e4d5
8023186
ec7dc57
26e22b9
57fa41b
284c364
08f3676
c0cda05
ad10bab
67e4f10
14f2c78
59482cf
41fdb4b
75d08ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "plugins": [ | ||
| [ | ||
| "@babel/plugin-transform-runtime", | ||
| { | ||
| "corejs": 2 | ||
| } | ||
| ] | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| /node_modules | ||
| /dist | ||
|
|
||
| notes.txt | ||
| yarn-error.log | ||
| .idea | ||
| .cache | ||
| .DS_Store | ||
|
|
||
| js/dev/hhApiAreas.json | ||
| .vscode/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,44 @@ | ||
| .form { | ||
| background-color: @color-light; | ||
| position: relative; | ||
|
|
||
| @media @screen-gt-s { | ||
| margin: 5px auto; | ||
| max-width: 768px; | ||
| } | ||
|
|
||
| @media @screen-gt-m { | ||
| max-width: 1010px; | ||
| } | ||
|
|
||
| &__heading { | ||
| margin-top: 20px; | ||
| text-align: left; | ||
| } | ||
|
|
||
| &__input-text { | ||
| position: relative; | ||
| margin: 10px 0; | ||
| } | ||
|
|
||
| &__input-tel { | ||
| display: flex; | ||
| margin-top: 5px; | ||
| position: relative; | ||
| } | ||
|
|
||
| &__delivery-method { | ||
| display: flex; | ||
| } | ||
|
|
||
| &__delivery-address { | ||
| &_hide { | ||
| display: none; | ||
| } | ||
| } | ||
|
|
||
| &__textarea { | ||
| position: relative; | ||
| margin-top: 10px; | ||
| } | ||
|
|
||
|
|
@@ -59,21 +78,38 @@ | |
| } | ||
| } | ||
|
|
||
| .form-pug { | ||
| /* Заглушка, будет popup */ | ||
| width: 290px; | ||
| height: 450px; | ||
| background-color: black; | ||
| opacity: 0.1; | ||
| font-size: 50px; | ||
| float: right; | ||
| margin-top: 136px; | ||
| color: white; | ||
| justify-content: center; | ||
| align-items: center; | ||
| display: none; | ||
| .orderForm { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. где-то стили в-таком-стиле-описаны, где-то вСовершенноДругом. Лучше держать единый стиль, так как это структурирует код прививает его единое восприятие
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. У меня часть блоков "осталась" от Леонида Феськова. Посыл понял. |
||
| position: absolute; | ||
| top: 0; | ||
| z-index: 100; | ||
| overflow: hidden; | ||
| opacity: 0; | ||
| transition: all 300ms linear; | ||
| width: 100%; | ||
| background-color: rgba(0, 0, 0, 0.5); | ||
|
|
||
| @media @screen-gt-s { | ||
| display: flex; | ||
| &_active { | ||
| opacity: 1; | ||
| } | ||
| } | ||
|
|
||
| .form-error-block { | ||
| display: block; | ||
| position: absolute; | ||
| top: 0; | ||
| left: 0; | ||
| padding: 5px 10px 5px 5px; | ||
| margin: 0; | ||
| color: @color-dark; | ||
| background-color: @color-light; | ||
| border: 1px solid @color-light-grey; | ||
| box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5); | ||
| z-index: 1000; | ||
| box-sizing: border-box; | ||
| font: 14px/ (@control-height - 18px) Arial, sans-serif; | ||
| text-align: left; | ||
|
|
||
| &__item { | ||
| list-style: none; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,8 @@ | |
|
|
||
| .label { | ||
| .label-default(); | ||
|
|
||
| &_disabled { | ||
| opacity: 0.7; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,6 @@ | ||
| .select { | ||
| position: relative; | ||
|
|
||
| &__select-field { | ||
| width: 100%; | ||
| height: @control-height; | ||
| display: inline-block; | ||
| box-sizing: border-box; | ||
| background-color: @color-light-1; | ||
| padding: 9px 10px; | ||
| border: 1px solid #c5c9ca; | ||
| font: 14px/ (@control-height - 18px) Arial, sans-serif; | ||
| color: @color-dark-1; | ||
| -webkit-appearance: none; | ||
| -moz-appearance: none; | ||
| appearance: none; | ||
|
|
||
| &:hover { | ||
| cursor: pointer; | ||
| } | ||
| } | ||
|
|
||
| &:before { | ||
| content: ""; | ||
| position: absolute; | ||
|
|
@@ -41,9 +22,46 @@ | |
| border-width: 5px 5px 0 5px; | ||
| border-color: #c5c9ca transparent transparent transparent; | ||
| position: absolute; | ||
| top: 50%; | ||
| top: 45%; | ||
| right: 10px; | ||
| z-index: 1; | ||
| pointer-events: none; | ||
| } | ||
| } | ||
|
|
||
| .select_active { | ||
| &:after { | ||
| transform: matrix(1, 0, 0, -1, 0, 0); | ||
| } | ||
| } | ||
|
|
||
| .select_active > .input-select { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. В БЭМ не рекомендуется модифицировать один блок через другой |
||
| background-color: @color-grey; | ||
| } | ||
|
|
||
| .options-container { | ||
| position: absolute; | ||
| padding: 23px 0px; | ||
| height: 290px; | ||
| width: 100%; | ||
| background-color: @color-light; | ||
| z-index: 1000; | ||
| box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2); | ||
| overflow: hidden; | ||
| box-sizing: border-box; | ||
|
|
||
| &__item { | ||
| padding: 11px 12px; | ||
| height: 38px; | ||
| line-height: 16px; | ||
| box-sizing: border-box; | ||
| font-size: 14px; | ||
| display: block; | ||
|
|
||
| &:hover { | ||
| background-color: @color-primary; | ||
| color: white; | ||
| cursor: pointer; | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Заметки по недоработкам визуальным:
Сейчас, если выбрать один товар, потом кликнуть на другой — на другом выпадашка не появится, пока не исчезнет предыдущая. поэтому приходится кликать дважды.
У тебя не убрано базовое поведение селекта (выбора города) — за счет чего на айфоне выбрать город практически нельзя.
Было бы хорошо для формы иметь поддержку клавиатуры (например в том же селекте выбор сделать возможным с помощью клавиатуры)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
При ресайзе выпадашка "едет"

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
При скролле также элемент не остается на выбранном месте, а бегает за тобой, что не очень вписывается в макет
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сейчас не очень понятна какая ошибка — лучше сообщать это пользователю хоть как-то
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По пунктам:
При resize в границе Mobile - динамически меняется положение.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
попап лучше держать с описанием ошибки до момента, пока пользователь не поставит фокус на поле или уйдет с него. Иначе получается как на скриншоте.
Если вызвать селект и убрать с поля фокус, лучше, чтобы выпадашка пропадала. Иначе она загораживает пространство и мешает работать с сайтом
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А зачем при самовывозе адрес? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пока ситуация с resize еще не решилась

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.