@tripup-company/element-ui-extended 0.0.52 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import "./styles/index.scss";
1
2
  export { default as CompositeTable } from "./components/CompositeTable/index.vue";
2
3
  export { default as GenericFilters } from "./components/GenericFilters/index.vue";
3
4
  export { default as FilterRow } from "./components/GenericFilters/FilterRow.vue";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,M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S,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Meta } from "../types/meta";
1
+ import { Meta } from "@/types/meta";
2
2
  import BaseModel from "./base-model";
3
- import { Pagination } from "../types/pagination";
3
+ import { Pagination } from "@/types/pagination";
4
4
  export default class MetaModel extends BaseModel implements Meta {
5
5
  include: [];
6
6
  custom: [];
@@ -1 +1 @@
1
- {"version":3,"file":"meta-model.d.ts","sourceRoot":"","sources":["../../../src/models/meta-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAU,YAAW,IAAI;IAC9D,OAAO,EAAE,EAAE,CAAC;IACZ,MAAM,EAAE,EAAE,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;gBAEX,IAAI,QAAK;CAGtB"}
1
+ {"version":3,"file":"meta-model.d.ts","sourceRoot":"","sources":["../../../src/models/meta-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAU,YAAW,IAAI;IAC9D,OAAO,EAAE,EAAE,CAAC;IACZ,MAAM,EAAE,EAAE,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;gBAEX,IAAI,QAAK;CAGtB"}
@@ -1,7 +1,7 @@
1
1
  import { Write } from "./contracts/write";
2
2
  import { Read } from "./contracts/read";
3
- import { Collection } from "../types/collection";
4
- import { AxiosInstance } from "../types/axiosInterface";
3
+ import { Collection } from "@/types/collection";
4
+ import { AxiosInstance } from "@/types/axiosInterface";
5
5
  export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
6
6
  protected baseUrl: string;
7
7
  protected request: AxiosInstance;
@@ -1 +1 @@
1
- {"version":3,"file":"base-repository.d.ts","sourceRoot":"","sources":["../../../src/repositories/base-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAc,CAAC,CAAC,CAAE,YAAW,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1E,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;gBAErB,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;IAKrE,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC;IAIrB,iBAAiB,CAAC,IAAI,E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AAG,OAAO,CAAC,CAAC,CAAC;IAc3B,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,SAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IAgBvD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAepC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,SAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IAe/C,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,SAAO,EAAE,MAAM,SAAK,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CAexE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripup-company/element-ui-extended",
3
- "version": "0.0.52",
3
+ "version": "0.0.55",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve && tsc --emitDeclarationOnly",
@@ -57,8 +57,7 @@
57
57
  "src/repositories/*",
58
58
  "src/lang/*",
59
59
  "src/types/*",
60
- "src/filters.js",
61
- "src/filters-top.js"
60
+ "src/styles/*"
62
61
  ],
63
62
  "typings": "./dist/src/index.d.ts",
64
63
  "description": "## Project setup ``` npm install ```",
@@ -62,14 +62,14 @@
62
62
 
63
63
  <script>
64
64
  import Vue from "vue";
65
- import GenericFilter from "../GenericFilters/index";
66
- import GenericPaginator from "../GenericPaginator";
65
+ import GenericFilter from "@/components/GenericFilters/index";
66
+ import GenericPaginator from "@/components/GenericPaginator";
67
67
  import GenericTable from "@/components/GenericTable";
68
68
  import ListQueryService from "@/services/list-query-service";
69
69
  import LocalStorageService from "@/services/local-storage-service";
70
70
  import MetaModel from "@/models/meta-model";
71
71
  import QuickSearchFilter from "@/components/GenericFilters/QuickSearchFilter";
72
- import FilterConverter from "../GenericFilters/filter-convertor";
72
+ import FilterConverter from "@/components/GenericFilters/filter-convertor";
73
73
  export default {
74
74
  components: {
75
75
  QuickSearchFilter,
@@ -41,8 +41,8 @@
41
41
 
42
42
  <script>
43
43
  import getResolution from "@/services/resolutions";
44
- import NewColumn from "../PartColumn/NewColumn";
45
- import BaseModel from '../../models/base-model';
44
+ import NewColumn from "@/components/PartColumn/NewColumn";
45
+ import BaseModel from '@/models/base-model';
46
46
  export default {
47
47
  name: "CreateForm",
48
48
  components: { NewColumn },
@@ -34,8 +34,8 @@
34
34
  <script>
35
35
 
36
36
  import Vue from 'vue';
37
- import getResolution from '../../services/resolutions';
38
- import NewField from '../NewField';
37
+ import getResolution from "@/services/resolutions";
38
+ import NewField from "@/components/NewField";
39
39
  import lodash from "lodash";
40
40
  const _ = lodash;
41
41
  export default {
@@ -12,23 +12,23 @@
12
12
  </el-row>
13
13
  </template>
14
14
  <script>
15
- import getResolution from '../../services/resolutions';
15
+ import getResolution from "@/services/resolutions";
16
16
 
17
17
  export default {
18
- name: 'PartForm',
18
+ name: "PartForm",
19
19
  props: {
20
20
  header: {
21
21
  type: String,
22
- default: '',
22
+ default: "",
23
23
  },
24
24
  bodyStyle: {
25
25
  type: String,
26
- default: '',
26
+ default: "",
27
27
  },
28
28
  rowResolution: {
29
29
  type: Object,
30
- default: function() {
31
- return getResolution('fullFromSm');
30
+ default: function () {
31
+ return getResolution("fullFromSm");
32
32
  },
33
33
  },
34
34
  },
@@ -10,18 +10,21 @@
10
10
  <el-card class="m-b-20" shadow="always">
11
11
  <div slot="header" class="clearfix">
12
12
  <el-row type="flex" justify="space-between">
13
- <el-col class="flex align-center justify-start" :span="6">
14
- <h3 class="m-b-0">{{ formLocal.object }} view</h3>
15
- </el-col>
16
- <el-col class="flex align-center justify-end is-justify-end el-row--flex" :span="6">
17
- <slot name="actions" />
18
- <el-button
13
+ <el-col class="flex align-center justify-start" :span="6">
14
+ <h3 class="m-b-0">{{ formLocal.object }} view</h3>
15
+ </el-col>
16
+ <el-col
17
+ class="flex align-center justify-end is-justify-end el-row--flex"
18
+ :span="6"
19
+ >
20
+ <slot name="actions" />
21
+ <el-button
19
22
  class="delete-icon pull-right"
20
23
  icon="el-icon-delete"
21
24
  size="mini"
22
25
  @click="deleteModel"
23
- />
24
- </el-col>
26
+ />
27
+ </el-col>
25
28
  </el-row>
26
29
  </div>
27
30
  <el-row :gutter="20">
@@ -47,17 +50,17 @@
47
50
  </template>
48
51
 
49
52
  <script>
50
- import getResolution from '../../services/resolutions';
51
- import BaseModel from '../../models/base-model';
52
- import PartForm from '../PartForm';
53
- import EditColumn from '../PartColumn/EditColumn';
53
+ import getResolution from "@/services/resolutions";
54
+ import BaseModel from "@/models/base-model";
55
+ import PartForm from "@/components/PartForm";
56
+ import EditColumn from "@/components/PartColumn/EditColumn";
54
57
 
55
58
  export default {
56
- name: 'UpdateForm',
59
+ name: "UpdateForm",
57
60
  components: { PartForm, EditColumn },
58
61
  provide() {
59
62
  const data = {};
60
- ['loading'].forEach((key) => {
63
+ ["loading"].forEach((key) => {
61
64
  Object.defineProperty(data, key, {
62
65
  enumerable: true,
63
66
  get: () => this[key],
@@ -79,7 +82,7 @@ export default {
79
82
  default: () => {
80
83
  return {
81
84
  rules: null,
82
- }
85
+ };
83
86
  },
84
87
  },
85
88
  errors: {
@@ -91,7 +94,7 @@ export default {
91
94
  },
92
95
  data() {
93
96
  return {
94
- colResolutionLg: getResolution('fullResolution'),
97
+ colResolutionLg: getResolution("fullResolution"),
95
98
  };
96
99
  },
97
100
  computed: {
@@ -100,38 +103,40 @@ export default {
100
103
  return this.form;
101
104
  },
102
105
  set(value) {
103
- this.$emit('update:form', this.form);
106
+ this.$emit("update:form", this.form);
104
107
  },
105
108
  },
106
109
  },
107
110
  methods: {
108
111
  updateValue(data) {
109
- this.$refs['form'].validateField(data.field, (invalid) => {
112
+ this.$refs["form"].validateField(data.field, (invalid) => {
110
113
  if (!invalid) {
111
- this.$refs['form'].clearValidate();
112
- this.$emit('save:value', data);
114
+ this.$refs["form"].clearValidate();
115
+ this.$emit("save:value", data);
113
116
  } else {
114
- this.$message.error('Validation error');
117
+ this.$message.error("Validation error");
115
118
  }
116
119
  });
117
120
  },
118
- deleteModel(){
119
- this.$confirm('This will permanently delete data. Continue?', 'Warning', {
120
- confirmButtonText: 'OK',
121
- cancelButtonText: 'Cancel',
122
- type: 'warning',
123
- }).then(() => {
124
- this.$message({
125
- type: 'success',
126
- message: 'Delete completed',
127
- });
128
- this.$emit('delete:model');
129
- }).catch(() => {
130
- this.$message({
131
- type: 'info',
132
- message: 'Delete canceled',
121
+ deleteModel() {
122
+ this.$confirm("This will permanently delete data. Continue?", "Warning", {
123
+ confirmButtonText: "OK",
124
+ cancelButtonText: "Cancel",
125
+ type: "warning",
126
+ })
127
+ .then(() => {
128
+ this.$message({
129
+ type: "success",
130
+ message: "Delete completed",
131
+ });
132
+ this.$emit("delete:model");
133
+ })
134
+ .catch(() => {
135
+ this.$message({
136
+ type: "info",
137
+ message: "Delete canceled",
138
+ });
133
139
  });
134
- });
135
140
  },
136
141
  },
137
142
  };
@@ -1,6 +1,6 @@
1
- import { Meta } from "../types/meta";
1
+ import { Meta } from "@/types/meta";
2
2
  import BaseModel from "./base-model";
3
- import { Pagination } from "../types/pagination";
3
+ import { Pagination } from "@/types/pagination";
4
4
 
5
5
  export default class MetaModel extends BaseModel implements Meta {
6
6
  include: [];
@@ -1,8 +1,8 @@
1
1
  import { Write } from "./contracts/write";
2
2
  import { Read } from "./contracts/read";
3
- import { Collection } from "../types/collection";
3
+ import { Collection } from "@/types/collection";
4
4
 
5
- import { AxiosInstance } from "../types/axiosInterface";
5
+ import { AxiosInstance } from "@/types/axiosInterface";
6
6
 
7
7
  export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
8
8
  protected baseUrl: string;
@@ -28,7 +28,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
28
28
 
29
29
  create(item: T): Promise<T> {
30
30
  return new Promise<T>((resolve, reject) => {
31
- this.request.$request({
31
+ this.request.request({
32
32
  url: this.baseUrl,
33
33
  method: 'post',
34
34
  data: item,
@@ -42,7 +42,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
42
42
 
43
43
  update(id: string, item: T, include = "--"): Promise<T> {
44
44
  return new Promise<T>((resolve, reject) => {
45
- this.request.$request({
45
+ this.request.request({
46
46
  url: this.baseUrl + "/" + id + "?include=" + include,
47
47
  method: "patch",
48
48
  data: item,
@@ -58,7 +58,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
58
58
 
59
59
  delete(id: string): Promise<boolean> {
60
60
  return new Promise<boolean>((resolve, reject) => {
61
- this.request.$request({
61
+ this.request.request({
62
62
  url: this.baseUrl + "/" + id,
63
63
  method: "delete",
64
64
  })
@@ -73,7 +73,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
73
73
 
74
74
  findOne(id: string, include = "--"): Promise<T> {
75
75
  return new Promise<T>((resolve, reject) => {
76
- this.request.$request({
76
+ this.request.request({
77
77
  url: this.baseUrl + "/" + id + "?include=" + include,
78
78
  method: "get",
79
79
  })
@@ -88,7 +88,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
88
88
 
89
89
  all(query: string, include = "--", filter = ""): Promise<Collection<T>> {
90
90
  return new Promise<Collection<T>>((resolve, reject) => {
91
- this.request.$request({
91
+ this.request.request({
92
92
  url: this.baseUrl + "?include=" + include + (filter === "" ? '' : ('&selectFilter=' + filter)),
93
93
  method: "get",
94
94
  params: query,
@@ -0,0 +1,74 @@
1
+ .editable-cell {
2
+ .el-input {
3
+ &__suffix {
4
+ right: 63px;
5
+ }
6
+ }
7
+ &__input {
8
+ float: left;
9
+ margin-right: 5px;
10
+ }
11
+
12
+ &__actions {
13
+ position: absolute;
14
+ z-index: 1000;
15
+ width: 60px;
16
+ right: 0;
17
+ top: 4px;
18
+ }
19
+
20
+ &__editor {
21
+ .el-checkbox {
22
+ margin-left: 16px;
23
+ }
24
+ }
25
+ &__text {
26
+ overflow: auto;
27
+ border: 1px solid transparent;
28
+ -webkit-appearance: none;
29
+ background-color: #FFFFFF;
30
+ color: #606266;
31
+ display: inline-block;
32
+ font-size: inherit;
33
+ max-height: 102px;
34
+ line-height: 34px;
35
+ outline: none;
36
+ padding: 0 15px;
37
+ width: 100%;
38
+
39
+ .edit-icon {
40
+ visibility: hidden;
41
+ margin: 3px 3px 3px 0;
42
+ position: absolute;
43
+ right: 0;
44
+ }
45
+
46
+ &__slot {
47
+ height: 34px;
48
+ }
49
+
50
+
51
+
52
+ &:hover {
53
+ background-color: #f5f7fa;
54
+ background-image: none;
55
+ border-radius: 4px;
56
+ border: 1px solid #DCDFE6;
57
+ box-sizing: border-box;
58
+
59
+ .edit-icon {
60
+ visibility: visible;
61
+ margin: 3px 3px 3px 0;
62
+ position: absolute;
63
+ right: 0;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ .editable-cell.new-field {
69
+ .el-input {
70
+ &__suffix {
71
+ right: 3px;
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,218 @@
1
+ @import "variables";
2
+ @import 'spacing';
3
+ @import 'editable-field-component';
4
+
5
+ body {
6
+ height: 100%;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ -webkit-font-smoothing: antialiased;
9
+ text-rendering: optimizeLegibility;
10
+ font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
11
+ }
12
+
13
+ label {
14
+ font-weight: 700;
15
+ }
16
+
17
+ html {
18
+ height: 100%;
19
+ box-sizing: border-box;
20
+ }
21
+
22
+ #app {
23
+ height: 100%;
24
+ }
25
+
26
+ *,
27
+ *:before,
28
+ *:after {
29
+ box-sizing: inherit;
30
+ }
31
+
32
+ .no-padding {
33
+ padding: 0px !important;
34
+ }
35
+
36
+ .padding-content {
37
+ padding: 4px 0;
38
+ }
39
+
40
+ a:focus,
41
+ a:active {
42
+ outline: none;
43
+ }
44
+
45
+ a,
46
+ a:focus,
47
+ a:hover {
48
+ cursor: pointer;
49
+ color: inherit;
50
+ text-decoration: none;
51
+ }
52
+
53
+ div:focus {
54
+ outline: none;
55
+ }
56
+
57
+ .fr {
58
+ float: right;
59
+ }
60
+
61
+ .fl {
62
+ float: left;
63
+ }
64
+
65
+ .pr-5 {
66
+ padding-right: 5px;
67
+ }
68
+
69
+ .pl-5 {
70
+ padding-left: 5px;
71
+ }
72
+
73
+ .block {
74
+ display: block;
75
+ }
76
+
77
+ .pointer {
78
+ cursor: pointer;
79
+ }
80
+
81
+ .inlineBlock {
82
+ display: block;
83
+ }
84
+
85
+ .clearfix {
86
+ &:after {
87
+ visibility: hidden;
88
+ display: block;
89
+ font-size: 0;
90
+ content: " ";
91
+ clear: both;
92
+ height: 0;
93
+ }
94
+ }
95
+
96
+ code {
97
+ background: #eef1f6;
98
+ padding: 15px 16px;
99
+ margin-bottom: 20px;
100
+ display: block;
101
+ line-height: 36px;
102
+ font-size: 15px;
103
+ font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
104
+
105
+ a {
106
+ color: #337ab7;
107
+ cursor: pointer;
108
+
109
+ &:hover {
110
+ color: rgb(32, 160, 255);
111
+ }
112
+ }
113
+ }
114
+
115
+ .warn-content {
116
+ background: rgba(66, 185, 131, .1);
117
+ border-radius: 2px;
118
+ padding: 1rem;
119
+ line-height: 1.6rem;
120
+ word-spacing: .05rem;
121
+
122
+ a {
123
+ color: #42b983;
124
+ font-weight: 600;
125
+ }
126
+ }
127
+ @media (min-width: $sm){
128
+ .app-container {
129
+ padding: 20px;
130
+ }
131
+ }
132
+
133
+ .components-container {
134
+ margin: 30px 50px;
135
+ position: relative;
136
+ }
137
+
138
+ .pagination-container {
139
+ margin-top: 30px;
140
+ }
141
+
142
+ .text-center {
143
+ text-align: center
144
+ }
145
+
146
+ .sub-navbar {
147
+ height: 50px;
148
+ line-height: 50px;
149
+ position: relative;
150
+ width: 100%;
151
+ text-align: right;
152
+ padding-right: 20px;
153
+ transition: 600ms ease position;
154
+ background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
155
+
156
+ .subtitle {
157
+ font-size: 20px;
158
+ color: #fff;
159
+ }
160
+
161
+ &.draft {
162
+ background: #d0d0d0;
163
+ }
164
+
165
+ &.deleted {
166
+ background: #d0d0d0;
167
+ }
168
+ }
169
+
170
+ .link-type,
171
+ .link-type:focus {
172
+ color: #337ab7;
173
+ cursor: pointer;
174
+
175
+ &:hover {
176
+ color: rgb(32, 160, 255);
177
+ }
178
+ }
179
+
180
+ .filter-container {
181
+ padding-bottom: 10px;
182
+
183
+ .filter-item {
184
+ display: inline-block;
185
+ vertical-align: middle;
186
+ margin-bottom: 10px;
187
+ }
188
+ }
189
+
190
+ //refine vue-multiselect plugin
191
+ .multiselect {
192
+ line-height: 16px;
193
+ }
194
+
195
+ .multiselect--active {
196
+ z-index: 1000 !important;
197
+ }
198
+ .el-date-transparent {
199
+ margin-left: -15px;
200
+ input {
201
+ border: none !important;
202
+ background: transparent !important;
203
+ }
204
+ }
205
+
206
+ #app .hideSidebar .nav-icon {
207
+ margin-left: 20px;
208
+ }
209
+
210
+ .form-item-min-margin {
211
+ /*.el-form-item {
212
+ margin-bottom: 0px;
213
+ }*/
214
+ .el-textarea__inner {
215
+ line-height: 36px;
216
+ margin-bottom: 10px;
217
+ }
218
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
3
+ It will generate several classes such as:
4
+ .m-r-10 which gives margin-right 10 pixels.
5
+ .m-r-15 gives MARGIN to the RIGHT 15 pixels.
6
+ .m-t-15 gives MARGIN to the TOP 15 pixels and so on.
7
+ .p-b-5 gives PADDING to the BOTTOM of 5 pixels
8
+ .p-l-40 gives PADDING to the LEFT of 40 pixels
9
+ The first letter is "m" or "p" for MARGIN or PADDING
10
+ Second letter is "t", "b", "l", or "r" for TOP, BOTTOM, LEFT, or RIGHT
11
+ Third letter is the number of spacing in pixels. Adjust the amounts generated by editing the $spaceamounts variable below.
12
+ */
13
+
14
+ $spaceamounts: (5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 75, 100); // Adjust this to include the pixel amounts you need.
15
+ $sides: (top, bottom, left, right); // Leave this variable alone
16
+
17
+ @each $space in $spaceamounts {
18
+ @each $side in $sides {
19
+ .m-#{str-slice($side, 0, 1)}-#{$space} {
20
+ margin-#{$side}: #{$space}px !important;
21
+ }
22
+
23
+ .p-#{str-slice($side, 0, 1)}-#{$space} {
24
+ padding-#{$side}: #{$space}px !important;
25
+ }
26
+ }
27
+ }
28
+
29
+ .m-w-1200 {
30
+ max-width: 1200px;
31
+ }
32
+
33
+ .w-300 {
34
+ width: 300px;
35
+ }
36
+
37
+ .w-100 {
38
+ width: 100% !important;
39
+ }
@@ -0,0 +1,4 @@
1
+ $sm: 768px !default;
2
+ $md: 992px !default;
3
+ $lg: 1200px !default;
4
+ $xl: 1920px !default;