~sircmpwn/todo.sr.ht

ref: e2bc9f59e8ba6b2d8dcf2e27c26e96cfd5f9f038 todo.sr.ht/scss/main.scss -rw-r--r-- 3.4 KiB
e2bc9f59Drew DeVault Wrap ticket title in event lists 5 months 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
@import "base";

pre {
  background: $gray-100;
}

.ellipsis {
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

select.form-control {
  padding: 0.1rem;
  display: inline-block;
  width: auto;
  height: 1.7rem !important;
  position: relative;
  top: 1px;
}

.tracker-list h4 {
  margin-bottom: 0;
  border-bottom: none;

  &:not(:first-child) {
    margin-top: 1rem;
  }
}

.ticket-list {
  border-right: 1px solid #ced4da;
  border-bottom: 1px solid #ced4da;
  margin-bottom: 1rem;

  display: grid;
  // id title updated submitter comments
  grid-template-columns: auto 1fr auto auto auto;

  .title > a {
    color: $gray-900;
  }

  @include media-breakpoint-down(xs) {
    display: block;
    border: none;

    & > div {
      display: block;
      background: transparent !important;
      border: none !important;
      padding: 0 !important;

      &:nth-child(5n+4) {
        margin-bottom: 1rem;
      }
    }

    .id {
      text-align: inherit !important;
      font-size: 2rem;
    }

    .updated {
      color: $gray-600;
      display: inline;
    }

    .updated:before {
      content: "Updated ";
    }

    .updated:after {
      content: " by ";
    }

    .submitter {
      display: inline;
    }

    .comments {
      text-align: left !important;

      & > .commentlabel {
        display: inline !important;
      }
    }
  }

  & > div {
    padding: 0.1rem 0.5rem;
    border-left: 1px solid #ced4da;
    border-top: 1px solid #ced4da;
    background: transparent;

    &.id {
      text-align: right;
    }

    &.comments {
      text-align: center;
      & > .commentlabel {
        display: none;
      }
    }

    @for $i from 1 through 5 {
      &:nth-child(5n+#{$i}) {
        grid-column-start: $i;
      }

      // Striped rows
      &:nth-child(10n+#{$i}) {
        background: rgba(0,0,0,.05);
      }
    }
  }
}

.label-list > .row {
  margin-bottom: .2rem;

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

.label {
  white-space: nowrap;
  margin-bottom: .3rem;
  display: inline-block;
  border: 1px solid black;
  padding: .1rem .5rem;

  &.small {
    font-size: .7rem;
    padding: 0 .3rem;
  }

  form {
    display: inline-block;
    margin: 0;
  }

  a, .btn {
    color: inherit;
  }

  .btn {
    margin-left: 0.2rem;
  }
}

.assign {
  &[open] {
    background: #f5f5f5;
    padding: 0.5rem;
  }
}

.ticket-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.ticket-events {
  h4 {
    font-size: 1rem;
    border: none;
  }

  .label {
    position: relative;
    top: -0.1rem;
  }

  .event {
    > blockquote {
      margin-top: 0.5rem;
      border: none;
    }
    &.preview {
      border: 1px dashed black;
      .preview-tag {
        float: right;
        font-size: 0.8rem;
        font-style: italic;
      }
    }
  }
}

#description-field {
  overflow-x: auto;

  img {
    max-width: 100%;
  }
}

.dashboard {
  .event img {
    max-width: 100%;
    max-height: 250px;
  }
}

.ticket-preview {
  border: 1px dashed black;
  padding: 0.5rem;
  margin: 1rem 0;

  .preview-tag {
    float: right;
    font-size: 0.8rem;
    font-style: italic;
  }
}

.event-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;

  .event & {
    margin-bottom: 0.25rem;
  }

  & > *:not(:last-child) {
    margin-right: 0.25rem;
  }

  & > span {
    min-width: 0;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
  }
}