~cytrogen/masto-fe

ref: 7cfcd23dadc97a0ef287a2a542e3eb21c88eb70f masto-fe/app/javascript/flavours/glitch/styles/components/explore.scss -rw-r--r-- 2.2 KiB
7cfcd23d — Cytrogen Convert 17 SCSS files to CSS custom properties (Phase 3-4) 14 days ago
                                                                                
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
.account-card__header {
  position: relative;
}

.explore__search-header {
  background: darken($ui-base-color, 4%);
  justify-content: center;
  align-items: center;
  padding: 15px;

  .search {
    width: 100%;
    margin-bottom: 0;
  }

  .search__input {
    border: 1px solid lighten($ui-base-color, 8%);
    padding: 10px;
  }

  .search__popout {
    border: 1px solid lighten($ui-base-color, 8%);
  }

  .search .fa {
    top: 10px;
    inset-inline-end: 10px;
    color: $dark-text-color;
  }

  .search .fa-times-circle {
    top: 12px;
  }
}

.explore__search-results {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.story {
  display: flex;
  align-items: center;
  color: $primary-text-color;
  text-decoration: none;
  padding: 15px;
  border-bottom: 1px solid lighten($ui-base-color, 8%);
  gap: 15px;

  &:last-child {
    border-bottom: 0;
  }

  &:hover,
  &:active,
  &:focus {
    color: $highlight-text-color;

    .story__details__publisher,
    .story__details__shared {
      color: $highlight-text-color;
    }
  }

  &__details {
    flex: 1 1 auto;

    &__publisher {
      color: $darker-text-color;
      margin-bottom: 8px;
    }

    &__title {
      font-size: 19px;
      line-height: 24px;
      font-weight: 500;
      margin-bottom: 8px;
    }

    &__shared {
      color: $darker-text-color;
    }

    strong {
      font-weight: 500;
    }
  }

  &__thumbnail {
    flex: 0 0 auto;
    position: relative;
    width: 120px;
    height: 120px;

    .skeleton {
      width: 100%;
      height: 100%;
    }

    img {
      border-radius: 8px;
      display: block;
      margin: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    &__preview {
      border-radius: 8px;
      display: block;
      margin: 0;
      width: 100%;
      height: 100%;
      object-fit: fill;
      position: absolute;
      top: 0;
      inset-inline-start: 0;
      z-index: 0;

      &--hidden {
        display: none;
      }
    }
  }

  &.expanded {
    flex-direction: column;

    .story__thumbnail {
      order: 1;
      width: 100%;
      height: auto;
      aspect-ratio: 1.91 / 1;
    }

    .story__details {
      order: 2;
      width: 100%;
      flex: 0 0 auto;
    }
  }
}