@genexus/mercury 0.4.22 → 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/dist/bundles/css/all.css +1 -1
- package/dist/bundles/css/base/base.css +1 -1
- package/dist/bundles/css/base/icons.css +1 -1
- package/dist/bundles/css/components/accordion.css +1 -0
- package/dist/bundles/css/components/button.css +1 -1
- package/dist/bundles/css/components/checkbox.css +1 -1
- package/dist/bundles/css/components/code.css +1 -1
- package/dist/bundles/css/components/combo-box.css +1 -1
- package/dist/bundles/css/components/dialog.css +1 -1
- package/dist/bundles/css/components/edit.css +1 -1
- package/dist/bundles/css/components/list-box.css +1 -1
- package/dist/bundles/css/components/markdown-viewer.css +1 -0
- package/dist/bundles/css/components/radio-group.css +1 -1
- package/dist/bundles/css/components/tab.css +1 -1
- package/dist/bundles/css/components/tabular-grid.css +1 -1
- package/dist/bundles/css/components/tree-view.css +1 -1
- package/dist/bundles/css/resets/box-sizing.css +1 -1
- package/dist/bundles/css/utils/form--full.css +1 -1
- package/dist/bundles/css/utils/form.css +1 -1
- package/dist/bundles/css/utils/layout.css +1 -1
- package/dist/bundles/css/utils/typography.css +1 -1
- package/dist/bundles/scss/components/accordion.scss +3 -0
- package/dist/bundles/scss/components/markdown-viewer.scss +3 -0
- package/dist/bundles.d.ts +10 -4
- package/dist/bundles.js +2 -0
- package/dist/mercury.scss +354 -161
- package/package.json +2 -2
package/dist/mercury.scss
CHANGED
|
@@ -248,7 +248,6 @@
|
|
|
248
248
|
/*----------------------
|
|
249
249
|
Focus
|
|
250
250
|
----------------------*/
|
|
251
|
-
|
|
252
251
|
@mixin focus-outline($outline: false) {
|
|
253
252
|
outline: var(--focus__outline-width) var(--focus__outline-style)
|
|
254
253
|
var(--focus__outline-color);
|
|
@@ -261,8 +260,11 @@ Focus
|
|
|
261
260
|
/*----------------------
|
|
262
261
|
Scrollbar
|
|
263
262
|
----------------------*/
|
|
264
|
-
|
|
265
263
|
@mixin scrollbar-styles() {
|
|
264
|
+
scrollbar-width: thin;
|
|
265
|
+
scrollbar-color: var(--scrollbar-thumb__bg-color)
|
|
266
|
+
var(--scrollbar-track__bg-color);
|
|
267
|
+
|
|
266
268
|
//scrollbar
|
|
267
269
|
&::-webkit-scrollbar {
|
|
268
270
|
width: var(--scrollbar__size);
|
|
@@ -1653,7 +1655,6 @@ Body Spacing
|
|
|
1653
1655
|
/*----------------------
|
|
1654
1656
|
Focus
|
|
1655
1657
|
----------------------*/
|
|
1656
|
-
|
|
1657
1658
|
@mixin focus-outline($outline: false) {
|
|
1658
1659
|
outline: var(--focus__outline-width) var(--focus__outline-style)
|
|
1659
1660
|
var(--focus__outline-color);
|
|
@@ -1666,8 +1667,11 @@ Focus
|
|
|
1666
1667
|
/*----------------------
|
|
1667
1668
|
Scrollbar
|
|
1668
1669
|
----------------------*/
|
|
1669
|
-
|
|
1670
1670
|
@mixin scrollbar-styles() {
|
|
1671
|
+
scrollbar-width: thin;
|
|
1672
|
+
scrollbar-color: var(--scrollbar-thumb__bg-color)
|
|
1673
|
+
var(--scrollbar-track__bg-color);
|
|
1674
|
+
|
|
1671
1675
|
//scrollbar
|
|
1672
1676
|
&::-webkit-scrollbar {
|
|
1673
1677
|
width: var(--scrollbar__size);
|
|
@@ -2792,6 +2796,10 @@ Heading
|
|
|
2792
2796
|
}
|
|
2793
2797
|
}
|
|
2794
2798
|
|
|
2799
|
+
%text-link {
|
|
2800
|
+
text-decoration: underline;
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2795
2803
|
// body
|
|
2796
2804
|
%text-body {
|
|
2797
2805
|
@include body-tokens();
|
|
@@ -2799,7 +2807,6 @@ Heading
|
|
|
2799
2807
|
font-family: var(--text-body__font-family);
|
|
2800
2808
|
font-weight: var(--text-body__font-weight);
|
|
2801
2809
|
line-height: var(--text-body__line-height);
|
|
2802
|
-
margin-block: var(--text-body__margin-block);
|
|
2803
2810
|
}
|
|
2804
2811
|
|
|
2805
2812
|
// tab
|
|
@@ -2995,6 +3002,98 @@ Text States e.g.: for the property-grid
|
|
|
2995
3002
|
|
|
2996
3003
|
|
|
2997
3004
|
// Components
|
|
3005
|
+
%accordion {
|
|
3006
|
+
--ch-accordion__header-image-size: var(--mer-icon__box--sm);
|
|
3007
|
+
--ch-accordion__chevron-size: var(--mer-icon__box--sm);
|
|
3008
|
+
|
|
3009
|
+
--ch-accordion-expand-collapse-duration: var(--mer-timing--fast);
|
|
3010
|
+
--ch-accordion-expand-collapse-timing-function: ease-in-out;
|
|
3011
|
+
|
|
3012
|
+
gap: var(--mer-spacing--2xs);
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
%accordion-header {
|
|
3016
|
+
@extend %text-body;
|
|
3017
|
+
padding: var(--mer-spacing--sm);
|
|
3018
|
+
gap: var(--mer-spacing--sm);
|
|
3019
|
+
|
|
3020
|
+
&--focus-visible {
|
|
3021
|
+
outline: 1px solid;
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
%accordion-panel {
|
|
3026
|
+
border-radius: var(--mer-border__radius--sm);
|
|
3027
|
+
background-color: var(--mer-color__elevation--01);
|
|
3028
|
+
|
|
3029
|
+
&-outlined {
|
|
3030
|
+
border: 1px solid var(--mer-border-color__on-surface);
|
|
3031
|
+
border-radius: var(--mer-border__radius--sm);
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
%accordion-section {
|
|
3036
|
+
// "1px" is used to improve the display of the outline when :focus-visible
|
|
3037
|
+
margin-block: 1px var(--mer-spacing--sm);
|
|
3038
|
+
margin-inline: var(--mer-spacing--sm);
|
|
3039
|
+
border: 1px solid var(--mer-border-color__on-elevation--01);
|
|
3040
|
+
border-radius: var(--mer-border__radius--sm);
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
@mixin accordion-filled(
|
|
3044
|
+
$accordion-selector: ".accordion-filled",
|
|
3045
|
+
$panel-selector: ".accordion-filled::part(panel)",
|
|
3046
|
+
$header-selector: ".accordion-filled::part(header)",
|
|
3047
|
+
$section-selector: ".accordion-filled::part(section)"
|
|
3048
|
+
) {
|
|
3049
|
+
#{$accordion-selector} {
|
|
3050
|
+
@extend %accordion;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
#{$panel-selector} {
|
|
3054
|
+
@extend %accordion-panel;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
#{$header-selector} {
|
|
3058
|
+
@extend %accordion-header;
|
|
3059
|
+
|
|
3060
|
+
&:focus-visible {
|
|
3061
|
+
@extend %accordion-header--focus-visible;
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
#{$section-selector} {
|
|
3066
|
+
@extend %accordion-section;
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
@mixin accordion-outlined(
|
|
3071
|
+
$accordion-selector: ".accordion-outlined",
|
|
3072
|
+
$panel-selector: ".accordion-outlined::part(panel)",
|
|
3073
|
+
$header-selector: ".accordion-outlined::part(header)",
|
|
3074
|
+
$section-selector: ".accordion-outlined::part(section)"
|
|
3075
|
+
) {
|
|
3076
|
+
#{$accordion-selector} {
|
|
3077
|
+
@extend %accordion;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
#{$panel-selector} {
|
|
3081
|
+
@extend %accordion-panel-outlined;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
#{$header-selector} {
|
|
3085
|
+
@extend %accordion-header;
|
|
3086
|
+
|
|
3087
|
+
&:focus-visible {
|
|
3088
|
+
@extend %accordion-header--focus-visible;
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
#{$section-selector} {
|
|
3093
|
+
@extend %accordion-section;
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
|
|
2998
3097
|
%checkbox {
|
|
2999
3098
|
--ch-checkbox__container-size: var(--control-tiny__size);
|
|
3000
3099
|
--ch-checkbox__option-size: calc(var(--control-tiny__size) / 2);
|
|
@@ -3183,141 +3282,65 @@ Text States e.g.: for the property-grid
|
|
|
3183
3282
|
--code__color-green: var(--mer-color__message-green--200);
|
|
3184
3283
|
--code__bg-color: var(--mer-color__neutral-gray--800);
|
|
3185
3284
|
--code__border: var(--mer-border__width--sm) solid
|
|
3186
|
-
var(--mer-color__elevation--
|
|
3285
|
+
var(--mer-color__elevation--03);
|
|
3187
3286
|
--code__border-radius: var(--mer-border__radius--sm);
|
|
3188
3287
|
--code__padding: var(--mer-spacing--xs) var(--mer-spacing--sm);
|
|
3189
|
-
}
|
|
3190
3288
|
|
|
3289
|
+
--ch-code__doctag: var(--code__color-blue);
|
|
3290
|
+
--ch-code__keyword: var(--code__color-blue);
|
|
3291
|
+
--ch-code__meta__keyword: var(--code__color-blue);
|
|
3292
|
+
--ch-code__template-tag: var(--code__color-blue);
|
|
3293
|
+
--ch-code__template-variable: var(--code__color-blue);
|
|
3294
|
+
--ch-code__type: var(--code__color-blue);
|
|
3295
|
+
--ch-code__variable-language: var(--code__color-blue);
|
|
3191
3296
|
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
margin: 0;
|
|
3197
|
-
font-size: 13px;
|
|
3198
|
-
line-height: 1.55em;
|
|
3199
|
-
}
|
|
3200
|
-
/* begin of WA */
|
|
3201
|
-
overflow: auto;
|
|
3202
|
-
pre {
|
|
3203
|
-
overflow: auto;
|
|
3204
|
-
padding: var(--code__padding);
|
|
3205
|
-
@include scrollbar-styles();
|
|
3206
|
-
}
|
|
3207
|
-
// prevent text wrap
|
|
3208
|
-
/* end of WA */
|
|
3297
|
+
--ch-code__title: var(--code__color-base);
|
|
3298
|
+
--ch-code__title-class: var(--code__color-base);
|
|
3299
|
+
--ch-code__title-class-inherited: var(--code__color-base);
|
|
3300
|
+
--ch-code__title-function: var(--code__color-base);
|
|
3209
3301
|
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3302
|
+
--ch-code__attr: var(--code__color-blue);
|
|
3303
|
+
--ch-code__attribute: var(--code__color-blue);
|
|
3304
|
+
--ch-code__literal: var(--code__color-blue);
|
|
3305
|
+
--ch-code__meta: var(--code__color-blue);
|
|
3306
|
+
--ch-code__number: var(--code__color-blue);
|
|
3307
|
+
--ch-code__operator: var(--code__color-blue);
|
|
3308
|
+
--ch-code__variable: var(--code__color-blue);
|
|
3309
|
+
--ch-code__selector-attr: var(--code__color-blue);
|
|
3310
|
+
--ch-code__selector-class: var(--code__color-blue);
|
|
3311
|
+
--ch-code__selector-id: var(--code__color-blue);
|
|
3213
3312
|
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
.hljs-meta .hljs-keyword,
|
|
3218
|
-
.hljs-template-tag,
|
|
3219
|
-
.hljs-template-variable,
|
|
3220
|
-
.hljs-type,
|
|
3221
|
-
.hljs-variable.language_ {
|
|
3222
|
-
/* prettylights-syntax-keyword */
|
|
3223
|
-
color: var(--code__color-blue);
|
|
3224
|
-
}
|
|
3313
|
+
--ch-code__regexp: var(--code__color-green);
|
|
3314
|
+
--ch-code__string: var(--code__color-green);
|
|
3315
|
+
--ch-code__meta__string: var(--code__color-green);
|
|
3225
3316
|
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
.hljs-title.class_.inherited__,
|
|
3229
|
-
.hljs-title.function_ {
|
|
3230
|
-
color: var(--code__color-base);
|
|
3231
|
-
}
|
|
3317
|
+
--ch-code__built-in: var(--code__color-green);
|
|
3318
|
+
--ch-code__symbol: #e36209;
|
|
3232
3319
|
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
.hljs-meta,
|
|
3237
|
-
.hljs-number,
|
|
3238
|
-
.hljs-operator,
|
|
3239
|
-
.hljs-variable,
|
|
3240
|
-
.hljs-selector-attr,
|
|
3241
|
-
.hljs-selector-class,
|
|
3242
|
-
.hljs-selector-id {
|
|
3243
|
-
color: var(--code__color-blue);
|
|
3244
|
-
}
|
|
3320
|
+
--ch-code__comment: var(--code__color-green);
|
|
3321
|
+
--ch-code__code: var(--code__color-green);
|
|
3322
|
+
--ch-code__formula: var(--code__color-green);
|
|
3245
3323
|
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
--code__color-green
|
|
3251
|
-
); /* DARK: color-mix(in srgb, var(--colors-foundation-un-color__red--300) 60%, #000) */
|
|
3252
|
-
}
|
|
3324
|
+
--ch-code__name: var(--code__color-light-blue);
|
|
3325
|
+
--ch-code__quote: var(--code__color-light-blue);
|
|
3326
|
+
--ch-code__selector-tag: var(--code__color-light-blue);
|
|
3327
|
+
--ch-code__selector-pseudo: var(--code__color-light-blue);
|
|
3253
3328
|
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
/* prettylights-syntax-variable */
|
|
3257
|
-
color: #e36209;
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
|
-
.hljs-comment,
|
|
3261
|
-
.hljs-code,
|
|
3262
|
-
.hljs-formula {
|
|
3263
|
-
color: var(--code__color-green);
|
|
3264
|
-
}
|
|
3265
|
-
|
|
3266
|
-
.hljs-name,
|
|
3267
|
-
.hljs-quote,
|
|
3268
|
-
.hljs-selector-tag,
|
|
3269
|
-
.hljs-selector-pseudo {
|
|
3270
|
-
color: var(--code__color-light-blue);
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
.hljs-subst {
|
|
3274
|
-
/* prettylights-syntax-storage-modifier-import */
|
|
3275
|
-
color: #24292e;
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
|
-
.hljs-section {
|
|
3279
|
-
/* prettylights-syntax-markup-heading */
|
|
3280
|
-
color: #005cc5;
|
|
3281
|
-
font-weight: bold;
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
.hljs-bullet {
|
|
3285
|
-
/* prettylights-syntax-markup-list */
|
|
3286
|
-
color: #735c0f;
|
|
3287
|
-
}
|
|
3288
|
-
|
|
3289
|
-
.hljs-emphasis {
|
|
3290
|
-
/* prettylights-syntax-markup-italic */
|
|
3291
|
-
color: #24292e;
|
|
3292
|
-
font-style: italic;
|
|
3293
|
-
}
|
|
3294
|
-
|
|
3295
|
-
.hljs-strong {
|
|
3296
|
-
/* prettylights-syntax-markup-bold */
|
|
3297
|
-
color: #24292e;
|
|
3298
|
-
font-weight: bold;
|
|
3299
|
-
}
|
|
3329
|
+
--ch-code__subst: #24292e;
|
|
3330
|
+
}
|
|
3300
3331
|
|
|
3301
|
-
.hljs-addition {
|
|
3302
|
-
/* prettylights-syntax-markup-inserted */
|
|
3303
|
-
color: #22863a;
|
|
3304
|
-
background-color: #f0fff4;
|
|
3305
|
-
}
|
|
3306
3332
|
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
.
|
|
3317
|
-
|
|
3318
|
-
.hljs-tag {
|
|
3319
|
-
/* purposely ignored */
|
|
3320
|
-
}
|
|
3333
|
+
@mixin code($selector: ".code") {
|
|
3334
|
+
#{$selector} {
|
|
3335
|
+
@include code-tokens();
|
|
3336
|
+
@include scrollbar-styles();
|
|
3337
|
+
padding: var(--code__padding);
|
|
3338
|
+
background-color: var(--code__bg-color);
|
|
3339
|
+
border: var(--code__border);
|
|
3340
|
+
border-radius: var(--code__border-radius);
|
|
3341
|
+
font-size: 13px;
|
|
3342
|
+
line-height: 1.55em;
|
|
3343
|
+
overflow: auto;
|
|
3321
3344
|
}
|
|
3322
3345
|
}
|
|
3323
3346
|
|
|
@@ -3483,7 +3506,6 @@ Text States e.g.: for the property-grid
|
|
|
3483
3506
|
/*----------------------
|
|
3484
3507
|
Focus
|
|
3485
3508
|
----------------------*/
|
|
3486
|
-
|
|
3487
3509
|
@mixin focus-outline($outline: false) {
|
|
3488
3510
|
outline: var(--focus__outline-width) var(--focus__outline-style)
|
|
3489
3511
|
var(--focus__outline-color);
|
|
@@ -3496,8 +3518,11 @@ Focus
|
|
|
3496
3518
|
/*----------------------
|
|
3497
3519
|
Scrollbar
|
|
3498
3520
|
----------------------*/
|
|
3499
|
-
|
|
3500
3521
|
@mixin scrollbar-styles() {
|
|
3522
|
+
scrollbar-width: thin;
|
|
3523
|
+
scrollbar-color: var(--scrollbar-thumb__bg-color)
|
|
3524
|
+
var(--scrollbar-track__bg-color);
|
|
3525
|
+
|
|
3501
3526
|
//scrollbar
|
|
3502
3527
|
&::-webkit-scrollbar {
|
|
3503
3528
|
width: var(--scrollbar__size);
|
|
@@ -4676,6 +4701,190 @@ Body Spacing
|
|
|
4676
4701
|
}
|
|
4677
4702
|
}
|
|
4678
4703
|
|
|
4704
|
+
@mixin markdown-viewer() {
|
|
4705
|
+
:host {
|
|
4706
|
+
@extend %text-body;
|
|
4707
|
+
}
|
|
4708
|
+
|
|
4709
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
4710
|
+
// Heading
|
|
4711
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
4712
|
+
h1 {
|
|
4713
|
+
@extend %heading-1;
|
|
4714
|
+
margin-block: var(--mer-spacing--md) var(--mer-spacing--xs);
|
|
4715
|
+
padding-block-end: var(--mer-spacing--xs);
|
|
4716
|
+
}
|
|
4717
|
+
|
|
4718
|
+
h2 {
|
|
4719
|
+
@extend %heading-2;
|
|
4720
|
+
margin-block: var(--mer-spacing--sm) 6px; // It does not exists the --spacing--xm value
|
|
4721
|
+
padding-block-end: 6px; // It does not exists the --spacing--xm value
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
h3 {
|
|
4725
|
+
@extend %heading-3;
|
|
4726
|
+
margin-block: var(--mer-spacing--xs) var(--mer-spacing--2xs);
|
|
4727
|
+
padding-block-end: var(--mer-spacing--2xs);
|
|
4728
|
+
}
|
|
4729
|
+
|
|
4730
|
+
h4 {
|
|
4731
|
+
@extend %heading-4;
|
|
4732
|
+
margin-block: var(--mer-spacing--2xs) var(--mer-spacing--3xs);
|
|
4733
|
+
padding-block-end: var(--mer-spacing--3xs);
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
h5 {
|
|
4737
|
+
@extend %heading-5;
|
|
4738
|
+
margin-block: var(--mer-spacing--2xs) var(--mer-spacing--3xs);
|
|
4739
|
+
padding-block-end: var(--mer-spacing--3xs);
|
|
4740
|
+
}
|
|
4741
|
+
|
|
4742
|
+
h6 {
|
|
4743
|
+
@extend %heading-6;
|
|
4744
|
+
margin-block: var(--mer-spacing--2xs) var(--mer-spacing--3xs);
|
|
4745
|
+
padding-block-end: var(--mer-spacing--3xs);
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
h1,
|
|
4749
|
+
h2,
|
|
4750
|
+
h3,
|
|
4751
|
+
h4,
|
|
4752
|
+
h5,
|
|
4753
|
+
h6 {
|
|
4754
|
+
border-block-end: 1px solid var(--mer-border-color__on-surface);
|
|
4755
|
+
}
|
|
4756
|
+
|
|
4757
|
+
p,
|
|
4758
|
+
ul,
|
|
4759
|
+
ol,
|
|
4760
|
+
table,
|
|
4761
|
+
ch-code {
|
|
4762
|
+
margin-block: var(--mer-spacing--xs);
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4765
|
+
ul,
|
|
4766
|
+
ol {
|
|
4767
|
+
padding-inline-start: var(--mer-spacing--xl);
|
|
4768
|
+
}
|
|
4769
|
+
|
|
4770
|
+
// TODO: Add hyperlink styles
|
|
4771
|
+
a {
|
|
4772
|
+
@extend %text-link;
|
|
4773
|
+
}
|
|
4774
|
+
|
|
4775
|
+
blockquote {
|
|
4776
|
+
margin-block: var(--mer-spacing--xs);
|
|
4777
|
+
padding-block: var(--mer-spacing--xs);
|
|
4778
|
+
padding-inline: calc(var(--mer-spacing--xl) - 4px) var(--mer-spacing--xl);
|
|
4779
|
+
border-inline-start: 4px solid var(--mer-color__primary-blue--400);
|
|
4780
|
+
|
|
4781
|
+
// First <p> don't add margin-block-start, because the <blockquote> adds it
|
|
4782
|
+
& > p:first-of-type {
|
|
4783
|
+
margin-block-start: 0;
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
// Last <p> don't add margin-block-end, because the <blockquote> adds it
|
|
4787
|
+
& > p:last-of-type {
|
|
4788
|
+
margin-block-end: 0;
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
|
|
4792
|
+
strong {
|
|
4793
|
+
font-weight: 700;
|
|
4794
|
+
}
|
|
4795
|
+
|
|
4796
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
4797
|
+
// Table
|
|
4798
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
4799
|
+
// Table
|
|
4800
|
+
table {
|
|
4801
|
+
display: block;
|
|
4802
|
+
inline-size: max-content;
|
|
4803
|
+
border: 1px solid var(--mer-border-color__on-surface);
|
|
4804
|
+
border-spacing: 0;
|
|
4805
|
+
|
|
4806
|
+
& > thead > tr {
|
|
4807
|
+
@extend %heading-4;
|
|
4808
|
+
font-weight: unset;
|
|
4809
|
+
}
|
|
4810
|
+
}
|
|
4811
|
+
|
|
4812
|
+
// Cells
|
|
4813
|
+
td {
|
|
4814
|
+
border-block-start: 1px solid var(--mer-border-color__on-surface);
|
|
4815
|
+
}
|
|
4816
|
+
|
|
4817
|
+
// Header and body cells
|
|
4818
|
+
th,
|
|
4819
|
+
td {
|
|
4820
|
+
padding: var(--mer-spacing--xs);
|
|
4821
|
+
border-inline-start: 1px solid var(--mer-border-color__on-surface);
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
// Remove left border in the first cell of each row
|
|
4825
|
+
tr > td:first-child,
|
|
4826
|
+
tr > th:first-child {
|
|
4827
|
+
border-inline-start: unset;
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4830
|
+
thead > tr,
|
|
4831
|
+
tbody > tr:nth-child(2n) {
|
|
4832
|
+
background-color: var(--mer-color__neutral-gray--700);
|
|
4833
|
+
}
|
|
4834
|
+
|
|
4835
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
4836
|
+
// Code
|
|
4837
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
4838
|
+
// Multiline code
|
|
4839
|
+
ch-code {
|
|
4840
|
+
// Override inline border-radius
|
|
4841
|
+
border: 1px solid var(--mer-border-color__on-surface);
|
|
4842
|
+
border-radius: 4px;
|
|
4843
|
+
padding: var(--mer-spacing--md);
|
|
4844
|
+
|
|
4845
|
+
// & > .code-block__header {
|
|
4846
|
+
// display: grid;
|
|
4847
|
+
// grid-template-columns: 1fr max-content;
|
|
4848
|
+
// align-items: center;
|
|
4849
|
+
// padding-inline: var(--mer-spacing--md);
|
|
4850
|
+
// padding-block: var(--mer-spacing--xs);
|
|
4851
|
+
// background-color: var(--surface--alternative);
|
|
4852
|
+
// }
|
|
4853
|
+
|
|
4854
|
+
// & > .code-block__content {
|
|
4855
|
+
// // Override inline padding
|
|
4856
|
+
//
|
|
4857
|
+
// }
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4860
|
+
@include code($selector: "ch-code");
|
|
4861
|
+
|
|
4862
|
+
// Inline code
|
|
4863
|
+
code {
|
|
4864
|
+
padding-block: var(--mer-spacing--3xs);
|
|
4865
|
+
padding-inline: var(--mer-spacing--2xs);
|
|
4866
|
+
background-color: var(--mer-elevation__bg-color--01);
|
|
4867
|
+
border-radius: 2px;
|
|
4868
|
+
font-size: calc(1em - 2px);
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4871
|
+
img {
|
|
4872
|
+
display: inline-block;
|
|
4873
|
+
max-inline-size: 25%;
|
|
4874
|
+
}
|
|
4875
|
+
|
|
4876
|
+
// Don't add margin-block-start in the first element of the markdown
|
|
4877
|
+
:host > :first-child,
|
|
4878
|
+
ch-theme + * {
|
|
4879
|
+
margin-block-start: 0px;
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4882
|
+
// Don't add margin-block-end in the last element of the markdown
|
|
4883
|
+
:host > :last-child {
|
|
4884
|
+
margin-block-end: 0px;
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
|
|
4679
4888
|
// - - - - - - - - - - - - - - - - - - - -
|
|
4680
4889
|
// ch-property-grid
|
|
4681
4890
|
// - - - - - - - - - - - - - - - - - - - -
|
|
@@ -6965,6 +7174,7 @@ Body Spacing
|
|
|
6965
7174
|
|
|
6966
7175
|
// Components
|
|
6967
7176
|
$components: true,
|
|
7177
|
+
$accordion: true,
|
|
6968
7178
|
$checkbox: true,
|
|
6969
7179
|
$code: true,
|
|
6970
7180
|
$combo-box: true,
|
|
@@ -6972,6 +7182,7 @@ Body Spacing
|
|
|
6972
7182
|
$edit: true,
|
|
6973
7183
|
$icon: true,
|
|
6974
7184
|
$list-box: true,
|
|
7185
|
+
$markdown-viewer: true,
|
|
6975
7186
|
$radio-group: true,
|
|
6976
7187
|
$slider: true,
|
|
6977
7188
|
$tab: true,
|
|
@@ -14949,7 +15160,6 @@ Body Spacing
|
|
|
14949
15160
|
// - - - - - - - - - - - - - - - - - - - -
|
|
14950
15161
|
// Other Tokens than Colors
|
|
14951
15162
|
// - - - - - - - - - - - - - - - - - - - -
|
|
14952
|
-
// Primitive
|
|
14953
15163
|
@if $tokens and
|
|
14954
15164
|
($border or $colors or $elevation or $font or $spacing or $timing)
|
|
14955
15165
|
{
|
|
@@ -14995,17 +15205,14 @@ Body Spacing
|
|
|
14995
15205
|
}
|
|
14996
15206
|
}
|
|
14997
15207
|
|
|
14998
|
-
// Font
|
|
14999
15208
|
@if $font {
|
|
15000
15209
|
@include font();
|
|
15001
15210
|
}
|
|
15002
15211
|
|
|
15003
|
-
// Spacing
|
|
15004
15212
|
@if $spacing {
|
|
15005
15213
|
@include spacing();
|
|
15006
15214
|
}
|
|
15007
15215
|
|
|
15008
|
-
// Timing
|
|
15009
15216
|
@if $timing {
|
|
15010
15217
|
@include timing();
|
|
15011
15218
|
}
|
|
@@ -15043,7 +15250,6 @@ Body Spacing
|
|
|
15043
15250
|
// Resets
|
|
15044
15251
|
// - - - - - - - - - - - - - - - - - - - -
|
|
15045
15252
|
@if $resets {
|
|
15046
|
-
// box-sizing
|
|
15047
15253
|
@if $box-sizing-reset {
|
|
15048
15254
|
@include box-sizing();
|
|
15049
15255
|
}
|
|
@@ -15062,7 +15268,6 @@ Body Spacing
|
|
|
15062
15268
|
@include other-reset();
|
|
15063
15269
|
}
|
|
15064
15270
|
|
|
15065
|
-
// Typography reset
|
|
15066
15271
|
@if $typography-reset {
|
|
15067
15272
|
@include typography-reset();
|
|
15068
15273
|
}
|
|
@@ -15075,49 +15280,36 @@ Body Spacing
|
|
|
15075
15280
|
@if $base-classes {
|
|
15076
15281
|
// Button classes
|
|
15077
15282
|
@if $button-classes {
|
|
15078
|
-
// Button primary
|
|
15079
15283
|
@include button-primary();
|
|
15080
|
-
|
|
15081
|
-
// Button secondary
|
|
15082
15284
|
@include button-secondary();
|
|
15083
|
-
|
|
15084
|
-
// Button tertiary
|
|
15085
15285
|
@include button-tertiary();
|
|
15086
15286
|
|
|
15087
15287
|
@if $icon-classes {
|
|
15088
|
-
// Button icon only
|
|
15089
15288
|
@include button-icon-only();
|
|
15090
|
-
|
|
15091
|
-
// Button icon and text
|
|
15092
15289
|
@include button-icon-and-text();
|
|
15093
15290
|
}
|
|
15094
15291
|
}
|
|
15095
15292
|
|
|
15096
|
-
// Form control classes
|
|
15097
15293
|
@if $form-controls-classes {
|
|
15098
15294
|
@include field();
|
|
15099
15295
|
@include label();
|
|
15100
15296
|
}
|
|
15101
15297
|
|
|
15102
|
-
// Icon classes
|
|
15103
15298
|
@if $icon-classes {
|
|
15104
15299
|
@include icon-size-sm();
|
|
15105
15300
|
@include icon-size-md();
|
|
15106
15301
|
@include icon-and-text();
|
|
15107
15302
|
}
|
|
15108
15303
|
|
|
15109
|
-
// Layout classes
|
|
15110
15304
|
@if $layout-classes {
|
|
15111
15305
|
@include layout();
|
|
15112
15306
|
@include control-footer();
|
|
15113
15307
|
}
|
|
15114
15308
|
|
|
15115
|
-
// Spacing classes
|
|
15116
15309
|
@if $spacing-classes {
|
|
15117
15310
|
@include spacing-body();
|
|
15118
15311
|
}
|
|
15119
15312
|
|
|
15120
|
-
// Typography classes
|
|
15121
15313
|
@if $typography-classes {
|
|
15122
15314
|
@include typography-classes();
|
|
15123
15315
|
}
|
|
@@ -15126,65 +15318,61 @@ Body Spacing
|
|
|
15126
15318
|
// - - - - - - - - - - - - - - - - - - -
|
|
15127
15319
|
// Components
|
|
15128
15320
|
// - - - - - - - - - - - - - - - - - - -
|
|
15321
|
+
@if $accordion {
|
|
15322
|
+
@include accordion-filled();
|
|
15323
|
+
@include accordion-outlined();
|
|
15324
|
+
}
|
|
15129
15325
|
|
|
15130
|
-
// checkbox
|
|
15131
15326
|
@if $checkbox {
|
|
15132
15327
|
@include checkbox();
|
|
15133
15328
|
}
|
|
15134
15329
|
|
|
15135
|
-
// code
|
|
15136
15330
|
@if $code {
|
|
15137
15331
|
@include code();
|
|
15138
15332
|
}
|
|
15139
15333
|
|
|
15140
|
-
// combo box
|
|
15141
15334
|
@if $combo-box {
|
|
15142
15335
|
@include combo-box();
|
|
15143
15336
|
}
|
|
15144
15337
|
|
|
15145
|
-
// dialog
|
|
15146
15338
|
@if $dialog {
|
|
15147
15339
|
@include dialog();
|
|
15148
15340
|
}
|
|
15149
15341
|
|
|
15150
|
-
// edit
|
|
15151
15342
|
@if $edit {
|
|
15152
15343
|
@include form-input();
|
|
15153
15344
|
}
|
|
15154
15345
|
|
|
15155
|
-
// icon
|
|
15156
15346
|
@if $icon {
|
|
15157
15347
|
@include icon();
|
|
15158
15348
|
}
|
|
15159
15349
|
|
|
15160
|
-
// list-box
|
|
15161
15350
|
@if $list-box {
|
|
15162
15351
|
@include list-box();
|
|
15163
15352
|
}
|
|
15164
15353
|
|
|
15165
|
-
|
|
15354
|
+
@if $markdown-viewer {
|
|
15355
|
+
@include markdown-viewer();
|
|
15356
|
+
}
|
|
15357
|
+
|
|
15166
15358
|
@if $radio-group {
|
|
15167
15359
|
@include radio-group();
|
|
15168
15360
|
}
|
|
15169
15361
|
|
|
15170
|
-
// slider
|
|
15171
15362
|
@if $slider {
|
|
15172
15363
|
@include slider();
|
|
15173
15364
|
}
|
|
15174
15365
|
|
|
15175
|
-
// tab
|
|
15176
15366
|
@if $tab {
|
|
15177
15367
|
@include tab();
|
|
15178
15368
|
}
|
|
15179
15369
|
|
|
15180
|
-
// tabular grid
|
|
15181
15370
|
@if $tabular-grid {
|
|
15182
15371
|
@include tabular-grid();
|
|
15183
15372
|
@include tabular-grid-cell-layout();
|
|
15184
15373
|
@include property-grid(); // property-grid extends tabular-grid
|
|
15185
15374
|
}
|
|
15186
15375
|
|
|
15187
|
-
// tree view
|
|
15188
15376
|
@if $tree-view {
|
|
15189
15377
|
@include tree-view();
|
|
15190
15378
|
}
|
|
@@ -15236,6 +15424,7 @@ Body Spacing
|
|
|
15236
15424
|
|
|
15237
15425
|
// Components
|
|
15238
15426
|
$components: false,
|
|
15427
|
+
$accordion: false,
|
|
15239
15428
|
$checkbox: false,
|
|
15240
15429
|
$code: false,
|
|
15241
15430
|
$combo-box: false,
|
|
@@ -15243,6 +15432,7 @@ Body Spacing
|
|
|
15243
15432
|
$edit: false,
|
|
15244
15433
|
$icon: false,
|
|
15245
15434
|
$list-box: false,
|
|
15435
|
+
$markdown-viewer: false,
|
|
15246
15436
|
$radio-group: false,
|
|
15247
15437
|
$slider: false,
|
|
15248
15438
|
$tab: false,
|
|
@@ -15295,12 +15485,15 @@ Body Spacing
|
|
|
15295
15485
|
|
|
15296
15486
|
// Components
|
|
15297
15487
|
$components: $components,
|
|
15488
|
+
$accordion: $accordion,
|
|
15298
15489
|
$checkbox: $checkbox,
|
|
15299
15490
|
$code: $code,
|
|
15300
15491
|
$combo-box: $combo-box,
|
|
15301
15492
|
$dialog: $dialog,
|
|
15302
15493
|
$edit: $edit,
|
|
15494
|
+
$icon: $icon,
|
|
15303
15495
|
$list-box: $list-box,
|
|
15496
|
+
$markdown-viewer: $markdown-viewer,
|
|
15304
15497
|
$radio-group: $radio-group,
|
|
15305
15498
|
$slider: $slider,
|
|
15306
15499
|
$tab: $tab,
|