@drghaliasri/butex 8.1.5 → 8.2.1

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.
@@ -4981,91 +4981,6 @@ var DOCUMENT_WIDGET_CSS = `
4981
4981
  scrollbar-width: thin;
4982
4982
  }
4983
4983
 
4984
- .butex-document-widget__command-sheet-backdrop {
4985
- align-items: flex-end;
4986
- background: color-mix(in srgb, #000 35%, transparent);
4987
- display: flex;
4988
- inset: 0;
4989
- justify-content: center;
4990
- padding-bottom: var(--butex-safe-area-bottom);
4991
- padding-left: max(12px, var(--butex-safe-area-left));
4992
- padding-right: max(12px, var(--butex-safe-area-right));
4993
- padding-top: max(12px, var(--butex-safe-area-top));
4994
- position: fixed;
4995
- z-index: var(--butex-document-z-popover);
4996
- }
4997
-
4998
- .butex-document-widget__command-sheet {
4999
- background: var(--butex-document-panel);
5000
- border: 1px solid var(--butex-document-border);
5001
- border-radius: 16px 16px 0 0;
5002
- box-shadow: 0 -16px 40px color-mix(in srgb, #000 22%, transparent);
5003
- display: grid;
5004
- grid-template-rows: auto minmax(0, 1fr);
5005
- max-height: min(78vh, 720px);
5006
- max-height: min(720px, calc(100dvh - max(12px, var(--butex-safe-area-top)) - var(--butex-safe-area-bottom)));
5007
- max-width: 640px;
5008
- min-width: 0;
5009
- overflow: hidden;
5010
- width: 100%;
5011
- }
5012
-
5013
- .butex-document-widget__command-sheet-header {
5014
- align-items: center;
5015
- border-block-end: 1px solid var(--butex-document-border);
5016
- display: flex;
5017
- gap: 8px;
5018
- justify-content: space-between;
5019
- min-width: 0;
5020
- padding: 10px 12px;
5021
- }
5022
-
5023
- .butex-document-widget__command-sheet-body {
5024
- display: grid;
5025
- gap: 12px;
5026
- min-height: 0;
5027
- min-width: 0;
5028
- overflow-y: auto;
5029
- overscroll-behavior: contain;
5030
- padding: 12px;
5031
- }
5032
-
5033
- .butex-document-widget__command-group {
5034
- border: 1px solid var(--butex-document-border);
5035
- border-radius: 10px;
5036
- display: grid;
5037
- gap: 8px;
5038
- min-width: 0;
5039
- padding: 10px;
5040
- }
5041
-
5042
- .butex-document-widget__command-group h3 {
5043
- font-size: 0.88rem;
5044
- margin: 0;
5045
- }
5046
-
5047
- .butex-document-widget__command-grid {
5048
- display: grid;
5049
- gap: 6px;
5050
- grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
5051
- min-width: 0;
5052
- }
5053
-
5054
- .butex-document-widget__command-grid button {
5055
- min-height: 44px;
5056
- overflow-wrap: anywhere;
5057
- text-align: start;
5058
- }
5059
-
5060
- .butex-document-widget__command-grid--digits button {
5061
- text-align: center;
5062
- }
5063
-
5064
- .butex-document-widget__command-grid [aria-selected="true"] {
5065
- background: var(--butex-document-accent-bg);
5066
- border-color: var(--butex-document-accent);
5067
- }
5068
-
5069
4984
  .butex-document-widget__command-subtitle {
5070
4985
  color: var(--butex-document-muted);
5071
4986
  font-size: 0.82rem;
@@ -5956,15 +5871,6 @@ var DOCUMENT_WIDGET_CSS = `
5956
5871
  z-index: var(--butex-document-z-equation);
5957
5872
  }
5958
5873
 
5959
- .butex-document-widget__equation-modal[data-visible-viewport="true"] {
5960
- bottom: auto;
5961
- height: var(--butex-document-visible-viewport-height);
5962
- left: var(--butex-document-visible-viewport-left);
5963
- right: auto;
5964
- top: var(--butex-document-visible-viewport-top);
5965
- width: var(--butex-document-visible-viewport-width);
5966
- }
5967
-
5968
5874
  .butex-document-widget__equation-modal-backdrop {
5969
5875
  background: color-mix(in srgb, var(--butex-document-fg) 34%, transparent);
5970
5876
  border: 0;
@@ -6907,7 +6813,7 @@ var DOCUMENT_WIDGET_CSS = `
6907
6813
  width: 100%;
6908
6814
  }
6909
6815
 
6910
- .butex-document-widget__equation-modal[data-visible-viewport="true"] .butex-document-widget__equation-modal-panel {
6816
+ .butex-mobile-command-portal .butex-document-widget__equation-modal-panel {
6911
6817
  height: 100%;
6912
6818
  max-height: 100%;
6913
6819
  }
@@ -6945,21 +6851,6 @@ var DOCUMENT_WIDGET_CSS = `
6945
6851
  min-height: 44px;
6946
6852
  }
6947
6853
 
6948
- .butex-document-widget__command-sheet-backdrop {
6949
- padding-bottom: var(--butex-safe-area-bottom);
6950
- padding-left: var(--butex-safe-area-left);
6951
- padding-right: var(--butex-safe-area-right);
6952
- padding-top: max(8px, var(--butex-safe-area-top));
6953
- }
6954
-
6955
- .butex-document-widget__command-sheet {
6956
- border-block-end: 0;
6957
- border-radius: 16px 16px 0 0;
6958
- max-height: calc(100vh - 8px);
6959
- max-height: calc(100dvh - max(8px, var(--butex-safe-area-top)) - var(--butex-safe-area-bottom));
6960
- max-width: none;
6961
- }
6962
-
6963
6854
  .butex-document-widget__article-meta-date,
6964
6855
  .butex-document-widget__refs-grid {
6965
6856
  grid-template-columns: minmax(0, 1fr);
@@ -7043,6 +6934,11 @@ var DOCUMENT_WIDGET_CSS = `
7043
6934
  padding-top: max(8px, var(--butex-safe-area-top));
7044
6935
  }
7045
6936
 
6937
+ .butex-mobile-command-portal .butex-document-widget__equation-modal-panel {
6938
+ height: 100%;
6939
+ max-height: 100%;
6940
+ }
6941
+
7046
6942
  .butex-document-widget__cite-picker,
7047
6943
  .butex-document-widget__refs-panel {
7048
6944
  border-block-end: 0;