styles.module.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. @import "../../styles/vars";
  2. .container{
  3. //padding-top: 1.5rem;
  4. position: relative;
  5. & .game_tabs{
  6. display: flex;
  7. align-items: center;
  8. flex-wrap: nowrap;
  9. //border-radius: var(--border-radius);
  10. //border: 1px solid #23190b;
  11. //padding: 0.15rem;
  12. width: fit-content;
  13. max-width: 100%;
  14. overflow-x: auto;
  15. overflow-y: hidden;
  16. scroll-snap-type: x mandatory;
  17. scroll-behavior: smooth;
  18. //gap: .75rem;
  19. & .tab_item{
  20. position: relative;
  21. //background: linear-gradient(to bottom, #30200e,#2a1f0e,#48381d);
  22. //border-top: 1px solid rgba(64, 41, 19, 0.9);
  23. //border-bottom: 1px solid rgb(129, 99, 54);
  24. //border-left: 1px solid #47341a;
  25. //border-right: 1px solid #24170c;
  26. &_first{
  27. //border-top-left-radius: var(--border-radius);
  28. //border-bottom-left-radius:var(--border-radius);
  29. //border-left: 1px solid #45351b !important;
  30. }
  31. &_last{
  32. //border-top-right-radius: var(--border-radius);
  33. //border-bottom-right-radius:var(--border-radius);
  34. //border-right: 1px solid #45351b !important;
  35. }
  36. & .tab_mask{
  37. position: absolute;
  38. inset: 0;
  39. z-index: 0;
  40. pointer-events: none;
  41. display: flex;
  42. flex-direction: row;
  43. justify-content: center;
  44. & .mask_center{
  45. object-fit: fill;
  46. position: absolute;
  47. top: 0;
  48. width: auto;
  49. height: 2.75rem;
  50. }
  51. & .mask_first{
  52. object-fit: fill;
  53. position: absolute;
  54. top: 0;
  55. width: auto;
  56. height: 2.75rem;
  57. }
  58. & .mask_last{
  59. transform: scaleX(-1);
  60. object-fit: fill;
  61. position: absolute;
  62. top: 0;
  63. right: -17.5%;
  64. width: 133%;
  65. height: 2.05rem;
  66. }
  67. }
  68. & .tab_content{
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. position: relative;
  73. padding: 0.45rem 1rem;
  74. font-size: 1rem;
  75. font-weight: 400;
  76. white-space: nowrap;
  77. color: var(--text);
  78. width: auto;
  79. z-index: 1;
  80. &:hover,&.active{
  81. //background: var(--nav-item-hover);
  82. color: var(--header);
  83. text-shadow: 0px 2px 1px rgba(69, 42, 26, 0.44);
  84. font-weight: 600;
  85. & .icon{
  86. //fill: var(--header);
  87. fill: #f5e67f;
  88. filter: drop-shadow(0 0 0.1rem rgba(194, 133, 15, 0.74));
  89. }
  90. }
  91. & .icon{
  92. margin-right: .375rem;
  93. width: 1rem;
  94. height: 1rem;
  95. fill: var(--text);
  96. //fill: #867f64;
  97. }
  98. }
  99. }
  100. //@media screen and (max-width: $width-mobile-max) {
  101. // flex-wrap: nowrap;
  102. // //width: 100%;
  103. // overflow-x: auto;
  104. // scroll-snap-type: x mandatory;
  105. // scroll-behavior: smooth;
  106. //}
  107. }
  108. }