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

.card-details
  padding: 0 20px
  height: 100%
  flex-shrink: 0
  flex-basis: 470px
  will-change: flex-basis
  overflow: hidden
  background: white
  border-radius: 3px
  z-index: 20 !important
  animation: flexGrowIn 0.2s
  box-shadow: 0 0 7px 0 darken(white, 30%)
  transition: flex-basis 0.2s, padding 0.2s
  margin-top: -9px

  .card-details-canvas
    width: 470px

  .card-details-header
    margin: 0 -20px 5px
    padding 7px 20px 0
    background: #F7F7F7
    border-bottom: 1px solid darken(white, 10%)
    min-height: 38px
    position: relative

    .close-card-details
      float: left
      font-size: 24px
      padding: 8px
      padding-right: 11px
      margin-left: -18px

    .card-details-menu
      float: right
      position: absolute
      bottom: 6px
      right: 15px

    .card-details-title
      font-weight: bold
      font-size: 1.33em
      margin: 3px 0
      padding: 0

    .card-details-list
      font-size: 0.85em
      margin-bottom: 3px

      a.card-details-list-title
        font-weight: bold

        &.is-editable
          display: inline-block
          background: darken(white, 10%)
          border-radius: 3px
          padding: 0px 5px

  .card-details-items
    display: flex
    margin: 15px 0

    .card-details-item
      flex-grow: 1

  h3
    font-size: 14px
    color: darken(white, 45%)

.new-comment
  position: relative
  margin: 0 0 20px 38px

  .member
    opacity: .7
    position: absolute
    top: 1px
    left: -38px

  .helper
    bottom: 0
    display: none
    position: absolute
    right: 9px

  &.focus

    .member
      opacity: 1

    .helper
      display: inline-block

    .new-comment-input
      min-height: 108px
      color: #4d4d4d
      cursor: auto
      overflow: hidden
      word-wrap: break-word

  .too-long
    margin-top: 8px

.new-comment-input
  background-color: #fff
  border: 0
  box-shadow: 0 1px 2px rgba(0, 0, 0, .23)
  color: #8c8c8c
  height: 36px
  margin: 4px 4px 6px 0
  padding: 9px 11px
  width: 100%

  &:hover,
  &:focus
    background-color: #fff
    box-shadow: 0 1px 3px rgba(0, 0, 0, .33)
    border: 0
    cursor: pointer

  &:focus
    cursor: auto

.card-composer
  padding-bottom: 8px

input[type="text"].attachment-add-link-input
  float: left
  margin: 0 0 8px
  width: 80%

input[type="submit"].attachment-add-link-submit
  float: left
  margin: 0 0 8px 4px
  padding: 6px 12px
  width: 18%