@fileverse-dev/fortune-react 1.0.2-mod-20-patch-2 → 1.0.2-mod-25

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.
@@ -1187,11 +1187,11 @@ html::-webkit-scrollbar-button {
1187
1187
  }
1188
1188
 
1189
1189
  .fortune-dialog {
1190
+ min-width: 368px;
1190
1191
  max-width: 90%;
1191
1192
  max-height: 90%;
1192
- overflow: scroll;
1193
- border-radius: 6px;
1194
- background: white;
1193
+ border-radius: 12px;
1194
+ background: hsl(var(--color-bg-default));
1195
1195
  box-shadow: rgb(0 0 0 / 10%) 5px 5px 30px;
1196
1196
  box-sizing: border-box;
1197
1197
  overflow: auto;
@@ -1251,10 +1251,11 @@ html::-webkit-scrollbar-button {
1251
1251
  opacity: 0.7;
1252
1252
  }
1253
1253
 
1254
+ @import "@fileverse/ui/styles";
1254
1255
  /*查找替换弹出框样式*/
1255
1256
  #fortune-search-replace {
1256
1257
  position: absolute;
1257
- padding: 30px 42px;
1258
+ min-width: 504px;
1258
1259
  z-index: 1002;
1259
1260
  }
1260
1261
 
@@ -1336,10 +1337,7 @@ html::-webkit-scrollbar-button {
1336
1337
  }
1337
1338
 
1338
1339
  #fortune-search-replace #searchAllbox {
1339
- height: 210px;
1340
- border: 1px solid #d4d4d4;
1341
- margin-top: 10px;
1342
- overflow-y: auto;
1340
+ overflow-y: scroll;
1343
1341
  position: relative;
1344
1342
  }
1345
1343
 
@@ -1413,6 +1411,38 @@ html::-webkit-scrollbar-button {
1413
1411
  white-space: nowrap;
1414
1412
  }
1415
1413
 
1414
+ .find-replace-label {
1415
+ min-width: 100px;
1416
+ }
1417
+
1418
+ .find-replace-table-cell {
1419
+ min-width: 154px;
1420
+ }
1421
+
1422
+ /* Add scrollbar styles */
1423
+ #fortune-search-replace .table-container {
1424
+ scrollbar-width: thin;
1425
+ scrollbar-color: #babac0 transparent;
1426
+ }
1427
+
1428
+ #fortune-search-replace .table-container::-webkit-scrollbar {
1429
+ width: 8px;
1430
+ height: 8px;
1431
+ }
1432
+
1433
+ #fortune-search-replace .table-container::-webkit-scrollbar-track {
1434
+ background-color: transparent;
1435
+ }
1436
+
1437
+ #fortune-search-replace .table-container::-webkit-scrollbar-thumb {
1438
+ background-color: #babac0;
1439
+ border-radius: 16px;
1440
+ }
1441
+
1442
+ #fortune-search-replace .table-container::-webkit-scrollbar-button {
1443
+ display: none;
1444
+ }
1445
+
1416
1446
  .fortune-link-modify-modal {
1417
1447
  position: absolute;
1418
1448
  overflow: hidden;
@@ -1728,14 +1758,11 @@ html::-webkit-scrollbar-button {
1728
1758
  }
1729
1759
 
1730
1760
  #range-dialog {
1731
- box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
1761
+ box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
1732
1762
  background: #fff;
1733
- background-clip: padding-box;
1734
- border: 1px solid rgba(0, 0, 0, 0.333);
1763
+ border: 1px solid hsl(var(--color-border-default));
1735
1764
  outline: 0;
1736
1765
  position: absolute;
1737
- color: #000;
1738
- padding: 30px 42px;
1739
1766
  z-index: 100003;
1740
1767
  left: 50%;
1741
1768
  top: 50%;
@@ -1801,34 +1828,41 @@ html::-webkit-scrollbar-button {
1801
1828
 
1802
1829
  .condition-format-sub-menu {
1803
1830
  position: absolute;
1804
- top: -8px;
1805
- box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
1831
+ top: -12px;
1832
+ box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
1806
1833
  background: #fff;
1807
- border: 1px solid rgba(0, 0, 0, 0.2);
1834
+ border: 1px solid hsl(var(--color-border-default));
1835
+ border-radius: 8px;
1808
1836
  cursor: default;
1809
- font-size: 12px;
1837
+ font-size: 14px;
1810
1838
  z-index: 1004;
1811
1839
  box-sizing: border-box;
1812
1840
  -webkit-user-select: none;
1813
1841
  -moz-user-select: none;
1814
1842
  user-select: none;
1815
1843
  outline: none;
1844
+ padding: 8px;
1845
+ min-width: 190px;
1816
1846
  }
1817
1847
 
1818
1848
  .condition-format-item {
1819
1849
  display: flex;
1820
1850
  justify-content: space-between;
1821
- padding: 6px 18px;
1851
+ padding: 8px;
1822
1852
  z-index: 1005;
1853
+ border-radius: 4px;
1854
+ cursor: pointer;
1823
1855
  }
1824
1856
 
1825
1857
  .condition-format-item:hover {
1826
- background: #efefef;
1858
+ background: hsl(var(--color-bg-default-hover));
1859
+ transition: all 0.2s ease-in-out;
1827
1860
  }
1828
1861
 
1829
1862
  .condition-format-item span {
1830
- font-size: 10px;
1831
- color: #afafaf;
1863
+ font-size: 14px;
1864
+ color: hsl(var(--color-text-secondary));
1865
+ font-weight: 400;
1832
1866
  }
1833
1867
 
1834
1868
  .horizontal-line {
@@ -1870,8 +1904,11 @@ html::-webkit-scrollbar-button {
1870
1904
  }
1871
1905
 
1872
1906
  .condition-rules {
1873
- padding: 0px 42px 34px 42px;
1874
- font-size: 12px;
1907
+ /* padding: 0px 42px 34px 42px; */
1908
+ font-size: 14px;
1909
+ display: flex;
1910
+ flex-direction: column;
1911
+ gap: 16px;
1875
1912
  }
1876
1913
 
1877
1914
  .condition-rules-title {
@@ -1881,9 +1918,8 @@ html::-webkit-scrollbar-button {
1881
1918
  margin-bottom: 18px;
1882
1919
  }
1883
1920
 
1884
- .conditin-rules-value {
1885
- margin: 5px 0;
1886
- font-weight: 600;
1921
+ .condition-rules-value {
1922
+ margin-bottom: 4px;
1887
1923
  }
1888
1924
 
1889
1925
  .condition-rules-inpbox {
@@ -1913,40 +1949,45 @@ html::-webkit-scrollbar-button {
1913
1949
  }
1914
1950
 
1915
1951
  .condition-rules-setbox {
1916
- border: 1px solid #d4d4d4;
1952
+ display: flex;
1953
+ flex-direction: column;
1954
+ gap: 8px;
1917
1955
  }
1918
1956
 
1919
1957
  .condition-rules-set {
1920
- padding: 5px 10px;
1958
+ width: 100%;
1959
+ display: flex;
1960
+ align-items: center;
1961
+ gap: 8px;
1921
1962
  }
1922
1963
 
1923
1964
  .condition-rules-color {
1924
- height: 30px;
1925
- line-height: 30px;
1926
- position: relative;
1965
+ display: flex;
1966
+ align-items: center;
1967
+ gap: 8px;
1927
1968
  }
1928
1969
 
1929
1970
  .condition-rules-check {
1930
- float: left;
1931
- margin-top: 10px;
1971
+ /* float: left; */
1972
+ /* margin-top: 10px; */
1932
1973
  }
1933
1974
 
1934
1975
  .condition-rules-label {
1935
1976
  display: inline-block;
1936
- width: 80px;
1977
+ width: 70px;
1937
1978
  -webkit-user-select: none;
1938
1979
  -moz-user-select: none;
1939
1980
  user-select: none;
1940
1981
  }
1941
1982
 
1942
1983
  .condition-rules-select-color {
1943
- padding: 2px;
1944
- border: solid 1px #e5e5e5;
1945
- background: #f5f5f5;
1946
- position: absolute;
1947
- top: 50%;
1948
- left: 50%;
1949
- transform: translate(20%, -50%);
1984
+ background: hsl(var(--color-bg-default));
1985
+ width: 2.5rem;
1986
+ height: 1.5rem;
1987
+ border-radius: 4px;
1988
+ padding: 0;
1989
+ margin: 0;
1990
+ cursor: pointer;
1950
1991
  }
1951
1992
 
1952
1993
  .condition-rules-between-box {
@@ -1970,23 +2011,37 @@ html::-webkit-scrollbar-button {
1970
2011
  }
1971
2012
 
1972
2013
  .condition-rules-date {
1973
- width: 98%;
1974
- border: none;
1975
- line-height: 26px;
2014
+ width: 100%;
1976
2015
  }
1977
2016
 
1978
2017
  .condition-rules-select {
1979
- width: 150px;
1980
- height: 30px;
2018
+ width: 100%;
2019
+ z-index: 999999;
1981
2020
  }
1982
2021
 
1983
2022
  .condition-rules-project-box {
1984
2023
  display: flex;
1985
2024
  align-items: center;
2025
+ gap: 8px;
1986
2026
  }
1987
2027
 
1988
2028
  .condition-rules-project-input {
1989
- margin: 0px 6px;
2029
+ margin: 0px;
2030
+ width: -moz-fit-content;
2031
+ width: fit-content;
2032
+ max-width: 55px !important;
2033
+ }
2034
+
2035
+ /* Hide arrows for Chrome, Safari, Edge */
2036
+ input[type="number"].condition-rules-project-input::-webkit-outer-spin-button,
2037
+ input[type="number"].condition-rules-project-input::-webkit-inner-spin-button {
2038
+ -webkit-appearance: none;
2039
+ margin: 0;
2040
+ }
2041
+
2042
+ /* Hide arrows for Firefox */
2043
+ input[type="number"].condition-rules-project-input {
2044
+ -moz-appearance: textfield;
1990
2045
  }
1991
2046
 
1992
2047
  .fortune-toolbar {
@@ -2018,7 +2073,7 @@ html::-webkit-scrollbar-button {
2018
2073
  .fortune-toolbar-menu-divider {
2019
2074
  width: "100%";
2020
2075
  height: 1px;
2021
- margin: 2px 6px;
2076
+ margin: 8px 0px;
2022
2077
  background-color: #e0e0e0;
2023
2078
  }
2024
2079
 
@@ -2084,14 +2139,14 @@ html::-webkit-scrollbar-button {
2084
2139
  .fortune-toolbar-select,
2085
2140
  .fortune-toolbar-color-picker {
2086
2141
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
2087
- padding: 10px;
2088
- border-radius: 6px;
2142
+ padding: 0.5rem;
2143
+ border: 1px solid hsl(var(--color-border-default));
2144
+ border-radius: 8px;
2089
2145
  background: white;
2146
+ min-width: 240px;
2090
2147
  }
2091
2148
 
2092
2149
  .fortune-toolbar-select {
2093
- padding-left: 0;
2094
- padding-right: 0;
2095
2150
  overflow: auto;
2096
2151
  max-height: 75vh;
2097
2152
  }
@@ -2103,7 +2158,7 @@ html::-webkit-scrollbar-button {
2103
2158
  .fortune-toolbar-select-option {
2104
2159
  font-size: 12px;
2105
2160
  min-width: 60px;
2106
- padding: 8px 12px;
2161
+ padding: 8px;
2107
2162
  cursor: pointer;
2108
2163
  -webkit-user-select: none;
2109
2164
  -moz-user-select: none;
@@ -2111,7 +2166,9 @@ html::-webkit-scrollbar-button {
2111
2166
  }
2112
2167
 
2113
2168
  .fortune-toolbar-select-option:hover {
2114
- background: #efefef;
2169
+ background: hsl(var(--color-bg-default-hover));
2170
+ border-radius: 4px;
2171
+ transition: all 0.2s ease-in-out;
2115
2172
  }
2116
2173
 
2117
2174
  .fortune-toolbar-select::-webkit-scrollbar {
@@ -2310,6 +2367,7 @@ html::-webkit-scrollbar-button {
2310
2367
  background: #efefef;
2311
2368
  cursor: pointer;
2312
2369
  }
2370
+
2313
2371
  /*函数公式查找样式*/
2314
2372
  #luckysheet-search-formula {
2315
2373
  font-size: 12px;
@@ -2974,30 +3032,30 @@ label {
2974
3032
  }
2975
3033
 
2976
3034
  .fortune-context-menu {
3035
+ min-width: 240px;
2977
3036
  max-height: 100%;
2978
3037
  overflow-y: auto;
2979
3038
  border-radius: 4px;
2980
- box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.15);
3039
+ box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
2981
3040
  transition: opacity 0.218s;
2982
3041
  background: #fff;
2983
- border: 1px solid #E8EBEC;
2984
- border: 1px solid #E8EBEC;
3042
+ border: 1px solid hsl(var(--color-border-default));
2985
3043
  cursor: default;
2986
3044
  font-size: 13px;
2987
3045
  margin: 0;
2988
3046
  outline: none;
2989
- padding: 6px 0;
3047
+ padding: 8px;
2990
3048
  position: absolute;
2991
3049
  z-index: 1004;
2992
3050
  box-sizing: border-box;
2993
3051
  -webkit-user-select: none;
2994
3052
  -moz-user-select: none;
2995
3053
  user-select: none;
2996
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
3054
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
2997
3055
  font-size: 14px;
2998
3056
  max-width: 250px;
2999
3057
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
3000
- color: #363B3F;
3058
+ color: #363b3f;
3001
3059
  line-height: 20px;
3002
3060
  }
3003
3061
 
@@ -3005,8 +3063,14 @@ label {
3005
3063
  display: flex;
3006
3064
  align-items: center;
3007
3065
  height: 20px;
3066
+ cursor: pointer;
3067
+ border-radius: 4px;
3008
3068
  }
3009
3069
 
3070
+ .context-item:hover {
3071
+ background: hsl(var(--color-bg-default-hover));
3072
+ transition: all 0.2s ease-in-out;
3073
+ }
3010
3074
 
3011
3075
  .fortune-context-menu input.luckysheet-mousedown-cancel {
3012
3076
  width: 35px;
@@ -3028,20 +3092,19 @@ label {
3028
3092
  cursor: pointer;
3029
3093
  list-style: none;
3030
3094
  margin: 0;
3031
- padding: 1px 6em 1px 20px;
3032
3095
  white-space: nowrap;
3033
- padding-left: 8px;
3034
3096
  vertical-align: middle;
3035
- padding-right: 24px;
3036
3097
  -webkit-user-select: none;
3037
3098
  -moz-user-select: none;
3038
3099
  user-select: none;
3100
+ border-radius: 4px;
3039
3101
  }
3040
3102
 
3041
3103
  /* 右击菜单项目 hover背景色 */
3042
3104
  .luckysheet-cols-menu .luckysheet-cols-menuitem:hover,
3043
3105
  .luckysheet-cols-menu .luckysheet-cols-menuitem-hover {
3044
- background: #efefef;
3106
+ background: hsl(var(--color-bg-default-hover));
3107
+ transition: all 0.2s ease-in-out;
3045
3108
  }
3046
3109
 
3047
3110
  .luckysheet-cols-menu
@@ -3052,11 +3115,14 @@ label {
3052
3115
  cursor: pointer;
3053
3116
  list-style: none;
3054
3117
  margin: 0;
3055
- padding: 6px 10px 6px 10px !important;
3118
+ padding: 8px !important;
3056
3119
  white-space: nowrap;
3057
3120
  -webkit-user-select: none;
3058
3121
  -moz-user-select: none;
3059
3122
  user-select: none;
3123
+ display: flex;
3124
+ align-items: center;
3125
+ gap: 8px;
3060
3126
  }
3061
3127
 
3062
3128
  .fortune-filter-menu .luckysheet-cols-menuitem {
@@ -3275,30 +3341,10 @@ label {
3275
3341
  right: -18px;
3276
3342
  }
3277
3343
 
3278
- .fortune-sort-title {
3279
- background-color: #fff;
3280
- color: #000;
3281
- cursor: default;
3282
- font-size: 16px;
3283
- font-weight: 400;
3284
- line-height: 24px;
3285
- margin: 0 0 16px;
3286
- }
3287
-
3288
- .fortune-sort-modal > div {
3289
- margin-bottom: 10px;
3290
- }
3291
-
3292
- .fortune-sort-tablec td {
3293
- padding: 5px;
3294
- white-space: nowrap;
3344
+ .tippy-box {
3345
+ background-color: transparent !important;
3295
3346
  }
3296
-
3297
- .fortune-sort-button {
3298
- margin-top: 10px;
3299
- margin-bottom: 25px;
3300
- }
3301
-
3347
+ .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
3302
3348
  #fortune-change-color {
3303
3349
  min-width: 164px;
3304
3350
  height: 252px;