about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components/explore.scss
blob: bad77fc1ce75cb965492b6483b532a4cbc5def0e (plain) (blame)
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
.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 .fa {
    top: 10px;
    right: 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 0;
  border-bottom: 1px solid lighten($ui-base-color, 8%);

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

  &:hover,
  &:active,
  &:focus {
    background-color: lighten($ui-base-color, 4%);
  }

  &__details {
    padding: 0 15px;
    flex: 1 1 auto;

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

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

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

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

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

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

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

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