@keenmate/pure-css 1.0.0-rc07 → 1.0.0-rc09

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.
@@ -2070,7 +2070,7 @@ body.pc-container-2xl .pc-navbar {
2070
2070
  top: 100%;
2071
2071
  inset-inline-start: 0;
2072
2072
  min-width: 19.2rem;
2073
- background-color: var(--pc-card-bg, var(--base-main-bg));
2073
+ background-color: var(--base-main-bg);
2074
2074
  border: 1px solid var(--pc-border-color);
2075
2075
  border-radius: var(--pc-border-radius);
2076
2076
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
@@ -2149,7 +2149,13 @@ body.pc-container-2xl .pc-navbar {
2149
2149
  .pc-navmenu__more-chevron {
2150
2150
  display: inline-block;
2151
2151
  margin-inline-start: 0.4rem;
2152
- font-size: 1.2rem;
2152
+ inline-size: 1.4rem;
2153
+ block-size: 1.4rem;
2154
+ flex-shrink: 0;
2155
+ font-size: 0;
2156
+ background-color: currentColor;
2157
+ -webkit-mask: var(--base-icon-chevron, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 18 6-6-6-6%22/%3E%3C/svg%3E")) center/1.1rem no-repeat;
2158
+ mask: var(--base-icon-chevron, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 18 6-6-6-6%22/%3E%3C/svg%3E")) center/1.1rem no-repeat;
2153
2159
  transition: transform 0.1s ease-out;
2154
2160
  }
2155
2161
  .pc-navmenu__item--more.is-open .pc-navmenu__more-chevron {
@@ -2314,7 +2320,7 @@ body.pc-container-2xl .pc-navbar {
2314
2320
  width: 14px;
2315
2321
  height: 44px;
2316
2322
  border-radius: min(var(--pc-border-radius-lg), 4px);
2317
- background-color: var(--pc-card-bg, var(--base-main-bg));
2323
+ background-color: var(--base-main-bg);
2318
2324
  border: 2px solid var(--pc-border-color);
2319
2325
  color: var(--pc-text-color-2);
2320
2326
  font-size: 1.8rem;
@@ -2425,7 +2431,7 @@ body.loaded .pc-sidebar__link {
2425
2431
  height: 3.5rem;
2426
2432
  padding: 0 1.6rem 0 0.8rem;
2427
2433
  color: var(--pc-text-color-2);
2428
- background-color: var(--pc-input-bg, var(--base-input-bg));
2434
+ background-color: var(--base-input-bg);
2429
2435
  border: 1px solid var(--pc-border-color);
2430
2436
  border-radius: var(--pc-border-radius);
2431
2437
  text-align: start;
@@ -2439,7 +2445,7 @@ body.loaded .pc-sidebar__search {
2439
2445
  transition: all 0.1s ease-out;
2440
2446
  }
2441
2447
  .pc-sidebar__search:hover {
2442
- border-color: #007bff;
2448
+ border-color: #0ea5e9;
2443
2449
  color: var(--pc-sidebar-text, var(--base-text-color-1));
2444
2450
  }
2445
2451
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__search {
@@ -2553,10 +2559,10 @@ body.loaded .pc-sidebar__label {
2553
2559
  border-inline-end: 2px solid transparent;
2554
2560
  }
2555
2561
  .pc-sidebar__submenu > .pc-sidebar__item > .pc-sidebar__link:hover {
2556
- background-color: var(--pc-sidebar-submenu-hover-bg, var(--base-subtle-bg));
2562
+ background-color: var(--pc-sidebar-submenu-hover-bg, var(--base-hover-bg));
2557
2563
  }
2558
2564
  .pc-sidebar__submenu > .pc-sidebar__item > .pc-sidebar__link--active {
2559
- background-color: var(--pc-sidebar-submenu-active-bg, var(--base-subtle-bg));
2565
+ background-color: var(--pc-sidebar-submenu-active-bg, var(--base-active-bg));
2560
2566
  color: var(--pc-sidebar-submenu-active-text, var(--base-text-color-1));
2561
2567
  border-inline-end-color: var(--pc-accent);
2562
2568
  }
@@ -2574,7 +2580,13 @@ body.loaded .pc-sidebar__label {
2574
2580
  }
2575
2581
  .pc-sidebar__chevron {
2576
2582
  margin-inline-start: auto;
2577
- font-size: 1.2rem;
2583
+ inline-size: 1.6rem;
2584
+ block-size: 1.6rem;
2585
+ flex-shrink: 0;
2586
+ font-size: 0;
2587
+ background-color: currentColor;
2588
+ -webkit-mask: var(--base-icon-chevron, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 18 6-6-6-6%22/%3E%3C/svg%3E")) center/1.2rem no-repeat;
2589
+ mask: var(--base-icon-chevron, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 18 6-6-6-6%22/%3E%3C/svg%3E")) center/1.2rem no-repeat;
2578
2590
  }
2579
2591
  body.loaded .pc-sidebar__chevron {
2580
2592
  transition: transform 0.1s ease-out;
@@ -2601,7 +2613,7 @@ body.loaded .pc-sidebar__chevron {
2601
2613
  opacity: 1;
2602
2614
  overflow: visible !important;
2603
2615
  z-index: 1050;
2604
- border-inline-end: 1px solid #e1e5e9;
2616
+ border-inline-end: 1px solid #e2e8f0;
2605
2617
  }
2606
2618
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__item {
2607
2619
  position: relative;
@@ -2690,13 +2702,13 @@ body.loaded .pc-sidebar__chevron {
2690
2702
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__item:hover > .pc-sidebar__submenu .pc-sidebar__toggle:hover,
2691
2703
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__submenu:hover .pc-sidebar__link:hover,
2692
2704
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__submenu:hover .pc-sidebar__toggle:hover {
2693
- background-color: var(--pc-sidebar-submenu-hover-bg, var(--base-subtle-bg));
2705
+ background-color: var(--pc-sidebar-submenu-hover-bg, var(--base-hover-bg));
2694
2706
  }
2695
2707
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__item:hover > .pc-sidebar__submenu .pc-sidebar__link--active,
2696
2708
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__item:hover > .pc-sidebar__submenu .pc-sidebar__toggle--active,
2697
2709
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__submenu:hover .pc-sidebar__link--active,
2698
2710
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__submenu:hover .pc-sidebar__toggle--active {
2699
- background-color: var(--pc-sidebar-submenu-active-bg, var(--base-subtle-bg));
2711
+ background-color: var(--pc-sidebar-submenu-active-bg, var(--base-active-bg));
2700
2712
  color: var(--pc-sidebar-submenu-active-text, var(--base-text-color-1));
2701
2713
  }
2702
2714
  .sidebar-hidden .pc-layout__sidebar--icon-collapse .pc-sidebar__item:hover > .pc-sidebar__submenu .pc-sidebar__icon,
@@ -3103,7 +3115,7 @@ body.pc-layout--sticky .pc-layout__inner {
3103
3115
  min-width: 20rem;
3104
3116
  max-width: 32rem;
3105
3117
  padding: 0.8rem;
3106
- background: var(--pc-card-bg, var(--base-main-bg));
3118
+ background: var(--base-main-bg);
3107
3119
  border: 1px solid var(--pc-border-color);
3108
3120
  border-radius: var(--pc-border-radius);
3109
3121
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
@@ -5942,16 +5954,25 @@ body.pc-layout--sticky .pc-layout__inner {
5942
5954
  }
5943
5955
 
5944
5956
  :root {
5945
- --base-accent-color: #007bff;
5946
- --base-accent-color-hover: rgb(20%, 58.5882352941%, 100%);
5947
- --base-accent-color-active: rgb(40%, 68.9411764706%, 100%);
5948
- --base-accent-color-light: rgba(0, 123, 255, 0.05);
5949
- --base-accent-color-light-hover: rgba(0, 123, 255, 0.12);
5950
- --base-text-color-1: #2c3e50;
5951
- --base-text-color-2: #6c757d;
5952
- --base-text-color-3: #7a8a99;
5953
- --base-text-color-4: #a3b1bf;
5957
+ --base-accent-color: #0ea5e9;
5958
+ --base-accent-color-hover: #0284c7;
5959
+ --base-accent-color-active: #0369a1;
5960
+ --base-accent-color-light: rgba(14, 165, 233, 0.05);
5961
+ --base-accent-color-light-hover: rgba(14, 165, 233, 0.08);
5962
+ --base-primary-color: var(--base-accent-color, #0ea5e9);
5963
+ --base-primary-color-hover: var(--base-accent-color-hover, #0284c7);
5964
+ --base-primary-color-active: var(--base-accent-color-active, #0369a1);
5965
+ --base-primary-color-light: var(--base-accent-color-light, rgba(14, 165, 233, 0.05));
5966
+ --base-primary-color-light-hover: var(--base-accent-color-light-hover, rgba(14, 165, 233, 0.08));
5967
+ --base-secondary-color: #6c757d;
5968
+ --base-secondary-color-hover: #545b62;
5969
+ --base-text-color-1: #334155;
5970
+ --base-text-color-2: #64748b;
5971
+ --base-text-color-3: #94a3b8;
5972
+ --base-text-color-4: #cbd5e1;
5954
5973
  --base-text-color-on-accent: #ffffff;
5974
+ --base-text-on-primary: var(--base-text-color-on-accent, #ffffff);
5975
+ --base-text-on-secondary: #ffffff;
5955
5976
  --base-main-bg: #ffffff;
5956
5977
  --base-page-bg: #f8f9fa;
5957
5978
  --base-subtle-bg: #e9ecef;
@@ -5960,21 +5981,22 @@ body.pc-layout--sticky .pc-layout__inner {
5960
5981
  --base-shadow-color: rgba(0, 0, 0, 0.15);
5961
5982
  --base-hover-bg: #e9ecef;
5962
5983
  --base-active-bg: rgb(85.5830753354%, 87.5490196078%, 89.5149638803%);
5963
- --base-disabled-bg: #e9ecef;
5984
+ --base-disabled-bg: #f1f3f5;
5964
5985
  --base-elevated-bg: #f8f9fa;
5965
5986
  --base-text-inverted: #ffffff;
5966
- --base-border-color: #e1e5e9;
5967
- --base-border: 1px solid #e1e5e9;
5968
- --base-checkbox-border-color: #e1e5e9;
5987
+ --base-border-width: 1px;
5988
+ --base-border-color: #e2e8f0;
5989
+ --base-border: 1px solid #e2e8f0;
5990
+ --base-checkbox-border-color: #e2e8f0;
5969
5991
  --base-input-bg: #ffffff;
5970
- --base-input-color: #495057;
5971
- --base-input-border: 1px solid #ced4da;
5972
- --base-input-border-color: #ced4da;
5973
- --base-input-border-hover: 1px solid #b8bfc6;
5974
- --base-input-border-focus: 1px solid #007bff;
5975
- --base-input-placeholder-color: #a3b1bf;
5992
+ --base-input-color: #334155;
5993
+ --base-input-border: 1px solid #e2e8f0;
5994
+ --base-input-border-color: #e2e8f0;
5995
+ --base-input-border-hover: 1px solid #0ea5e9;
5996
+ --base-input-border-focus: 1px solid #0ea5e9;
5997
+ --base-input-placeholder-color: #cbd5e1;
5976
5998
  --base-input-bg-disabled: rgba(255, 255, 255, 0.5);
5977
- --base-input-clear-color: #7a8a99;
5999
+ --base-input-clear-color: #94a3b8;
5978
6000
  --base-input-clear-bg-hover: #e9ecef;
5979
6001
  --base-input-size-xs-height: 3.1;
5980
6002
  --base-input-size-sm-height: 3.3;
@@ -5982,49 +6004,50 @@ body.pc-layout--sticky .pc-layout__inner {
5982
6004
  --base-input-size-lg-height: 3.8;
5983
6005
  --base-input-size-xl-height: 4.1;
5984
6006
  --base-dropdown-bg: #ffffff;
5985
- --base-dropdown-border: 1px solid #e1e5e9;
6007
+ --base-dropdown-border: 1px solid #e2e8f0;
5986
6008
  --base-dropdown-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
5987
6009
  --base-tooltip-bg: #2c3e50;
5988
6010
  --base-tooltip-text-color: #ffffff;
5989
6011
  --base-tooltip-color: #ffffff;
5990
- --base-success-color: #22c55e;
5991
- --base-success-bg: #22c55e;
5992
- --base-success-color-hover: rgb(10.3896103896%, 60.1986249045%, 28.7242169595%);
5993
- --base-success-bg-light: rgba(34, 197, 94, 0.1);
5994
- --base-success-bg-subtle: rgba(34, 197, 94, 0.08);
5995
- --base-success-border: rgba(34, 197, 94, 0.2);
6012
+ --base-success-color: #10b981;
6013
+ --base-success-bg: #10b981;
6014
+ --base-success-color-hover: #059669;
6015
+ --base-success-bg-light: rgba(16, 185, 129, 0.1);
6016
+ --base-success-bg-subtle: rgba(16, 185, 129, 0.08);
6017
+ --base-success-border: rgba(16, 185, 129, 0.2);
5996
6018
  --base-success-text: #155724;
5997
6019
  --base-success-text-light: #d4edda;
5998
6020
  --base-text-on-success: #ffffff;
5999
6021
  --base-danger-color: #ef4444;
6000
6022
  --base-danger-bg: #ef4444;
6001
- --base-danger-color-hover: rgb(92.1491355163%, 8.2430213465%, 8.2430213465%);
6023
+ --base-danger-color-hover: #dc2626;
6002
6024
  --base-danger-bg-light: rgba(239, 68, 68, 0.1);
6003
6025
  --base-danger-bg-subtle: rgba(239, 68, 68, 0.08);
6004
6026
  --base-danger-border: rgba(239, 68, 68, 0.2);
6005
6027
  --base-danger-text: #721c24;
6006
6028
  --base-danger-text-light: #f8d7da;
6007
6029
  --base-text-on-danger: #ffffff;
6008
- --base-warning-color: #f97316;
6009
- --base-warning-bg: #f97316;
6010
- --base-warning-color-hover: rgb(84.1086225285%, 35.7371400443%, 2.1658872754%);
6011
- --base-warning-bg-light: rgba(249, 115, 22, 0.1);
6012
- --base-warning-bg-subtle: rgba(249, 115, 22, 0.08);
6013
- --base-warning-border: rgba(249, 115, 22, 0.2);
6030
+ --base-warning-color: #f59e0b;
6031
+ --base-warning-bg: #f59e0b;
6032
+ --base-warning-color-hover: #d97706;
6033
+ --base-warning-bg-light: rgba(245, 158, 11, 0.1);
6034
+ --base-warning-bg-subtle: rgba(245, 158, 11, 0.08);
6035
+ --base-warning-border: rgba(245, 158, 11, 0.2);
6014
6036
  --base-warning-text: #856404;
6015
6037
  --base-warning-text-light: #fff3cd;
6016
- --base-text-on-warning: #212529;
6017
- --base-info-color: #17a2b8;
6018
- --base-info-color-hover: rgb(6.7973856209%, 47.8772378517%, 54.3790849673%);
6019
- --base-info-bg-light: rgba(23, 162, 184, 0.1);
6020
- --base-info-bg-subtle: rgba(23, 162, 184, 0.08);
6021
- --base-info-border: rgba(23, 162, 184, 0.2);
6038
+ --base-text-on-warning: #ffffff;
6039
+ --base-info-color: #06b6d4;
6040
+ --base-info-bg: #06b6d4;
6041
+ --base-info-color-hover: #0891b2;
6042
+ --base-info-bg-light: rgba(6, 182, 212, 0.1);
6043
+ --base-info-bg-subtle: rgba(6, 182, 212, 0.08);
6044
+ --base-info-border: rgba(6, 182, 212, 0.2);
6022
6045
  --base-info-text: #0c5460;
6023
6046
  --base-info-text-light: #d1ecf1;
6024
6047
  --base-text-on-info: #ffffff;
6025
6048
  --base-hover-overlay: rgba(0, 0, 0, 0.04);
6026
6049
  --base-active-overlay: rgba(0, 0, 0, 0.08);
6027
- --base-focus-ring-color: #007bff;
6050
+ --base-focus-ring-color: #0ea5e9;
6028
6051
  --base-focus-ring-width: 3px;
6029
6052
  --base-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
6030
6053
  --base-font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
@@ -6046,45 +6069,100 @@ body.pc-layout--sticky .pc-layout__inner {
6046
6069
  --base-border-radius-md: 0.6;
6047
6070
  --base-border-radius-lg: 0.8;
6048
6071
  --base-rem: 1rem;
6072
+ --base-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 18 6-6-6-6%22/%3E%3C/svg%3E");
6073
+ --base-icon-caret-down: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M12 15 6 9h12z%22/%3E%3C/svg%3E");
6074
+ --base-icon-caret-up: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M12 9 6 15h12z%22/%3E%3C/svg%3E");
6075
+ --base-icon-close: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 6 6 18%22/%3E%3Cpath d=%22m6 6 12 12%22/%3E%3C/svg%3E");
6076
+ --base-icon-clear: var(--base-icon-close, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 6 6 18%22/%3E%3Cpath d=%22m6 6 12 12%22/%3E%3C/svg%3E"));
6077
+ --base-icon-remove: var(--base-icon-close, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 6 6 18%22/%3E%3Cpath d=%22m6 6 12 12%22/%3E%3C/svg%3E"));
6078
+ --base-icon-expand: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14%22/%3E%3Cpath d=%22M12 5v14%22/%3E%3C/svg%3E");
6079
+ --base-icon-collapse: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14%22/%3E%3C/svg%3E");
6080
+ --base-icon-add: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14%22/%3E%3Cpath d=%22M12 5v14%22/%3E%3C/svg%3E");
6081
+ --base-icon-edit: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z%22/%3E%3C/svg%3E");
6082
+ --base-icon-delete: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 6h18%22/%3E%3Cpath d=%22M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2%22/%3E%3Cpath d=%22M10 11v6%22/%3E%3Cpath d=%22M14 11v6%22/%3E%3C/svg%3E");
6083
+ --base-icon-search: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3Cpath d=%22m21 21-4.3-4.3%22/%3E%3C/svg%3E");
6084
+ --base-color-1: #f59e0b;
6085
+ --base-color-2: #ec4899;
6086
+ --base-color-3: #10b981;
6087
+ --base-color-4: #0ea5e9;
6088
+ --base-color-5: #8b5cf6;
6089
+ --base-color-6: #6366f1;
6090
+ --base-color-7: #64748b;
6091
+ --base-color-8: #0284c7;
6092
+ --base-color-9: #334155;
6093
+ --base-color-1-text: #1a1a1a;
6094
+ --base-color-2-text: #ffffff;
6095
+ --base-color-3-text: #ffffff;
6096
+ --base-color-4-text: #ffffff;
6097
+ --base-color-5-text: #ffffff;
6098
+ --base-color-6-text: #ffffff;
6099
+ --base-color-7-text: #ffffff;
6100
+ --base-color-8-text: #ffffff;
6101
+ --base-color-9-text: #ffffff;
6102
+ --base-space-xs: 0.4;
6103
+ --base-space-sm: 0.8;
6104
+ --base-space-md: 1.2;
6105
+ --base-space-base: 1.6;
6106
+ --base-space-lg: 2.4;
6107
+ --base-space-xl: 3.2;
6108
+ --base-space-2xl: 4.8;
6109
+ --base-shadow-sm: 0 1px 3px var(--base-shadow-color);
6110
+ --base-shadow-md: 0 2px 8px var(--base-shadow-color);
6111
+ --base-shadow-lg: 0 4px 12px var(--base-shadow-color);
6112
+ --base-duration-fast: 0.1s;
6113
+ --base-duration-normal: 0.15s;
6114
+ --base-duration-medium: 0.25s;
6115
+ --base-duration-slow: 0.3s;
6116
+ --base-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
6117
+ --base-ease-out: cubic-bezier(0, 0, 0.2, 1);
6118
+ --base-ease-in: cubic-bezier(0.4, 0, 1, 1);
6119
+ --base-z-dropdown: 7500;
6120
+ --base-z-modal-backdrop: 6000;
6121
+ --base-z-modal: 7000;
6122
+ --base-z-popover: 7600;
6123
+ --base-z-toast: 8000;
6124
+ --base-z-tooltip: 9000;
6049
6125
  color-scheme: light;
6050
6126
  --pc-main-bg: #ffffff;
6051
6127
  --pc-page-bg: var(--base-page-bg, #f8f9fa);
6052
6128
  --pc-subtle-bg: #e9ecef;
6053
- --pc-text-color-1: var(--base-text-color-1, #2c3e50);
6054
- --pc-text-color-2: var(--base-text-color-2, #6c757d);
6055
- --pc-accent: var(--base-accent-color, #007bff);
6056
- --pc-accent-hover: rgba(0, 123, 255, 0.12);
6129
+ --pc-hover-bg: var(--base-hover-bg, #e9ecef);
6130
+ --pc-active-bg: var(--base-active-bg, rgb(85.5830753354%, 87.5490196078%, 89.5149638803%));
6131
+ --pc-text-color-1: var(--base-text-color-1, #334155);
6132
+ --pc-text-color-2: var(--base-text-color-2, #64748b);
6133
+ --pc-accent: var(--base-accent-color, #0ea5e9);
6134
+ --pc-accent-hover: rgba(14, 165, 233, 0.08);
6057
6135
  --pc-accent-light: color-mix(in srgb, var(--pc-accent) 5%, transparent);
6058
6136
  --pc-link-color: var(--pc-accent);
6059
6137
  --pc-link-color-hover: color-mix(in srgb, var(--pc-link-color), currentColor 50%);
6060
6138
  --pc-link-color-visited: var(--pc-link-color);
6061
- --pc-border-color: var(--base-border-color, #e1e5e9);
6062
- --pc-success: #22c55e;
6063
- --pc-warning: #f97316;
6139
+ --pc-border-color: var(--base-border-color, #e2e8f0);
6140
+ --pc-success: #10b981;
6141
+ --pc-warning: #f59e0b;
6064
6142
  --pc-danger: #ef4444;
6065
- --pc-info: #17a2b8;
6143
+ --pc-info: #06b6d4;
6066
6144
  --pc-success-text: #155724;
6067
6145
  --pc-danger-text: #721c24;
6068
6146
  --pc-warning-text: #856404;
6069
6147
  --pc-info-text: #0c5460;
6070
- --pc-color-1: transparent;
6071
- --pc-color-2: transparent;
6072
- --pc-color-3: transparent;
6073
- --pc-color-4: transparent;
6074
- --pc-color-5: transparent;
6075
- --pc-color-6: transparent;
6076
- --pc-color-7: transparent;
6077
- --pc-color-8: transparent;
6078
- --pc-color-9: transparent;
6079
- --pc-color-1-text: #ffffff;
6080
- --pc-color-2-text: #ffffff;
6081
- --pc-color-3-text: #ffffff;
6082
- --pc-color-4-text: #ffffff;
6083
- --pc-color-5-text: #ffffff;
6084
- --pc-color-6-text: #ffffff;
6085
- --pc-color-7-text: #ffffff;
6086
- --pc-color-8-text: #ffffff;
6087
- --pc-color-9-text: #ffffff;
6148
+ --pc-color-1: var(--base-color-1, #f59e0b);
6149
+ --pc-color-2: var(--base-color-2, #ec4899);
6150
+ --pc-color-3: var(--base-color-3, #10b981);
6151
+ --pc-color-4: var(--base-color-4, #0ea5e9);
6152
+ --pc-color-5: var(--base-color-5, #8b5cf6);
6153
+ --pc-color-6: var(--base-color-6, #6366f1);
6154
+ --pc-color-7: var(--base-color-7, #64748b);
6155
+ --pc-color-8: var(--base-color-8, #0284c7);
6156
+ --pc-color-9: var(--base-color-9, #334155);
6157
+ --pc-color-1-text: var(--base-color-1-text, #1a1a1a);
6158
+ --pc-color-2-text: var(--base-color-2-text, #ffffff);
6159
+ --pc-color-3-text: var(--base-color-3-text, #ffffff);
6160
+ --pc-color-4-text: var(--base-color-4-text, #ffffff);
6161
+ --pc-color-5-text: var(--base-color-5-text, #ffffff);
6162
+ --pc-color-6-text: var(--base-color-6-text, #ffffff);
6163
+ --pc-color-7-text: var(--base-color-7-text, #ffffff);
6164
+ --pc-color-8-text: var(--base-color-8-text, #ffffff);
6165
+ --pc-color-9-text: var(--base-color-9-text, #ffffff);
6088
6166
  --pc-border-radius-sm: calc(var(--base-border-radius-sm, 0.4) * 1rem);
6089
6167
  --pc-border-radius: calc(var(--base-border-radius-md, 0.6) * 1rem);
6090
6168
  --pc-border-radius-lg: calc(var(--base-border-radius-lg, 0.8) * 1rem);
package/package.json CHANGED
@@ -1,81 +1,83 @@
1
- {
2
- "name": "@keenmate/pure-css",
3
- "version": "1.0.0-rc07",
4
- "description": "The KeenMate CSS foundation — --base-* theming contract, PureCSS grid and utility classes. Extracted from pure-admin-core so docs sites, standalone pages and every web/svelte component share one theming layer.",
5
- "style": "dist/css/pure-css.css",
6
- "exports": {
7
- ".": "./dist/css/pure-css.css",
8
- "./css": "./dist/css/pure-css.css",
9
- "./css/*": "./dist/css/*",
10
- "./base": "./dist/css/base.css",
11
- "./reboot": "./dist/css/reboot.css",
12
- "./scrollbars": "./dist/css/scrollbars.css",
13
- "./grid": "./dist/css/grid.css",
14
- "./utilities": "./dist/css/utilities.css",
15
- "./scss": "./src/scss/pure-css.scss",
16
- "./scss/*": "./src/scss/*",
17
- "./js": "./src/js/pure-css.js",
18
- "./js/*": "./src/js/*"
19
- },
20
- "files": [
21
- "dist/",
22
- "src/scss/",
23
- "src/js/",
24
- "README.md",
25
- "CHANGELOG.md",
26
- "LICENSE"
27
- ],
28
- "scripts": {
29
- "build:bundle": "sass src/scss/pure-css.scss dist/css/pure-css.css --no-source-map --silence-deprecation=import",
30
- "build:base": "sass src/scss/base.scss dist/css/base.css --no-source-map --silence-deprecation=import",
31
- "build:reboot": "sass src/scss/reboot.scss dist/css/reboot.css --no-source-map --silence-deprecation=import",
32
- "build:scrollbars": "sass src/scss/scrollbars.scss dist/css/scrollbars.css --no-source-map --silence-deprecation=import",
33
- "build:grid": "sass src/scss/grid.scss dist/css/grid.css --no-source-map --silence-deprecation=import",
34
- "build:utilities": "sass src/scss/utilities.scss dist/css/utilities.css --no-source-map --silence-deprecation=import",
35
- "build": "npm run build:bundle && npm run build:base && npm run build:reboot && npm run build:scrollbars && npm run build:grid && npm run build:utilities",
36
- "watch": "sass --watch src/scss/pure-css.scss:dist/css/pure-css.css --silence-deprecation=import",
37
- "dev": "vite --port 12500",
38
- "test": "npm run test:e2e",
39
- "test:e2e": "playwright test",
40
- "test:e2e:ui": "playwright test --ui",
41
- "test:e2e:headed": "playwright test --headed",
42
- "test:e2e:install": "playwright install chromium",
43
- "prepublishOnly": "npm run build"
44
- },
45
- "keywords": [
46
- "css",
47
- "scss",
48
- "purecss",
49
- "grid",
50
- "utilities",
51
- "css-variables",
52
- "theming",
53
- "keenmate",
54
- "pure-admin"
55
- ],
56
- "author": "KeenMate",
57
- "license": "MIT",
58
- "peerDependencies": {
59
- "sass": "^1.0.0"
60
- },
61
- "devDependencies": {
62
- "@playwright/test": "^1.60.0",
63
- "sass": "^1.70.0",
64
- "vite": "^5.4.0"
65
- },
66
- "repository": {
67
- "type": "git",
68
- "url": "git+https://github.com/KeenMate/pure-css.git"
69
- },
70
- "bugs": {
71
- "url": "https://github.com/KeenMate/pure-css/issues"
72
- },
73
- "homepage": "https://github.com/KeenMate/pure-css#readme",
74
- "publishConfig": {
75
- "access": "public"
76
- },
77
- "allowScripts": {
78
- "esbuild@0.21.5": true,
79
- "@parcel/watcher@2.6.0": true
80
- }
81
- }
1
+ {
2
+ "name": "@keenmate/pure-css",
3
+ "version": "1.0.0-rc09",
4
+ "description": "The KeenMate CSS foundation — --base-* theming contract, PureCSS grid and utility classes. Extracted from pure-admin-core so docs sites, standalone pages and every web/svelte component share one theming layer.",
5
+ "style": "dist/css/pure-css.css",
6
+ "exports": {
7
+ ".": "./dist/css/pure-css.css",
8
+ "./css": "./dist/css/pure-css.css",
9
+ "./css/*": "./dist/css/*",
10
+ "./base": "./dist/css/base.css",
11
+ "./reboot": "./dist/css/reboot.css",
12
+ "./component-reset": "./dist/css/component-reset.css",
13
+ "./scrollbars": "./dist/css/scrollbars.css",
14
+ "./grid": "./dist/css/grid.css",
15
+ "./utilities": "./dist/css/utilities.css",
16
+ "./scss": "./src/scss/pure-css.scss",
17
+ "./scss/*": "./src/scss/*",
18
+ "./js": "./src/js/pure-css.js",
19
+ "./js/*": "./src/js/*"
20
+ },
21
+ "files": [
22
+ "dist/",
23
+ "src/scss/",
24
+ "src/js/",
25
+ "README.md",
26
+ "CHANGELOG.md",
27
+ "LICENSE"
28
+ ],
29
+ "scripts": {
30
+ "build:bundle": "sass src/scss/pure-css.scss dist/css/pure-css.css --no-source-map --silence-deprecation=import",
31
+ "build:base": "sass src/scss/base.scss dist/css/base.css --no-source-map --silence-deprecation=import",
32
+ "build:reboot": "sass src/scss/reboot.scss dist/css/reboot.css --no-source-map --silence-deprecation=import",
33
+ "build:component-reset": "sass src/scss/component-reset.scss dist/css/component-reset.css --no-source-map --silence-deprecation=import",
34
+ "build:scrollbars": "sass src/scss/scrollbars.scss dist/css/scrollbars.css --no-source-map --silence-deprecation=import",
35
+ "build:grid": "sass src/scss/grid.scss dist/css/grid.css --no-source-map --silence-deprecation=import",
36
+ "build:utilities": "sass src/scss/utilities.scss dist/css/utilities.css --no-source-map --silence-deprecation=import",
37
+ "build": "npm run build:bundle && npm run build:base && npm run build:reboot && npm run build:component-reset && npm run build:scrollbars && npm run build:grid && npm run build:utilities",
38
+ "watch": "sass --watch src/scss/pure-css.scss:dist/css/pure-css.css --silence-deprecation=import",
39
+ "dev": "vite --port 12500",
40
+ "test": "npm run test:e2e",
41
+ "test:e2e": "playwright test",
42
+ "test:e2e:ui": "playwright test --ui",
43
+ "test:e2e:headed": "playwright test --headed",
44
+ "test:e2e:install": "playwright install chromium",
45
+ "prepublishOnly": "npm run build"
46
+ },
47
+ "keywords": [
48
+ "css",
49
+ "scss",
50
+ "purecss",
51
+ "grid",
52
+ "utilities",
53
+ "css-variables",
54
+ "theming",
55
+ "keenmate",
56
+ "pure-admin"
57
+ ],
58
+ "author": "KeenMate",
59
+ "license": "MIT",
60
+ "peerDependencies": {
61
+ "sass": "^1.0.0"
62
+ },
63
+ "devDependencies": {
64
+ "@playwright/test": "^1.60.0",
65
+ "sass": "^1.70.0",
66
+ "vite": "^5.4.0"
67
+ },
68
+ "repository": {
69
+ "type": "git",
70
+ "url": "git+https://github.com/KeenMate/pure-css.git"
71
+ },
72
+ "bugs": {
73
+ "url": "https://github.com/KeenMate/pure-css/issues"
74
+ },
75
+ "homepage": "https://github.com/KeenMate/pure-css#readme",
76
+ "publishConfig": {
77
+ "access": "public"
78
+ },
79
+ "allowScripts": {
80
+ "esbuild@0.21.5": true,
81
+ "@parcel/watcher@2.6.0": true
82
+ }
83
+ }
package/src/js/fit.js CHANGED
@@ -613,8 +613,10 @@
613
613
  moreLink.className = 'pc-navmenu__link';
614
614
  moreLink.setAttribute('aria-haspopup', 'true');
615
615
  moreLink.setAttribute('aria-expanded', 'false');
616
+ // Empty span — the glyph is painted by CSS (--base-icon-chevron mask). No
617
+ // text char (the old "›" rendered inconsistently and would double up on the mask).
616
618
  moreLink.innerHTML = navEscapeHtml(moreLabel) +
617
- ' <span class="pc-navmenu__more-chevron" aria-hidden="true">›</span>';
619
+ ' <span class="pc-navmenu__more-chevron" aria-hidden="true"></span>';
618
620
  moreLi.appendChild(moreLink);
619
621
  ul.appendChild(moreLi);
620
622
  moreLi.style.display = 'none';
@@ -736,8 +738,9 @@
736
738
  btn.type = 'button';
737
739
  btn.className = 'pc-sidebar__toggle';
738
740
  btn.setAttribute('aria-expanded', active ? 'true' : 'false');
741
+ // Empty chevron span — glyph painted by CSS (--base-icon-chevron mask).
739
742
  btn.innerHTML = iconHtml(icon) + labelHtml(text) +
740
- '<span class="pc-sidebar__chevron" aria-hidden="true">›</span>';
743
+ '<span class="pc-sidebar__chevron" aria-hidden="true"></span>';
741
744
  li.appendChild(btn);
742
745
  var submenu = document.createElement('ul');
743
746
  submenu.className = 'pc-sidebar__submenu' + (active ? ' pc-sidebar__submenu--open' : '');