@andreyshpigunov/x 0.4.4 → 0.5.0
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.
- package/assets/css/app.css +1 -1
- package/assets/js/app.js +1 -1
- package/cheatsheet.html +18 -14
- package/dist/x.css +1 -1
- package/dist/x.js +1 -1
- package/index.html +102 -102
- package/package.json +1 -1
- package/src/components/x/animate.js +1 -1
- package/src/components/x/buttons.css +24 -24
- package/src/components/x/colors.css +18 -0
- package/src/components/x/dropdown.css +5 -5
- package/src/components/x/dropdown.js +19 -19
- package/src/components/x/helpers.css +10 -10
- package/src/components/x/icons.css +10 -10
- package/src/components/x/lib.js +4 -4
- package/src/components/x/links.css +10 -10
- package/src/components/x/modal.css +26 -26
- package/src/components/x/modal.js +23 -23
- package/src/components/x/scroll.css +14 -12
- package/src/components/x/sticky.js +5 -5
- package/src/css/x.css +17 -17
package/index.html
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"functionName": "headerAnimation"
|
|
20
20
|
}'>
|
|
21
21
|
<header class="header flex aic sticky t0 px5 m:px6 l:px8 unselectable">
|
|
22
|
-
<div class="header-version nowrap">0.
|
|
22
|
+
<div class="header-version nowrap">0.5.0</div>
|
|
23
23
|
<div class="header-logo mxa">
|
|
24
24
|
<a role="button" x-scrollto="#top">
|
|
25
25
|
<img src="assets/img/logo.png" alt="x" />
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
<div class="flex">
|
|
47
47
|
<div class="mt4">
|
|
48
|
-
<button x-dropdown-open class="button
|
|
48
|
+
<button x-dropdown-open class="button button_dropdown button_spacy" tabindex="1">
|
|
49
49
|
Menu left
|
|
50
50
|
</button>
|
|
51
51
|
<ul x-dropdown>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
</ul>
|
|
68
68
|
</div>
|
|
69
69
|
<div class="mt4">
|
|
70
|
-
<button x-dropdown-open class="button
|
|
70
|
+
<button x-dropdown-open class="button button_dropdown" tabindex="3">Menu right</button>
|
|
71
71
|
<ul x-dropdown>
|
|
72
72
|
<li><a href="/admin/settings/profile/">Профиль</a></li>
|
|
73
73
|
<li><a href="/logout/">Выйти</a></li>
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
})
|
|
275
275
|
</script>
|
|
276
276
|
|
|
277
|
-
<div x-modal="modalForm" class="
|
|
277
|
+
<div x-modal="modalForm" class="modal_hash" data-window-class="max1000">
|
|
278
278
|
<h2>Form</h2>
|
|
279
279
|
|
|
280
280
|
<p>Useful utilities for forms interactivity.</p>
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
</div>
|
|
355
355
|
<div class="flex gap3 aic mt1">
|
|
356
356
|
<span class="jsLibExampleUpdate pointer unselectable">↺</span>
|
|
357
|
-
<a class="link
|
|
357
|
+
<a class="link link_dashed fs14" x-modal-open="modalLib">Show all methods</a>
|
|
358
358
|
</div>
|
|
359
359
|
<script>
|
|
360
360
|
document.addEventListener('DOMContentLoaded', function() {
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
<a role="button" class="button" x-modal-open="modalExampleStory">Modal with long story</a>
|
|
438
438
|
</div>
|
|
439
439
|
<h6>API call:</h6>
|
|
440
|
-
<a class="link
|
|
440
|
+
<a class="link link_dashed" onclick="x.modal.show('modalExampleTest')">x.modal.show('modalExampleTest')</a>
|
|
441
441
|
|
|
442
442
|
<div x-modal="modalExampleTest">
|
|
443
443
|
<h2>Test modal</h2>
|
|
@@ -457,12 +457,12 @@
|
|
|
457
457
|
<p>Opening this window, you are not closed all the other windows on the page.</p>
|
|
458
458
|
</div>
|
|
459
459
|
|
|
460
|
-
<div x-modal="modalExampleUniq" class="
|
|
460
|
+
<div x-modal="modalExampleUniq" class="modal_uniq">
|
|
461
461
|
<h2>Unique modal</h2>
|
|
462
462
|
<p>Opening this window, you are closed all the other windows on the page.</p>
|
|
463
463
|
</div>
|
|
464
464
|
|
|
465
|
-
<div x-modal="modalExampleStory" class="
|
|
465
|
+
<div x-modal="modalExampleStory" class="modal_hash">
|
|
466
466
|
|
|
467
467
|
<div class="fs20">
|
|
468
468
|
<h1>Font size 20px</h1>
|
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
<div class="container max700">
|
|
787
787
|
|
|
788
788
|
<h3>HTML</h3>
|
|
789
|
-
<p>Manually download <a class="button
|
|
789
|
+
<p>Manually download <a class="button button_label" href="https://cdn.jsdelivr.net/gh/andreyshpigunov/x@latest/dist/x.js">x.js</a> and <a class="button button_label" href="https://cdn.jsdelivr.net/gh/andreyshpigunov/x@latest/dist/x.css">x.css</a> and connect them in HTML.</p>
|
|
790
790
|
<p>In the <code><head></code> tag, as first style.</p>
|
|
791
791
|
<div class="codeBlock">
|
|
792
792
|
<code><link rel="stylesheet" href="x.css"/></code>
|
|
@@ -836,7 +836,7 @@
|
|
|
836
836
|
</section>
|
|
837
837
|
|
|
838
838
|
|
|
839
|
-
<div x-modal="modalBreakpoints" class="
|
|
839
|
+
<div x-modal="modalBreakpoints" class="modal_hash" data-window-class="max1000">
|
|
840
840
|
<h2>Breakpoints</h2>
|
|
841
841
|
<p>Mobile first breakpoints</p>
|
|
842
842
|
<p>
|
|
@@ -869,7 +869,7 @@
|
|
|
869
869
|
</div>
|
|
870
870
|
|
|
871
871
|
|
|
872
|
-
<div x-modal="modalReset" class="
|
|
872
|
+
<div x-modal="modalReset" class="modal_hash" data-window-class="max1000">
|
|
873
873
|
<h2>Reset</h2>
|
|
874
874
|
<p>Global styles reset and base variables.</p>
|
|
875
875
|
|
|
@@ -885,7 +885,7 @@
|
|
|
885
885
|
</div>
|
|
886
886
|
|
|
887
887
|
|
|
888
|
-
<div x-modal="modalSpaces" class="
|
|
888
|
+
<div x-modal="modalSpaces" class="modal_hash" data-window-class="max1000">
|
|
889
889
|
<h2>Spaces</h2>
|
|
890
890
|
<p>Global spaces.</p>
|
|
891
891
|
<p class="fs12">
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
</div>
|
|
910
910
|
|
|
911
911
|
|
|
912
|
-
<div x-modal="modalLinks" class="
|
|
912
|
+
<div x-modal="modalLinks" class="modal_hash" data-window-class="max1000">
|
|
913
913
|
<h2>Links</h2>
|
|
914
914
|
<p>Links styling.</p>
|
|
915
915
|
|
|
@@ -919,19 +919,19 @@ a
|
|
|
919
919
|
a.link
|
|
920
920
|
a.hover
|
|
921
921
|
a.active
|
|
922
|
-
a.
|
|
923
|
-
a.
|
|
924
|
-
a.
|
|
925
|
-
a.
|
|
926
|
-
a.
|
|
922
|
+
a.link_noline
|
|
923
|
+
a.link_underline
|
|
924
|
+
a.link_dashed
|
|
925
|
+
a.link_dotted
|
|
926
|
+
a.link_wavy</pre>
|
|
927
927
|
|
|
928
928
|
<h3>Example</h3>
|
|
929
929
|
<div class="flex gap4 m:gap6 fs20 m:fs24">
|
|
930
|
-
<a class="link
|
|
931
|
-
<a class="link
|
|
932
|
-
<a class="link
|
|
933
|
-
<a class="link
|
|
934
|
-
<a class="link
|
|
930
|
+
<a class="link link_noline">noline</a>
|
|
931
|
+
<a class="link link_underline">underline</a>
|
|
932
|
+
<a class="link link_dashed">dashed</a>
|
|
933
|
+
<a class="link link_dotted">dotted</a>
|
|
934
|
+
<a class="link link_wavy">wavy</a>
|
|
935
935
|
</div>
|
|
936
936
|
|
|
937
937
|
<h3>Variables</h3>
|
|
@@ -954,7 +954,7 @@ a.link--wavy</pre>
|
|
|
954
954
|
</div>
|
|
955
955
|
|
|
956
956
|
|
|
957
|
-
<div x-modal="modalIcons" class="
|
|
957
|
+
<div x-modal="modalIcons" class="modal_hash" data-window-class="max1000">
|
|
958
958
|
<h2>Icons</h2>
|
|
959
959
|
<div class="mt6">
|
|
960
960
|
<pre class="fs14 mono">.icon - icon with default size 1em
|
|
@@ -963,7 +963,7 @@ a.link--wavy</pre>
|
|
|
963
963
|
</div>
|
|
964
964
|
|
|
965
965
|
|
|
966
|
-
<div x-modal="modalColors" class="
|
|
966
|
+
<div x-modal="modalColors" class="modal_hash" data-window-class="max1000">
|
|
967
967
|
<h2>Colors</h2>
|
|
968
968
|
<div class="mt6">
|
|
969
969
|
<pre class="fs14 mono"><span class="textPrimary">.colorPrimary</span>
|
|
@@ -971,21 +971,21 @@ a.link--wavy</pre>
|
|
|
971
971
|
<span class="textWarning">.colorWarning</span>
|
|
972
972
|
<span class="textDanger">.colorDanger</span>
|
|
973
973
|
|
|
974
|
-
<span class="bgPrimary textWhite button
|
|
975
|
-
<span class="bgSuccess textWhite button
|
|
976
|
-
<span class="bgWarning textWhite button
|
|
977
|
-
<span class="bgDanger textWhite button
|
|
978
|
-
<span class="bgGrey textWhite button
|
|
974
|
+
<span class="bgPrimary textWhite button button_label">.bgPrimary</span>
|
|
975
|
+
<span class="bgSuccess textWhite button button_label">.bgSuccess</span>
|
|
976
|
+
<span class="bgWarning textWhite button button_label">.bgWarning</span>
|
|
977
|
+
<span class="bgDanger textWhite button button_label">.bgDanger</span>
|
|
978
|
+
<span class="bgGrey textWhite button button_label">.bgGrey</span>
|
|
979
979
|
|
|
980
980
|
.color[ColorName] (d) - text color
|
|
981
981
|
.bg[ColorName] (d) — background color</pre>
|
|
982
982
|
</div>
|
|
983
|
-
<div class="mt6">All color names here: <a class="button
|
|
984
|
-
<div class="mt2">Colors by tones: <a class="button
|
|
983
|
+
<div class="mt6">All color names here: <a class="button button_label bgBeige" href="https://147colors.com" target="_blank"><div class="strike fw700 mr1">147</div> Colors →</a></div>
|
|
984
|
+
<div class="mt2">Colors by tones: <a class="button button_label" href="https://colorscheme.ru/html-colors.html" target="_blank">colorscheme.ru</a></div>
|
|
985
985
|
</div>
|
|
986
986
|
|
|
987
987
|
|
|
988
|
-
<div x-modal="modalTypo" class="
|
|
988
|
+
<div x-modal="modalTypo" class="modal_hash" data-window-class="max1000">
|
|
989
989
|
<h2>Typo</h2>
|
|
990
990
|
|
|
991
991
|
<h3>Elements</h3>
|
|
@@ -1035,7 +1035,7 @@ a.link--wavy</pre>
|
|
|
1035
1035
|
</div>
|
|
1036
1036
|
|
|
1037
1037
|
|
|
1038
|
-
<div x-modal="modalForms" class="
|
|
1038
|
+
<div x-modal="modalForms" class="modal_hash" data-window-class="max1000">
|
|
1039
1039
|
<h2>Forms</h2>
|
|
1040
1040
|
<p>Form elements.</p>
|
|
1041
1041
|
|
|
@@ -1069,59 +1069,59 @@ a.link--wavy</pre>
|
|
|
1069
1069
|
</div>
|
|
1070
1070
|
|
|
1071
1071
|
|
|
1072
|
-
<div x-modal="modalButtons" class="
|
|
1072
|
+
<div x-modal="modalButtons" class="modal_hash" data-window-class="max1000">
|
|
1073
1073
|
<h2>Buttons</h2>
|
|
1074
1074
|
|
|
1075
1075
|
<div class="flow s4">
|
|
1076
1076
|
<div class="flex fw gap4">
|
|
1077
|
-
<button class="button
|
|
1078
|
-
<button class="button
|
|
1079
|
-
<button class="button
|
|
1080
|
-
<button class="button
|
|
1081
|
-
<button class="button
|
|
1082
|
-
<button class="button
|
|
1083
|
-
<button class="button
|
|
1084
|
-
<button class="button
|
|
1077
|
+
<button class="button button_label">Label</button>
|
|
1078
|
+
<button class="button button_label button_primary">Label</button>
|
|
1079
|
+
<button class="button button_label button_success">Label</button>
|
|
1080
|
+
<button class="button button_label button_danger">Label</button>
|
|
1081
|
+
<button class="button button_label button_warning">Label</button>
|
|
1082
|
+
<button class="button button_label button_white">Label</button>
|
|
1083
|
+
<button class="button button_label button_black">Label</button>
|
|
1084
|
+
<button class="button button_label button_clear">Label</button>
|
|
1085
1085
|
</div>
|
|
1086
1086
|
<div class="flex fw gap4">
|
|
1087
1087
|
<button class="button fs12">Button</button>
|
|
1088
|
-
<button class="button fs12
|
|
1089
|
-
<button class="button fs12
|
|
1090
|
-
<button class="button fs12
|
|
1091
|
-
<button class="button fs12
|
|
1092
|
-
<button class="button fs12
|
|
1093
|
-
<button class="button fs12
|
|
1094
|
-
<button class="button fs12
|
|
1088
|
+
<button class="button fs12 button_primary">Button</button>
|
|
1089
|
+
<button class="button fs12 button_success">Button</button>
|
|
1090
|
+
<button class="button fs12 button_danger">Button</button>
|
|
1091
|
+
<button class="button fs12 button_warning">Button</button>
|
|
1092
|
+
<button class="button fs12 button_white">Button</button>
|
|
1093
|
+
<button class="button fs12 button_black">Button</button>
|
|
1094
|
+
<button class="button fs12 button_clear">Button</button>
|
|
1095
1095
|
</div>
|
|
1096
1096
|
<div class="flex fw gap4">
|
|
1097
1097
|
<button class="button">Button</button>
|
|
1098
|
-
<button class="button
|
|
1099
|
-
<button class="button
|
|
1100
|
-
<button class="button
|
|
1101
|
-
<button class="button
|
|
1102
|
-
<button class="button
|
|
1103
|
-
<button class="button
|
|
1104
|
-
<button class="button
|
|
1098
|
+
<button class="button button_primary">Button</button>
|
|
1099
|
+
<button class="button button_success">Button</button>
|
|
1100
|
+
<button class="button button_danger">Button</button>
|
|
1101
|
+
<button class="button button_warning">Button</button>
|
|
1102
|
+
<button class="button button_white">Button</button>
|
|
1103
|
+
<button class="button button_black">Button</button>
|
|
1104
|
+
<button class="button button_clear">Button</button>
|
|
1105
1105
|
</div>
|
|
1106
1106
|
<div class="flex fw gap4">
|
|
1107
1107
|
<button class="button fs20">Button</button>
|
|
1108
|
-
<button class="button fs20
|
|
1109
|
-
<button class="button fs20
|
|
1110
|
-
<button class="button fs20
|
|
1111
|
-
<button class="button fs20
|
|
1112
|
-
<button class="button fs20
|
|
1113
|
-
<button class="button fs20
|
|
1114
|
-
<button class="button fs20
|
|
1108
|
+
<button class="button fs20 button_primary">Button</button>
|
|
1109
|
+
<button class="button fs20 button_success">Button</button>
|
|
1110
|
+
<button class="button fs20 button_danger">Button</button>
|
|
1111
|
+
<button class="button fs20 button_warning">Button</button>
|
|
1112
|
+
<button class="button fs20 button_white">Button</button>
|
|
1113
|
+
<button class="button fs20 button_black">Button</button>
|
|
1114
|
+
<button class="button fs20 button_clear">Button</button>
|
|
1115
1115
|
</div>
|
|
1116
1116
|
<div class="flex fw gap4">
|
|
1117
1117
|
<button class="button fs24">Button</button>
|
|
1118
|
-
<button class="button fs24
|
|
1119
|
-
<button class="button fs24
|
|
1120
|
-
<button class="button fs24
|
|
1121
|
-
<button class="button fs24
|
|
1122
|
-
<button class="button fs24
|
|
1123
|
-
<button class="button fs24
|
|
1124
|
-
<button class="button fs24
|
|
1118
|
+
<button class="button fs24 button_primary">Button</button>
|
|
1119
|
+
<button class="button fs24 button_success">Button</button>
|
|
1120
|
+
<button class="button fs24 button_danger">Button</button>
|
|
1121
|
+
<button class="button fs24 button_warning">Button</button>
|
|
1122
|
+
<button class="button fs24 button_white">Button</button>
|
|
1123
|
+
<button class="button fs24 button_black">Button</button>
|
|
1124
|
+
<button class="button fs24 button_clear">Button</button>
|
|
1125
1125
|
</div>
|
|
1126
1126
|
</div>
|
|
1127
1127
|
|
|
@@ -1129,14 +1129,14 @@ a.link--wavy</pre>
|
|
|
1129
1129
|
<pre class="fs14 mono">
|
|
1130
1130
|
.button
|
|
1131
1131
|
|
|
1132
|
-
.
|
|
1133
|
-
.
|
|
1134
|
-
.
|
|
1135
|
-
.
|
|
1136
|
-
.
|
|
1137
|
-
.
|
|
1138
|
-
.
|
|
1139
|
-
.
|
|
1132
|
+
.button_label
|
|
1133
|
+
.button_primary
|
|
1134
|
+
.button_success
|
|
1135
|
+
.button_warning
|
|
1136
|
+
.button_danger
|
|
1137
|
+
.button_white
|
|
1138
|
+
.button_black
|
|
1139
|
+
.button_clear</pre>
|
|
1140
1140
|
|
|
1141
1141
|
<h3>Variables</h3>
|
|
1142
1142
|
<pre class="fs14 mono"><span class="op4">/* Required variables */</span>
|
|
@@ -1166,7 +1166,7 @@ a.link--wavy</pre>
|
|
|
1166
1166
|
</div>
|
|
1167
1167
|
|
|
1168
1168
|
|
|
1169
|
-
<div x-modal="modalFlex" class="
|
|
1169
|
+
<div x-modal="modalFlex" class="modal_hash" data-window-class="max1000">
|
|
1170
1170
|
<h2>Flex</h2>
|
|
1171
1171
|
<p>Flexbox.</p>
|
|
1172
1172
|
|
|
@@ -1197,7 +1197,7 @@ a.link--wavy</pre>
|
|
|
1197
1197
|
</div>
|
|
1198
1198
|
|
|
1199
1199
|
|
|
1200
|
-
<div x-modal="modalGrid" class="
|
|
1200
|
+
<div x-modal="modalGrid" class="modal_hash" data-window-class="max1000">
|
|
1201
1201
|
<h2>Grid</h2>
|
|
1202
1202
|
<p>Multicolumn adaptive grid (1–12 columns).</p>
|
|
1203
1203
|
|
|
@@ -1210,7 +1210,7 @@ a.link--wavy</pre>
|
|
|
1210
1210
|
</div>
|
|
1211
1211
|
|
|
1212
1212
|
|
|
1213
|
-
<div x-modal="modalFlow" class="
|
|
1213
|
+
<div x-modal="modalFlow" class="modal_hash" data-window-class="max1000">
|
|
1214
1214
|
<h2>Flow</h2>
|
|
1215
1215
|
<p>Vertical flow of elements with equal spaces between them.</p>
|
|
1216
1216
|
|
|
@@ -1223,7 +1223,7 @@ a.link--wavy</pre>
|
|
|
1223
1223
|
|
|
1224
1224
|
|
|
1225
1225
|
|
|
1226
|
-
<div x-modal="modalHelpers" class="
|
|
1226
|
+
<div x-modal="modalHelpers" class="modal_hash" data-window-class="max1000">
|
|
1227
1227
|
<h2>Helpers</h2>
|
|
1228
1228
|
<p>Helper classes.</p>
|
|
1229
1229
|
|
|
@@ -1392,7 +1392,7 @@ a.link--wavy</pre>
|
|
|
1392
1392
|
|
|
1393
1393
|
|
|
1394
1394
|
|
|
1395
|
-
<div x-modal="modalModal" class="
|
|
1395
|
+
<div x-modal="modalModal" class="modal_hash" data-window-class="max1000">
|
|
1396
1396
|
<h2>Modals</h2>
|
|
1397
1397
|
|
|
1398
1398
|
<nav class="modalNavigation sticky unselectable">
|
|
@@ -1427,12 +1427,12 @@ a.link--wavy</pre>
|
|
|
1427
1427
|
</p>
|
|
1428
1428
|
<p>Эффекты в <code>[custom-classes]</code>:</p>
|
|
1429
1429
|
<div class="codeBlock">
|
|
1430
|
-
<code>.
|
|
1431
|
-
<code>.
|
|
1432
|
-
<code>.
|
|
1433
|
-
<code>.
|
|
1434
|
-
<code>.
|
|
1435
|
-
<code>.
|
|
1430
|
+
<code>.modal_effect-in</code>
|
|
1431
|
+
<code>.modal_effect-out</code>
|
|
1432
|
+
<code>.modal_effect-up</code>
|
|
1433
|
+
<code>.modal_effect-down</code>
|
|
1434
|
+
<code>.modal_effect-left</code>
|
|
1435
|
+
<code>.modal_effect-right</code>
|
|
1436
1436
|
</div>
|
|
1437
1437
|
<p>
|
|
1438
1438
|
После инициализации, шаблон модального окна преобразуется в готовый код, который добавляется в конце страницы перед <code></body></code>. Если это поведение необходимо изменить, добавьте класс <code>.modal-here</code> элементу, в который вы хотите инициализировать модальные окна.
|
|
@@ -1613,13 +1613,13 @@ a.link--wavy</pre>
|
|
|
1613
1613
|
<a class="button modal-close">Закрыть</a>
|
|
1614
1614
|
</div>
|
|
1615
1615
|
|
|
1616
|
-
<div x-modal="modalUniq" class="
|
|
1616
|
+
<div x-modal="modalUniq" class="modal_uniq">
|
|
1617
1617
|
<h2>Уникальное окно</h2>
|
|
1618
1618
|
<p>Открыв это окно, вы закрыли все остальные окна на странице. Включая окно со страницей документации.</p>
|
|
1619
1619
|
</div>
|
|
1620
1620
|
|
|
1621
1621
|
|
|
1622
|
-
<div x-modal="modalScroll" class="
|
|
1622
|
+
<div x-modal="modalScroll" class="modal_hash" data-window-class="max1000">
|
|
1623
1623
|
<h2>Scroll</h2>
|
|
1624
1624
|
|
|
1625
1625
|
<nav class="modalNavigation sticky unselectable">
|
|
@@ -1638,7 +1638,7 @@ a.link--wavy</pre>
|
|
|
1638
1638
|
<code><a x-scrollto="top">Наверх</a></code>
|
|
1639
1639
|
<code><a x-scrollto="#top">Наверх</a></code>
|
|
1640
1640
|
</div>
|
|
1641
|
-
<p>Вызов с <a class="link
|
|
1641
|
+
<p>Вызов с <a class="link link_dashed" x-scrollto='{"parent": "#modalScroll .modal-outer", "target": "#modalScrollParams"}'>параметрами</a> в формате JSON:</p>
|
|
1642
1642
|
<div class="codeBlock">
|
|
1643
1643
|
<code><a x-scrollto='{</code>
|
|
1644
1644
|
<code> "parent": window,</code>
|
|
@@ -1726,7 +1726,7 @@ a.link--wavy</pre>
|
|
|
1726
1726
|
</div>
|
|
1727
1727
|
</div>
|
|
1728
1728
|
|
|
1729
|
-
<div x-modal="modalAnimate" class="
|
|
1729
|
+
<div x-modal="modalAnimate" class="modal_hash" data-window-class="max1000">
|
|
1730
1730
|
<h2>Animate</h2>
|
|
1731
1731
|
|
|
1732
1732
|
<nav class="modalNavigation sticky unselectable">
|
|
@@ -1816,7 +1816,7 @@ a.link--wavy</pre>
|
|
|
1816
1816
|
</div>
|
|
1817
1817
|
</div>
|
|
1818
1818
|
|
|
1819
|
-
<div x-modal="modalSheets" class="
|
|
1819
|
+
<div x-modal="modalSheets" class="modal_hash" data-window-class="max1000">
|
|
1820
1820
|
<h2>Sheets</h2>
|
|
1821
1821
|
|
|
1822
1822
|
<nav class="modalNavigation sticky unselectable">
|
|
@@ -1877,7 +1877,7 @@ a.link--wavy</pre>
|
|
|
1877
1877
|
|
|
1878
1878
|
</div>
|
|
1879
1879
|
|
|
1880
|
-
<div x-modal="modalLoadmore" class="
|
|
1880
|
+
<div x-modal="modalLoadmore" class="modal_hash" data-window-class="max1000">
|
|
1881
1881
|
<h2>Loadmore</h2>
|
|
1882
1882
|
|
|
1883
1883
|
<nav class="modalNavigation sticky unselectable">
|
|
@@ -1938,7 +1938,7 @@ a.link--wavy</pre>
|
|
|
1938
1938
|
</div>
|
|
1939
1939
|
|
|
1940
1940
|
|
|
1941
|
-
<div x-modal="modalLazyload" class="
|
|
1941
|
+
<div x-modal="modalLazyload" class="modal_hash" data-window-class="max1000">
|
|
1942
1942
|
<h2>Lazyload</h2>
|
|
1943
1943
|
|
|
1944
1944
|
<p>Отложенная загрузка изображений.</p>
|
|
@@ -1959,7 +1959,7 @@ a.link--wavy</pre>
|
|
|
1959
1959
|
</div>
|
|
1960
1960
|
|
|
1961
1961
|
|
|
1962
|
-
<div x-modal="modalAppear" class="
|
|
1962
|
+
<div x-modal="modalAppear" class="modal_hash" data-window-class="max1000">
|
|
1963
1963
|
<h2>Appear</h2>
|
|
1964
1964
|
|
|
1965
1965
|
<p>Добавляет классы <code>.appeared</code> и <code>.visible</code> на элементе, появившемся в зоне видимости.</p>
|
|
@@ -1973,7 +1973,7 @@ a.link--wavy</pre>
|
|
|
1973
1973
|
</div>
|
|
1974
1974
|
|
|
1975
1975
|
|
|
1976
|
-
<div x-modal="modalHover" class="
|
|
1976
|
+
<div x-modal="modalHover" class="modal_hash" data-window-class="max1000">
|
|
1977
1977
|
<h2>Hover</h2>
|
|
1978
1978
|
|
|
1979
1979
|
<p>Синхронизирует наведение <code>.hover</code> у отдельно расположенных элементов, имеющих общую ссылку. Для активации элементам нужно добавить класс <code>.syncHover</code>.</p>
|
|
@@ -1996,7 +1996,7 @@ a.link--wavy</pre>
|
|
|
1996
1996
|
</div>
|
|
1997
1997
|
|
|
1998
1998
|
|
|
1999
|
-
<div x-modal="modalDevice" class="
|
|
1999
|
+
<div x-modal="modalDevice" class="modal_hash" data-window-class="max1000">
|
|
2000
2000
|
<h2>Device</h2>
|
|
2001
2001
|
|
|
2002
2002
|
<p>Определяет устройство и браузер пользователя.</p>
|
|
@@ -2031,7 +2031,7 @@ a.link--wavy</pre>
|
|
|
2031
2031
|
</div>
|
|
2032
2032
|
|
|
2033
2033
|
|
|
2034
|
-
<div x-modal="modalLib" class="
|
|
2034
|
+
<div x-modal="modalLib" class="modal_hash" data-window-class="max1000">
|
|
2035
2035
|
|
|
2036
2036
|
<h2>Lib</h2>
|
|
2037
2037
|
|
|
@@ -2183,7 +2183,7 @@ a.link--wavy</pre>
|
|
|
2183
2183
|
|
|
2184
2184
|
<div class="flex aic jcse m4">
|
|
2185
2185
|
<div>
|
|
2186
|
-
<button x-dropdown-open class="button
|
|
2186
|
+
<button x-dropdown-open class="button button_dropdown" tabindex="4">Bottom menu</button>
|
|
2187
2187
|
<ul x-dropdown role="menu" tabindex="-1">
|
|
2188
2188
|
<li><a href="/admin/settings/profile/">Профиль</a></li>
|
|
2189
2189
|
<li><a href="/logout/">Выйти</a></li>
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* // import { animate } from './src/components/x/animate.js';
|
|
32
32
|
* // window.coverOut = (item) => {
|
|
33
33
|
* // // item.progress is 0..1 (string with 4 decimals)
|
|
34
|
-
* // item.element.style.setProperty('
|
|
34
|
+
* // item.element.style.setProperty('_progress', item.progress);
|
|
35
35
|
* // };
|
|
36
36
|
* // window.addEventListener('DOMContentLoaded', () => animate.init());
|
|
37
37
|
* // </script>
|
|
@@ -8,15 +8,15 @@ All right reserved.
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
.button
|
|
11
|
-
.
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
15
|
-
.
|
|
16
|
-
.
|
|
17
|
-
.
|
|
18
|
-
.
|
|
19
|
-
.
|
|
11
|
+
.button_label
|
|
12
|
+
.button_primary
|
|
13
|
+
.button_success
|
|
14
|
+
.button_warning
|
|
15
|
+
.button_danger
|
|
16
|
+
.button_white
|
|
17
|
+
.button_black
|
|
18
|
+
.button_clear
|
|
19
|
+
.button_dropdown
|
|
20
20
|
.buttons-group
|
|
21
21
|
*/
|
|
22
22
|
|
|
@@ -68,7 +68,7 @@ All right reserved.
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.button, [type=submit] {
|
|
71
|
-
/* Computed on the element so var(--button-color) respects .
|
|
71
|
+
/* Computed on the element so var(--button-color) respects .button_primary etc. */
|
|
72
72
|
--button-color-hover: color-mix(
|
|
73
73
|
in oklab,
|
|
74
74
|
var(--button-color) calc(100% - var(--button-hover-lighten)),
|
|
@@ -161,14 +161,14 @@ All right reserved.
|
|
|
161
161
|
|
|
162
162
|
/* Predefined styles & colors */
|
|
163
163
|
|
|
164
|
-
.
|
|
164
|
+
.button_spacy {
|
|
165
165
|
padding-top: calc(var(--button-font-size) * var(--button-side-padding-coeff) * 0.75);
|
|
166
166
|
padding-bottom: calc(var(--button-font-size) * var(--button-side-padding-coeff) * 0.75);
|
|
167
167
|
padding-left: calc(var(--button-font-size) * var(--button-side-padding-coeff) * 1.25);
|
|
168
168
|
padding-right: calc(var(--button-font-size) * var(--button-side-padding-coeff) * 1.25);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
.
|
|
171
|
+
.button_label {
|
|
172
172
|
--button-height: calc(var(--line-height) * 1em);
|
|
173
173
|
--button-side-padding: .5em;
|
|
174
174
|
--button-font-size: inherit;
|
|
@@ -176,31 +176,31 @@ All right reserved.
|
|
|
176
176
|
vertical-align: baseline;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.
|
|
179
|
+
.button_primary {
|
|
180
180
|
--button-color: var(--color-primary);
|
|
181
181
|
--button-font-color: #fff;
|
|
182
182
|
}
|
|
183
|
-
.
|
|
183
|
+
.button_success {
|
|
184
184
|
--button-color: var(--color-success);
|
|
185
185
|
--button-font-color: #fff;
|
|
186
186
|
}
|
|
187
|
-
.
|
|
187
|
+
.button_warning {
|
|
188
188
|
--button-color: var(--color-warning);
|
|
189
189
|
--button-font-color: #fff;
|
|
190
190
|
}
|
|
191
|
-
.
|
|
191
|
+
.button_danger {
|
|
192
192
|
--button-color: var(--color-danger);
|
|
193
193
|
--button-font-color: #fff;
|
|
194
194
|
}
|
|
195
|
-
.
|
|
195
|
+
.button_white {
|
|
196
196
|
--button-color: #fff;
|
|
197
197
|
--button-font-color: #000;
|
|
198
198
|
}
|
|
199
|
-
.
|
|
199
|
+
.button_black {
|
|
200
200
|
--button-color: #111;
|
|
201
201
|
--button-font-color: #fff;
|
|
202
202
|
}
|
|
203
|
-
.
|
|
203
|
+
.button_clear {
|
|
204
204
|
--button-color: transparent;
|
|
205
205
|
--button-box-shadow: none;
|
|
206
206
|
--button-box-shadow-hover: none;
|
|
@@ -232,9 +232,9 @@ All right reserved.
|
|
|
232
232
|
|
|
233
233
|
/* Dropdown button */
|
|
234
234
|
|
|
235
|
-
.
|
|
236
|
-
--
|
|
237
|
-
padding-right: calc(var(--button-side-padding, --
|
|
235
|
+
.button_dropdown {
|
|
236
|
+
--temp: calc(var(--button-font-size) * var(--button-side-padding-coeff));
|
|
237
|
+
padding-right: calc(var(--button-side-padding, var(--temp)) * 1.8);
|
|
238
238
|
|
|
239
239
|
&::after {
|
|
240
240
|
content: '';
|
|
@@ -256,12 +256,12 @@ All right reserved.
|
|
|
256
256
|
transition: opacity .1s ease-out;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
.
|
|
259
|
+
.dropdown_bottom .button_dropdown::after {
|
|
260
260
|
transform: rotate(225deg);
|
|
261
261
|
margin-top: .35em;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.
|
|
264
|
+
.button_dropdown.active {
|
|
265
265
|
&::after {
|
|
266
266
|
opacity: 1;
|
|
267
267
|
}
|