@hytopia.com/examples 1.0.17 → 1.0.19

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.
@@ -897,155 +897,149 @@
897
897
  .merchant-hotbar-slot.merchant-legendary { border-color: #F59E0B; }
898
898
 
899
899
  /* Mobile styles */
900
- @media (max-width: 768px) {
901
- body.mobile {
902
- --merchant-slot-size: 40px;
903
- --merchant-hotbar-size: 40px;
904
- --merchant-icon-size: 20px;
905
- --merchant-gap: 3px;
906
- --merchant-padding: 6px;
907
- }
908
-
909
- body.mobile .merchant-overlay {
910
- gap: 8px;
911
- padding: 4px;
912
- }
900
+ body.mobile {
901
+ --merchant-slot-size: 44px;
902
+ --merchant-hotbar-size: 44px;
903
+ --merchant-icon-size: 32px;
904
+ --merchant-gap: 4px;
905
+ --merchant-padding: 8px;
906
+ }
913
907
 
914
- body.mobile .merchant-container,
915
- body.mobile .merchant-hotbar-container {
916
- width: auto;
917
- max-width: 500px;
918
- min-width: 320px;
919
- }
908
+ body.mobile .merchant-overlay {
909
+ gap: 12px;
910
+ padding: 8px;
911
+ }
920
912
 
921
- body.mobile .merchant-header {
922
- padding: 4px 8px;
923
- }
913
+ body.mobile .merchant-container,
914
+ body.mobile .merchant-hotbar-container {
915
+ width: auto;
916
+ max-width: 560px;
917
+ min-width: 340px;
918
+ border-radius: 8px;
919
+ }
924
920
 
925
- body.mobile .merchant-info {
926
- gap: 8px;
927
- }
921
+ body.mobile .merchant-header {
922
+ padding: 8px 12px;
923
+ border-radius: 8px 8px 0 0;
924
+ }
928
925
 
929
- body.mobile .merchant-avatar {
930
- width: 32px;
931
- height: 32px;
932
- }
926
+ body.mobile .merchant-info {
927
+ gap: 8px;
928
+ }
933
929
 
934
- body.mobile .merchant-name {
935
- font-size: 12px;
936
- }
930
+ body.mobile .merchant-avatar {
931
+ width: 32px;
932
+ height: 32px;
933
+ }
937
934
 
938
- body.mobile .merchant-title {
939
- font-size: 10px;
940
- }
935
+ body.mobile .merchant-name {
936
+ font-size: 14px;
937
+ }
941
938
 
942
- body.mobile .merchant-close {
943
- width: 20px;
944
- height: 20px;
945
- font-size: 14px;
946
- }
939
+ body.mobile .merchant-title {
940
+ font-size: 12px;
941
+ }
947
942
 
948
- body.mobile .merchant-content {
949
- padding: 6px;
950
- flex-direction: column;
951
- gap: 8px;
952
- }
943
+ body.mobile .merchant-close {
944
+ width: 24px;
945
+ height: 24px;
946
+ font-size: 16px;
947
+ }
953
948
 
954
- body.mobile .merchant-grid,
955
- body.mobile .merchant-hotbar-grid {
956
- justify-items: center;
957
- width: fit-content;
958
- margin: 0 auto;
959
- }
949
+ body.mobile .merchant-content {
950
+ padding: 12px;
951
+ gap: 12px;
952
+ }
960
953
 
961
- body.mobile .merchant-right-panel {
962
- width: auto;
963
- flex: 1;
964
- min-height: 80px;
965
- padding: var(--merchant-padding);
966
- }
954
+ body.mobile .merchant-grid,
955
+ body.mobile .merchant-hotbar-grid {
956
+ padding: 8px;
957
+ border-radius: 6px;
958
+ }
967
959
 
968
- body.mobile .merchant-panel-placeholder {
969
- padding: 20px;
970
- font-size: 12px;
971
- }
960
+ body.mobile .merchant-hotbar-grid {
961
+ justify-items: center;
962
+ width: fit-content;
963
+ margin: 0 auto;
964
+ padding: 12px;
965
+ border-radius: 0 0 6px 6px;
966
+ }
972
967
 
973
- body.mobile .merchant-slot-content,
974
- body.mobile .merchant-hotbar-slot-content {
975
- font-size: 10px;
976
- }
968
+ body.mobile .merchant-right-panel {
969
+ padding: 8px;
970
+ border-radius: 6px;
971
+ flex: 0 0 184px;
972
+ min-width: 184px;
973
+ box-sizing: border-box;
974
+ }
977
975
 
978
- body.mobile .merchant-item-icon {
979
- width: 32px;
980
- height: 32px;
981
- }
976
+ body.mobile .merchant-panel-placeholder {
977
+ font-size: 12px;
978
+ }
982
979
 
983
- body.mobile .merchant-hotbar-slot-icon {
984
- width: 32px;
985
- height: 32px;
986
- }
980
+ body.mobile .merchant-slot-content,
981
+ body.mobile .merchant-hotbar-slot-content {
982
+ font-size: 10px;
983
+ }
987
984
 
988
- body.mobile .merchant-slot-quantity {
989
- font-size: 7px;
990
- padding: 1px 2px;
991
- bottom: 1px;
992
- right: 1px;
993
- min-width: 8px;
994
- }
985
+ body.mobile .merchant-item-icon {
986
+ width: 36px;
987
+ height: 36px;
988
+ }
995
989
 
996
- body.mobile .merchant-hotbar-slot-quantity {
997
- font-size: 8px;
998
- padding: 1px 3px;
999
- bottom: 1px;
1000
- right: 1px;
1001
- }
990
+ body.mobile .merchant-hotbar-slot-icon {
991
+ width: 36px;
992
+ height: 36px;
993
+ }
1002
994
 
1003
- body.mobile .merchant-item-tooltip {
1004
- display: none;
1005
- }
995
+ body.mobile .merchant-slot-quantity {
996
+ font-size: 8px;
997
+ padding: 1px 3px;
998
+ bottom: 2px;
999
+ right: 2px;
1000
+ min-width: 10px;
1001
+ border-radius: 3px;
1002
+ }
1006
1003
 
1007
- /* Mobile item details */
1008
- body.mobile .merchant-item-details {
1009
- gap: 6px;
1010
- }
1004
+ body.mobile .merchant-hotbar-slot-quantity {
1005
+ font-size: 8px;
1006
+ padding: 1px 3px;
1007
+ bottom: 2px;
1008
+ right: 2px;
1009
+ min-width: 12px;
1010
+ border-radius: 3px;
1011
+ }
1011
1012
 
1012
- body.mobile .merchant-item-header {
1013
- gap: 8px;
1014
- padding: 6px;
1015
- }
1016
1013
 
1017
- body.mobile .merchant-item-actions {
1018
- gap: 6px;
1019
- }
1020
1014
 
1021
- body.mobile .merchant-item-icon {
1022
- width: 24px;
1023
- height: 24px;
1024
- }
1015
+ /* Mobile item details */
1016
+ body.mobile .merchant-item-details {
1017
+ min-width: 180px;
1018
+ gap: 8px;
1019
+ }
1025
1020
 
1026
- body.mobile .merchant-item-name {
1027
- font-size: 10px;
1028
- }
1021
+ body.mobile .merchant-item-header {
1022
+ gap: 6px;
1023
+ }
1029
1024
 
1030
- body.mobile .merchant-item-total {
1031
- font-size: 9px;
1032
- }
1025
+ body.mobile .merchant-item-actions {
1026
+ gap: 12px;
1027
+ }
1033
1028
 
1034
- body.mobile .merchant-qty-btn {
1035
- width: 20px;
1036
- height: 20px;
1037
- font-size: 10px;
1038
- }
1029
+ body.mobile .merchant-qty-btn {
1030
+ width: 24px;
1031
+ height: 24px;
1032
+ font-size: 12px;
1033
+ }
1039
1034
 
1040
- body.mobile .merchant-qty-display {
1041
- font-size: 10px;
1042
- min-width: 16px;
1043
- }
1035
+ body.mobile .merchant-qty-display {
1036
+ font-size: 12px;
1037
+ min-width: 20px;
1038
+ }
1044
1039
 
1045
- body.mobile .merchant-action-btn {
1046
- padding: 6px 12px;
1047
- font-size: 10px;
1048
- }
1040
+ body.mobile .merchant-action-btn {
1041
+ padding: 8px 16px;
1042
+ font-size: 12px;
1049
1043
  }
1050
1044
 
1051
1045
  /* Button styles */
@@ -875,13 +875,15 @@
875
875
  /* Mobile Styles */
876
876
  body.mobile .quests-container {
877
877
  width: auto;
878
- max-width: 98vw;
879
- min-width: 300px;
880
- height: 90vh;
878
+ max-width: 600px;
879
+ min-width: 340px;
880
+ height: 85vh;
881
+ border-radius: 8px;
881
882
  }
882
883
 
883
884
  body.mobile .quests-header {
884
885
  padding: 8px 12px;
886
+ border-radius: 8px 8px 0 0;
885
887
  }
886
888
 
887
889
  body.mobile .quests-title {
@@ -889,72 +891,193 @@
889
891
  }
890
892
 
891
893
  body.mobile .quests-close {
892
- width: 20px;
893
- height: 20px;
894
- font-size: 14px;
895
- }
896
-
897
- body.mobile .quests-content {
898
- flex-direction: column;
894
+ width: 24px;
895
+ height: 24px;
896
+ font-size: 16px;
897
+ border-radius: 6px;
899
898
  }
900
899
 
901
900
  body.mobile .quests-sidebar {
902
- width: auto;
903
- max-height: 200px;
904
- border-right: none;
905
- border-bottom: 1px solid #444;
906
- }
907
-
908
- body.mobile .quests-section {
909
- flex: none;
901
+ width: 175px;
902
+ min-width: 175px;
910
903
  }
911
904
 
912
905
  body.mobile .quests-section-title {
913
- padding: 8px 12px 6px;
914
- font-size: 12px;
906
+ padding: 8px 10px 6px;
907
+ font-size: 11px;
915
908
  }
916
909
 
917
910
  body.mobile .quests-list {
918
911
  padding: 6px;
919
- max-height: 120px;
912
+ }
913
+
914
+ body.mobile .quests-list * {
915
+ touch-action: pan-y !important;
916
+ overflow-y: scroll;
920
917
  }
921
918
 
922
919
  body.mobile .quests-item {
923
- padding: 8px;
924
- margin-bottom: 4px;
920
+ padding: 3px 8px;
921
+ margin-bottom: 3px;
922
+ border-radius: 6px;
923
+ min-height: 28px;
925
924
  }
926
925
 
927
926
  body.mobile .quests-item-name {
928
927
  font-size: 11px;
928
+ font-weight: 500;
929
+ overflow: hidden;
930
+ text-overflow: ellipsis;
931
+ white-space: nowrap;
929
932
  }
930
933
 
931
934
  body.mobile .quests-item-progress {
932
- font-size: 10px;
935
+ font-size: 9px;
936
+ font-weight: 600;
933
937
  }
934
938
 
935
939
  body.mobile .quests-details-content {
936
940
  padding: 12px;
937
941
  }
938
942
 
943
+ body.mobile .quests-details-content * {
944
+ touch-action: pan-y !important;
945
+ overflow-y: scroll;
946
+ }
947
+
948
+ /* Exception for reward items and tooltips - override the blanket overflow rule */
949
+ body.mobile .quests-reward-item,
950
+ body.mobile .quests-reward-item *,
951
+ body.mobile .quests-reward-item-tooltip,
952
+ body.mobile .quests-reward-item-tooltip * {
953
+ overflow: visible !important;
954
+ }
955
+
956
+ /* Ensure all parent containers allow tooltips to escape */
957
+ body.mobile .quests-rewards-list,
958
+ body.mobile .quests-detail-rewards,
959
+ body.mobile .quests-details-panel {
960
+ overflow: visible !important;
961
+ }
962
+
963
+ body.mobile .quests-rewards-list * {
964
+ overflow-y: scroll !important;
965
+ touch-action: pan-y !important;
966
+ }
967
+
968
+ body.mobile .quests-detail-header {
969
+ margin-bottom: 12px;
970
+ padding-bottom: 8px;
971
+ }
972
+
939
973
  body.mobile .quests-detail-name {
940
- font-size: 16px;
974
+ font-size: 14px;
975
+ margin-bottom: 6px;
976
+ }
977
+
978
+ body.mobile .quests-detail-description {
979
+ margin-bottom: 16px;
941
980
  }
942
981
 
943
982
  body.mobile .quests-detail-description p {
944
983
  font-size: 11px;
984
+ line-height: 1.4;
985
+ }
986
+
987
+ body.mobile .quests-detail-objectives {
988
+ margin-bottom: 12px;
945
989
  }
946
990
 
947
- body.mobile .quests-objectives-title {
991
+ body.mobile .quests-objectives-title,
992
+ body.mobile .quests-rewards-title {
948
993
  font-size: 12px;
994
+ margin-bottom: 8px;
995
+ }
996
+
997
+ body.mobile .quests-objectives-list {
998
+ margin-bottom: 6px;
999
+ }
1000
+
1001
+ body.mobile .quests-objective {
1002
+ padding: 6px 0;
1003
+ gap: 8px;
1004
+ }
1005
+
1006
+ body.mobile .quests-objective-icon {
1007
+ width: 14px;
1008
+ height: 14px;
1009
+ font-size: 10px;
949
1010
  }
950
1011
 
951
1012
  body.mobile .quests-objective-text {
952
- font-size: 11px;
1013
+ font-size: 10px;
1014
+ line-height: 1.3;
1015
+ }
1016
+
1017
+ body.mobile .quests-reward-item {
1018
+ padding: 3px 8px;
1019
+ gap: 6px;
1020
+ border-radius: 6px;
1021
+ min-height: 24px;
1022
+ }
1023
+
1024
+ body.mobile .quests-reward-icon {
1025
+ width: 16px;
1026
+ height: 16px;
1027
+ }
1028
+
1029
+ body.mobile .quests-reward-exp-icon {
1030
+ font-size: 12px;
1031
+ width: 16px;
1032
+ }
1033
+
1034
+ body.mobile .quests-reward-text {
1035
+ font-size: 10px;
1036
+ font-weight: 500;
953
1037
  }
954
1038
 
955
1039
  body.mobile .quests-empty-section {
956
1040
  padding: 12px 8px;
957
- font-size: 12px;
1041
+ font-size: 10px;
1042
+ line-height: 1.3;
1043
+ }
1044
+
1045
+ body.mobile .quests-empty-content {
1046
+ padding: 16px 12px;
1047
+ }
1048
+
1049
+ body.mobile .quests-empty-icon {
1050
+ font-size: 32px;
1051
+ margin-bottom: 8px;
1052
+ }
1053
+
1054
+ body.mobile .quests-empty-text {
1055
+ font-size: 11px;
1056
+ line-height: 1.3;
1057
+ padding: 0 6px;
1058
+ }
1059
+
1060
+ /* Mobile tooltip adjustments */
1061
+ body.mobile .quests-reward-item-tooltip {
1062
+ opacity: 0;
1063
+ visibility: hidden;
1064
+ transition: all 0.2s ease;
1065
+ }
1066
+
1067
+ body.mobile .quests-reward-item-tooltip.mobile-tooltip-visible {
1068
+ opacity: 1 !important;
1069
+ visibility: visible !important;
1070
+ }
1071
+
1072
+ /* Override mobile caret centering - keep caret over reward icon */
1073
+ body.mobile .quests-reward-item-tooltip-content::after {
1074
+ left: 15px !important;
1075
+ transform: translateX(-50%) !important;
1076
+ }
1077
+
1078
+ body.mobile .quests-reward-item-tooltip-content::before {
1079
+ left: 15px !important;
1080
+ transform: translateX(-50%) !important;
958
1081
  }
959
1082
 
960
1083