summaryrefslogtreecommitdiffstats
path: root/client/components/cards/attachments.styl
blob: 5cdf7386fb75be862c2c23b0e7aa51a7ddc46ffe (plain)
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
.attachments-galery
  display: flex
  flex-wrap: wrap

  .attachment-item
    width: 33.33% - 2%
    margin: 10px 1% 0
    text-align: center
    border-radius: 3px
    overflow: hidden
    background: darken(white, 7%)
    min-height: 120px

    &:hover
      background: darken(white, 12%)

    &.add-attachment
      display: flex
      align-items: center

    .attachment-thumbnail
      height: 80px
      display: flex
      align-items: center
      justify-content: center
      position: relative

      .attachment-thumbnail-img
        height: 100%
        width: 100%

      .attachment-thumbnail-ext
        text-transform: uppercase
        font-size: 1.6em

    .attachment-details
      font-size: 0.75em
      margin: 3px

      .attachment-details-actions
        display: block

.attachment-image-preview
  max-width: 100px
  display: block
  box-shadow: 0 1px 2px rgba(0,0,0,.2)