hc-basic 1.0.1

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.
@@ -0,0 +1,149 @@
1
+ // 自定义dialog高度
2
+ .calcDialog {
3
+ .el-dialog {
4
+ position: relative;
5
+ height: calc(100% - 150px);
6
+ .el-dialog__body {
7
+ height: calc(100% - 130px);
8
+ overflow: auto;
9
+ }
10
+ .el-dialog__footer {
11
+ position: absolute;
12
+ bottom: 0;
13
+ width: 100%;
14
+ display: flex;
15
+ justify-content: flex-end;
16
+ padding: 10px 24px;
17
+ background: #fff;
18
+ box-shadow: rgba(0, 0, 0, 0.15) 0px -2px 8px 0px;
19
+ }
20
+ }
21
+ }
22
+
23
+ .hcFormItem {
24
+ .formButtonRight {
25
+ display: flex;
26
+ justify-content: flex-end;
27
+
28
+ .el-form-item__content {
29
+ padding-right: 0;
30
+ }
31
+ }
32
+ .el-input-number .el-input__inner {
33
+ text-align: left;
34
+ }
35
+ }
36
+ .hc-frame {
37
+ .hcMenu {
38
+ border-right: none;
39
+ }
40
+ .el-tabs__header {
41
+ margin: 0;
42
+ }
43
+ .el-tabs__active-bar {
44
+ background-color: transparent;
45
+ }
46
+ .contentMaxs {
47
+ transition: all 0.15s;
48
+ }
49
+ .el-tabs__nav-wrap::after {
50
+ background: none;
51
+ }
52
+ .el-tabs__item.is-closable {
53
+ .el-icon-close {
54
+ display: none;
55
+ }
56
+ }
57
+ .el-tabs__item.is-closable:hover {
58
+ .el-icon-close {
59
+ display: inline-block;
60
+ }
61
+ }
62
+ .el-tabs__item.is-active.is-closable {
63
+ .el-icon-close {
64
+ display: inline-block;
65
+ }
66
+ }
67
+ }
68
+
69
+ .hcSelectTreeOption.el-select-dropdown__item {
70
+ padding: 0 !important;
71
+ height: 200px;
72
+ }
73
+ // 本项目扩展公共样式
74
+ .hc-svg {
75
+ &.color-text-primary-icon {
76
+ fill: $--color-text-primary-hc;
77
+ }
78
+ &.color-primary-icon {
79
+ fill: $--color-primary-hc;
80
+ }
81
+ &.color-success-icon {
82
+ fill: $--color-success-hc;
83
+ }
84
+ &.color-warning-icon {
85
+ fill: $--color-warning-hc;
86
+ }
87
+ &.color-info-icon {
88
+ fill: $--color-info-hc;
89
+ }
90
+ &.color-danger-icon {
91
+ fill: $--color-danger-hc;
92
+ }
93
+ &.color-text-regular-icon {
94
+ fill: $--color-text-regular-hc;
95
+ }
96
+ &.color-text-secondary-icon {
97
+ fill: $--color-text-secondary-hc;
98
+ }
99
+ &.color-text-placeholder-icon {
100
+ fill: $--color-text-placeholder-hc;
101
+ }
102
+ &.color-text-white-icon {
103
+ fill: $--color-white;
104
+ }
105
+ }
106
+
107
+ .animate-width {
108
+ transition: width 0.5s;
109
+ -moz-transition: width 0.5s; /* Firefox 4 */
110
+ -webkit-transition: width 0.5s; /* Safari and Chrome */
111
+ -o-transition: width 0.5s; /* Opera */
112
+ }
113
+ .animate-height {
114
+ transition: height 0.5s;
115
+ -moz-transition: height 0.5s; /* Firefox 4 */
116
+ -webkit-transition: height 0.5s; /* Safari and Chrome */
117
+ -o-transition: height 0.5s; /* Opera */
118
+ }
119
+ .hcRightMenu {
120
+ width: 150px;
121
+ @extend .bg-default;
122
+ @extend .shadow-basic;
123
+ @extend .cursor-pointer;
124
+ @extend .text-14;
125
+ @extend .radius;
126
+ color: #333;
127
+ position: fixed;
128
+ z-index: 99999;
129
+ .hcRightMenuChild {
130
+ @extend .pl-12;
131
+ @extend .py-8;
132
+ @extend .border-bottom;
133
+ overflow: hidden;
134
+ text-overflow: ellipsis;
135
+ white-space: nowrap;
136
+ margin-block-start: 0em;
137
+ margin-block-end: 0em;
138
+ -webkit-touch-callout: none;
139
+ -webkit-user-select: none;
140
+ -khtml-user-select: none;
141
+ -moz-user-select: none;
142
+ -ms-user-select: none;
143
+ user-select: none;
144
+ &:hover{
145
+ @extend .bg-info-10;
146
+ }
147
+ }
148
+ }
149
+
@@ -0,0 +1,94 @@
1
+ /*FlexBox 布局*/
2
+
3
+ /* 一.换行 */
4
+ //超出按父级高度平分
5
+ .flex-wrap {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ }
9
+ // 与wrap相反
10
+ .flex-wrap-reverse {
11
+ display: flex;
12
+ flex-wrap: wrap-reverse;
13
+ }
14
+ /* 二.垂直排列(x,y轴) */
15
+ // 从上往下 == 顶对齐
16
+ .flex-column {
17
+ display: flex;
18
+ flex-direction: column;
19
+ }
20
+ // 与column 相反
21
+ .flex-column-reverse {
22
+ display: flex;
23
+ flex-direction: column-reverse;
24
+ }
25
+ // 从左往右 == 左对齐
26
+ .flex-row {
27
+ display: flex;
28
+ flex-direction: row;
29
+ }
30
+ // 与row 相反
31
+ .flex-row-reverse {
32
+ display: flex;
33
+ flex-direction: row-reverse;
34
+ }
35
+ /* 三. 水平对齐(x轴)*/
36
+ // 水平左对齐
37
+ .flex-x-start {
38
+ display: flex;
39
+ justify-content: flex-start;
40
+ }
41
+ //水平右对齐
42
+ .flex-x-end {
43
+ display: flex;
44
+ justify-content: flex-end;
45
+ }
46
+ // 水平居中
47
+ .flex-x-center {
48
+ display: flex;
49
+ justify-content: center;
50
+ }
51
+ // 两端对齐 (第一个元素和最后一个元素距离左右两边的距离为0; 其他元素间的距离一样)
52
+ .flex-x-between {
53
+ display: flex;
54
+ justify-content: space-between;
55
+ }
56
+ /*四. 垂直对齐(y轴)*/
57
+ //垂直下对齐
58
+ .flex-y-end {
59
+ display: flex;
60
+ align-items: flex-end;
61
+ }
62
+ // 垂直居中
63
+ .flex-y-center {
64
+ display: flex;
65
+ align-items: center;
66
+ }
67
+ //文字基线对齐
68
+ .align-items-baseline {
69
+ display: flex;
70
+ align-items: baseline;
71
+ }
72
+ // 水平垂直居中对齐
73
+ .flex-center {
74
+ display: flex;
75
+ justify-content: center;
76
+ align-items: center;
77
+ }
78
+ // 水平居中底部对齐
79
+ .flex-center-end {
80
+ display: flex;
81
+ justify-content: center;
82
+ align-items: flex-end;
83
+ }
84
+ // 元素水平两端,垂直居中对齐
85
+ .flex-between-center {
86
+ display: flex;
87
+ justify-content: space-between;
88
+ align-items: center;
89
+ }
90
+ // 让所有盒子模型对象的子元素都具有相同长度
91
+ .flex-auto {
92
+ display: flex;
93
+ flex: auto;
94
+ }
@@ -0,0 +1,141 @@
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v4.0 | 20180602
3
+ License: none (public domain)
4
+ */
5
+
6
+ html,
7
+ body,
8
+ div,
9
+ span,
10
+ applet,
11
+ object,
12
+ iframe,
13
+ h1,
14
+ h2,
15
+ h3,
16
+ h4,
17
+ h5,
18
+ h6,
19
+ p,
20
+ blockquote,
21
+ pre,
22
+ a,
23
+ abbr,
24
+ acronym,
25
+ address,
26
+ big,
27
+ cite,
28
+ code,
29
+ del,
30
+ dfn,
31
+ em,
32
+ img,
33
+ ins,
34
+ kbd,
35
+ q,
36
+ s,
37
+ samp,
38
+ small,
39
+ strike,
40
+ strong,
41
+ sub,
42
+ sup,
43
+ tt,
44
+ var,
45
+ b,
46
+ u,
47
+ i,
48
+ center,
49
+ dl,
50
+ dt,
51
+ dd,
52
+ ol,
53
+ ul,
54
+ li,
55
+ fieldset,
56
+ form,
57
+ label,
58
+ legend,
59
+ table,
60
+ caption,
61
+ tbody,
62
+ tfoot,
63
+ thead,
64
+ tr,
65
+ th,
66
+ td,
67
+ article,
68
+ aside,
69
+ canvas,
70
+ details,
71
+ embed,
72
+ figure,
73
+ figcaption,
74
+ footer,
75
+ header,
76
+ hgroup,
77
+ main,
78
+ menu,
79
+ nav,
80
+ output,
81
+ ruby,
82
+ section,
83
+ summary,
84
+ time,
85
+ mark,
86
+ audio,
87
+ video {
88
+ padding: 0;
89
+ margin: 0;
90
+ font: inherit;
91
+ font-size: 100%;
92
+ vertical-align: baseline;
93
+ border: 0;
94
+ }
95
+
96
+ /* HTML5 display-role reset for older browsers */
97
+ article,
98
+ aside,
99
+ details,
100
+ figcaption,
101
+ figure,
102
+ footer,
103
+ header,
104
+ hgroup,
105
+ main,
106
+ menu,
107
+ nav,
108
+ section {
109
+ display: block;
110
+ }
111
+
112
+ /* HTML5 hidden-attribute fix for newer browsers */
113
+ *[hidden] {
114
+ display: none;
115
+ }
116
+
117
+ body {
118
+ line-height: 1;
119
+ }
120
+
121
+ ol,
122
+ ul {
123
+ list-style: none;
124
+ }
125
+
126
+ blockquote,
127
+ q {
128
+ quotes: none;
129
+ }
130
+
131
+ blockquote:before,
132
+ blockquote:after,
133
+ q:before,
134
+ q:after {
135
+ content: none;
136
+ }
137
+
138
+ table {
139
+ border-collapse: collapse;
140
+ border-spacing: 0;
141
+ }