Browse Source

change the customClass in htmlDocument in component folder, Css fix on the buttons and wysiwyg

AlexiCauvin 6 years ago
parent
commit
dafaa18768
2 changed files with 26 additions and 20 deletions
  1. 2 2
      src/component/HtmlDocument.jsx
  2. 24 18
      src/css/index.styl

+ 2 - 2
src/component/HtmlDocument.jsx View File

@@ -4,7 +4,7 @@ import { MODE } from '../helper.js'
4 4
 
5 5
 const HtmlDocument = props => {
6 6
   return (
7
-    <div className='wsContentHtmlDocument__contentpage__textnote'>
7
+    <div className='wsContentHtmlDocument__contentpage__textnote html-documents__contentpage__textnote'>
8 8
       {props.mode === MODE.VIEW &&
9 9
         <div>
10 10
           <div className='html-documents__contentpage__textnote__latestversion' dangerouslySetInnerHTML={{__html: props.version}} />
@@ -14,7 +14,7 @@ const HtmlDocument = props => {
14 14
 
15 15
       {props.mode === MODE.EDIT &&
16 16
         <TextAreaApp
17
-          customClass={'wsContentHtmlDocument'}
17
+          customClass={'html-documents__editionmode'}
18 18
           onClickCancelBtn={props.onClickCloseEditMode}
19 19
           onClickValidateBtn={props.onClickValidateBtn}
20 20
           text={props.text}

+ 24 - 18
src/css/index.styl View File

@@ -5,6 +5,10 @@ btncolor()
5 5
   box-shadow 0 0 1px 2px htmlColor
6 6
   color off-white
7 7
 
8
+btnState()
9
+  background-color darkHtmlColor
10
+  color off-white
11
+
8 12
 .html-documents
9 13
   width 1155px
10 14
   &__header
@@ -18,7 +22,9 @@ btncolor()
18 22
     border-color htmlColor
19 23
     color fontColor
20 24
     &:hover, &:focus, &:visited, &:active
21
-      btncolor()
25
+      btnState()
26
+      border-color darkHtmlColor
27
+      box-shadow none
22 28
   .optionicon
23 29
     &:hover, &:focus, &:active
24 30
       color htmlColor
@@ -27,16 +33,19 @@ btncolor()
27 33
       &:hover, &:focus, &:active, &visited, &:focus-within
28 34
         background-color htmlColor
29 35
         color off-white
30
-  &__cancel
31
-    border-color htmlColor
32
-    &:hover, &:focus, &:active, &:visited, &focus-within
36
+  &__editionmode
37
+    &__cancel
33 38
       border-color htmlColor
34
-      btncolor()
35
-  &__submit
36
-    border-color htmlColor
37
-    &:hover, &:focus, &:active, &:visited, &focus-within
39
+      color htmlColor
40
+      &:hover, &:focus, &:active, &:visited, &focus-within
41
+        border-color htmlColor
42
+        btncolor()
43
+    &__submit
38 44
       border-color htmlColor
39
-      btncolor()
45
+      color htmlColor
46
+      &:hover, &:focus, &:active, &:visited, &focus-within
47
+        border-color htmlColor
48
+        btncolor()
40 49
   &__contentpage
41 50
     &__textnote
42 51
       margin 10px
@@ -70,10 +79,8 @@ btncolor()
70 79
             margin-right 10px
71 80
             color darkGrey
72 81
             font-size 22px
73
-          &:hover
74
-            background-color darkHtmlColor
75
-          &:focus
76
-            background-color darkHtmlColor
82
+          &:hover, &:focus
83
+            btnState()
77 84
         &__date
78 85
           color fontColor
79 86
           font-size 17px
@@ -83,16 +90,15 @@ btncolor()
83 90
           color fontColor
84 91
           border-color htmlColor
85 92
           &:hover ,&:focus, &:visited, &:active
86
-            border-color htmlColor
87
-            btncolor()
93
+            btnState()
94
+            border-color darkHtmlColor
95
+            box-shadow none
88 96
       &__submit
89 97
         &__btn
90
-          border-color htmlColor
91 98
           background-color htmlColor
92 99
           color white
93 100
           &:hover, &:focus, &:visited, &:active
94
-            border-color htmlColor
95
-            background-color htmlColor
101
+            background-color darkHtmlColor
96 102
 
97 103
 .messagelistOpen
98 104
   .page__contentpage__messagelist