@florid-kit/components 2.1.3 → 2.1.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.
Files changed (3) hide show
  1. package/index.js +38 -5
  2. package/index.mjs +38 -5
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -4400,35 +4400,61 @@
4400
4400
  </div>
4401
4401
  </header>`}};k.styles=C`
4402
4402
  .o-header-simplify {
4403
+ --header-simplify-height-default: 72px;
4404
+ --header-simplify-height-scrolled: 60px;
4405
+ --header-simplify-height-scrolled-mobile: 64px;
4406
+
4403
4407
  display: flex;
4404
4408
  width: 100%;
4405
- padding: var(--spacing-xs, 6px) var(--spacing-s, 8px);
4409
+ height: var(--header-simplify-height-default);
4410
+ box-sizing: border-box;
4411
+ padding: 0 var(--spacing-s, 8px);
4406
4412
  flex-direction: column;
4407
4413
  justify-content: center;
4408
- align-items: flex-start;
4409
- gap: var(--spacing-s, 8px);
4414
+ align-items: stretch;
4415
+ gap: 0;
4410
4416
  border-bottom: var(--border-s, 0.5px) solid
4411
4417
  var(--color-border-tertiary, #c3bdbe);
4412
4418
  background: var(--color-container-bg-white, #fffefe);
4413
4419
  border-radius: var(--radius-m, 4px);
4420
+ transition:
4421
+ height 0.2s ease,
4422
+ box-shadow 0.4s linear,
4423
+ border-color 0.2s ease,
4424
+ padding 0.2s ease,
4425
+ top 0.2s ease,
4426
+ width 0.2s ease;
4414
4427
 
4415
4428
  @media (max-width: 767px) {
4416
- padding: var(--spacing-2-xs, 4px);
4429
+ padding: 0 var(--spacing-2-xs, 4px);
4417
4430
  align-items: center;
4418
4431
  }
4419
4432
  }
4420
4433
 
4421
4434
  .o-header-simplify.is-scrolled {
4435
+ height: var(--header-simplify-height-scrolled);
4422
4436
  border-bottom: none;
4423
4437
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.06);
4424
4438
  }
4425
4439
 
4440
+ @media (max-width: 767px) {
4441
+ .o-header-simplify.is-scrolled {
4442
+ height: var(--header-simplify-height-scrolled-mobile);
4443
+ }
4444
+ }
4445
+
4426
4446
  .o-header-simplify.is-sticky {
4427
4447
  position: sticky;
4428
4448
  top: var(--header-simplify-sticky-top, 0);
4429
4449
  z-index: var(--header-simplify-sticky-z-index, 98);
4430
4450
  margin: auto;
4431
- transition: top 0.2s ease, width 0.2s ease;
4451
+ transition:
4452
+ height 0.2s ease,
4453
+ box-shadow 0.4s linear,
4454
+ border-color 0.2s ease,
4455
+ padding 0.2s ease,
4456
+ top 0.2s ease,
4457
+ width 0.2s ease;
4432
4458
  }
4433
4459
 
4434
4460
  .o-header-simplify.is-sticky.is-scrolled {
@@ -4439,10 +4465,17 @@
4439
4465
  .o-header-simplify-container {
4440
4466
  display: flex;
4441
4467
  padding: var(--spacing-s, 8px) var(--spacing-2-xs, 4px);
4468
+ height: 100%;
4469
+ box-sizing: border-box;
4442
4470
  justify-content: space-between;
4443
4471
  align-items: center;
4444
4472
  align-self: stretch;
4445
4473
  border-radius: var(--radius-m, 4px);
4474
+ transition: padding 0.2s ease;
4475
+ }
4476
+
4477
+ .o-header-simplify.is-scrolled .o-header-simplify-container {
4478
+ padding: var(--spacing-xs, 6px) var(--spacing-2-xs, 4px);
4446
4479
  }
4447
4480
 
4448
4481
  .o-header-simplify-container.no-back-button {
package/index.mjs CHANGED
@@ -7398,35 +7398,61 @@ let k = class extends p {
7398
7398
  };
7399
7399
  k.styles = C`
7400
7400
  .o-header-simplify {
7401
+ --header-simplify-height-default: 72px;
7402
+ --header-simplify-height-scrolled: 60px;
7403
+ --header-simplify-height-scrolled-mobile: 64px;
7404
+
7401
7405
  display: flex;
7402
7406
  width: 100%;
7403
- padding: var(--spacing-xs, 6px) var(--spacing-s, 8px);
7407
+ height: var(--header-simplify-height-default);
7408
+ box-sizing: border-box;
7409
+ padding: 0 var(--spacing-s, 8px);
7404
7410
  flex-direction: column;
7405
7411
  justify-content: center;
7406
- align-items: flex-start;
7407
- gap: var(--spacing-s, 8px);
7412
+ align-items: stretch;
7413
+ gap: 0;
7408
7414
  border-bottom: var(--border-s, 0.5px) solid
7409
7415
  var(--color-border-tertiary, #c3bdbe);
7410
7416
  background: var(--color-container-bg-white, #fffefe);
7411
7417
  border-radius: var(--radius-m, 4px);
7418
+ transition:
7419
+ height 0.2s ease,
7420
+ box-shadow 0.4s linear,
7421
+ border-color 0.2s ease,
7422
+ padding 0.2s ease,
7423
+ top 0.2s ease,
7424
+ width 0.2s ease;
7412
7425
 
7413
7426
  @media (max-width: 767px) {
7414
- padding: var(--spacing-2-xs, 4px);
7427
+ padding: 0 var(--spacing-2-xs, 4px);
7415
7428
  align-items: center;
7416
7429
  }
7417
7430
  }
7418
7431
 
7419
7432
  .o-header-simplify.is-scrolled {
7433
+ height: var(--header-simplify-height-scrolled);
7420
7434
  border-bottom: none;
7421
7435
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.06);
7422
7436
  }
7423
7437
 
7438
+ @media (max-width: 767px) {
7439
+ .o-header-simplify.is-scrolled {
7440
+ height: var(--header-simplify-height-scrolled-mobile);
7441
+ }
7442
+ }
7443
+
7424
7444
  .o-header-simplify.is-sticky {
7425
7445
  position: sticky;
7426
7446
  top: var(--header-simplify-sticky-top, 0);
7427
7447
  z-index: var(--header-simplify-sticky-z-index, 98);
7428
7448
  margin: auto;
7429
- transition: top 0.2s ease, width 0.2s ease;
7449
+ transition:
7450
+ height 0.2s ease,
7451
+ box-shadow 0.4s linear,
7452
+ border-color 0.2s ease,
7453
+ padding 0.2s ease,
7454
+ top 0.2s ease,
7455
+ width 0.2s ease;
7430
7456
  }
7431
7457
 
7432
7458
  .o-header-simplify.is-sticky.is-scrolled {
@@ -7437,10 +7463,17 @@ k.styles = C`
7437
7463
  .o-header-simplify-container {
7438
7464
  display: flex;
7439
7465
  padding: var(--spacing-s, 8px) var(--spacing-2-xs, 4px);
7466
+ height: 100%;
7467
+ box-sizing: border-box;
7440
7468
  justify-content: space-between;
7441
7469
  align-items: center;
7442
7470
  align-self: stretch;
7443
7471
  border-radius: var(--radius-m, 4px);
7472
+ transition: padding 0.2s ease;
7473
+ }
7474
+
7475
+ .o-header-simplify.is-scrolled .o-header-simplify-container {
7476
+ padding: var(--spacing-xs, 6px) var(--spacing-2-xs, 4px);
7444
7477
  }
7445
7478
 
7446
7479
  .o-header-simplify-container.no-back-button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",