Browse Source

html page's responsive

AlexiCauvin 6 years ago
parent
commit
c1d855e70f

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

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

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

@@ -31,10 +31,8 @@
31 31
       color white
32 32
       font-size 20px
33 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 36
     &__close
39 37
       border 1px solid white
40 38
       border-radius 5px
@@ -56,19 +54,48 @@
56 54
     &__menu
57 55
       display flex
58 56
       align-items center
57
+      &__addversion
58
+        display flex
59
+        align-items center
59 60
       &__action
60 61
         margin 5px 10px 0 0
61 62
         font-size 18px
62 63
         cursor pointer
63 64
         &:hover , &:focus
64
-          font-size 22px
65 65
           color blue
66 66
   &__content
67 67
     display flex
68
-    flex-flow row
68
+    flex-wrap wrap
69 69
     // 209 = wsContentGeneric:top wsContentGeneric__header:height - wsContentGeneric__option:height
70 70
     height calc(100% - 209px)
71 71
     &__left
72 72
       width 55%
73 73
     &__right
74 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,17 +11,17 @@ const PopinFixedOption = props => {
11 11
   return (
12 12
     <div className={classnames('wsContentGeneric__option', `${props.customClass}__option`)}>
13 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 15
           {props.t('PopinFixedOption.new_version')}
16
-          <i className='fa fa-plus-circle' />
16
+          <i className='fa fa-plus-circle ml-3' />
17 17
         </div>
18 18
 
19 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 22
           <i className='fa fa-archive' />
23 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 25
           <i className='fa fa-trash' />
26 26
         </div>
27 27
       </div>

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

@@ -72,7 +72,7 @@ const Timeline = props => {
72 72
 
73 73
       <form className={classnames(`${props.customClass}__texteditor`, 'timeline__texteditor')}>
74 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 76
           <input
77 77
             type='text'
78 78
             className={classnames(`${props.customClass}__texteditor__simpletext__input`, 'timeline__texteditor__simpletext__input form-control')}
@@ -83,10 +83,10 @@ const Timeline = props => {
83 83
             <i className='fa fa-font' />
84 84
           </div>
85 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 87
           <textarea />
88 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 90
           <button
91 91
             type='submit'
92 92
             className={classnames(`${props.customClass}__texteditor__submit__btn`, 'timeline__texteditor__submit__btn btn')}

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

@@ -70,7 +70,6 @@
70 70
     &__simpletext
71 71
       display none
72 72
       width 70%
73
-      margin-right 35px
74 73
       &__icon
75 74
         cursor pointer
76 75
     &__wysiwyg
@@ -106,11 +105,6 @@
106 105
   .timeline__messagelist__item
107 106
     margin-right 55px
108 107
 
109
-  .received
110
-    .timeline__messagelist__item
111
-      &__avatar
112
-        left 96%
113
-
114 108
 /**** MEDIA 768px & 991px ****/
115 109
 
116 110
 @media (min-width: min-md) and (max-width: max-md)
@@ -118,11 +112,6 @@
118 112
   .timeline__messagelist__item
119 113
     margin-right 55px
120 114
 
121
-  .received
122
-    .timeline__messagelist__item
123
-      &__avatar
124
-        left 96%
125
-
126 115
 /**** MEDIA 576px & 767px ****/
127 116
 
128 117
 @media (min-width: min-sm) and (max-width: max-sm)
@@ -130,16 +119,13 @@
130 119
   .timeline__messagelist__item
131 120
     margin-right 35px
132 121
 
133
-  .received
134
-    .timeline__messagelist__item
135
-      &__avatar
136
-        left 94%
137
-
138 122
 /**** MEDIA 575px ****/
139 123
 
140 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