ソースを参照

integration of the edition mode

AlexiCauvin 7 年 前
コミット
db74dc62f2
共有5 個のファイルを変更した69 個の追加2 個の削除を含む
  1. 6 0
      src/component/Workspace/FileType/PageHtml.jsx
  2. 4 0
      src/component/common/PopinFixed/PopinFixedHeader.jsx
  3. 26 1
      src/css/Generic.styl
  4. 20 1
      src/css/PageHtml.styl
  5. 13 0
      src/css/Thread.styl

+ 6 - 0
src/component/Workspace/FileType/PageHtml.jsx ファイルの表示

@@ -9,6 +9,12 @@ const PageHtml = props => {
9 9
       <div className='wsFilePageHtml__contentpage__textnote__text'>
10 10
         { props.text }
11 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 18
     </div>
13 19
   )
14 20
 }

+ 4 - 0
src/component/common/PopinFixed/PopinFixedHeader.jsx ファイルの表示

@@ -13,6 +13,10 @@ const PopinFixedHeader = props => {
13 13
         {props.name}
14 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 20
       <div className={classnames('wsFileGeneric__header__edittitle', `${props.customClass}__header__changetitle`)}>
17 21
         <i className='fa fa-pencil' />
18 22
       </div>

+ 26 - 1
src/css/Generic.styl ファイルの表示

@@ -162,6 +162,32 @@
162 162
       border-radius 10px
163 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 193
 /*** PAGE FILE, THREAD, HTML, MARKDOWN, ISSUE ***/
@@ -258,7 +284,6 @@
258 284
         font-size 18px
259 285
         cursor pointer
260 286
         &:hover , &:focus
261
-          font-size 22px
262 287
           color blue
263 288
   &__wrapper
264 289
     display flex

+ 20 - 1
src/css/PageHtml.styl ファイルの表示

@@ -4,6 +4,8 @@
4 4
   overflow-Y auto
5 5
   &__header
6 6
     background-color htmlColor
7
+    &__editionmode
8
+      display none
7 9
     &__icon
8 10
       .fa-file-word-o
9 11
         color white
@@ -22,6 +24,8 @@
22 24
         opacity 0.7
23 25
       &__text
24 26
         font-size 14px
27
+      &__edition
28
+        display none
25 29
     &__wrapper
26 30
       border-radius 10px
27 31
       width 45%
@@ -85,7 +89,22 @@
85 89
 
86 90
 .received
87 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 109
 @media (min-width: max-xs) and (max-width: max-lg)
91 110
   .wsFilePageHtml

+ 13 - 0
src/css/Thread.styl ファイルの表示

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