summaryrefslogtreecommitdiffstats
path: root/client/components/cards/attachments.styl
blob: 4a22fd8a3fdd5a1d7ca96308529d735acc932422 (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
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
@import 'nib'

.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

      a
        display: block
        margin: auto

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

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

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

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

      .attachment-details-actions a
        display: block

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

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

.preview-clipboard-image
  width: 280px
  max-width: 100%;
  height: 200px
  display: block
  border: 1px solid black
  box-shadow: 0 1px 2px rgba(0,0,0,.2)

@media screen and (max-width: 800px)
  .attachments-galery
    flex-direction
      row
    .attachment-item
      width: 50% - 2%

      .attachment-thumbnail
        height: 130px
      .attachment-details
        font-size: 1.1em

@media screen and (max-width: 360px)
  .attachments-galery
    .attachment-item
      width: 100%

      .attachment-thumbnail
        height: 200px