@acorex/styles 5.0.6 → 5.0.10

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,179 +1,221 @@
1
1
  @layer components {
2
- .ax-tabs {
3
- @apply ax-flex ax-p-0 ax-overflow-hidden;
4
- &.ax-tabs-full {
5
- .ax-tab-item-container,
6
- .ax-tab-item {
7
- @apply ax-flex-1;
8
- }
9
- }
10
- &.ax-tabs-min-width {
11
- .ax-tab-item {
12
- min-width: 250px;
13
- }
14
- }
15
- &>.ax-tab-controll {
16
- @apply ax-flex ax-items-center ax-justify-center ax-px-1 ax-cursor-pointer;
17
- box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
18
- }
19
- .ax-tab-item-container {
20
- @apply ax-flex ax-overflow-x-auto;
21
- .ax-tab-item {
2
+ ax-tabs {
3
+ @apply ax-p-0 ax-overflow-y-hidden ax-overflow-x-auto ax-w-max ax-block;
4
+
5
+ .ax-items-wrapper {
6
+ @apply ax-flex;
7
+
8
+ ax-tab-item {
22
9
  @apply ax-text-center ax-px-5 ax-cursor-pointer ax-whitespace-nowrap ax-font-medium ax-flex ax-items-center ax-justify-center;
23
- height: calc(var(--ax-base-size) * var(--ax-base-ratio));
10
+ min-height: calc(var(--ax-base-size) * var(--ax-base-ratio));
24
11
  line-height: calc((var(--ax-base-size) * var(--ax-base-ratio)) / 2);
12
+
25
13
  &.ax-state-disabled {
26
14
  background-color: rgb(var(--ax-color-disabled)) !important;
27
15
  color: rgb(var(--ax-color-disabled-fore)) !important;
28
16
  cursor: not-allowed !important;
29
17
  }
18
+
30
19
  &.ax-state-active {
31
20
  @apply ax-text-black;
32
21
  }
33
- .ax-ic {
34
- @apply ax-text-2xl;
22
+
23
+ ax-prefix {
24
+ @apply ax-flex ax-flex-row ax-pe-2;
25
+ }
26
+
27
+ ax-suffix {
28
+ @apply ax-flex ax-flex-row ax-ps-2;
35
29
  }
36
30
  }
37
31
  }
38
- &.ax-tabs-vertical {
39
- .ax-tab-item-container {
40
- @apply ax-flex-col
32
+
33
+ &.ax-tabs-fit {
34
+ .ax-items-wrapper ax-tab-item {
35
+ @apply ax-flex-1;
41
36
  }
42
- &.ax-tabs-default {
43
- .ax-tab-item-container {
44
- @apply ax-border ax-border-solid ax-border-default ax-shadow-sm ax-rounded;
45
- .ax-tab-item {
46
- @apply ax-bg-white ax-border-r ax-border-s-2 ax-border-solid ax-border-transparent;
47
- &:hover,
48
- &.ax-state-active {
49
- @apply ax-font-medium;
50
- border-inline-start-color: rgb(var(--ax-color-primary)) !important;
51
- }
37
+ }
38
+
39
+ &>.ax-tab-controll {
40
+ @apply ax-flex ax-items-center ax-justify-center ax-px-1 ax-cursor-pointer;
41
+ box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
42
+ }
43
+
44
+ &.ax-vertical {
45
+ .ax-items-wrapper {
46
+ @apply ax-flex-col;
47
+
48
+ ax-tab-item {
49
+ @apply ax-text-center ax-justify-start ax-py-2;
50
+ }
51
+ }
52
+
53
+ &.ax-look-default {
54
+ @apply ax-border ax-border-solid ax-border-default ax-shadow-sm ax-rounded;
55
+
56
+ ax-tab-item {
57
+ @apply ax-bg-white ax-border-r ax-border-s-2 ax-border-solid ax-border-transparent;
58
+
59
+ &:hover,
60
+ &.ax-state-active {
61
+ @apply ax-font-medium;
62
+ border-inline-start-color: rgb(var(--ax-color-primary)) !important;
52
63
  }
53
64
  }
54
65
  }
55
- &.ax-tabs-underline {
56
- .ax-tab-item {
66
+
67
+ &.ax-look-start-line {
68
+ ax-tab-item {
57
69
  @apply ax-border-s-2 ax-border-solid ax-border-default;
70
+
58
71
  &.ax-state-active {
59
72
  @apply ax-border-primary ax-text-primary;
73
+
60
74
  &:hover {
61
75
  @apply ax-border-primary;
62
76
  }
63
77
  }
78
+
64
79
  &:hover {
65
80
  @apply ax-border-primary-300 ax-text-primary;
66
81
  }
67
82
  }
68
83
  }
69
- &.ax-tabs-pills {
70
- .ax-tab-item {
84
+
85
+ &.ax-look-end-line {
86
+ ax-tab-item {
87
+ @apply ax-border-e-2 ax-border-solid ax-border-default;
88
+
89
+ &.ax-state-active {
90
+ @apply ax-border-primary ax-text-primary;
91
+
92
+ &:hover {
93
+ @apply ax-border-primary;
94
+ }
95
+ }
96
+
97
+ &:hover {
98
+ @apply ax-border-primary-300 ax-text-primary;
99
+ }
100
+ }
101
+ }
102
+
103
+ &.ax-look-pills {
104
+ ax-tab-item {
71
105
  @apply ax-text-light-fore ax-mr-1 ax-rounded;
106
+
72
107
  &:hover {
73
108
  @apply ax-bg-light-300 ax-text-light-fore;
74
109
  }
110
+
75
111
  &.ax-state-active {
76
112
  @apply ax-bg-light-300 ax-text-light-fore;
77
113
  }
78
114
  }
79
115
  }
80
- &.ax-tabs-pills-color {
81
- .ax-tab-item {
116
+
117
+ &.ax-look-pills-color {
118
+ ax-tab-item {
82
119
  @apply ax-text-light-fore ax-mr-1 ax-rounded;
120
+
83
121
  &:hover {
84
122
  @apply ax-bg-primary-100 ax-text-primary;
85
123
  }
124
+
86
125
  &.ax-state-active {
87
126
  @apply ax-bg-primary-100 ax-text-primary;
88
127
  }
89
128
  }
90
129
  }
91
- &.ax-tabs-overline {
92
- .ax-tab-item {
130
+ }
131
+
132
+ &.ax-horizontal {
133
+ &.ax-look-default {
134
+ @apply ax-border ax-border-solid ax-border-default ax-shadow-sm ax-rounded;
135
+
136
+ ax-tab-item {
137
+ @apply ax-bg-white ax-border-r ax-border-b-2 ax-border-solid;
138
+ border-bottom-color: transparent !important;
139
+
140
+ &:first-child {
141
+ @apply ax-rounded-l;
142
+ }
143
+
144
+ &:last-child {
145
+ @apply ax-rounded-r ax-border-r-0;
146
+ }
147
+
148
+ &:hover,
149
+ &.ax-state-active {
150
+ @apply ax-font-medium;
151
+ border-bottom-color: rgb(var(--ax-color-primary)) !important;
152
+ }
153
+ }
154
+ }
155
+
156
+ &.ax-look-start-line {
157
+ ax-tab-item {
93
158
  @apply ax-border-t-2 ax-border-solid ax-border-default;
159
+
94
160
  &.ax-state-active {
95
161
  @apply ax-border-primary ax-text-primary;
162
+
96
163
  &:hover {
97
164
  @apply ax-border-primary;
98
165
  }
99
166
  }
167
+
100
168
  &:hover {
101
169
  @apply ax-border-primary-300 ax-text-primary;
102
170
  }
103
171
  }
104
172
  }
105
- }
106
- &.ax-tabs-horizontal {
107
- &.ax-tabs-default {
108
- .ax-tab-item-container {
109
- @apply ax-border ax-border-solid ax-border-default ax-shadow-sm ax-rounded;
110
- .ax-tab-item {
111
- @apply ax-bg-white ax-border-r ax-border-b-2 ax-border-solid;
112
- border-bottom-color: transparent !important;
113
- &:first-child {
114
- @apply ax-rounded-l;
115
- }
116
- &:last-child {
117
- @apply ax-rounded-r ax-border-r-0;
118
- }
119
- &:hover,
120
- &.ax-state-active {
121
- @apply ax-font-medium;
122
- border-bottom-color: rgb(var(--ax-color-primary)) !important;
123
- }
124
- }
125
- }
126
- }
127
- &.ax-tabs-underline {
128
- .ax-tab-item {
173
+
174
+ &.ax-look-end-line {
175
+ ax-tab-item {
129
176
  @apply ax-border-b-2 ax-border-solid ax-border-default;
177
+
130
178
  &.ax-state-active {
131
179
  @apply ax-border-primary ax-text-primary;
180
+
132
181
  &:hover {
133
182
  @apply ax-border-primary;
134
183
  }
135
184
  }
185
+
136
186
  &:hover {
137
187
  @apply ax-border-primary-300 ax-text-primary;
138
188
  }
139
189
  }
140
190
  }
141
- &.ax-tabs-pills {
142
- .ax-tab-item {
191
+
192
+ &.ax-look-pills {
193
+ ax-tab-item {
143
194
  @apply ax-text-light-fore ax-mr-1 ax-rounded;
195
+
144
196
  &:hover {
145
197
  @apply ax-bg-light-300 ax-text-light-fore;
146
198
  }
199
+
147
200
  &.ax-state-active {
148
201
  @apply ax-bg-light-300 ax-text-light-fore;
149
202
  }
150
203
  }
151
204
  }
152
- &.ax-tabs-pills-color {
153
- .ax-tab-item {
205
+
206
+ &.ax-look-pills-color {
207
+ ax-tab-item {
154
208
  @apply ax-text-light-fore ax-mr-1 ax-rounded;
209
+
155
210
  &:hover {
156
211
  @apply ax-bg-primary-100 ax-text-primary;
157
212
  }
213
+
158
214
  &.ax-state-active {
159
215
  @apply ax-bg-primary-100 ax-text-primary;
160
216
  }
161
217
  }
162
218
  }
163
- &.ax-tabs-overline {
164
- .ax-tab-item {
165
- @apply ax-border-t-2 ax-border-solid ax-border-default;
166
- &.ax-state-active {
167
- @apply ax-border-primary ax-text-primary;
168
- &:hover {
169
- @apply ax-border-primary;
170
- }
171
- }
172
- &:hover {
173
- @apply ax-border-primary-300 ax-text-primary;
174
- }
175
- }
176
- }
177
219
  }
178
220
  }
179
221
  }
@@ -0,0 +1,7 @@
1
+ Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
2
+
3
+ To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
4
+
5
+ You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
6
+
7
+ You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
@@ -0,0 +1,152 @@
1
+ body {
2
+ padding: 0;
3
+ margin: 0;
4
+ font-family: sans-serif;
5
+ font-size: 1em;
6
+ line-height: 1.5;
7
+ color: #555;
8
+ background: #fff;
9
+ }
10
+ h1 {
11
+ font-size: 1.5em;
12
+ font-weight: normal;
13
+ }
14
+ small {
15
+ font-size: .66666667em;
16
+ }
17
+ a {
18
+ color: #e74c3c;
19
+ text-decoration: none;
20
+ }
21
+ a:hover, a:focus {
22
+ box-shadow: 0 1px #e74c3c;
23
+ }
24
+ .bshadow0, input {
25
+ box-shadow: inset 0 -2px #e7e7e7;
26
+ }
27
+ input:hover {
28
+ box-shadow: inset 0 -2px #ccc;
29
+ }
30
+ input, fieldset {
31
+ font-family: sans-serif;
32
+ font-size: 1em;
33
+ margin: 0;
34
+ padding: 0;
35
+ border: 0;
36
+ }
37
+ input {
38
+ color: inherit;
39
+ line-height: 1.5;
40
+ height: 1.5em;
41
+ padding: .25em 0;
42
+ }
43
+ input:focus {
44
+ outline: none;
45
+ box-shadow: inset 0 -2px #449fdb;
46
+ }
47
+ .glyph {
48
+ font-size: 16px;
49
+ width: 15em;
50
+ padding-bottom: 1em;
51
+ margin-right: 4em;
52
+ margin-bottom: 1em;
53
+ float: left;
54
+ overflow: hidden;
55
+ }
56
+ .liga {
57
+ width: 80%;
58
+ width: calc(100% - 2.5em);
59
+ }
60
+ .talign-right {
61
+ text-align: right;
62
+ }
63
+ .talign-center {
64
+ text-align: center;
65
+ }
66
+ .bgc1 {
67
+ background: #f1f1f1;
68
+ }
69
+ .fgc1 {
70
+ color: #999;
71
+ }
72
+ .fgc0 {
73
+ color: #000;
74
+ }
75
+ p {
76
+ margin-top: 1em;
77
+ margin-bottom: 1em;
78
+ }
79
+ .mvm {
80
+ margin-top: .75em;
81
+ margin-bottom: .75em;
82
+ }
83
+ .mtn {
84
+ margin-top: 0;
85
+ }
86
+ .mtl, .mal {
87
+ margin-top: 1.5em;
88
+ }
89
+ .mbl, .mal {
90
+ margin-bottom: 1.5em;
91
+ }
92
+ .mal, .mhl {
93
+ margin-left: 1.5em;
94
+ margin-right: 1.5em;
95
+ }
96
+ .mhmm {
97
+ margin-left: 1em;
98
+ margin-right: 1em;
99
+ }
100
+ .mls {
101
+ margin-left: .25em;
102
+ }
103
+ .ptl {
104
+ padding-top: 1.5em;
105
+ }
106
+ .pbs, .pvs {
107
+ padding-bottom: .25em;
108
+ }
109
+ .pvs, .pts {
110
+ padding-top: .25em;
111
+ }
112
+ .unit {
113
+ float: left;
114
+ }
115
+ .unitRight {
116
+ float: right;
117
+ }
118
+ .size1of2 {
119
+ width: 50%;
120
+ }
121
+ .size1of1 {
122
+ width: 100%;
123
+ }
124
+ .clearfix:before, .clearfix:after {
125
+ content: " ";
126
+ display: table;
127
+ }
128
+ .clearfix:after {
129
+ clear: both;
130
+ }
131
+ .hidden-true {
132
+ display: none;
133
+ }
134
+ .textbox0 {
135
+ width: 3em;
136
+ background: #f1f1f1;
137
+ padding: .25em .5em;
138
+ line-height: 1.5;
139
+ height: 1.5em;
140
+ }
141
+ #testDrive {
142
+ display: block;
143
+ padding-top: 24px;
144
+ line-height: 1.5;
145
+ }
146
+ .fs0 {
147
+ font-size: 16px;
148
+ }
149
+ .fs1 {
150
+ font-size: 32px;
151
+ }
152
+
@@ -0,0 +1,30 @@
1
+ if (!('boxShadow' in document.body.style)) {
2
+ document.body.setAttribute('class', 'noBoxShadow');
3
+ }
4
+
5
+ document.body.addEventListener("click", function(e) {
6
+ var target = e.target;
7
+ if (target.tagName === "INPUT" &&
8
+ target.getAttribute('class').indexOf('liga') === -1) {
9
+ target.select();
10
+ }
11
+ });
12
+
13
+ (function() {
14
+ var fontSize = document.getElementById('fontSize'),
15
+ testDrive = document.getElementById('testDrive'),
16
+ testText = document.getElementById('testText');
17
+ function updateTest() {
18
+ testDrive.innerHTML = testText.value || String.fromCharCode(160);
19
+ if (window.icomoonLiga) {
20
+ window.icomoonLiga(testDrive);
21
+ }
22
+ }
23
+ function updateSize() {
24
+ testDrive.style.fontSize = fontSize.value + 'px';
25
+ }
26
+ fontSize.addEventListener('change', updateSize, false);
27
+ testText.addEventListener('input', updateTest, false);
28
+ testText.addEventListener('change', updateTest, false);
29
+ updateSize();
30
+ }());