Browse Source

added integration of timeline and beginning of ppage text

Skylsmoi 6 years ago
parent
commit
b095c5bd27

+ 122 - 0
src/component/Timeline.jsx View File

@@ -0,0 +1,122 @@
1
+import React from 'react'
2
+import classnames from 'classnames'
3
+import imgProfilOrange from '../img/imgProfil_orange.png'
4
+import imgProfilReverse from '../img/imgProfil_reverse.png'
5
+
6
+const Timeline = props => {
7
+  return (
8
+    <div className='timeline'>
9
+      <div className={classnames(`${props.customClass}__header`, 'timeline__header')}>
10
+        Timeline
11
+      </div>
12
+
13
+      <ul className={classnames(`${props.customClass}__messagelist`, 'timeline__messagelist')}>
14
+
15
+        <li className={classnames(`${props.customClass}__messagelist__item`, 'timeline__messagelist__item sended')}>
16
+          <div className={classnames(`${props.customClass}__messagelist__item__avatar`, 'timeline__messagelist__item__avatar')}>
17
+            <img src={imgProfilOrange} alt='avatar'/>
18
+          </div>
19
+          <div
20
+            className={classnames(`${props.customClass}__messagelist__item__createhour`, 'timeline__messagelist__item__createhour')}>
21
+            27/11/17 à 11h45
22
+          </div>
23
+          <div
24
+            className={classnames(`${props.customClass}__messagelist__item__content`, 'timeline__messagelist__item__content')}>
25
+            Proident esse laboris in sed officia exercitation ut anim ea.
26
+          </div>
27
+        </li>
28
+
29
+        <li className={classnames(`${props.customClass}__messagelist__item`, 'timeline__messagelist__item received')}>
30
+          <div className={classnames(`${props.customClass}__messagelist__item__avatar`, 'timeline__messagelist__item__avatar')}>
31
+            <img src={imgProfilReverse} alt='avatar'/>
32
+          </div>
33
+          <div
34
+            className={classnames(`${props.customClass}__messagelist__item__createhour`, 'timeline__messagelist__item__createhour')}>
35
+            27/11/17 à 11h47
36
+          </div>
37
+          <div
38
+            className={classnames(`${props.customClass}__messagelist__item__content`, 'timeline__messagelist__item__content')}>
39
+            Proident esse laboris in sed officia exercitation ut anim ea.
40
+            Proident esse laboris in sed officia exercitation ut anim ea.
41
+            Proident esse laboris in sed officia exercitation ut anim ea.
42
+            Proident esse laboris in sed officia exercitation ut anim ea.
43
+            Proident esse laboris in sed officia exercitation ut anim ea.
44
+          </div>
45
+        </li>
46
+
47
+        <li className={classnames(`${props.customClass}__messagelist__version`, 'timeline__messagelist__version')}>
48
+          <div className={classnames(`${props.customClass}__messagelist__version__btn`, 'timeline__messagelist__version__btn btn')}>
49
+            <i className='fa fa-code-fork'/>
50
+            version 3
51
+          </div>
52
+          <div className={classnames(`${props.customClass}__messagelist__version__date`, 'timeline__messagelist__version__date')}>
53
+            Créer le 22/11/17
54
+          </div>
55
+        </li>
56
+
57
+        <li className={classnames(`${props.customClass}__messagelist__item`, 'timeline__messagelist__item sended')}>
58
+          <div className={classnames(`${props.customClass}__messagelist__item__avatar`, 'timeline__messagelist__item__avatar')}>
59
+            <img src={imgProfilOrange} alt='avatar'/>
60
+          </div>
61
+          <div
62
+            className={classnames(`${props.customClass}__messagelist__item__createhour`, 'timeline__messagelist__item__createhour')}>
63
+            27/11/17 à 11h45
64
+          </div>
65
+          <div
66
+            className={classnames(`${props.customClass}__messagelist__item__content`, 'timeline__messagelist__item__content')}>
67
+            Proident esse laboris in sed officia exercitation ut anim ea.
68
+          </div>
69
+        </li>
70
+
71
+        <li className={classnames(`${props.customClass}__messagelist__item`, 'timeline__messagelist__item received')}>
72
+          <div className={classnames(`${props.customClass}__messagelist__item__avatar`, 'timeline__messagelist__item__avatar')}>
73
+            <img src={imgProfilReverse} alt='avatar'/>
74
+          </div>
75
+          <div
76
+            className={classnames(`${props.customClass}__messagelist__item__createhour`, 'timeline__messagelist__item__createhour')}>
77
+            27/11/17 à 11h47
78
+          </div>
79
+          <div
80
+            className={classnames(`${props.customClass}__messagelist__item__content`, 'timeline__messagelist__item__content')}>
81
+            Proident esse laboris in sed officia exercitation ut anim ea.
82
+            Proident esse laboris in sed officia exercitation ut anim ea.
83
+            Proident esse laboris in sed officia exercitation ut anim ea.
84
+            Proident esse laboris in sed officia exercitation ut anim ea.
85
+            Proident esse laboris in sed officia exercitation ut anim ea.
86
+          </div>
87
+        </li>
88
+
89
+      </ul>
90
+      <form className={classnames(`${props.customClass}__texteditor`, 'timeline__texteditor')}>
91
+        <div
92
+          className={classnames(`${props.customClass}__texteditor__simpletext`, 'timeline__texteditor__simpletext input-group')}>
93
+          <input type='text'
94
+                 className={classnames(`${props.customClass}__texteditor__simpletext__input`, 'timeline__texteditor__simpletext__input form-control')}
95
+                 placeholder='...'/>
96
+          <div
97
+            className={classnames(`${props.customClass}__texteditor__simpletext__icon`, 'timeline__texteditor__simpletext__icon input-group-addon')}>
98
+            <i className='fa fa-font'/>
99
+          </div>
100
+        </div>
101
+        <div
102
+          className={classnames(`${props.customClass}__texteditor__wysiwyg`, 'timeline__texteditor__wysiwyg d-none d-xl-block')}>
103
+          <textarea/>
104
+        </div>
105
+        <div
106
+          className={classnames(`${props.customClass}__texteditor__submit`, 'timeline__texteditor__submit d-xl-flex justify-content-xl-center')}>
107
+          <button
108
+            type='submit'
109
+            className={classnames(`${props.customClass}__texteditor__submit__btn`, 'timeline__texteditor__submit__btn btn')}
110
+          >
111
+            Envoyer
112
+            <div className={classnames(`${props.customClass}__texteditor__submit__btn__icon`, 'timeline__texteditor__submit__btn__icon')}>
113
+              <i className='fa fa-paper-plane-o'/>
114
+            </div>
115
+          </button>
116
+        </div>
117
+      </form>
118
+    </div>
119
+  )
120
+}
121
+
122
+export default Timeline

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

@@ -0,0 +1,23 @@
1
+import React from 'react'
2
+import classnames from 'classnames'
3
+import PropTypes from 'prop-types'
4
+
5
+const PopinFixed = props => {
6
+  return (
7
+    <div className={classnames('wsFileGeneric', props.customClass, {'visible': props.visible})}>
8
+      {props.children}
9
+    </div>
10
+  )
11
+}
12
+
13
+export default PopinFixed
14
+
15
+PopinFixed.propTypes = {
16
+  customClass: PropTypes.string,
17
+  visible: PropTypes.bool
18
+}
19
+
20
+PopinFixed.defaultProps = {
21
+  customClass: '',
22
+  visible: true
23
+}

+ 22 - 0
src/component/common/PopinFixed/PopinFixedContent.jsx View File

@@ -0,0 +1,22 @@
1
+import React from 'react'
2
+import classnames from 'classnames'
3
+import PropTypes from 'prop-types'
4
+
5
+const PopinFixedContent = props => {
6
+  return (
7
+    <div className={classnames('wsFileGeneric__contentpage', `${props.customClass}`)}>
8
+      <div className={classnames('wsFileGeneric__textnote', `${props.customClass}__textnote`)}>
9
+      </div>
10
+
11
+      <div className={classnames('wsFileGeneric__wrapper', `${props.customClass}__wrapper`)}>
12
+        {props.children}
13
+      </div>
14
+    </div>
15
+  )
16
+}
17
+
18
+export default PopinFixedContent
19
+
20
+PopinFixedContent.propTypes = {
21
+
22
+}

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

@@ -0,0 +1,34 @@
1
+import React from 'react'
2
+import classnames from 'classnames'
3
+import PropTypes from 'prop-types'
4
+
5
+const PopinFixedHeader = props => {
6
+  return (
7
+    <div className={classnames('wsFileGeneric__header', `${props.customClass}__header`)}>
8
+      <div className={classnames('wsFileGeneric__header__icon', `${props.customClass}__header__icon`)}>
9
+        <i className={props.icon} />
10
+      </div>
11
+
12
+      <div className={classnames('wsFileGeneric__header__title mr-auto', `${props.customClass}__header__title`)}>
13
+        {props.name}
14
+      </div>
15
+
16
+      <div className={classnames('wsFileGeneric__header__close', `${props.customClass}__header__close`)}>
17
+        <i className='fa fa-times' />
18
+      </div>
19
+    </div>
20
+  )
21
+}
22
+
23
+export default PopinFixedHeader
24
+
25
+PopinFixedHeader.propTypes = {
26
+  icon: PropTypes.string.isRequired,
27
+  customClass: PropTypes.string,
28
+  name: PropTypes.string
29
+}
30
+
31
+PopinFixedHeader.defaultProps = {
32
+  customClass: '',
33
+  name: ''
34
+}

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

@@ -0,0 +1,27 @@
1
+import React from 'react'
2
+import classnames from 'classnames'
3
+import PropTypes from 'prop-types'
4
+
5
+const PopinFixedOption = props => {
6
+  return (
7
+    <div className='wsFileGeneric__option'>
8
+      <div className='wsFileGeneric__option__menu'>
9
+        <div className='wsFileGeneric__option__menu__action'>
10
+          <i className='fa fa-pencil' />
11
+        </div>
12
+        <div className='wsFileGeneric__option__menu__action'>
13
+          <i className='fa fa-archive' />
14
+        </div>
15
+        <div className='wsFileGeneric__option__menu__action'>
16
+          <i className='fa fa-trash' />
17
+        </div>
18
+      </div>
19
+    </div>
20
+  )
21
+}
22
+
23
+export default PopinFixedOption
24
+
25
+PopinFixedOption.propTypes = {
26
+
27
+}

+ 0 - 29
src/component/old_ConnectionForm.jsx View File

@@ -1,29 +0,0 @@
1
-import React from 'react'
2
-import PropTypes from 'prop-types'
3
-
4
-export const ConnectionForm = props => {
5
-  return (
6
-    <div>
7
-      { props.user.isLoggedIn
8
-        ? 'You are already logged in.'
9
-        : (
10
-          <div>
11
-            Login:
12
-            <input type='text' onChange={props.onChangeLogin} placeholder='Login' />
13
-            <input type='text' onChange={props.onChangePassword} placeholder='Password' />
14
-            <button type='button' onClick={props.onClickSubmit}>Connect</button>
15
-          </div>
16
-        )
17
-      }
18
-    </div>
19
-  )
20
-}
21
-
22
-ConnectionForm.PropTypes = {
23
-  user: PropTypes.shape({
24
-    isLoggedIn: PropTypes.bool.isRequired
25
-  }),
26
-  onChangeLogin: PropTypes.func,
27
-  onChangePassword: PropTypes.func,
28
-  onClickSubmit: PropTypes.func
29
-}

+ 0 - 29
src/component/old_HeaderTpl.jsx View File

@@ -1,29 +0,0 @@
1
-import React from 'react'
2
-import PropTypes from 'prop-types'
3
-import { Link } from 'react-router-dom'
4
-
5
-const HeaderTpl = props => {
6
-  return (
7
-    <div>
8
-      { props.user.isLoggedIn
9
-        ? `'Soir ${props.user.firstname} ${props.user.lastname}.`
10
-        : 'Why dont you connect yourself ?'
11
-      }
12
-      <ul>
13
-        <li><Link to={'/'}>Home</Link></li>
14
-        <li><Link to={'/login'}>Login</Link></li>
15
-        <li><Link to={'/page'}>Page</Link></li>
16
-      </ul>
17
-      <button onClick={e => props.onChangeLang('fr')}>Click Me</button>
18
-    </div>
19
-  )
20
-}
21
-export default HeaderTpl
22
-
23
-HeaderTpl.PropTypes = {
24
-  user: PropTypes.shape({
25
-    isLoggedIn: PropTypes.bool.isRequired
26
-  }),
27
-  onChangeLang: PropTypes.func,
28
-  onSubmitSearch: PropTypes.func
29
-}

+ 27 - 117
src/container/PageText.jsx View File

@@ -1,36 +1,35 @@
1 1
 import React, { Component } from 'react'
2
-import classnames from 'classnames'
3
-import imgProfilOrange from '../img/imgProfil_orange.png'
4
-import imgProfilReverse from '../img/imgProfil_reverse.png'
2
+import PopinFixed from '../component/common/PopinFixed/PopinFixed'
3
+import PopinFixedHeader from '../component/common/PopinFixed/PopinFixedHeader.jsx'
4
+import PopinFixedOption from '../component/common/PopinFixed/PopinFixedOption.jsx'
5
+import PopinFixedContent from '../component/common/PopinFixed/PopinFixedContent.jsx'
6
+import Timeline from '../component/Timeline.jsx'
5 7
 
6 8
 class PageText extends Component {
7 9
   render () {
8 10
     return (
11
+      <PopinFixed customClass={'wsFileText'}>
12
+        <PopinFixedHeader
13
+          customClass='wsFileText'
14
+          icon='fa fa-file-text-o'
15
+          name='Facture 57840 - Jean-michel Chevalier - 04/09/2017'
16
+        />
17
+
18
+        <PopinFixedOption customClass={'wsFileText'} />
19
+
20
+        <PopinFixedContent customClass={'wsFileText__contentpage'}>
21
+          <Timeline customClass={'wsFileText__contentpage'} />
22
+        </PopinFixedContent>
23
+      </PopinFixed>
24
+    )
25
+  }
26
+}
27
+
28
+export default PageText
29
+
30
+/*
9 31
       <div className={classnames('wsFileText wsFileGeneric', {'visible': this.props.visible})}>
10
-        <div className='wsFileText__header wsFileGeneric__header'>
11
-          <div className='wsFileGeneric__header__icon'>
12
-            <i className='fa fa-file-text-o' />
13
-          </div>
14
-          <div className='wsFileText__header__title wsFileGeneric__header__title mr-auto'>
15
-            Facture 57840 - Jean-michel Chevalier - 04/09/2017
16
-          </div>
17
-          <div className='wsFileGeneric__header__close'>
18
-            <i className='fa fa-times' />
19
-          </div>
20
-        </div>
21
-        <div className='wsFileGeneric__option'>
22
-          <div className='wsFileGeneric__option__menu'>
23
-            <div className='wsFileGeneric__option__menu__action'>
24
-              <i className='fa fa-pencil' />
25
-            </div>
26
-            <div className='wsFileGeneric__option__menu__action'>
27
-              <i className='fa fa-archive' />
28
-            </div>
29
-            <div className='wsFileGeneric__option__menu__action'>
30
-              <i className='fa fa-trash' />
31
-            </div>
32
-          </div>
33
-        </div>
32
+
34 33
         <div className='wsFileText__contentpage wsFileGeneric__contentpage'>
35 34
           <div className='wsFileText__contentpage__textnote'>
36 35
             <div className='wsFileText__contentpage__textnote__latestversion'>
@@ -62,97 +61,7 @@ class PageText extends Component {
62 61
             </div>
63 62
           </div>
64 63
           <div className='wsFileText__contentpage__wrapper wsFileGeneric__wrapper'>
65
-            <div className='wsFileText__contentpage__header'>
66
-              Timeline
67
-            </div>
68
-
69
-            <ul className='wsFileText__contentpage__messagelist wsFileGeneric__messagelist'>
70
-
71
-              <li className='wsFileText__contentpage__messagelist__item wsFileGeneric__messagelist__item sended'>
72
-                <div className='wsFileText__contentpage__messagelist__item__avatar wsFileGeneric__messagelist__item__avatar'>
73
-                  <img src={imgProfilOrange} alt='avatar' />
74
-                </div>
75
-                <div className='wsFileText__contentpage__messagelist__item__createhour wsFileGeneric__messagelist__item__createhour'>
76
-                  27/11/17 à 11h45
77
-                </div>
78
-                <div className='wsFileText__contentpage__messagelist__item__content wsFileGeneric__messagelist__item__content'>
79
-                  Proident esse laboris in sed officia exercitation ut anim ea.
80
-                </div>
81
-              </li>
82
-
83
-              <li className='wsFileText__contentpage__messagelist__item wsFileGeneric__messagelist__item received'>
84
-                <div className='wsFileText__contentpage__messagelist__item__avatar wsFileGeneric__messagelist__item__avatar'>
85
-                  <img src={imgProfilReverse} alt='avatar' />
86
-                </div>
87
-                <div className='wsFileText__contentpage__messagelist__item__createhour wsFileGeneric__messagelist__item__createhour'>
88
-                  27/11/17 à 11h47
89
-                </div>
90
-                <div className='wsFileText__contentpage__messagelist__item__content wsFileGeneric__messagelist__item__content'>
91
-                  Proident esse laboris in sed officia exercitation ut anim ea.
92
-                  Proident esse laboris in sed officia exercitation ut anim ea.
93
-                  Proident esse laboris in sed officia exercitation ut anim ea.
94
-                  Proident esse laboris in sed officia exercitation ut anim ea.
95
-                  Proident esse laboris in sed officia exercitation ut anim ea.
96
-                </div>
97
-              </li>
98
-
99
-              <div className='wsFileText__contentpage__messagelist__version wsFileGeneric__messagelist__version'>
100
-                <div className='wsFileText__contentpage__messagelist__version__btn btn-primary'>
101
-                  <i className='fa fa-code-fork' />
102
-                  version 3
103
-                </div>
104
-                <div className='wsFileText__contentpage__messagelist__version__dateversion'>
105
-                  Créer le 22/11/17
106
-                </div>
107
-              </div>
108
-
109
-              <li className='wsFileText__contentpage__messagelist__item wsFileGeneric__messagelist__item sended'>
110
-                <div className='wsFileText__contentpage__messagelist__item__avatar wsFileGeneric__messagelist__item__avatar'>
111
-                  <img src={imgProfilOrange} alt='avatar' />
112
-                </div>
113
-                <div className='wsFileText__contentpage__messagelist__item__createhour wsFileGeneric__messagelist__item__createhour'>
114
-                  27/11/17 à 11h45
115
-                </div>
116
-                <div className='wsFileText__contentpage__messagelist__item__content wsFileGeneric__messagelist__item__content'>
117
-                  Proident esse laboris in sed officia exercitation ut anim ea.
118
-                </div>
119
-              </li>
120
-
121
-              <li className='wsFileText__contentpage__messagelist__item wsFileGeneric__messagelist__item received'>
122
-                <div className='wsFileText__contentpage__messagelist__item__avatar wsFileGeneric__messagelist__item__avatar'>
123
-                  <img src={imgProfilReverse} alt='avatar' />
124
-                </div>
125
-                <div className='wsFileText__contentpage__messagelist__item__createhour wsFileGeneric__messagelist__item__createhour'>
126
-                  27/11/17 à 11h47
127
-                </div>
128
-                <div className='wsFileText__contentpage__messagelist__item__content wsFileGeneric__messagelist__item__content'>
129
-                  Proident esse laboris in sed officia exercitation ut anim ea.
130
-                  Proident esse laboris in sed officia exercitation ut anim ea.
131
-                  Proident esse laboris in sed officia exercitation ut anim ea.
132
-                  Proident esse laboris in sed officia exercitation ut anim ea.
133
-                  Proident esse laboris in sed officia exercitation ut anim ea.
134
-                </div>
135
-              </li>
136 64
 
137
-            </ul>
138
-            <form className='wsFileText__contentpage__texteditor wsFileGeneric__texteditor'>
139
-              <div className='wsFileText__contentpage__texteditor__simpletext wsFileGeneric__texteditor__simpletext input-group'>
140
-                <input type='text' className='wsFileText__contentpage__texteditor__simpletext__input wsFileGeneric__texteditor__simpletext__input form-control' placeholder='...' />
141
-                <div className='wsFileText__contentpage__texteditor__simpletext__icon wsFileGeneric__texteditor__simpletext__icon input-group-addon'>
142
-                  <i className='fa fa-font' />
143
-                </div>
144
-              </div>
145
-              <div className='wsFileText__contentpage__texteditor__wysiwyg wsFileGeneric__texteditor__wysiwyg d-none d-xl-block'>
146
-                <textarea />
147
-              </div>
148
-              <div className='wsFileText__contentpage__texteditor__submit wsFileGeneric__texteditor__submit d-xl-flex justify-content-xl-center'>
149
-                <button type='submit' className='wsFileText__contentpage__texteditor__submit__btn wsFileGeneric__texteditor__submit__btn btn btn-primary'>Envoyer
150
-                  <div className='wsFileText__contentpage__texteditor__submit__btn__icon wsFileGeneric__texteditor__submit__btn__icon'>
151
-                    <i className='fa fa-paper-plane-o' />
152
-                  </div>
153
-                </button>
154
-              </div>
155
-            </form>
156 65
           </div>
157 66
         </div>
158 67
       </div>
@@ -161,3 +70,4 @@ class PageText extends Component {
161 70
 }
162 71
 
163 72
 export default PageText
73
+*/

+ 2 - 0
src/container/Thread.jsx View File

@@ -43,9 +43,11 @@ class Thread extends Component {
43 43
               <div className='wsFileGeneric__messagelist__item__avatar'>
44 44
                 <img src={imgProfil} alt='avatar' />
45 45
               </div>
46
+
46 47
               <div className='wsFileGeneric__messagelist__item__createhour'>
47 48
                 27/11/17 à 11h45
48 49
               </div>
50
+
49 51
               <div className='wsFileThread__messagelist__item__content wsFileGeneric__messagelist__item__content'>
50 52
                 Proident esse laboris in sed officia exercitation ut anim ea.
51 53
               </div>

+ 2 - 0
src/container/Tracim.jsx View File

@@ -22,11 +22,13 @@ class Tracim extends React.Component {
22 22
         <Route path='/login' component={Login} />
23 23
 
24 24
         <div className='sidebarpagecontainer'>
25
+
25 26
           { location.pathname !== '/login' && // cant find "except" in <Route path />
26 27
             <Sidebar />
27 28
           }
28 29
           <Route exact path='/' component={Workspace} />
29 30
           <PrivateRoute path='/page' component={Page} />
31
+
30 32
         </div>
31 33
 
32 34
         <Footer />

+ 3 - 3
src/container/Workspace.jsx View File

@@ -4,7 +4,7 @@ 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 6
 import Thread from './Thread.jsx'
7
-// import PageText from './PageText.jsx'
7
+import PageText from './PageText.jsx'
8 8
 import PageWrapper from '../component/common/layout/PageWrapper.jsx'
9 9
 import PageTitle from '../component/common/layout/PageTitle.jsx'
10 10
 import PageContent from '../component/common/layout/PageContent.jsx'
@@ -76,9 +76,9 @@ class Workspace extends React.Component {
76 76
 
77 77
           <DropdownCreateButton customClass='workspace__content__button mb-5' />
78 78
 
79
-          <Thread visible={this.state.activeFileType === 'chat'} />
80
-          {/*
81 79
           <PageText visible={this.state.activeFileType === 'file'} />
80
+          {/*
81
+          <Thread visible={this.state.activeFileType === 'chat'} />
82 82
           */}
83 83
         </PageContent>
84 84
 

+ 0 - 59
src/css/Generic.styl View File

@@ -129,62 +129,3 @@
129 129
   &__wrapper
130 130
     display flex
131 131
     flex-direction column
132
-  &__messagelist
133
-    margin-bottom 0
134
-    flex-grow 1
135
-    border-bottom 1px solid grey
136
-    overflow-Y auto
137
-    list-style none
138
-    &__item
139
-      &__avatar
140
-        position relative
141
-        top 43px
142
-        left -25px
143
-        width 45px
144
-        height 45px
145
-      &__createhour
146
-        margin-left 30px
147
-        opacity 0.7
148
-        font-size 14px
149
-      &__content
150
-        border 1px solid grey
151
-        border-radius 5px
152
-        padding 15px
153
-        background-color off-white
154
-        font-size 15px
155
-        z-index -1
156
-  &__texteditor
157
-    padding 2px
158
-    &__simpletext
159
-      display none
160
-      width 70%
161
-      margin-right 35px
162
-      &__icon
163
-        cursor pointer
164
-    &__wysiwyg
165
-      display block
166
-      & > textarea
167
-        width 100%
168
-        height 130px
169
-    &__submit
170
-      margin 10px 0
171
-      &__btn
172
-        display flex
173
-        background-color transparent
174
-        &__icon
175
-          margin-left 10px
176
-
177
-.sended
178
-  .wsFileGeneric__messagelist__item__content
179
-    margin-right 25%
180
-
181
-.received
182
-  .wsFileGeneric__messagelist__item
183
-    &__avatar
184
-      left 93%
185
-    &__createhour
186
-      text-align right
187
-      margin-right 50px
188
-    &__content
189
-      margin-left 25%
190
-      color white

+ 211 - 0
src/css/PageText.styl View File

@@ -0,0 +1,211 @@
1
+.wsFileText
2
+  width 1200px
3
+  height calc(100% - 85px)
4
+  overflow-Y auto
5
+  &__header
6
+    background-color orange
7
+  &__contentpage
8
+    display flex
9
+    overflow-Y auto
10
+    &__textnote
11
+      margin 10px
12
+      border-radius 10px
13
+      padding 25px
14
+      width 55%
15
+      height 100%
16
+      background-color off-white
17
+      &__latestversion
18
+        text-align right
19
+        opacity 0.7
20
+      &__title
21
+        margin 10px 0
22
+        font-size 30px
23
+        color orange
24
+      &__data
25
+        flex-grow 1
26
+        flex-shrink 1
27
+        flex-basis 0
28
+    &__wrapper
29
+      margin 10px
30
+      border-radius 10px
31
+      width 45%
32
+      height 100%
33
+      background-color off-white
34
+    &__header
35
+      border-top-left-radius 10px
36
+      border-top-right-radius 10px
37
+      padding 10px 0
38
+      text-align center
39
+      font-size 20px
40
+      color dark-grey
41
+      background-color hover-grey
42
+    &__messagelist
43
+      min-height 300px
44
+      &__item
45
+        padding 0 25px 20px 35px
46
+        &__content
47
+          color dark-grey
48
+      &__version
49
+        margin-top 40px
50
+        background-color hover-grey
51
+        &__btn
52
+          margin-left 15px
53
+          padding 5px 25px
54
+          border-radius 5px
55
+          width 145px
56
+          color white
57
+          font-size 17px
58
+          background-color orange
59
+          & > i
60
+            margin-right 10px
61
+            color dark-grey
62
+            font-size 22px
63
+          &:hover
64
+            background-color dark-orange
65
+          &:focus
66
+            background-color dark-orange
67
+        &__date
68
+          color orange
69
+          font-size 17px
70
+    &__texteditor
71
+      &__simpletext
72
+        &__input
73
+          &:focus
74
+            color orange
75
+            border-color orange
76
+      &__submit
77
+        &__btn
78
+          border-color orange
79
+          background-color orange
80
+          color white
81
+          &:hover
82
+            border-color orange
83
+            background-color orange
84
+          &:focus
85
+            border-color orange
86
+            background-color orange
87
+
88
+/***** CLASS MESSAGELISTSIZE *****/
89
+
90
+.messagelistOpen
91
+  .wsFileText__contentpage__messagelist
92
+    flex 0
93
+    min-height 0
94
+
95
+/*********************************/
96
+
97
+/***** SENDER RECEIVER *****/
98
+
99
+.received
100
+  .wsFileText__contentpage__messagelist__item__content
101
+      background-color orange
102
+
103
+/*****************************/
104
+
105
+/**** MEDIA QUERIES ****/
106
+
107
+@media (min-width: max-xs) and (max-width: max-lg)
108
+
109
+  .wsFileText
110
+    &__contentpage
111
+      display block
112
+      overflow-Y scroll
113
+      &__textnote
114
+        margin-right 10px
115
+        padding 10px 20px
116
+        width auto
117
+        overflow-Y hidden
118
+        &__latestversion
119
+          padding-top 10px
120
+      &__wrapper
121
+        width auto
122
+      &__texteditor
123
+        &__simpletext
124
+          display inline-flex
125
+          display ms-inline-flex
126
+          width 60%
127
+        &__submit
128
+          display inline-flex
129
+          display ms-inline-flex
130
+          margin 10px 0
131
+          &__btn
132
+            display flex
133
+            margin-left 35px
134
+            &__icon
135
+              margin-left 15px
136
+
137
+/**** MEDIA 992px & 1199px ****/
138
+
139
+@media (min-width: min-lg) and (max-width: max-lg)
140
+
141
+  .wsFileText
142
+    width 692px
143
+    &__contentpage__texteditor__simpletext
144
+      margin-left 15px
145
+
146
+/******************************/
147
+
148
+/**** MEDIA 768px & 991px ****/
149
+
150
+@media (min-width: min-md) and (max-width: max-md)
151
+
152
+  .wsFileText
153
+    width 768px
154
+    &__contentpage__texteditor__simpletext
155
+      margin-left 25px
156
+
157
+/******************************/
158
+
159
+/**** MEDIA 576px & 767px ****/
160
+
161
+@media (min-width: min-sm) and (max-width: max-sm)
162
+
163
+  .wsFileText
164
+      top 69px
165
+      width 576px
166
+      height calc(100% - 69px)
167
+      &__contentpage__texteditor__simpletext
168
+        margin-left 10px
169
+
170
+/******************************/
171
+
172
+/**** MEDIA 575px ****/
173
+
174
+@media (max-width: max-xs)
175
+
176
+  .wsFileText
177
+    top 70px
178
+    height calc(100% - 70px)
179
+    width 100%
180
+    box-shadow none
181
+    &__contentpage
182
+      display block
183
+      overflow-Y scroll
184
+      &__textnote
185
+        margin-right 10px
186
+        width auto
187
+        overflow-Y hidden
188
+        font-size 15px
189
+      &__wrapper
190
+        width auto
191
+      &__messagelist
192
+        &__item
193
+          padding 0 35px 20px 30px
194
+        &__version
195
+          &__btn
196
+            font-size 17px
197
+            vertical-align middle
198
+          &__dateversion
199
+            font-size 15px
200
+      &__texteditor
201
+        &__simpletext
202
+          margin 10px 0
203
+          display flex
204
+          width 95%
205
+          margin-left 10px
206
+        &__submit
207
+          &__btn
208
+            display flex
209
+            margin 0 auto
210
+            &__icon
211
+              margin-left 10px

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

@@ -0,0 +1,68 @@
1
+.timeline
2
+  &__messagelist
3
+    flex 1 1 0
4
+    margin-bottom 0
5
+    padding-left 0
6
+    border-bottom 1px solid grey
7
+    overflow-Y auto
8
+    list-style none
9
+    &__item
10
+      &__avatar
11
+        position relative
12
+        top 43px
13
+        left -25px
14
+        width 45px
15
+        height 45px
16
+      &__createhour
17
+        margin-left 30px
18
+        opacity 0.7
19
+        font-size 14px
20
+      &__content
21
+        border 1px solid grey
22
+        border-radius 5px
23
+        padding 15px
24
+        background-color off-white
25
+        font-size 15px
26
+        z-index -1
27
+    &__version
28
+      display flex
29
+      justify-content space-between
30
+      padding 10px 0
31
+      width 100%
32
+      &__date
33
+        margin auto 25px
34
+  &__texteditor
35
+    padding 2px
36
+    &__simpletext
37
+      display none
38
+      width 70%
39
+      margin-right 35px
40
+      &__icon
41
+        cursor pointer
42
+    &__wysiwyg
43
+      display block
44
+      & > textarea
45
+        width 100%
46
+        height 130px
47
+    &__submit
48
+      margin 10px 0
49
+      &__btn
50
+        display flex
51
+        cursor pointer
52
+        &__icon
53
+          margin-left 10px
54
+
55
+.sended
56
+  .timeline__messagelist__item__content
57
+    margin-right 25%
58
+
59
+.received
60
+  .timeline__messagelist__item
61
+    &__avatar
62
+      left 93%
63
+    &__createhour
64
+      text-align right
65
+      margin-right 50px
66
+    &__content
67
+      margin-left 25%
68
+      color white

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

@@ -18,3 +18,5 @@ html, body, #content, #content > div
18 18
 @import 'Folder'
19 19
 
20 20
 @import 'Thread'
21
+@import 'PageText'
22
+@import 'Timeline'