Skip to content

feat(Notifications): Check & Fix bugs | JIRA: PT-86 #46

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

Merged
merged 1 commit into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions src/assets/css/form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
body {
.el-form.el-form--default {
@apply flex flex-col items-center;
}

.el-form-item {
@apply shadow rounded overflow-hidden;
}

.form-icon {
@apply bg-white w-15/100;
}

// Input
.el-form-item.el-form-item--default.form-input {
@apply w-full;
}
.el-input.el-input--default .el-input__inner {
@apply rounded-none bg-el-form-input p-0 focus:text-slate-400 focus:font-normal text-slate-400 font-normal focus:ring-0 focus:bg-white #{!important};
}
.el-input.el-input--default {
@apply w-85/100;
}
.el-form-item.checkbox {
@apply self-start shadow-none #{!important};
}

// Checkbox
.el-checkbox__inner {
@apply rounded shadow h-4 w-4 #{!important};
}
.el-checkbox__label {
@apply text-mess-box-text font-normal focus:border-transparent hover:border-transparent;
}
.el-checkbox.el-checkbox--default .el-checkbox__inner {
@apply hover:border-transparent;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
@apply bg-primary-blue;
}
.el-checkbox__input.is-checked + .el-checkbox__label {
@apply text-slate-400;
}
}
38 changes: 4 additions & 34 deletions src/assets/css/notifications.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ body {
}

// Modals - Form
.el-dialog__body .el-icon {
@apply text-base #{!important};
}

.open-form .el-dialog__header {
@apply hidden;
Expand Down Expand Up @@ -197,43 +200,10 @@ body {
.btn span {
@apply font-semibold text-left-bar-indigo hover:text-black;
}
.el-form.el-form--default {
@apply flex flex-col items-center;
}
.el-dialog__body .el-icon {
@apply text-base #{!important};
}
.form-icon {
@apply bg-white py-2.5 px-3 h-11 w-15/100;
}
.el-input .el-input__inner {
@apply h-11 rounded-none w-full bg-el-form-input;
}
.el-input.el-input--default {
@apply w-85/100;
}
.el-form-item__content {
@apply rounded-md overflow-hidden;
}
.form-input {
@apply rounded-md shadow;
}
.checkbox {
@apply self-start;
}
.el-checkbox__inner {
@apply rounded shadow h-4 w-4 outline-none #{!important};
}
.el-checkbox__label {
@apply text-mess-box-text font-normal focus:border-transparent hover:border-transparent;
}
.el-form-item.el-form-item--default.form-input {
@apply w-full;
}

// Responsive
.el-dialog {
@apply w-97/100 sm:w-8/12 md:w-7/12 lg:w-6/12 xl:w-5/12 rounded-md;
@apply w-97/100 sm:w-8/12 md:w-7/12 lg:w-6/12 xl:w-4/12 rounded-md;
}
.open-form {
@apply rounded-md bg-mess-box-bg w-97/100 md:w-96 #{!important};
Expand Down
1 change: 1 addition & 0 deletions src/components/element-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'assets/css/typography.scss'
import 'assets/css/el-popper.scss'
import 'assets/css/el-breadcrumb.scss'
import 'assets/css/notifications.scss'
import 'assets/css/form.scss'

import 'assets/css/el-pagination.scss'
import 'assets/css/el-table.scss'
Expand Down
6 changes: 3 additions & 3 deletions src/modules/notification/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<h3 class="text-md">Modals</h3>
</div>

<div class="p-5 grid grid-cols-1 lg:grid-cols-3 lg:gap-6">
<div class="p-5 grid grid-cols-1 md:grid-cols-3 md:gap-6 lg:grid-cols-3 lg:gap-6">
<!-- Modals - Default -->
<div class="w-full mb-4">
<el-button type="primary" size="large" class="w-full" text @click="openDefault = true"
Expand Down Expand Up @@ -119,7 +119,7 @@
<component :is="form.MailIcon" />
</el-icon>
</div>
<el-input />
<el-input v-model="form.email" />
</el-form-item>
<!-- Password -->
<el-form-item class="form-input" prop="LockClosedIcon">
Expand All @@ -128,7 +128,7 @@
<component :is="form.LockClosedIcon" />
</el-icon>
</div>
<el-input />
<el-input v-model="form.password" />
</el-form-item>
<!-- Checkbox -->
<el-form-item class="checkbox">
Expand Down