Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
 
.grid-view {
  flex: 1;
 
  &__resize {
    width: 100%;
  }
 
  &__list {
    padding: 0 0 16px;
  }
 
  &_columnCount {
    @for $i from 1 to 15 {
      &_#{ $i } {
        & .grid-view__cell:nth-child(#{$i}n) {
          padding-right: 0;
        }
      }
    }
  }
 
  &__cell {
    padding: 16px 16px 0 0;
    box-sizing: border-box;
    transition: all 150ms ease-out;
 
    &-header {
      padding: 5px;
      width: 100%;
      display: flex;
      background: var(--color-neutral-background);
      justify-content: space-between;
      transition: all 150ms ease-out;
    }
 
    &-body {
      width: 100%;
      min-width: 0;
 
      img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }
 
    &-body_responsive {
      &:has(img) {
        display: grid;
        grid-auto-flow: row;
        grid-template-rows: minmax(1rem, 1fr);
      grid-template-columns: 100%;
      }
 
      img {
        height: 100%;
        max-height: 100%;
        width: auto;
        min-height: 120px;
        object-fit: contain;
        place-self: center center;
      }
    }
 
    &-content {
      width: 100%;
      height: 100%;
      cursor: pointer;
      overflow: hidden;
      position: relative;
      border-radius: 8px;
      background: none;
      box-shadow: 0 0 0 4px transparent;
      transition: all 150ms ease-out;
      display: grid;
      grid-auto-flow: row;
      grid-template-rows: min-content minmax(0, 1fr);
 
      &::after {
        inset: 0;
        content: "";
        position: absolute;
        pointer-events: none;
        border-radius: 8px;
        border: 1px solid var(--color-neutral-border);
        transition: all 150ms ease-out;
      }
 
      &:hover {
        background-color: var(--color-primary-emphasis-subtle);
        box-shadow: 0 0 0 4px var(--color-primary-focus-outline);
 
        &::after {
          border: 1px solid var(--color-primary-border);
        }
      }
    }
 
    &_selected &-header {
      background-color: var(--color-primary-emphasis);
    }
 
    &_selected &-content {
      background-color: var(--color-primary-emphasis-subtle);
      box-shadow: 0 0 0 4px var(--color-primary-focus-outline);
 
      &::after {
        border-color: var(--color-primary-border-subtle);
      }
    }
  }
 
  .skeletonLoader {
    padding: 5px;
  }
 
  & .grid-image-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    justify-content: center;
    background: var(--color-neutral-surface);
  }
}