Browse Source

html page's responsive

AlexiCauvin 7 years ago
parent
commit
c1d855e70f

+ 1 - 0
src/component/Input/TextAreaApp/TextAreaApp.styl View File

7
   display flex
7
   display flex
8
   flex-direction column
8
   flex-direction column
9
   align-items center
9
   align-items center
10
+  width auto
10
   &__text
11
   &__text
11
     margin-bottom 25px
12
     margin-bottom 25px
12
     width 100%
13
     width 100%

+ 33 - 6
src/component/PopinFixed/PopinFixed.styl View File

31
       color white
31
       color white
32
       font-size 20px
32
       font-size 20px
33
       cursor pointer
33
       cursor pointer
34
-      &:hover, &:focus
35
-        border 1px solid off-white
36
-        padding 0 10px
37
-        border-radius 5px
34
+      .fa-pencil
35
+        color off-white
38
     &__close
36
     &__close
39
       border 1px solid white
37
       border 1px solid white
40
       border-radius 5px
38
       border-radius 5px
56
     &__menu
54
     &__menu
57
       display flex
55
       display flex
58
       align-items center
56
       align-items center
57
+      &__addversion
58
+        display flex
59
+        align-items center
59
       &__action
60
       &__action
60
         margin 5px 10px 0 0
61
         margin 5px 10px 0 0
61
         font-size 18px
62
         font-size 18px
62
         cursor pointer
63
         cursor pointer
63
         &:hover , &:focus
64
         &:hover , &:focus
64
-          font-size 22px
65
           color blue
65
           color blue
66
   &__content
66
   &__content
67
     display flex
67
     display flex
68
-    flex-flow row
68
+    flex-wrap wrap
69
     // 209 = wsContentGeneric:top wsContentGeneric__header:height - wsContentGeneric__option:height
69
     // 209 = wsContentGeneric:top wsContentGeneric__header:height - wsContentGeneric__option:height
70
     height calc(100% - 209px)
70
     height calc(100% - 209px)
71
     &__left
71
     &__left
72
       width 55%
72
       width 55%
73
     &__right
73
     &__right
74
       width 45%
74
       width 45%
75
+
76
+@media (min-width: min-sm) and (max-width: max-lg)
77
+
78
+  .wsContentGeneric__content
79
+    overflow-Y auto
80
+    &__left
81
+      width 100%
82
+      margin-bottom 50px
83
+    &__right
84
+      width 100%
85
+
86
+@media (min-width: min-sm) and (max-width: max-sm)
87
+
88
+  .wsContentGeneric
89
+    top 70px
90
+
91
+@media (max-width: max-xs)
92
+
93
+  .wsContentGeneric
94
+    top 70px
95
+    &__content
96
+      overflow-Y auto
97
+      &__left
98
+        width 100%
99
+        margin-bottom 50px
100
+      &__right
101
+        width 100%

+ 4 - 4
src/component/PopinFixed/PopinFixedOption.jsx View File

11
   return (
11
   return (
12
     <div className={classnames('wsContentGeneric__option', `${props.customClass}__option`)}>
12
     <div className={classnames('wsContentGeneric__option', `${props.customClass}__option`)}>
13
       <div className={classnames('wsContentGeneric__option__menu', `${props.customClass}__option__menu`)}>
13
       <div className={classnames('wsContentGeneric__option__menu', `${props.customClass}__option__menu`)}>
14
-        <div className='wsContentGeneric__option__menu__addversion btn mr-auto'>
14
+        <div className='wsContentGeneric__option__menu__addversion btn btn-outline-primary mr-auto'>
15
           {props.t('PopinFixedOption.new_version')}
15
           {props.t('PopinFixedOption.new_version')}
16
-          <i className='fa fa-plus-circle' />
16
+          <i className='fa fa-plus-circle ml-3' />
17
         </div>
17
         </div>
18
 
18
 
19
         <SelectStatus />
19
         <SelectStatus />
20
 
20
 
21
-        <div className={classnames('wsContentGeneric__option__menu__action', `${props.customClass}__option__menu__action`)}>
21
+        <div className={classnames('wsContentGeneric__option__menu__action d-none d-sm-block', `${props.customClass}__option__menu__action`)}>
22
           <i className='fa fa-archive' />
22
           <i className='fa fa-archive' />
23
         </div>
23
         </div>
24
-        <div className={classnames('wsContentGeneric__option__menu__action', `${props.customClass}__option__menu__action`)}>
24
+        <div className={classnames('wsContentGeneric__option__menu__action d-none d-sm-block', `${props.customClass}__option__menu__action`)}>
25
           <i className='fa fa-trash' />
25
           <i className='fa fa-trash' />
26
         </div>
26
         </div>
27
       </div>
27
       </div>

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

72
 
72
 
73
       <form className={classnames(`${props.customClass}__texteditor`, 'timeline__texteditor')}>
73
       <form className={classnames(`${props.customClass}__texteditor`, 'timeline__texteditor')}>
74
         <div
74
         <div
75
-          className={classnames(`${props.customClass}__texteditor__simpletext`, 'timeline__texteditor__simpletext input-group')}>
75
+          className={classnames(`${props.customClass}__texteditor__simpletext`, 'timeline__texteditor__simpletext input-group d-inline-flex d-sm-inline-flex d-md-inline-flex d-lg-none')}>
76
           <input
76
           <input
77
             type='text'
77
             type='text'
78
             className={classnames(`${props.customClass}__texteditor__simpletext__input`, 'timeline__texteditor__simpletext__input form-control')}
78
             className={classnames(`${props.customClass}__texteditor__simpletext__input`, 'timeline__texteditor__simpletext__input form-control')}
83
             <i className='fa fa-font' />
83
             <i className='fa fa-font' />
84
           </div>
84
           </div>
85
         </div>
85
         </div>
86
-        <div className={classnames(`${props.customClass}__texteditor__wysiwyg`, 'timeline__texteditor__wysiwyg d-none d-xl-block')}>
86
+        <div className={classnames(`${props.customClass}__texteditor__wysiwyg`, 'timeline__texteditor__wysiwyg d-none d-lg-block')}>
87
           <textarea />
87
           <textarea />
88
         </div>
88
         </div>
89
-        <div className={classnames(`${props.customClass}__texteditor__submit`, 'timeline__texteditor__submit d-xl-flex justify-content-xl-center')}>
89
+        <div className={classnames(`${props.customClass}__texteditor__submit`, 'timeline__texteditor__submit d-inline-flex d-lg-flex justify-content-lg-center')}>
90
           <button
90
           <button
91
             type='submit'
91
             type='submit'
92
             className={classnames(`${props.customClass}__texteditor__submit__btn`, 'timeline__texteditor__submit__btn btn')}
92
             className={classnames(`${props.customClass}__texteditor__submit__btn`, 'timeline__texteditor__submit__btn btn')}

+ 6 - 20
src/component/Timeline/Timeline.styl View File

70
     &__simpletext
70
     &__simpletext
71
       display none
71
       display none
72
       width 70%
72
       width 70%
73
-      margin-right 35px
74
       &__icon
73
       &__icon
75
         cursor pointer
74
         cursor pointer
76
     &__wysiwyg
75
     &__wysiwyg
106
   .timeline__messagelist__item
105
   .timeline__messagelist__item
107
     margin-right 55px
106
     margin-right 55px
108
 
107
 
109
-  .received
110
-    .timeline__messagelist__item
111
-      &__avatar
112
-        left 96%
113
-
114
 /**** MEDIA 768px & 991px ****/
108
 /**** MEDIA 768px & 991px ****/
115
 
109
 
116
 @media (min-width: min-md) and (max-width: max-md)
110
 @media (min-width: min-md) and (max-width: max-md)
118
   .timeline__messagelist__item
112
   .timeline__messagelist__item
119
     margin-right 55px
113
     margin-right 55px
120
 
114
 
121
-  .received
122
-    .timeline__messagelist__item
123
-      &__avatar
124
-        left 96%
125
-
126
 /**** MEDIA 576px & 767px ****/
115
 /**** MEDIA 576px & 767px ****/
127
 
116
 
128
 @media (min-width: min-sm) and (max-width: max-sm)
117
 @media (min-width: min-sm) and (max-width: max-sm)
130
   .timeline__messagelist__item
119
   .timeline__messagelist__item
131
     margin-right 35px
120
     margin-right 35px
132
 
121
 
133
-  .received
134
-    .timeline__messagelist__item
135
-      &__avatar
136
-        left 94%
137
-
138
 /**** MEDIA 575px ****/
122
 /**** MEDIA 575px ****/
139
 
123
 
140
 @media (max-width: max-xs)
124
 @media (max-width: max-xs)
141
 
125
 
142
-  .received
143
-    .timeline__messagelist__item
144
-      &__avatar
145
-        left 90%
126
+  .timeline__texteditor
127
+    &__simpletext
128
+      margin-left 0
129
+      width 65%
130
+    &__submit
131
+      margin-left 10px