Browse Source

integration of the edition mode

AlexiCauvin 7 years ago
parent
commit
db74dc62f2

+ 6 - 0
src/component/Workspace/FileType/PageHtml.jsx View File

9
       <div className='wsFilePageHtml__contentpage__textnote__text'>
9
       <div className='wsFilePageHtml__contentpage__textnote__text'>
10
         { props.text }
10
         { props.text }
11
       </div>
11
       </div>
12
+
13
+      <form className='wsFilePageHtml__contentpage__textnote__edition editionmode'>
14
+        <textarea className='wsFilePageHtml__contentpage__textnote__edition__text editionmode__text' />
15
+        <input type='submit' className='wsFilePageHtml__contentpage__textnote__edition__submit editionmode__submit' value='Valider' />
16
+      </form>
17
+
12
     </div>
18
     </div>
13
   )
19
   )
14
 }
20
 }

+ 4 - 0
src/component/common/PopinFixed/PopinFixedHeader.jsx View File

13
         {props.name}
13
         {props.name}
14
       </div>
14
       </div>
15
 
15
 
16
+      <div className={classnames('editiontitle mr-auto', `${props.customClass}__header__editionmode`)}>
17
+        <input className='editiontitle__input form-control' placeholder='Titre du fichier' />
18
+      </div>
19
+
16
       <div className={classnames('wsFileGeneric__header__edittitle', `${props.customClass}__header__changetitle`)}>
20
       <div className={classnames('wsFileGeneric__header__edittitle', `${props.customClass}__header__changetitle`)}>
17
         <i className='fa fa-pencil' />
21
         <i className='fa fa-pencil' />
18
       </div>
22
       </div>

+ 26 - 1
src/css/Generic.styl View File

162
       border-radius 10px
162
       border-radius 10px
163
       padding 15px 25px
163
       padding 15px 25px
164
 
164
 
165
+
166
+/***** EDITION MODE  ******/
167
+
168
+.editiontitle
169
+  width 60%
170
+
171
+.editionmode
172
+  display flex
173
+  flex-direction column
174
+  align-items center
175
+  &__text
176
+    margin-bottom 25px
177
+    width 100%
178
+    height 400px
179
+  &__submit
180
+    border 1px solid blue
181
+    box-shadow none
182
+    border-radius 10px
183
+    padding 8px 45px
184
+    background-color transparent
185
+    color blue
186
+    &:hover, &:focus
187
+      background-color blue
188
+      color off-white
189
+
190
+
165
 /********************/
191
 /********************/
166
 
192
 
167
 /*** PAGE FILE, THREAD, HTML, MARKDOWN, ISSUE ***/
193
 /*** PAGE FILE, THREAD, HTML, MARKDOWN, ISSUE ***/
258
         font-size 18px
284
         font-size 18px
259
         cursor pointer
285
         cursor pointer
260
         &:hover , &:focus
286
         &:hover , &:focus
261
-          font-size 22px
262
           color blue
287
           color blue
263
   &__wrapper
288
   &__wrapper
264
     display flex
289
     display flex

+ 20 - 1
src/css/PageHtml.styl View File

4
   overflow-Y auto
4
   overflow-Y auto
5
   &__header
5
   &__header
6
     background-color htmlColor
6
     background-color htmlColor
7
+    &__editionmode
8
+      display none
7
     &__icon
9
     &__icon
8
       .fa-file-word-o
10
       .fa-file-word-o
9
         color white
11
         color white
22
         opacity 0.7
24
         opacity 0.7
23
       &__text
25
       &__text
24
         font-size 14px
26
         font-size 14px
27
+      &__edition
28
+        display none
25
     &__wrapper
29
     &__wrapper
26
       border-radius 10px
30
       border-radius 10px
27
       width 45%
31
       width 45%
85
 
89
 
86
 .received
90
 .received
87
   .wsFilePageHtml__contentpage__messagelist__item__content
91
   .wsFilePageHtml__contentpage__messagelist__item__content
88
-      background-color htmlColor
92
+    background-color htmlColor
93
+
94
+.activeEditionTitle
95
+  .wsFilePageHtml
96
+    &__header
97
+      &__editionmode
98
+        display block
99
+      &__title
100
+        display none
101
+
102
+.activeEditionText
103
+  .wsFilePageHtml__contentpage__textnote
104
+    &__edition
105
+      display flex
106
+    &__text
107
+      display none
89
 
108
 
90
 @media (min-width: max-xs) and (max-width: max-lg)
109
 @media (min-width: max-xs) and (max-width: max-lg)
91
   .wsFilePageHtml
110
   .wsFilePageHtml

+ 13 - 0
src/css/Thread.styl View File

3
   &__header
3
   &__header
4
     color white
4
     color white
5
     background-color threadColor
5
     background-color threadColor
6
+    &__editionmode
7
+      display none
8
+    &__icon
9
+      .fa-comments-o
10
+        color white
6
   &__wrapper
11
   &__wrapper
7
     height calc(100% - 209px) /* height of chat__header + height of option + top of chat */
12
     height calc(100% - 209px) /* height of chat__header + height of option + top of chat */
8
   &__messagelist
13
   &__messagelist
25
       background-color darkBlue
30
       background-color darkBlue
26
       color white
31
       color white
27
 
32
 
33
+.activeEditionTitle
34
+  .wsFileThread
35
+    &__header
36
+      &__editionmode
37
+        display block
38
+      &__title
39
+        display none
40
+
28
 @media (min-width: max-xs) and (max-width: max-lg)
41
 @media (min-width: max-xs) and (max-width: max-lg)
29
   .wsFileThread
42
   .wsFileThread
30
     &__texteditor
43
     &__texteditor