styles.module.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .grid_item{
  2. display: flex;
  3. flex-direction: column;
  4. justify-content: space-between;
  5. scroll-snap-align: start;
  6. width: 100%;
  7. //border-radius: var(--border-radius);
  8. transition: all var(--transition);
  9. will-change: transform;
  10. & .game_img_wrap{
  11. display: flex;
  12. flex-direction: column;
  13. width: 100%;
  14. //display: block;
  15. position: relative;
  16. background-color: var(--widget-grid-bg);
  17. border-radius: 0.8rem;
  18. aspect-ratio:384/516;
  19. & .game_img{
  20. position: relative;
  21. width: 100%;
  22. //aspect-ratio:384/516;
  23. border-radius: 0.5rem;
  24. img{
  25. width: 100%;
  26. height: 100%;
  27. //height: auto;
  28. //border-top-left-radius: var(--border-radius);
  29. //border-top-right-radius: var(--border-radius);
  30. }
  31. }
  32. & .online{
  33. position: absolute;
  34. display: flex;
  35. align-items: center;
  36. top: .375rem;
  37. right: .375rem;
  38. height: 1rem;
  39. font-size: .75rem;
  40. background-color: rgba(0, 0, 0, .4);
  41. border-radius: .5rem;
  42. padding: 0 .375rem;
  43. line-height: .75rem;
  44. backdrop-filter: blur(3px);
  45. span{
  46. color: #fff;
  47. font-weight: 600;
  48. margin-left: .25rem;
  49. }
  50. }
  51. }
  52. & .bot_info{
  53. padding: .625rem;
  54. & .game_tit{
  55. display: flex;
  56. align-items: center;
  57. justify-content: space-between;
  58. font-weight: 600;
  59. height: 1.25rem;
  60. & .game_desc{
  61. white-space: nowrap;
  62. overflow: hidden;
  63. text-overflow: ellipsis;
  64. width: 1px;
  65. flex: auto;
  66. color: var(--text);
  67. }
  68. & .game_desc_icon{
  69. width: 1.4em;
  70. height: 1.4em;
  71. fill: var(--text);
  72. }
  73. }
  74. }
  75. & .favorite_con{
  76. position: absolute;
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. top: .01rem;
  81. right: .01rem;
  82. //border-radius: 50%;
  83. background: rgba(0, 0, 0, 0.01);
  84. padding: 0.3rem 0.3rem 0.5rem 0.5rem;
  85. & .icon{
  86. width: 1.5rem;
  87. height: 1.5rem;
  88. //fill: rgba(255, 255, 255, 0.7);
  89. fill: rgba(0, 0, 0, 0.3);
  90. //background: rgba(0, 0, 0, 0.3);
  91. border-radius: 50%;
  92. &_active{
  93. padding: 0.2rem 0.2rem 0.27rem 0.2rem;
  94. fill: #ffdf46;
  95. background: rgba(0, 0, 0, 0.3);
  96. //background: rgba(105, 81, 0, 0.6);
  97. }
  98. }
  99. }
  100. }