Browse Source

intégration of preview's page

AlexiCauvin 6 years ago
parent
commit
44b19bd31b

+ 4 - 4
src/component/Timeline.jsx View File

@@ -1,7 +1,7 @@
1 1
 import React from 'react'
2 2
 import classnames from 'classnames'
3
-import imgProfilOrange from '../img/imgProfil_orange.png'
4
-import imgProfilReverse from '../img/imgProfil_reverse.png'
3
+import imgProfil from '../img/imgProfil.png'
4
+import imgProfilReverse from '../img/imgProfil-reverse.png'
5 5
 
6 6
 const Timeline = props => {
7 7
   return (
@@ -14,7 +14,7 @@ const Timeline = props => {
14 14
 
15 15
         <li className={classnames(`${props.customClass}__messagelist__item`, 'timeline__messagelist__item sended')}>
16 16
           <div className={classnames(`${props.customClass}__messagelist__item__avatar`, 'timeline__messagelist__item__avatar')}>
17
-            <img src={imgProfilOrange} alt='avatar' />
17
+            <img src={imgProfil} alt='avatar' />
18 18
           </div>
19 19
           <div
20 20
             className={classnames(`${props.customClass}__messagelist__item__createhour`, 'timeline__messagelist__item__createhour')}>
@@ -56,7 +56,7 @@ const Timeline = props => {
56 56
 
57 57
         <li className={classnames(`${props.customClass}__messagelist__item`, 'timeline__messagelist__item sended')}>
58 58
           <div className={classnames(`${props.customClass}__messagelist__item__avatar`, 'timeline__messagelist__item__avatar')}>
59
-            <img src={imgProfilOrange} alt='avatar' />
59
+            <img src={imgProfil} alt='avatar' />
60 60
           </div>
61 61
           <div
62 62
             className={classnames(`${props.customClass}__messagelist__item__createhour`, 'timeline__messagelist__item__createhour')}>

+ 3 - 3
src/component/Workspace/FileItem.jsx View File

@@ -11,11 +11,11 @@ const FileItem = props => {
11 11
       case FILE_TYPE.PAGE_MARKDOWN:
12 12
         return 'fa fa-file-code-o'
13 13
       case FILE_TYPE.FILE:
14
-        return 'fa fa-file-text-o docandfile-color'
14
+        return 'fa fa-file-image-o'
15 15
       case FILE_TYPE.THREAD:
16
-        return 'fa fa-comments-o talk-color'
16
+        return 'fa fa-comments-o'
17 17
       case FILE_TYPE.TASK:
18
-        return 'fa fa-list-ul task-color'
18
+        return 'fa fa-list-ul'
19 19
       case FILE_TYPE.ISSUE:
20 20
         return 'fa fa-ticket'
21 21
     }

+ 36 - 0
src/component/common/PopinFixed/PopinFixedOption.jsx View File

@@ -6,6 +6,42 @@ const PopinFixedOption = props => {
6 6
   return (
7 7
     <div className='wsFileGeneric__option'>
8 8
       <div className='wsFileGeneric__option__menu'>
9
+        <div className='wsFileGeneric__option__menu__status dropdown'>
10
+          <button className='wsFileGeneric__option__menu__status__dropdownbtn check btn dropdown-toggle' type='button' id='dropdownMenu2' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
11
+            Validé
12
+            <div className='wsFileGeneric__option__menu__status__dropdownbtn__icon'>
13
+              <i className='fa fa-check' />
14
+            </div>
15
+          </button>
16
+          <div className='wsFileGeneric__option__menu__status__submenu dropdown-menu' aria-labelledby='dropdownMenu2'>
17
+            <h6 className='dropdown-header'>Statut du fichier</h6>
18
+            <div className='dropdown-divider'></div>
19
+            <button className='wsFileGeneric__option__menu__status__submenu__item current  dropdown-item' type='button'>
20
+              En cours
21
+              <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
22
+                <i className='fa fa-gears' />
23
+              </div>
24
+            </button>
25
+            <button className='wsFileGeneric__option__menu__status__submenu__item check dropdown-item' type='button'>
26
+              Validé
27
+              <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
28
+                <i className='fa fa-check' />
29
+              </div>
30
+            </button>
31
+            <button className='wsFileGeneric__option__menu__status__submenu__item invalid dropdown-item' type='button'>
32
+              Invalidé
33
+              <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
34
+                <i className='fa fa-times' />
35
+              </div>
36
+            </button>
37
+            <button className='wsFileGeneric__option__menu__status__submenu__item ban dropdown-item' type='button'>
38
+              Obsolète
39
+              <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
40
+                <i className='fa fa-ban' />
41
+              </div>
42
+            </button>
43
+          </div>
44
+        </div>
9 45
         <div className='wsFileGeneric__option__menu__action'>
10 46
           <i className='fa fa-archive' />
11 47
         </div>

+ 165 - 0
src/container/Preview.jsx View File

@@ -0,0 +1,165 @@
1
+import React, { Component } from 'react'
2
+import classnames from 'classnames'
3
+import Timeline from '../component/Timeline.jsx'
4
+import imgPDF from '../img/pdf.jpg'
5
+// import imgExcel from '../img/excel.png'
6
+
7
+class Preview extends Component {
8
+  render () {
9
+    return (
10
+      <div className={classnames('wsFilePreview wsFileGeneric', {'visible': this.props.visible})}>
11
+        <div className='wsFilePreview__header wsFileGeneric__header'>
12
+          <div className='wsFileGeneric__header__icon'>
13
+            <i className='fa fa-file-image-o' />
14
+          </div>
15
+          <div className='wsFilePreview__header__title wsFileGeneric__header__title mr-auto'>
16
+            Planning d'intégration de l'application tracim
17
+          </div>
18
+          <div className='wsFileGeneric__header__edittitle'>
19
+            <i className='fa fa-pencil' />
20
+          </div>
21
+          <div className='wsFileGeneric__header__close'>
22
+            <i className='fa fa-times' />
23
+          </div>
24
+        </div>
25
+        <div className='wsFileGeneric__option'>
26
+          <div className='wsFilePreview__option__menu wsFileGeneric__option__menu'>
27
+            <div className='wsFilePreview__option__menu__addversion btn mr-auto'>
28
+              Nouvelle version
29
+              <i className='fa fa-plus-circle' />
30
+            </div>
31
+            <div className='wsFileGeneric__option__menu__status dropdown'>
32
+              <button className='wsFileGeneric__option__menu__status__dropdownbtn check btn dropdown-toggle' type='button' id='dropdownMenu2' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
33
+                Validé
34
+                <div className='wsFileGeneric__option__menu__status__dropdownbtn__icon'>
35
+                  <i className='fa fa-check' />
36
+                </div>
37
+              </button>
38
+              <div className='wsFileGeneric__option__menu__status__submenu dropdown-menu' aria-labelledby='dropdownMenu2'>
39
+                <h6 className='dropdown-header'>Statut du fichier</h6>
40
+                <div className='dropdown-divider' />
41
+                <button className='wsFileGeneric__option__menu__status__submenu__item current  dropdown-item' type='button'>
42
+                  En cours
43
+                  <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
44
+                    <i className='fa fa-gears' />
45
+                  </div>
46
+                </button>
47
+                <button className='wsFileGeneric__option__menu__status__submenu__item check dropdown-item' type='button'>
48
+                  Validé
49
+                  <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
50
+                    <i className='fa fa-check' />
51
+                  </div>
52
+                </button>
53
+                <button className='wsFileGeneric__option__menu__status__submenu__item invalid dropdown-item' type='button'>
54
+                  Invalidé
55
+                  <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
56
+                    <i className='fa fa-times' />
57
+                  </div>
58
+                </button>
59
+                <button className='wsFileGeneric__option__menu__status__submenu__item ban dropdown-item' type='button'>
60
+                  Obsolète
61
+                  <div className='wsFileGeneric__option__menu__status__submenu__item__icon'>
62
+                    <i className='fa fa-ban' />
63
+                  </div>
64
+                </button>
65
+              </div>
66
+            </div>
67
+            <div className='wsFileGeneric__option__menu__action'>
68
+              <i className='fa fa-archive' />
69
+            </div>
70
+            <div className='wsFileGeneric__option__menu__action'>
71
+              <i className='fa fa-trash' />
72
+            </div>
73
+          </div>
74
+        </div>
75
+        <div className='wsFilePreview__contentpage wsFileGeneric__contentpage'>
76
+
77
+          <div className='wsFilePreview__contentpage__visualizer'>
78
+            <div className='wsFilePreview__contentpage__visualizer__dloption'>
79
+              <div className='wsFilePreview__contentpage__visualizer__dloption__icon'>
80
+                <i className='fa fa-download' />
81
+              </div>
82
+              <div className='wsFilePreview__contentpage__visualizer__dloption__icon'>
83
+                <i className='fa fa-file-pdf-o' />
84
+              </div>
85
+              <div className='wsFilePreview__contentpage__visualizer__dloption__icon'>
86
+                <i className='fa fa-files-o' />
87
+              </div>
88
+            </div>
89
+            <div className='wsFilePreview__contentpage__visualizer__slidecontainer'>
90
+              <div className='wsFilePreview__contentpage__visualizer__slidecontainer__chevron'>
91
+                <i className='fa fa-chevron-left' />
92
+              </div>
93
+              <div className='wsFilePreview__contentpage__visualizer__slidecontainer__fileimg'>
94
+                <img src={imgPDF} alt='fichier pdf' className='d-block img-thumbnail rounded m-auto' />
95
+              </div>
96
+              <div className='wsFilePreview__contentpage__visualizer__slidecontainer__chevron'>
97
+                <i className='fa fa-chevron-right' />
98
+              </div>
99
+            </div>
100
+            <div className='wsFilePreview__contentpage__visualizer__sidebar'>
101
+              <div className='wsFilePreview__contentpage__visualizer__sidebar__visiblepart'>
102
+                <div className='wsFilePreview__contentpage__visualizer__sidebar__visiblepart__icon'>
103
+                  <i className='fa fa-gear' />
104
+                </div>
105
+                <div className='wsFilePreview__contentpage__visualizer__sidebar__visiblepart__title'>
106
+                  Propriétés
107
+                </div>
108
+              </div>
109
+              <div className='wsFilePreview__contentpage__visualizer__sidebar__propertydetail'>
110
+                Fichier : Planning Intégration de Tracim
111
+                <br />
112
+                Description : Fichier excel et pdf du planning
113
+                <br />
114
+                Taille : 50ko
115
+                <br />
116
+                Utilisateurs : Damien, Bastien, Côme, Phillipe
117
+                <br />
118
+                Date de Création : 08/07/17
119
+                <br />
120
+                Commentaire principale : Ce planning est voué à être modifié régulièrement par l’équipe.
121
+                <br />
122
+                Paramètres utilisés (optionnelle) :
123
+                Aliqua mollit nulla velit magna velit adipisicing culpa ex dolor cupidatat eu commodo.
124
+                <br />
125
+                <br />
126
+                Description : Fichier excel et pdf du planning
127
+                <br />
128
+                Taille : 50ko
129
+                <br />
130
+                Utilisateurs : Damien, Bastien, Côme, Phillipe
131
+                <br />
132
+                Date de Création : 08/07/17
133
+                <br />
134
+                Commentaire principale : Ce planning est voué à être modifié régulièrement par l’équipe.
135
+                <br />
136
+                Paramètres utilisés (optionnelle) :
137
+                Aliqua mollit nulla velit magna velit adipisicing culpa ex dolor cupidatat eu commodo.
138
+                <br />
139
+                <br />
140
+                Description : Fichier excel et pdf du planning
141
+                <br />
142
+                Taille : 50ko
143
+                <br />
144
+                Utilisateurs : Damien, Bastien, Côme, Phillipe
145
+                <br />
146
+                Date de Création : 08/07/17
147
+                <br />
148
+                Commentaire principale : Ce planning est voué à être modifié régulièrement par l’équipe.
149
+                <br />
150
+                Paramètres utilisés (optionnelle) :
151
+                Aliqua mollit nulla velit magna velit adipisicing culpa ex dolor cupidatat eu commodo.
152
+                <br />
153
+              </div>
154
+            </div>
155
+          </div>
156
+
157
+          <Timeline customClass={'wsFilePreview__contentpage'} />
158
+
159
+        </div>
160
+      </div>
161
+    )
162
+  }
163
+}
164
+
165
+export default Preview

+ 6 - 3
src/container/WorkspaceContent.jsx View File

@@ -3,8 +3,9 @@ import { connect } from 'react-redux'
3 3
 import Folder from '../component/Workspace/Folder.jsx'
4 4
 import FileItem from '../component/Workspace/FileItem.jsx'
5 5
 import FileItemHeader from '../component/Workspace/FileItemHeader.jsx'
6
-import Thread from './Thread.jsx'
6
+// import Thread from './Thread.jsx'
7 7
 // import PageText from './PageText.jsx'
8
+import Preview from './Preview.jsx'
8 9
 import PageWrapper from '../component/common/layout/PageWrapper.jsx'
9 10
 import PageTitle from '../component/common/layout/PageTitle.jsx'
10 11
 import PageContent from '../component/common/layout/PageContent.jsx'
@@ -47,7 +48,7 @@ class WorkspaceContent extends React.Component {
47 48
                 name={c.title}
48 49
                 type={c.type}
49 50
                 status={c.status}
50
-                onClickItem={() => this.setState({activeFileType: 'thread'})}
51
+                onClickItem={() => this.setState({activeFileType: 'file'})}
51 52
                 key={c.id}
52 53
               />
53 54
             )}
@@ -55,9 +56,11 @@ class WorkspaceContent extends React.Component {
55 56
 
56 57
           <DropdownCreateButton customClass='workspace__content__button mb-5' />
57 58
 
58
-          <Thread visible={this.state.activeFileType === 'thread'} />
59
+          <Preview visible={this.state.activeFileType === 'file'} />
60
+
59 61
           {/*
60 62
           <PageText visible={this.state.activeFileType === 'file'} />
63
+          <Thread visible={this.state.activeFileType === 'thread'} />
61 64
           */}
62 65
         </PageContent>
63 66
 

+ 34 - 5
src/css/Generic.styl View File

@@ -74,8 +74,8 @@
74 74
       padding 5px 65px 5px 10px
75 75
 
76 76
 
77
-.fa-file-text-o
78
-  color fileColor
77
+.fa-file-image-o
78
+  color previewColor
79 79
 
80 80
 .fa-comments-o
81 81
   color threadColor
@@ -102,6 +102,7 @@
102 102
   background-color lightGrey
103 103
   box-shadow shadow-page
104 104
   visibility hidden
105
+  z-index 1
105 106
   &.visible
106 107
     visibility visible
107 108
   &__header
@@ -134,7 +135,7 @@
134 135
         font-size 20px
135 136
   &__option
136 137
     border-bottom 1px solid grey
137
-    padding 15px
138
+    padding 10px
138 139
     height 58px
139 140
     text-align right
140 141
     background-color off-white
@@ -146,12 +147,40 @@
146 147
     &__menu
147 148
       display inline-block
148 149
       vertical-align middle
150
+      &__status
151
+        display inline-block
152
+        margin-right 20px
153
+        .current
154
+          color blue
155
+        .check
156
+          color green
157
+        .invalid
158
+          color red
159
+        .ban
160
+          color grey
161
+        &__dropdownbtn
162
+          border 1px solid grey
163
+          width 150px
164
+          background-color transparent
165
+          &::after
166
+            color fontColor
167
+          &:hover
168
+            background-color transparent
169
+          &__icon
170
+            display inline-block
171
+            margin 0 15px
172
+        &__submenu
173
+          &__item
174
+            display flex
175
+            justify-content space-between
176
+            margin 5px 0
177
+            &:active
178
+              background-color transparent
149 179
       &__action
150 180
         display inline-block
151
-        margin-right 10px
181
+        margin 5px 10px 0 0
152 182
         font-size 18px
153 183
         cursor pointer
154 184
   &__wrapper
155 185
     display flex
156 186
     flex-direction column
157
-

+ 277 - 0
src/css/Preview.styl View File

@@ -0,0 +1,277 @@
1
+.wsFilePreview
2
+  width 1200px
3
+  height calc(100% - 85px)
4
+  &__header
5
+    background-color previewColor
6
+    .fa-file-image-o
7
+      color white
8
+  &__option
9
+    &__menu
10
+      display flex
11
+      &__addversion
12
+        padding 8px 15px
13
+        border 1px solid previewColor
14
+        border-radius 5px
15
+        background-color transparent
16
+        color previewColor
17
+        cursor pointer
18
+        & > i
19
+          margin-left 10px
20
+        &:hover
21
+          background-color previewColor
22
+          border none
23
+          color white
24
+  &__contentpage
25
+    display flex
26
+    height 100%
27
+    &__visualizer
28
+      position relative
29
+      margin 10px
30
+      border-radius 10px
31
+      width 70%
32
+      height calc(100% - 150px)
33
+      background-color off-white
34
+      &__sidebar
35
+        position absolute
36
+        top 0
37
+        right 0
38
+        width 50px
39
+        height 100%
40
+        transition width 1s ease
41
+        &__visiblepart
42
+          display flex
43
+          flex-direction column
44
+          align-items center
45
+          border-top-right-radius 10px
46
+          border-bottom-right-radius 10px
47
+          width 50px
48
+          height 100%
49
+          background-color grey
50
+          cursor pointer
51
+          &:hover
52
+            background-color previewColor
53
+          &__icon
54
+            justify-content flex-start
55
+            font-size 30px
56
+            color white
57
+          &__title
58
+            margin-top 45px
59
+            color white
60
+            transform rotate(-90deg)
61
+        &__propertydetail
62
+          display none
63
+      &__dloption
64
+        display flex
65
+        margin-left calc(50% - 50px) // 50px => width/2 of the div
66
+        padding-top 10px
67
+        width 100px
68
+        &__icon
69
+          margin-right 20px
70
+          font-size 20px
71
+          cursor pointer
72
+      &__slidecontainer
73
+        display flex
74
+        align-items center
75
+        width calc(100% - 50px) // 50px => width of sidebar
76
+        height calc(100% - 40px) // 40px => height of dloption
77
+        &__fileimg
78
+          display flex
79
+          padding 30px
80
+          width 100%
81
+          height 100%
82
+          & > img
83
+            max-height 100%
84
+            max-width 100%
85
+        &__chevron
86
+          margin 0 5px
87
+          font-size 20px
88
+          cursor pointer
89
+    .timeline
90
+      margin 10px
91
+      border-radius 10px
92
+      width 45%
93
+      height calc(100% - 150px)
94
+      background-color off-white
95
+      overflow scroll
96
+      &__header
97
+        border-top-left-radius 10px
98
+        border-top-right-radius 10px
99
+        padding 10px 0
100
+        text-align center
101
+        font-size 20px
102
+        color dark-grey
103
+        background-color grey-hover
104
+      &__messagelist
105
+        min-height 300px
106
+        &__item
107
+          &__content
108
+            color dark-grey
109
+        &__version
110
+          margin-top 40px
111
+          background-color grey-hover
112
+          &__btn
113
+            padding 5px 25px
114
+            border-radius 5px
115
+            width 145px
116
+            color white
117
+            font-size 17px
118
+            background-color previewColor
119
+            & > i
120
+              margin-right 10px
121
+              color dark-grey
122
+              font-size 22px
123
+            &:hover
124
+              background-color lightPreviewColor
125
+            &:focus
126
+              background-color lightPreviewColor
127
+          &__date
128
+            color fontColor
129
+            font-size 17px
130
+      &__texteditor
131
+        &__simpletext
132
+          &__input
133
+            &:focus
134
+              color htmlColor
135
+              border-color htmlColor
136
+        &__submit
137
+          &__btn
138
+            border-color htmlColor
139
+            background-color htmlColor
140
+            color white
141
+            &:hover
142
+              border-color htmlColor
143
+              background-color htmlColor
144
+            &:focus
145
+              border-color htmlColor
146
+              background-color htmlColor
147
+
148
+/***** SENDER RECEIVER *****/
149
+
150
+.received
151
+  .wsFilePreview__contentpage__messagelist__item__content
152
+      background-color previewColor
153
+
154
+/***** ACTIVE SIDEBAR *****/
155
+
156
+.activesidebar
157
+  .wsFilePreview__contentpage__visualizer
158
+    &__sidebar
159
+      display flex
160
+      border-top-right-radius 10px
161
+      border-bottom-right-radius 10px
162
+      width 500px
163
+      background-color off-white
164
+      &__visiblepart
165
+        order 1
166
+        border-top-left-radius 10px
167
+        border-bottom-left-radius 10px
168
+        border-top-right-radius 0
169
+        border-bottom-right-radius 0
170
+        background-color previewColor
171
+      &__propertydetail
172
+        display flex
173
+        order 2
174
+        padding 20px
175
+        overflow-Y auto
176
+        color previewColor
177
+
178
+/****** MEDIA QUERIES ********/
179
+
180
+@media (min-width: max-xs) and (max-width: max-lg)
181
+
182
+  .wsFilePreview
183
+    overflow-Y auto
184
+    &__contentpage
185
+      display block
186
+      &__visualizer
187
+        display flex
188
+        flex-direction column
189
+        width calc(100% - 30px) // 20px => margin
190
+      .timeline
191
+        width calc(100% - 30px) // 20px => margin
192
+        &__texteditor
193
+          &__simpletext
194
+            display inline-flex
195
+            display ms-inline-flex
196
+            width 60%
197
+          &__submit
198
+            display inline-flex
199
+            display ms-inline-flex
200
+            margin 10px 0
201
+            &__btn
202
+              display flex
203
+              margin-left 35px
204
+              &__icon
205
+                margin-left 15px
206
+
207
+/**** MEDIA 992px & 1199px ****/
208
+
209
+@media (min-width: min-lg) and (max-width: max-lg)
210
+
211
+  .wsFilePreview
212
+    width 900px
213
+    overflow-Y auto
214
+
215
+/******************************/
216
+
217
+/**** MEDIA 768px & 991px ****/
218
+
219
+@media (min-width: min-md) and (max-width: max-md)
220
+
221
+  .wsFilePreview
222
+    width 100%
223
+
224
+/******************************/
225
+
226
+/**** MEDIA 576px & 767px ****/
227
+
228
+@media (min-width: min-sm) and (max-width: max-sm)
229
+
230
+  .wsFilePreview
231
+    top 69px
232
+    width 100%
233
+    height calc(100% - 69px)
234
+    overflow-Y scroll
235
+
236
+/******************************/
237
+
238
+/**** MEDIA 575px ****/
239
+
240
+@media (max-width: max-xs)
241
+
242
+  .activesidebar
243
+    .wsFilePreview__contentpage__visualizer
244
+      &__sidebar
245
+        width 350px
246
+
247
+  .wsFilePreview
248
+    top 69px
249
+    width 100%
250
+    height calc(100% - 69px)
251
+    overflow-Y scroll
252
+    &__option__menu__addversion
253
+        padding 8px 5px
254
+        & > i
255
+          display none
256
+    &__contentpage
257
+      display block
258
+      &__visualizer
259
+        display flex
260
+        flex-direction column
261
+        width calc(100% - 30px) // 20px => margin
262
+      .timeline
263
+        width calc(100% - 30px) // 20px => margin
264
+        &__texteditor
265
+          &__simpletext
266
+            display inline-flex
267
+            display ms-inline-flex
268
+            width 60%
269
+          &__submit
270
+            display inline-flex
271
+            display ms-inline-flex
272
+            margin 10px 0
273
+            &__btn
274
+              display flex
275
+              margin-left 35px
276
+              &__icon
277
+                margin-left 15px

+ 45 - 0
src/css/Timeline.styl View File

@@ -67,3 +67,48 @@
67 67
     &__content
68 68
       margin-left 25%
69 69
       color white
70
+
71
+/**** MEDIA 992px & 1199px ****/
72
+
73
+@media (min-width: min-lg) and (max-width: max-lg)
74
+
75
+  .timeline__messagelist__item
76
+    margin-right 55px
77
+
78
+  .received
79
+    .timeline__messagelist__item
80
+      &__avatar
81
+        left 96%
82
+
83
+/**** MEDIA 768px & 991px ****/
84
+
85
+@media (min-width: min-md) and (max-width: max-md)
86
+
87
+  .timeline__messagelist__item
88
+    margin-right 55px
89
+
90
+  .received
91
+    .timeline__messagelist__item
92
+      &__avatar
93
+        left 96%
94
+
95
+/**** MEDIA 576px & 767px ****/
96
+
97
+@media (min-width: min-sm) and (max-width: max-sm)
98
+
99
+  .timeline__messagelist__item
100
+    margin-right 35px
101
+
102
+  .received
103
+    .timeline__messagelist__item
104
+      &__avatar
105
+        left 94%
106
+
107
+/**** MEDIA 575px ****/
108
+
109
+@media (max-width: max-xs)
110
+
111
+  .received
112
+    .timeline__messagelist__item
113
+      &__avatar
114
+        left 90%

+ 2 - 1
src/css/Variable.styl View File

@@ -32,7 +32,8 @@ darkHtmlColor = darken(htmlColor, 15%)
32 32
 
33 33
 markdownColor = #e0082b
34 34
 
35
-fileColor = #263462
35
+previewColor = #263462
36
+lightPreviewColor = lighten(previewColor, 15%)
36 37
 
37 38
 taskColor = #2d5a88
38 39
 

+ 2 - 0
src/css/index.styl View File

@@ -20,3 +20,5 @@ html, body, #content, #content > div
20 20
 @import 'Thread'
21 21
 @import 'PageText'
22 22
 @import 'Timeline'
23
+@import 'Preview'
24
+

BIN
src/img/excel.png View File


BIN
src/img/imgProfil.png View File


BIN
src/img/imgProfil_orange.png View File


BIN
src/img/imgProfil_reverse.png View File


BIN
src/img/imgprofil-reverse.png View File


BIN
src/img/pdf.jpg View File