@diplodoc/transform 4.32.2 → 4.32.4
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/README.md +2 -2
- package/dist/css/print.css.map +1 -1
- package/dist/css/yfm.css +186 -46
- package/dist/css/yfm.css.map +3 -3
- package/dist/css/yfm.min.css +1 -1
- package/dist/css/yfm.min.css.map +3 -3
- package/dist/js/yfm.js +148 -86
- package/dist/js/yfm.js.map +3 -3
- package/dist/js/yfm.min.js +1 -1
- package/dist/js/yfm.min.js.map +3 -3
- package/lib/plugins/includes/collect.js +5 -3
- package/lib/plugins/includes/collect.js.map +1 -1
- package/lib/plugins/tabs.js +11 -1
- package/lib/plugins/tabs.js.map +1 -1
- package/lib/plugins/video/utils.js +1 -1
- package/lib/plugins/video/utils.js.map +1 -1
- package/package.json +2 -2
- package/src/transform/plugins/includes/collect.ts +5 -3
- package/src/transform/plugins/tabs.ts +11 -1
- package/src/transform/plugins/video/utils.ts +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Use it in your code to work with text during program execution. For example, to
|
|
|
36
36
|
|
|
37
37
|
The package provides the `transform()` function:
|
|
38
38
|
|
|
39
|
-
- Input data: [Settings](settings
|
|
39
|
+
- Input data: [Settings](https://diplodoc.com/docs/en/tools/transform/settings) and a string with YFM.
|
|
40
40
|
- Returned value: An object with the `result` and `logs` fields.
|
|
41
41
|
|
|
42
42
|
### Result field
|
|
@@ -44,7 +44,7 @@ The package provides the `transform()` function:
|
|
|
44
44
|
`result`: Resulting object, contains the fields:
|
|
45
45
|
|
|
46
46
|
- `html`: A line with HTML.
|
|
47
|
-
- `meta`:
|
|
47
|
+
- `meta`: Metadata from the transmitted content.
|
|
48
48
|
- `title`: The document title. Returned if `extractTitle = true` or `needTitle = true`.
|
|
49
49
|
- `headings`: A list of document headers.
|
|
50
50
|
|
package/dist/css/print.css.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/scss/home/runner/work/transform/transform/src/scss/print/code.scss", "../../src/scss/%3Cinput%20css%
|
|
3
|
+
"sources": ["../../src/scss/home/runner/work/transform/transform/src/scss/print/code.scss", "../../src/scss/%3Cinput%20css%20JLgAnl%3E", "../../src/scss/home/runner/work/transform/transform/src/scss/print/common.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/cut.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/note.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/table.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/tabs.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/term.scss"],
|
|
4
4
|
"sourcesContent": ["@media print {\n .yfm {\n .yfm-clipboard {\n & > pre > code {\n white-space: pre-wrap;\n }\n }\n }\n}", "@media print {\n .yfm .yfm-clipboard > pre > code {\n white-space: pre-wrap;\n }\n}\n@media print {\n .yfm .yfm-page__delimeter {\n display: none;\n }\n .yfm h1[data-original-article], .yfm h2[data-original-article] {\n page-break-before: always;\n }\n}\n@media print {\n .yfm .yfm-cut-title {\n padding-left: 0;\n }\n .yfm .yfm-cut-title:before {\n display: none;\n }\n .yfm .yfm-cut-content {\n height: auto;\n display: block;\n padding: 5px 0 15px 30px;\n }\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol {\n counter-reset: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li {\n counter-increment: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li::before {\n content: counters(cut-list, \".\") \". \";\n}\n\n@media print {\n .yfm .yfm-note {\n page-break-inside: avoid;\n }\n}\n.yfm .yfm-table-container {\n position: relative;\n}\n.yfm .yfm-table-container > table {\n overflow: initial;\n position: absolute;\n top: 0;\n left: 0;\n max-width: initial;\n transform-origin: top left;\n}\n.yfm .yfm-table-container > table thead {\n display: table-row-group;\n}\n.yfm .yfm-table-container > table th, .yfm .yfm-table-container > table td {\n page-break-inside: avoid;\n white-space: pre-wrap;\n text-overflow: initial;\n}\n\n@media print {\n .yfm .yfm-tab-list {\n display: none;\n }\n .yfm .yfm-tab-panel {\n visibility: visible;\n height: auto;\n display: block;\n }\n .yfm .yfm-tab-panel:before {\n content: attr(data-title);\n margin-bottom: -1px;\n margin-right: 20px;\n border-bottom: 2px solid transparent;\n line-height: 33px;\n font-weight: 700;\n outline: 0;\n cursor: pointer;\n }\n}\n@media print {\n .yfm .yfm-term_title {\n color: currentColor;\n border-bottom: none;\n }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUvcnVubmVyL3dvcmsvdHJhbnNmb3JtL3RyYW5zZm9ybS9zcmMvc2NzcyIsInNvdXJjZXMiOlsicHJpbnQvY29kZS5zY3NzIiwicHJpbnQvY29tbW9uLnNjc3MiLCJwcmludC9jdXQuc2NzcyIsInByaW50L25vdGUuc2NzcyIsInByaW50L3RhYmxlLnNjc3MiLCJwcmludC90YWJzLnNjc3MiLCJwcmludC90ZXJtLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFHWTtJQUNJOzs7QUNKaEI7RUFFUTtJQUNJOztFQUlBO0lBQ0k7OztBQ1JoQjtFQUdZO0lBQ0k7O0VBRUE7SUFDSTs7RUFJUjtJQUNJO0lBQ0E7SUFDQTs7O0FBT1o7RUFDSTs7QUFFQTtFQUNJOztBQUVBO0VBQ0k7OztBQzVCaEI7RUFFUTtJQUNJOzs7QUNGUjtFQUNJOztBQUVBO0VBQ0k7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0k7O0FBR0o7RUFDSTtFQUNBO0VBQ0E7OztBQ25CaEI7RUFHWTtJQUNJOztFQUdKO0lBQ0k7SUFDQTtJQUNBOztFQUdKO0lBQ0k7SUFDQTtJQUNBO0lBQ0E7SUFDQTtJQUNBO0lBQ0E7SUFDQTs7O0FDckJoQjtFQUdZO0lBQ0k7SUFDQSIsInNvdXJjZXNDb250ZW50IjpbIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tY2xpcGJvYXJkIHtcbiAgICAgICAgICAgICYgPiBwcmUgPiBjb2RlIHtcbiAgICAgICAgICAgICAgICB3aGl0ZS1zcGFjZTogcHJlLXdyYXA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59IiwiQG1lZGlhIHByaW50IHtcbiAgICAueWZtIHtcbiAgICAgICAgLnlmbS1wYWdlX19kZWxpbWV0ZXIge1xuICAgICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGgxLCBoMiB7XG4gICAgICAgICAgICAmW2RhdGEtb3JpZ2luYWwtYXJ0aWNsZV0ge1xuICAgICAgICAgICAgICAgIHBhZ2UtYnJlYWstYmVmb3JlOiBhbHdheXM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59IiwiQG1lZGlhIHByaW50IHtcbiAgICAueWZtIHtcbiAgICAgICAgLnlmbS1jdXQge1xuICAgICAgICAgICAgJi10aXRsZSB7XG4gICAgICAgICAgICAgICAgcGFkZGluZy1sZWZ0OiAwO1xuXG4gICAgICAgICAgICAgICAgJjpiZWZvcmUge1xuICAgICAgICAgICAgICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi1jb250ZW50IHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IGF1dG87XG4gICAgICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgICAgICAgcGFkZGluZzogNXB4IDAgMTVweCAzMHB4O1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuXG4ueWZtLWN1dC1jb250ZW50IHtcbiAgICAueWZtOm5vdCgueWZtX25vLWxpc3QtcmVzZXQpICYgb2wge1xuICAgICAgICBjb3VudGVyLXJlc2V0OiBjdXQtbGlzdDtcblxuICAgICAgICAmID4gbGkge1xuICAgICAgICAgICAgY291bnRlci1pbmNyZW1lbnQ6IGN1dC1saXN0O1xuXG4gICAgICAgICAgICAmOjpiZWZvcmUge1xuICAgICAgICAgICAgICAgIGNvbnRlbnQ6IGNvdW50ZXJzKGN1dC1saXN0LCAnLicpICcuICc7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG4iLCJAbWVkaWEgcHJpbnQge1xuICAgIC55Zm0ge1xuICAgICAgICAueWZtLW5vdGUge1xuICAgICAgICAgICAgcGFnZS1icmVhay1pbnNpZGU6IGF2b2lkO1xuICAgICAgICB9XG4gICAgfVxufVxuIiwiLnlmbSB7XG4gICAgLnlmbS10YWJsZS1jb250YWluZXIge1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG5cbiAgICAgICAgJiA+IHRhYmxlIHtcbiAgICAgICAgICAgIG92ZXJmbG93OiBpbml0aWFsO1xuICAgICAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICAgICAgdG9wOiAwO1xuICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgIG1heC13aWR0aDogaW5pdGlhbDtcbiAgICAgICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IHRvcCBsZWZ0O1xuXG4gICAgICAgICAgICB0aGVhZCB7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogdGFibGUtcm93LWdyb3VwO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aCwgdGQge1xuICAgICAgICAgICAgICAgIHBhZ2UtYnJlYWstaW5zaWRlOiBhdm9pZDtcbiAgICAgICAgICAgICAgICB3aGl0ZS1zcGFjZTogcHJlLXdyYXA7XG4gICAgICAgICAgICAgICAgdGV4dC1vdmVyZmxvdzogaW5pdGlhbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0iLCJAbWVkaWEgcHJpbnQge1xuICAgIC55Zm0ge1xuICAgICAgICAueWZtLXRhYiB7XG4gICAgICAgICAgICAmLWxpc3Qge1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYtcGFuZWwge1xuICAgICAgICAgICAgICAgIHZpc2liaWxpdHk6IHZpc2libGU7XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiBhdXRvO1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLXBhbmVsOmJlZm9yZSB7XG4gICAgICAgICAgICAgICAgY29udGVudDogYXR0cihkYXRhLXRpdGxlKTtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAtMXB4O1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMjBweDtcbiAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tOiAycHggc29saWQgdHJhbnNwYXJlbnQ7XG4gICAgICAgICAgICAgICAgbGluZS1oZWlnaHQ6IDMzcHg7XG4gICAgICAgICAgICAgICAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgICAgICAgICAgICAgICBvdXRsaW5lOiAwO1xuICAgICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tdGVybSB7XG4gICAgICAgICAgICAmX3RpdGxlIHtcbiAgICAgICAgICAgICAgICBjb2xvcjogY3VycmVudENvbG9yO1xuICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b206IG5vbmU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59Il19 */", "@media print {\n .yfm {\n .yfm-page__delimeter {\n display: none;\n }\n\n h1, h2 {\n &[data-original-article] {\n page-break-before: always;\n }\n }\n }\n}", "@media print {\n .yfm {\n .yfm-cut {\n &-title {\n padding-left: 0;\n\n &:before {\n display: none;\n }\n }\n\n &-content {\n height: auto;\n display: block;\n padding: 5px 0 15px 30px;\n }\n }\n }\n}\n\n.yfm-cut-content {\n .yfm:not(.yfm_no-list-reset) & ol {\n counter-reset: cut-list;\n\n & > li {\n counter-increment: cut-list;\n\n &::before {\n content: counters(cut-list, '.') '. ';\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-note {\n page-break-inside: avoid;\n }\n }\n}\n", ".yfm {\n .yfm-table-container {\n position: relative;\n\n & > table {\n overflow: initial;\n position: absolute;\n top: 0;\n left: 0;\n max-width: initial;\n transform-origin: top left;\n\n thead {\n display: table-row-group;\n }\n\n th, td {\n page-break-inside: avoid;\n white-space: pre-wrap;\n text-overflow: initial;\n }\n }\n }\n}", "@media print {\n .yfm {\n .yfm-tab {\n &-list {\n display: none;\n }\n\n &-panel {\n visibility: visible;\n height: auto;\n display: block;\n }\n\n &-panel:before {\n content: attr(data-title);\n margin-bottom: -1px;\n margin-right: 20px;\n border-bottom: 2px solid transparent;\n line-height: 33px;\n font-weight: 700;\n outline: 0;\n cursor: pointer;\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-term {\n &_title {\n color: currentColor;\n border-bottom: none;\n }\n }\n }\n}"],
|
|
5
5
|
"mappings": ";AAAA,OAAA;AAGY,GAAA,IAAA,CAAA,cAAA,EAAA,IAAA,EAAA;AACI,iBAAA;ACDd;AACF;ACJA,OAAA;AAEQ,GFCI,IEDJ,CAAA;AACI,aAAA;ADKV;ACDU,GFJA,IEIA,EAAA,CAAA;EAAA,CFJA,IEIA,EAAA,CAAA;AACI,uBAAA;ADGd;AACF;AEZA,OAAA;AAGY,GHAA,IGAA,CAAA;AACI,kBAAA;AFYd;AEVc,GHHJ,IGGI,CAHJ,aAGI;AACI,aAAA;AFYlB;AERU,GHRA,IGQA,CAAA;AACI,YAAA;AACA,aAAA;AACA,aAAA,IAAA,EAAA,KAAA;AFUd;AACF;AEJI,CHlBQ,GGkBR,KAAA,CAAA,mBAAA,CAVQ,gBAUR;AACI,iBAAA;AFMR;AEJQ,CHrBI,GGqBJ,KAAA,CAHJ,mBAGI,CAbI,gBAaJ,GAAA,EAAA;AACI,qBAAA;AFMZ;AEJY,CHxBA,GGwBA,KAAA,CANR,mBAMQ,CAhBA,gBAgBA,GAAA,EAAA,EAAA;AACI,WAAA,SAAA,QAAA,EAAA,KAAA;AFMhB;AGlCA,OAAA;AAEQ,GJCI,IIDJ,CAAA;AACI,uBAAA;AHoCV;AACF;AIvCI,CLEQ,IKFR,CAAA;AACI,YAAA;AJyCR;AIvCQ,CLDI,IKCJ,CAHJ,oBAGI,EAAA;AACI,YAAA;AAAA,YAAA;AACA,YAAA;AACA,OAAA;AACA,QAAA;AACA,aAAA;AAAA,aAAA;AACA,oBAAA,IAAA;AJyCZ;AIvCY,CLTA,IKSA,CAXR,oBAWQ,EAAA,MAAA;AACI,WAAA;AJyChB;AItCY,CLbA,IKaA,CAfR,oBAeQ,EAAA,MAAA;AAAA,CLbA,IKaA,CAfR,oBAeQ,EAAA,MAAA;AACI,qBAAA;AACA,eAAA;AACA,iBAAA;AJwChB;AK3DA,OAAA;AAGY,GNAA,IMAA,CAAA;AACI,aAAA;AL4Dd;AKzDU,GNJA,IMIA,CAAA;AACI,gBAAA;AACA,YAAA;AACA,aAAA;AL2Dd;AKxDU,GNVA,IMUA,CANA,aAMA;AACI,aAAA,KAAA;AACA,mBAAA;AACA,kBAAA;AACA,mBAAA,IAAA,MAAA;AACA,iBAAA;AACA,iBAAA;AACA,aAAA;AACA,YAAA;AL0Dd;AACF;AMhFA,OAAA;AAGY,GPAA,IOAA,CAAA;AACI,WAAA;AACA,mBAAA;ANgFd;AACF;",
|
|
6
6
|
"names": []
|
package/dist/css/yfm.css
CHANGED
|
@@ -909,6 +909,192 @@
|
|
|
909
909
|
margin-bottom: 15px;
|
|
910
910
|
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
|
|
911
911
|
}
|
|
912
|
+
.yfm-tab {
|
|
913
|
+
margin-bottom: -1px;
|
|
914
|
+
margin-right: 20px;
|
|
915
|
+
border-bottom: 2px solid transparent;
|
|
916
|
+
padding: 6px 0 7px;
|
|
917
|
+
font-weight: 700;
|
|
918
|
+
outline: none;
|
|
919
|
+
cursor: pointer;
|
|
920
|
+
-webkit-user-select: none;
|
|
921
|
+
-moz-user-select: none;
|
|
922
|
+
user-select: none;
|
|
923
|
+
white-space: break-spaces;
|
|
924
|
+
}
|
|
925
|
+
.yfm-tab:last-child {
|
|
926
|
+
margin-right: 0;
|
|
927
|
+
}
|
|
928
|
+
.yfm-tab:hover,
|
|
929
|
+
.yfm-tab:active {
|
|
930
|
+
color: #004080;
|
|
931
|
+
}
|
|
932
|
+
.yfm-tab.active {
|
|
933
|
+
border-bottom-color: #027bf3;
|
|
934
|
+
}
|
|
935
|
+
.yfm-tab:focus {
|
|
936
|
+
outline: 2px solid #4d90fe;
|
|
937
|
+
border-radius: 2px;
|
|
938
|
+
}
|
|
939
|
+
.yfm-tab:focus:not(:focus-visible) {
|
|
940
|
+
outline: 0;
|
|
941
|
+
}
|
|
942
|
+
.yfm-tab-panel {
|
|
943
|
+
position: relative;
|
|
944
|
+
visibility: hidden;
|
|
945
|
+
overflow: hidden;
|
|
946
|
+
height: 0;
|
|
947
|
+
}
|
|
948
|
+
.yfm-tab-panel:first-child {
|
|
949
|
+
margin-top: 0 !important;
|
|
950
|
+
}
|
|
951
|
+
.yfm-tab-panel:last-child {
|
|
952
|
+
margin-bottom: 0 !important;
|
|
953
|
+
}
|
|
954
|
+
.yfm-tab-panel.active {
|
|
955
|
+
visibility: visible;
|
|
956
|
+
overflow: visible;
|
|
957
|
+
height: auto;
|
|
958
|
+
}
|
|
959
|
+
.yfm-tabs-dropdown {
|
|
960
|
+
position: relative;
|
|
961
|
+
width: 90%;
|
|
962
|
+
margin-bottom: 0;
|
|
963
|
+
--yfm-tabs-dropdown-color: #F2F2F2;
|
|
964
|
+
--yfm-tabs-dropdown-text-color: #A8A8A8;
|
|
965
|
+
--yfm-tabs-dropdown-color-border: #CCC;
|
|
966
|
+
}
|
|
967
|
+
.yfm-tabs-dropdown .yfm-tabs-dropdown-select {
|
|
968
|
+
padding: 10px 30px 10px 10px;
|
|
969
|
+
background: var(--g-color-base-background);
|
|
970
|
+
border: 1px solid var(--yfm-tabs-dropdown-color-border);
|
|
971
|
+
color: var(--yfm-tabs-dropdown-text-color);
|
|
972
|
+
border-radius: 5px;
|
|
973
|
+
position: relative;
|
|
974
|
+
-webkit-user-select: none;
|
|
975
|
+
-moz-user-select: none;
|
|
976
|
+
user-select: none;
|
|
977
|
+
margin-bottom: 10px;
|
|
978
|
+
max-width: 500px;
|
|
979
|
+
text-overflow: ellipsis;
|
|
980
|
+
white-space: nowrap;
|
|
981
|
+
overflow: hidden;
|
|
982
|
+
z-index: 10;
|
|
983
|
+
}
|
|
984
|
+
.yfm-tabs-dropdown .yfm-tabs-dropdown-select.filled {
|
|
985
|
+
color: inherit;
|
|
986
|
+
}
|
|
987
|
+
.yfm-tabs-dropdown .yfm-tabs-dropdown-select:after {
|
|
988
|
+
content: "";
|
|
989
|
+
position: absolute;
|
|
990
|
+
display: block;
|
|
991
|
+
right: 10px;
|
|
992
|
+
top: 25%;
|
|
993
|
+
transform: rotate(90deg);
|
|
994
|
+
transition: transform 0.2s;
|
|
995
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGQ9Im0zIDYgNSA1IDUtNSIvPjwvc3ZnPg==);
|
|
996
|
+
width: 20px;
|
|
997
|
+
height: 20px;
|
|
998
|
+
}
|
|
999
|
+
.yfm-tabs-dropdown .yfm-tabs-dropdown-select.active + .yfm-tabs-dropdown-menu {
|
|
1000
|
+
transform: scaleY(1);
|
|
1001
|
+
}
|
|
1002
|
+
.yfm-tabs-dropdown .yfm-tabs-dropdown-select.active:after {
|
|
1003
|
+
transform: rotate(0);
|
|
1004
|
+
}
|
|
1005
|
+
.yfm-tabs-dropdown > .yfm-tabs-dropdown-menu {
|
|
1006
|
+
width: 100%;
|
|
1007
|
+
max-width: 500px;
|
|
1008
|
+
max-height: 500px;
|
|
1009
|
+
overflow-y: scroll;
|
|
1010
|
+
padding: 10px 0;
|
|
1011
|
+
position: absolute;
|
|
1012
|
+
z-index: 10;
|
|
1013
|
+
display: flex;
|
|
1014
|
+
flex-direction: column;
|
|
1015
|
+
border: 1px solid var(--yfm-tabs-dropdown-color-border);
|
|
1016
|
+
border-radius: 5px;
|
|
1017
|
+
background-color: var(--g-color-base-background);
|
|
1018
|
+
transform: scaleY(0);
|
|
1019
|
+
list-style: none;
|
|
1020
|
+
z-index: 100;
|
|
1021
|
+
transition: transform 125ms;
|
|
1022
|
+
transform-origin: top center;
|
|
1023
|
+
}
|
|
1024
|
+
.yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li {
|
|
1025
|
+
-webkit-user-select: none;
|
|
1026
|
+
-moz-user-select: none;
|
|
1027
|
+
user-select: none;
|
|
1028
|
+
cursor: pointer;
|
|
1029
|
+
background-color: var(--g-color-base-background);
|
|
1030
|
+
}
|
|
1031
|
+
.yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li:hover {
|
|
1032
|
+
background-color: var(--g-color-base-simple-hover);
|
|
1033
|
+
color: inherit;
|
|
1034
|
+
}
|
|
1035
|
+
.yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li.yfm-tab {
|
|
1036
|
+
padding: 5px 0 5px 10px;
|
|
1037
|
+
border-radius: 0;
|
|
1038
|
+
border-bottom: 0;
|
|
1039
|
+
border-bottom: initial;
|
|
1040
|
+
margin: 0;
|
|
1041
|
+
font-weight: 500;
|
|
1042
|
+
}
|
|
1043
|
+
.yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li.yfm-tab.active {
|
|
1044
|
+
background-color: var(--g-color-base-selection);
|
|
1045
|
+
}
|
|
1046
|
+
.yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li.yfm-tab:hover {
|
|
1047
|
+
color: inherit;
|
|
1048
|
+
}
|
|
1049
|
+
.yfm-tabs-dropdown > .yfm-tab-panel.active {
|
|
1050
|
+
border: 1px solid #F2F2F2;
|
|
1051
|
+
transform: translateY(-30px);
|
|
1052
|
+
border-radius: 12px;
|
|
1053
|
+
padding: 40px 12px 16px;
|
|
1054
|
+
}
|
|
1055
|
+
.yfm-tabs-dropdown > .yfm-tabs {
|
|
1056
|
+
width: 100%;
|
|
1057
|
+
}
|
|
1058
|
+
.yfm-tabs-accordion {
|
|
1059
|
+
max-width: 80%;
|
|
1060
|
+
}
|
|
1061
|
+
.yfm-tabs-accordion > .yfm-tab:first-of-type {
|
|
1062
|
+
border-top-color: transparent;
|
|
1063
|
+
}
|
|
1064
|
+
.yfm-tabs-accordion .yfm-tab {
|
|
1065
|
+
padding: 8px 0 12px 6px;
|
|
1066
|
+
position: relative;
|
|
1067
|
+
border-top: 1px solid #E5E5E5;
|
|
1068
|
+
font-weight: 500;
|
|
1069
|
+
scroll-margin-top: 20px;
|
|
1070
|
+
}
|
|
1071
|
+
.yfm-tabs-accordion .yfm-tab:after {
|
|
1072
|
+
content: "";
|
|
1073
|
+
position: absolute;
|
|
1074
|
+
display: block;
|
|
1075
|
+
right: 10px;
|
|
1076
|
+
top: 25%;
|
|
1077
|
+
transform: rotate(-180deg);
|
|
1078
|
+
transition: transform 0.3s, background-color 0.2s;
|
|
1079
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGQ9Im0zIDYgNSA1IDUtNSIvPjwvc3ZnPg==);
|
|
1080
|
+
width: 20px;
|
|
1081
|
+
height: 20px;
|
|
1082
|
+
border-radius: 6px;
|
|
1083
|
+
padding: 6px;
|
|
1084
|
+
}
|
|
1085
|
+
.yfm-tabs-accordion .yfm-tab.active {
|
|
1086
|
+
border-bottom-color: transparent !important;
|
|
1087
|
+
font-weight: 700;
|
|
1088
|
+
}
|
|
1089
|
+
.yfm-tabs-accordion .yfm-tab.active:after {
|
|
1090
|
+
transform: rotate(0);
|
|
1091
|
+
}
|
|
1092
|
+
.yfm-tabs-accordion .yfm-tab:hover {
|
|
1093
|
+
color: #3f5799;
|
|
1094
|
+
}
|
|
1095
|
+
.yfm-tabs-accordion .yfm-tab-panel.active {
|
|
1096
|
+
margin: 10px 0 25px 6px;
|
|
1097
|
+
}
|
|
912
1098
|
.yfm-tabs-vertical > .yfm-tab-list {
|
|
913
1099
|
flex-direction: column;
|
|
914
1100
|
border-bottom: 0;
|
|
@@ -967,50 +1153,4 @@
|
|
|
967
1153
|
border-bottom: 0 !important;
|
|
968
1154
|
border-bottom: initial !important;
|
|
969
1155
|
}
|
|
970
|
-
.yfm-tab {
|
|
971
|
-
margin-bottom: -1px;
|
|
972
|
-
margin-right: 20px;
|
|
973
|
-
border-bottom: 2px solid transparent;
|
|
974
|
-
padding: 6px 0 7px;
|
|
975
|
-
font-weight: 700;
|
|
976
|
-
outline: none;
|
|
977
|
-
cursor: pointer;
|
|
978
|
-
-webkit-user-select: none;
|
|
979
|
-
-moz-user-select: none;
|
|
980
|
-
user-select: none;
|
|
981
|
-
white-space: break-spaces;
|
|
982
|
-
}
|
|
983
|
-
.yfm-tab:last-child {
|
|
984
|
-
margin-right: 0;
|
|
985
|
-
}
|
|
986
|
-
.yfm-tab:hover,
|
|
987
|
-
.yfm-tab:active {
|
|
988
|
-
color: #004080;
|
|
989
|
-
}
|
|
990
|
-
.yfm-tab.active {
|
|
991
|
-
border-bottom-color: #027bf3;
|
|
992
|
-
}
|
|
993
|
-
.yfm-tab:focus {
|
|
994
|
-
outline: 2px solid #4d90fe;
|
|
995
|
-
border-radius: 2px;
|
|
996
|
-
}
|
|
997
|
-
.yfm-tab:focus:not(:focus-visible) {
|
|
998
|
-
outline: 0;
|
|
999
|
-
}
|
|
1000
|
-
.yfm-tab-panel {
|
|
1001
|
-
position: relative;
|
|
1002
|
-
visibility: hidden;
|
|
1003
|
-
overflow: hidden;
|
|
1004
|
-
height: 0;
|
|
1005
|
-
}
|
|
1006
|
-
.yfm-tab-panel:first-child {
|
|
1007
|
-
margin-top: 0 !important;
|
|
1008
|
-
}
|
|
1009
|
-
.yfm-tab-panel:last-child {
|
|
1010
|
-
margin-bottom: 0 !important;
|
|
1011
|
-
}
|
|
1012
|
-
.yfm-tab-panel.active {
|
|
1013
|
-
visibility: visible;
|
|
1014
|
-
height: auto;
|
|
1015
|
-
}
|
|
1016
1156
|
/*# sourceMappingURL=yfm.css.map */
|