Browse Source

fixed style

Skylsmoi 7 years ago
parent
commit
230c56996d
4 changed files with 13 additions and 173 deletions
  1. 4 4
      src/component/PageHtml.jsx
  2. 1 1
      src/container/PageHtml.jsx
  3. 8 8
      src/css/index.styl
  4. 0 160
      src/css/pageHtml.styl

+ 4 - 4
src/component/PageHtml.jsx View File

@@ -3,11 +3,11 @@ import { TextAreaApp } from 'tracim_lib'
3 3
 
4 4
 const PageHtml = props => {
5 5
   return (
6
-    <div className='wsFilePageHtml__contentpage__textnote'>
7
-      <div className='wsFilePageHtml__contentpage__textnote__latestversion' dangerouslySetInnerHTML={{__html: props.version}} />
8
-      <div className='wsFilePageHtml__contentpage__textnote__text' dangerouslySetInnerHTML={{__html: props.text}} />
6
+    <div className='wsContentPageHtml__contentpage__textnote'>
7
+      <div className='wsContentPageHtml__contentpage__textnote__latestversion' dangerouslySetInnerHTML={{__html: props.version}} />
8
+      <div className='wsContentPageHtml__contentpage__textnote__text' dangerouslySetInnerHTML={{__html: props.text}} />
9 9
 
10
-      <TextAreaApp customClass={'wsFilePageHtml'} />
10
+      <TextAreaApp customClass={'wsContentPageHtml'} />
11 11
     </div>
12 12
   )
13 13
 }

+ 1 - 1
src/container/PageHtml.jsx View File

@@ -18,7 +18,7 @@ const debug = {
18 18
   },
19 19
   appConfig: {
20 20
     name: 'PageHtml',
21
-    customClass: 'wsFilePageHtml',
21
+    customClass: 'wsContentPageHtml',
22 22
     icon: 'fa fa-file-word-o',
23 23
     apiUrl: 'http://localhost:3001'
24 24
   },

+ 8 - 8
src/css/index.styl View File

@@ -1,6 +1,6 @@
1 1
 @import "../../node_modules/tracim_lib/src/css/Variable.styl"
2 2
 
3
-.wsFilePageHtml
3
+.wsContentPageHtml
4 4
   &__header
5 5
     background-color htmlColor
6 6
     &__editionmode
@@ -67,16 +67,16 @@
67 67
             background-color htmlColor
68 68
 
69 69
 .messagelistOpen
70
-  .wsFilePageHtml__contentpage__messagelist
70
+  .wsContentPageHtml__contentpage__messagelist
71 71
     flex 0
72 72
     min-height 0
73 73
 
74 74
 .received
75
-  .wsFilePageHtml__contentpage__messagelist__item__content
75
+  .wsContentPageHtml__contentpage__messagelist__item__content
76 76
     background-color htmlColor
77 77
 
78 78
 @media (min-width: max-xs) and (max-width: max-lg)
79
-  .wsFilePageHtml
79
+  .wsContentPageHtml
80 80
     &__contentpage
81 81
       display block
82 82
       overflow-Y scroll
@@ -103,19 +103,19 @@
103 103
               margin-left 15px
104 104
 
105 105
 @media (min-width: min-lg) and (max-width: max-lg)
106
-  .wsFilePageHtml
106
+  .wsContentPageHtml
107 107
     width 692px
108 108
     &__contentpage__texteditor__simpletext
109 109
       margin-left 15px
110 110
 
111 111
 @media (min-width: min-md) and (max-width: max-md)
112
-  .wsFilePageHtml
112
+  .wsContentPageHtml
113 113
     width 768px
114 114
     &__contentpage__texteditor__simpletext
115 115
       margin-left 25px
116 116
 
117 117
 @media (min-width: min-sm) and (max-width: max-sm)
118
-  .wsFilePageHtml
118
+  .wsContentPageHtml
119 119
     top 69px
120 120
     width 576px
121 121
     height calc(100% - 69px)
@@ -123,7 +123,7 @@
123 123
       margin-left 10px
124 124
 
125 125
 @media (max-width: max-xs)
126
-  .wsFilePageHtml
126
+  .wsContentPageHtml
127 127
     top 70px
128 128
     height calc(100% - 70px)
129 129
     width 100%

+ 0 - 160
src/css/pageHtml.styl View File

@@ -1,160 +0,0 @@
1
-
2
-.wsFilePageHtml
3
-  &__header
4
-    background-color htmlColor
5
-    &__editionmode
6
-      display none
7
-    &__icon
8
-      .fa-file-word-o
9
-        color white
10
-  &__contentpage
11
-    &__textnote
12
-      margin 10px
13
-      border-radius 10px
14
-      padding 25px
15
-      height 100%
16
-      background-color off-white
17
-      &__latestversion
18
-        text-align right
19
-        opacity 0.7
20
-      &__text
21
-        font-size 14px
22
-      &__edition
23
-        display none
24
-    &__messagelist
25
-      min-height 300px
26
-      &__item
27
-        &__content
28
-          color darkGrey
29
-      &__version
30
-        margin-top 40px
31
-        background-color grey-hover
32
-        &__btn
33
-          padding 5px 25px
34
-          border-radius 5px
35
-          width 145px
36
-          color white
37
-          font-size 17px
38
-          background-color htmlColor
39
-          & > i
40
-            margin-right 10px
41
-            color darkGrey
42
-            font-size 22px
43
-          &:hover
44
-            background-color darkHtmlColor
45
-          &:focus
46
-            background-color darkHtmlColor
47
-        &__date
48
-          color fontColor
49
-          font-size 17px
50
-    &__texteditor
51
-      &__simpletext
52
-        &__input
53
-          &:focus
54
-            color htmlColor
55
-            border-color htmlColor
56
-      &__submit
57
-        &__btn
58
-          border-color htmlColor
59
-          background-color htmlColor
60
-          color white
61
-          &:hover
62
-            border-color htmlColor
63
-            background-color htmlColor
64
-          &:focus
65
-            border-color htmlColor
66
-            background-color htmlColor
67
-
68
-.messagelistOpen
69
-  .wsFilePageHtml__contentpage__messagelist
70
-    flex 0
71
-    min-height 0
72
-
73
-.received
74
-  .wsFilePageHtml__contentpage__messagelist__item__content
75
-    background-color htmlColor
76
-
77
-@media (min-width: max-xs) and (max-width: max-lg)
78
-  .wsFilePageHtml
79
-    &__contentpage
80
-      display block
81
-      overflow-Y scroll
82
-      &__textnote
83
-        margin-right 10px
84
-        padding 10px 20px
85
-        width auto
86
-        overflow-Y hidden
87
-        &__latestversion
88
-          padding-top 10px
89
-      &__wrapper
90
-        width auto
91
-      &__texteditor
92
-        &__simpletext
93
-          display inline-flex
94
-          width 60%
95
-        &__submit
96
-          display inline-flex
97
-          margin 10px 0
98
-          &__btn
99
-            display flex
100
-            margin-left 35px
101
-            &__icon
102
-              margin-left 15px
103
-
104
-@media (min-width: min-lg) and (max-width: max-lg)
105
-  .wsFilePageHtml
106
-    width 692px
107
-    &__contentpage__texteditor__simpletext
108
-      margin-left 15px
109
-
110
-@media (min-width: min-md) and (max-width: max-md)
111
-  .wsFilePageHtml
112
-    width 768px
113
-    &__contentpage__texteditor__simpletext
114
-      margin-left 25px
115
-
116
-@media (min-width: min-sm) and (max-width: max-sm)
117
-  .wsFilePageHtml
118
-    top 69px
119
-    width 576px
120
-    height calc(100% - 69px)
121
-    &__contentpage__texteditor__simpletext
122
-      margin-left 10px
123
-
124
-@media (max-width: max-xs)
125
-  .wsFilePageHtml
126
-    top 70px
127
-    height calc(100% - 70px)
128
-    width 100%
129
-    box-shadow none
130
-    &__contentpage
131
-      display block
132
-      overflow-Y scroll
133
-      &__textnote
134
-        margin-right 10px
135
-        width auto
136
-        overflow-Y hidden
137
-        font-size 15px
138
-      &__wrapper
139
-        width auto
140
-      &__messagelist
141
-        &__item
142
-          padding 0 35px 20px 30px
143
-        &__version
144
-          &__btn
145
-            font-size 17px
146
-            vertical-align middle
147
-          &__dateversion
148
-            font-size 15px
149
-      &__texteditor
150
-        &__simpletext
151
-          margin 10px 0
152
-          display flex
153
-          width 95%
154
-          margin-left 10px
155
-        &__submit
156
-          &__btn
157
-            display flex
158
-            margin 0 auto
159
-            &__icon
160
-              margin-left 10px