survey-react 1.11.2 → 1.11.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/defaultV2.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.2
2
+ * surveyjs - Survey JavaScript library v1.11.4
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -3602,6 +3602,10 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3602
3602
  box-sizing: content-box;
3603
3603
  }
3604
3604
 
3605
+ .sd-row--multiple .sd-question--table.sd-element--nested > .sd-question__content {
3606
+ padding-right: calc(var(--sd-base-padding) + 2px);
3607
+ }
3608
+
3605
3609
  .sd-question--scroll {
3606
3610
  overflow-x: scroll;
3607
3611
  }
@@ -5608,8 +5612,9 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5608
5612
  .sd-progress__text {
5609
5613
  position: absolute;
5610
5614
  margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
5611
- right: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5612
- color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
5615
+ padding: var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5616
+ right: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5617
+ color: var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45));
5613
5618
  font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
5614
5619
  line-height: var(--sjs-font-size, 16px);
5615
5620
  font-weight: 600;
@@ -5636,6 +5641,14 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5636
5641
  margin-top: calc(-3.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5637
5642
  }
5638
5643
 
5644
+ .sv-root--sticky-top .sd-progress__text {
5645
+ border-radius: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5646
+ color: var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91));
5647
+ opacity: 0.75;
5648
+ background: var(--sjs-general-backcolor, var(--background, #fff));
5649
+ box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
5650
+ }
5651
+
5639
5652
  .sd-boolean {
5640
5653
  display: flex;
5641
5654
  width: max-content;
@@ -5694,11 +5707,14 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5694
5707
  }
5695
5708
 
5696
5709
  .sd-boolean__thumb {
5710
+ position: absolute;
5711
+ left: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5712
+ transform: translateX(0);
5697
5713
  background-color: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
5698
5714
  box-shadow: var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
5699
5715
  border-radius: calc(12.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5700
5716
  transition-duration: 0.2s;
5701
- transition-property: margin-left;
5717
+ transition-property: transform, left;
5702
5718
  transition-timing-function: linear;
5703
5719
  color: var(--sjs-primary-backcolor, var(--primary, #19b394));
5704
5720
  font-weight: 600;
@@ -5708,13 +5724,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5708
5724
  white-space: nowrap;
5709
5725
  }
5710
5726
 
5711
- .sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb {
5712
- margin-left: 50%;
5713
- }
5714
-
5727
+ .sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb,
5715
5728
  .sd-boolean--exchanged:not(.sd-boolean--checked) .sd-boolean__thumb {
5716
- margin-left: calc(50% + 0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5729
+ left: calc(100% - 0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
5730
+ transform: translateX(-100%);
5717
5731
  }
5732
+
5718
5733
  .sd-boolean--exchanged.sd-boolean:not(.sd-boolean--checked):not(sd-boolean--indeterminate) .sd-boolean__label--false, .sd-boolean--exchanged.sd-boolean.sd-boolean--checked .sd-boolean__label--true {
5719
5734
  color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
5720
5735
  }
@@ -7367,6 +7382,7 @@ svg.sd-action--icon {
7367
7382
  padding: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7368
7383
  display: flex;
7369
7384
  flex-direction: column;
7385
+ transition: 0.25s padding ease-out;
7370
7386
  }
7371
7387
 
7372
7388
  .sd-progress-buttons__list-container {
@@ -7570,6 +7586,10 @@ svg.sd-action--icon {
7570
7586
  padding: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7571
7587
  }
7572
7588
 
7589
+ .sv-root--sticky-top .sd-progress-buttons {
7590
+ padding: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7591
+ }
7592
+
7573
7593
  .sd-progress-buttons--fit-survey-width {
7574
7594
  max-width: calc(90 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7575
7595
  box-sizing: border-box;
@@ -7753,25 +7773,35 @@ svg.sd-action--icon {
7753
7773
  }
7754
7774
 
7755
7775
  .sv-header__overlap {
7756
- margin-bottom: calc(-14 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7757
7776
  padding-bottom: calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7758
7777
  }
7778
+ .sv-header__overlap ~ div .sd-body,
7779
+ .sv-header__overlap ~ div .sv-body {
7780
+ margin-top: calc(-14 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7781
+ }
7782
+
7783
+ .sd-root-modern--mobile .sv-header__overlap {
7784
+ padding-bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7785
+ }
7786
+ .sd-root-modern--mobile .sv-header__overlap ~ div .sd-body,
7787
+ .sd-root-modern--mobile .sv-header__overlap ~ div .sv-body {
7788
+ margin-top: calc(-5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7789
+ }
7759
7790
 
7760
7791
  .sv-header__overlap.sv-header__without-background {
7761
7792
  margin-bottom: 0;
7762
7793
  padding-bottom: 0;
7763
7794
  }
7795
+ .sv-header__overlap.sv-header__without-background ~ div .sd-body,
7796
+ .sv-header__overlap.sv-header__without-background ~ div .sv-body {
7797
+ margin-top: 0;
7798
+ }
7764
7799
 
7765
7800
  .sv-header__without-background .sv-header--mobile,
7766
7801
  .sv-header__without-background .sv-header__content {
7767
7802
  padding-bottom: 0;
7768
7803
  }
7769
7804
 
7770
- .sd-root-modern--mobile .sv-header__overlap {
7771
- margin-bottom: calc(-5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7772
- padding-bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7773
- }
7774
-
7775
7805
  .sv-header__content {
7776
7806
  padding: calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7777
7807
  box-sizing: border-box;
@@ -7784,7 +7814,7 @@ svg.sd-action--icon {
7784
7814
  }
7785
7815
 
7786
7816
  .sv-header__content--static {
7787
- max-width: calc(88 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7817
+ max-width: calc(90 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7788
7818
  margin-left: auto;
7789
7819
  margin-right: auto;
7790
7820
  }
@@ -8132,25 +8162,20 @@ sv-components-container,
8132
8162
  .sd-root-modern.sd-root-modern--mobile .sd-table__cell--footer:not(.sd-question--answered) {
8133
8163
  display: none;
8134
8164
  }
8135
- .sd-root-modern.sd-root-modern--mobile .sd-table__cell::before {
8165
+ .sd-root-modern.sd-root-modern--mobile .sd-table__responsive-title {
8136
8166
  padding-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
8137
- content: attr(data-responsive-title);
8138
8167
  font-weight: 600;
8139
8168
  display: block;
8140
8169
  text-align: left;
8141
8170
  }
8171
+ .sd-root-modern.sd-root-modern--mobile .sd-table__responsive-title .sv-string-viewer {
8172
+ white-space: normal;
8173
+ }
8142
8174
  .sd-root-modern.sd-root-modern--mobile .sd-table--no-header {
8143
8175
  padding-top: 0;
8144
8176
  }
8145
- .sd-root-modern.sd-root-modern--mobile .sd-table--no-header .sd-table__cell::before {
8146
- content: none;
8147
- }
8148
- .sd-root-modern.sd-root-modern--mobile .sd-matrix__cell::before,
8149
- .sd-root-modern.sd-root-modern--mobile .sd-table__cell--actions::before,
8150
- .sd-root-modern.sd-root-modern--mobile .sd-table__cell--row-text::before,
8151
- .sd-root-modern.sd-root-modern--mobile .sd-table__cell--footer-total::before,
8152
- .sd-root-modern.sd-root-modern--mobile .sd-table__cell--error::before {
8153
- content: none;
8177
+ .sd-root-modern.sd-root-modern--mobile .sd-table--no-header .sd-table__responsive-title {
8178
+ display: none;
8154
8179
  }
8155
8180
  .sd-root-modern.sd-root-modern--mobile .sd-table__cell--detail-panel {
8156
8181
  padding-top: 0;
@@ -8390,4 +8415,18 @@ body {
8390
8415
  background-color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
8391
8416
  }
8392
8417
 
8418
+ .sv-components-container-center {
8419
+ position: sticky;
8420
+ top: 0;
8421
+ }
8422
+
8423
+ .sv-root--sticky-top .sv-components-container-center {
8424
+ z-index: 15;
8425
+ }
8426
+
8427
+ .sv-root--sticky-top.sd-progress--pages .sv-components-container-center {
8428
+ background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
8429
+ box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
8430
+ }
8431
+
8393
8432
  /*# sourceMappingURL=defaultV2.css.map*/