blob: 0d17232787782d6516299c8a32c1378197c9c49f (
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
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
|
@use 'sass:color'
.timeline
z-index: 0
position: relative
width: 100%
overflow-wrap: break-word
$timeline-line-width: 7px
$timeline-line-node-radius: 18px
$timeline-line-color: $primary
$timeline-line-color-current: #36c2e6
@keyframes timeline-line-node-noncurrent
from
background: $timeline-line-color
to
background: color.adjust($timeline-line-color, $lightness: +10%)
box-shadow: 0 0 20px 3px color.adjust($timeline-line-color, $lightness: +10%, $alpha: -0.1)
@keyframes timeline-line-node-current
from
background: $timeline-line-color-current
to
background: color.adjust($timeline-line-color-current, $lightness: +10%)
box-shadow: 0 0 20px 3px color.adjust($timeline-line-color-current, $lightness: +10%, $alpha: -0.1)
.timeline-line
display: flex
flex-direction: column
align-items: center
width: 30px
position: absolute
z-index: 1
left: 2em
top: 0
bottom: 0
transition: left 0.5s
@include media-breakpoint-down(sm)
left: 1em
.segment
width: $timeline-line-width
background: $timeline-line-color
&.start
height: 1.8em
flex: 0 0 auto
&.end
flex: 1 1 auto
&.current-end
height: 2em
flex: 0 0 auto
background: linear-gradient($timeline-line-color-current, white)
.node-container
flex: 0 0 auto
position: relative
width: $timeline-line-node-radius
height: $timeline-line-node-radius
.node
width: $timeline-line-node-radius + 2
height: $timeline-line-node-radius + 2
position: absolute
left: -1px
top: -1px
border-radius: 50%
box-sizing: border-box
z-index: 1
animation: 1s infinite alternate
animation-name: timeline-line-node-noncurrent
.current
&.timeline-item
padding-bottom: 2.5em
.timeline-line
.segment
&.start
background: linear-gradient($timeline-line-color, $timeline-line-color-current)
&.end
background: $timeline-line-color-current
.node
animation-name: timeline-line-node-current
.timeline-top
position: relative
text-align: right
.timeline-item
position: relative
padding: 0.5em
.timeline-item-card
@extend .cru-card
position: relative
padding: 0.3em 0.5em 1em 4em
transition: background 0.5s, padding-left 0.5s
@include media-breakpoint-down(sm)
padding-left: 3em
.timeline-item-header
display: flex
align-items: center
@extend .my-2
.timeline-avatar
border-radius: 50%
width: 2em
height: 2em
.timeline-item-delete-button
position: absolute
right: 0
bottom: 0
.timeline-content
white-space: pre-line
.timeline-content-image
max-width: 80%
max-height: 200px
.timeline-date-item
position: relative
padding: 0.3em 0 0.3em 4em
.timeline-date-item-badge
display: inline-block
padding: 0.1em 0.4em
border-radius: 0.4em
background: #7c7c7c
color: white
font-size: 0.8em
.timeline-post-edit-image
max-width: 100px
max-height: 100px
.mask
background: change-color($color: white, $alpha: 0.8)
z-index: 100
.timeline-sync-state-badge
font-size: 0.8em
padding: 3px 8px
border-radius: 5px
background: #e8fbff
.timeline-sync-state-badge-pin
display: inline-block
width: 0.4em
height: 0.4em
border-radius: 50%
vertical-align: middle
margin-right: 0.6em
.timeline-template-card
position: fixed
z-index: 1031
top: 56px
right: 0
margin: 0.5em
.timeline-markdown-post-edit-page
overflow: scroll
max-height: 300px
.timeline-markdown-post-edit-image-container
position: relative
text-align: center
margin-bottom: 1em
.timeline-markdown-post-edit-image
max-width: 100%
max-height: 200px
.timeline-markdown-post-edit-image-delete-button
position: absolute
right: 10px
top: 2px
|