Browse Source

beginning of theming

AlexiCauvin 6 years ago
parent
commit
3a5f39ff9a

+ 18 - 9
src/css/AccountPage.styl View File

42
   width 30px
42
   width 30px
43
 
43
 
44
 .account
44
 .account
45
+  .btn-outline-primary
46
+    color thirdColor
47
+    border-color thirdColor
48
+    &:hover, &:focus, &:active
49
+      color off-white
50
+      border-color thirdColor
51
+      background-color thirdColor
52
+      box-shadow 0 0 1px 2px fifthColor
53
+      outline fifthColor
45
   &__userinformation
54
   &__userinformation
46
     display flex
55
     display flex
47
     justify-content center
56
     justify-content center
60
     &__name
69
     &__name
61
       font-size 22px
70
       font-size 22px
62
     &__email
71
     &__email
63
-      color blue
72
+      color thirdColor
64
     &__company
73
     &__company
65
       font-size 20px
74
       font-size 20px
66
-      color blue
75
+      color thirdColor
67
   &__delimiter
76
   &__delimiter
68
     position relative
77
     position relative
69
     top 3px
78
     top 3px
104
           &:hover
113
           &:hover
105
             background-color lightGrey
114
             background-color lightGrey
106
           &.active
115
           &.active
107
-            background-color blue
116
+            background-color thirdColor
108
             color white
117
             color white
109
     &__setting
118
     &__setting
110
       border-radius 10px
119
       border-radius 10px
123
           &__txtinput
132
           &__txtinput
124
             display block
133
             display block
125
             width auto
134
             width auto
126
-            border 1px solid blue
135
+            border 1px solid thirdColor
127
             border-radius 5px
136
             border-radius 5px
128
           &__button
137
           &__button
129
             vertical-align top
138
             vertical-align top
130
-            border 1px solid blue
139
+            border 1px solid thirdColor
131
             border-radius 5px
140
             border-radius 5px
132
             padding 8px 25px
141
             padding 8px 25px
133
             cursor pointer
142
             cursor pointer
145
         &__timezone
154
         &__timezone
146
           margin 15px 0 30px 0
155
           margin 15px 0 30px 0
147
           &__btn
156
           &__btn
148
-            border 1px solid blue
157
+            border 1px solid thirdColor
149
             border-radius 5px
158
             border-radius 5px
150
             padding 10px 35px
159
             padding 10px 35px
151
-            color blue
160
+            color thirdColor
152
             background-color transparent
161
             background-color transparent
153
             &::after
162
             &::after
154
               margin-left 10px
163
               margin-left 10px
155
             &:hover, &:focus
164
             &:hover, &:focus
156
-              background-color blue
165
+              background-color thirdColor
157
               color white
166
               color white
158
           &__submenu
167
           &__submenu
159
             max-height 265px
168
             max-height 265px
160
             overflow-Y auto
169
             overflow-Y auto
161
             &__item
170
             &__item
162
               &:hover, &:focus
171
               &:hover, &:focus
163
-                background-color blue
172
+                background-color thirdColor
164
                 color white
173
                 color white
165
       .notification
174
       .notification
166
         &__text
175
         &__text

+ 30 - 11
src/css/Dashboard.styl View File

4
 
4
 
5
 btnNotification()
5
 btnNotification()
6
   margin 20px 0
6
   margin 20px 0
7
-  border 1px solid blue
7
+  border 1px solid thirdColor
8
   padding 10px 15px
8
   padding 10px 15px
9
 
9
 
10
 hoverfocus()
10
 hoverfocus()
11
-  background-color blue
11
+  background-color thirdColor
12
   color white
12
   color white
13
 
13
 
14
 bgandcolor()
14
 bgandcolor()
15
   background-color transparent
15
   background-color transparent
16
-  color blue
16
+  color thirdColor
17
 
17
 
18
 label()
18
 label()
19
   font-weight 500
19
   font-weight 500
20
   font-size 18px
20
   font-size 18px
21
-  color blue
21
+  color thirdColor
22
 
22
 
23
 coloricon()
23
 coloricon()
24
   .fa-gavel
24
   .fa-gavel
32
 
32
 
33
 .dashboard
33
 .dashboard
34
   margin-left 20px
34
   margin-left 20px
35
+  .btn-primary
36
+    background-color thirdColor
37
+    color off-white
38
+    border-color secondColor
39
+    &:hover, &:focus, &:active
40
+      color off-white
41
+      border-color secondColor
42
+      background-color secondColor
43
+      box-shadow 0 0 1px 2px fifthColor
44
+      outline fifthColor
45
+  .btn-outline-primary
46
+    color thirdColor
47
+    border-color thirdColor
48
+    &:hover, &:focus, &:active
49
+      color off-white
50
+      border-color thirdColor
51
+      background-color thirdColor
52
+      box-shadow 0 0 1px 2px fifthColor
53
+      outline fifthColor
35
   &__header
54
   &__header
36
     flexwrap()
55
     flexwrap()
37
     align-items center
56
     align-items center
51
       margin-bottom 20px
70
       margin-bottom 20px
52
       font-size 40px
71
       font-size 40px
53
       font-weight 500
72
       font-weight 500
54
-      color darkBlue
73
+      color darkthirdColor
55
     &__detail
74
     &__detail
56
       margin-bottom 20px
75
       margin-bottom 20px
57
       font-size 18px
76
       font-size 18px
132
       padding 15px
151
       padding 15px
133
       cursor pointer
152
       cursor pointer
134
       &:hover
153
       &:hover
135
-        background-color folder-hover
154
+        background-color fourthColor
136
       &:nth-child(even)
155
       &:nth-child(even)
137
         background-color grey-hover
156
         background-color grey-hover
138
         &:hover
157
         &:hover
139
-          background-color folder-hover
158
+          background-color fourthColor
140
       &__icon
159
       &__icon
141
         margin 0 25px
160
         margin 0 25px
142
         font-size 25px
161
         font-size 25px
172
         border-bottom 1px solid grey
191
         border-bottom 1px solid grey
173
         padding 10px 15px
192
         padding 10px 15px
174
         &:hover
193
         &:hover
175
-          background-color folder-hover
194
+          background-color fourthColor
176
         &:nth-last-child(1)
195
         &:nth-last-child(1)
177
           border-bottom 0
196
           border-bottom 0
178
         &:nth-child(even)
197
         &:nth-child(even)
179
           background-color grey-hover
198
           background-color grey-hover
180
           &:hover
199
           &:hover
181
-            background-color folder-hover
200
+            background-color fourthColor
182
         &__avatar
201
         &__avatar
183
           margin-right 20px
202
           margin-right 20px
184
           & > img
203
           & > img
191
             font-size 18px
210
             font-size 18px
192
         &__delete
211
         &__delete
193
           font-size 20px
212
           font-size 20px
194
-          color blue
213
+          color thirdColor
195
           cursor pointer
214
           cursor pointer
196
     &__btnadd
215
     &__btnadd
197
       border-top 1px solid grey
216
       border-top 1px solid grey
214
             font-size 25px
233
             font-size 25px
215
         &__text
234
         &__text
216
           font-size 18px
235
           font-size 18px
217
-          color blue
236
+          color thirdColor
218
           cursor pointer
237
           cursor pointer
219
     &__form
238
     &__form
220
       padding 15px
239
       padding 15px

+ 9 - 0
src/css/ExtandedAction.styl View File

1
 .extandedaction
1
 .extandedaction
2
+  .btn-outline-primary
3
+    color thirdColor
4
+    border-color thirdColor
5
+    &:hover, &:focus, &:active
6
+      color off-white
7
+      border-color thirdColor
8
+      background-color thirdColor
9
+      box-shadow 0 0 1px 2px fifthColor
10
+      outline fifthColor
2
   &__subdropdown
11
   &__subdropdown
3
     margin 0
12
     margin 0
4
     padding 0
13
     padding 0

+ 1 - 19
src/css/FileItem.styl View File

1
-iconrules()
2
-  display inline-block
3
-  margin-right 10px
4
-  font-size 20px
5
-
6
 .currentColor
1
 .currentColor
7
   color currentColor
2
   color currentColor
8
 
3
 
21
   border-bottom 0
16
   border-bottom 0
22
   cursor pointer
17
   cursor pointer
23
   &:hover
18
   &:hover
24
-    background-color files-hover
19
+    background-color fourthColor
25
   &__type
20
   &__type
26
     font-size 30px
21
     font-size 30px
27
     text-align center
22
     text-align center
32
     &__text
27
     &__text
33
       margin-right 10px
28
       margin-right 10px
34
       font-size 17px
29
       font-size 17px
35
-    &__icons
36
-      &__download
37
-        iconrules()
38
-        &:hover, &:focus
39
-          color blue
40
-      &__archive
41
-        iconrules()
42
-        &:hover, &:focus
43
-          color blue
44
-      &__delete
45
-        iconrules()
46
-        &:hover, &:focus
47
-          color blue
48
   &__status
30
   &__status
49
     &__text
31
     &__text
50
       font-size 20px
32
       font-size 20px

+ 17 - 6
src/css/Folder.styl View File

1
 // -----------------------------------------------------
1
 // -----------------------------------------------------
2
 // border management for Workspace container
2
 // border management for Workspace container
3
-border-style = 1px solid darkBlue
3
+border-style = 1px solid secondColor
4
 .folder__header
4
 .folder__header
5
   border border-style
5
   border border-style
6
 .folder + .file, .file + .file
6
 .folder + .file, .file + .file
16
 // @Info: the very last line of file or folder has it's border bottom added in js
16
 // @Info: the very last line of file or folder has it's border bottom added in js
17
 // -----------------------------------------------------
17
 // -----------------------------------------------------
18
 
18
 
19
+.folder.active > .folder__content > .file, .folder.active > .folder__content > .extandedaction
20
+  padding-right 7px
21
+
19
 folderclose()
22
 folderclose()
20
   height 0
23
   height 0
21
   visibility hidden
24
   visibility hidden
55
     background-color lightGrey
58
     background-color lightGrey
56
     cursor pointer
59
     cursor pointer
57
     &:hover
60
     &:hover
58
-      background-color folder-hover
61
+      background-color fourthColor
59
       .folder__header__triangleborder__triangle
62
       .folder__header__triangleborder__triangle
60
-        border-color folder-hover transparent transparent transparent
63
+        border-color fourthColor transparent transparent transparent
61
     &__triangleborder
64
     &__triangleborder
62
       display none
65
       display none
63
       position absolute
66
       position absolute
65
       left -1px
68
       left -1px
66
       border-style solid
69
       border-style solid
67
       border-width 25px 30px 0 30px
70
       border-width 25px 30px 0 30px
68
-      border-color darkBlue transparent transparent transparent
71
+      border-color secondColor transparent transparent transparent
69
       z-index 1
72
       z-index 1
70
       &__triangle
73
       &__triangle
71
         display none
74
         display none
79
       display flex
82
       display flex
80
       &__icon
83
       &__icon
81
         font-size 25px
84
         font-size 25px
82
-        color darkBlue
85
+        color darkGrey
83
         text-align center
86
         text-align center
84
       &__text
87
       &__text
85
         margin 0 15px 0 0
88
         margin 0 15px 0 0
88
         overflow hidden
91
         overflow hidden
89
         width 400px
92
         width 400px
90
         font-size 17px
93
         font-size 17px
91
-        color darkBlue
94
+        color darkGrey
92
       &__button
95
       &__button
93
         &__advancedbtn
96
         &__advancedbtn
94
           position relative
97
           position relative
100
           .addbtn
103
           .addbtn
101
             &__text
104
             &__text
102
               font-size 17px
105
               font-size 17px
106
+              color thirdColor
107
+              border-color thirdColor
108
+              &:hover, &:focus, &:active
109
+                color off-white
110
+                border-color thirdColor
111
+                background-color thirdColor
112
+                box-shadow 0 0 1px 2px fifthColor
113
+                outline fifthColor
103
               &::after
114
               &::after
104
                 margin-left 20px
115
                 margin-left 20px
105
             &__subdropdown
116
             &__subdropdown

+ 33 - 4
src/css/Generic.styl View File

3
   &__content
3
   &__content
4
     height 100%
4
     height 100%
5
 
5
 
6
+.btn-outline-primary
7
+  &:hover, &:focus, &:active, &:visited
8
+    color off-white
9
+    border-color thirdColor
10
+    background-color thirdColor
11
+    box-shadow 0 0 1px 2px fifthColor
12
+    outline fifthColor
13
+
14
+.btn-outline-primary.dropdown-toggle
15
+  &:hover, &:focus, &:active, &:visited
16
+    color off-white
17
+    border-color thirdColor
18
+    background-color thirdColor
19
+    box-shadow 0 0 1px 2px fifthColor
20
+    outline fifthColor
21
+
22
+.btn-primary
23
+  &:hover, &:focus, &:active, &:visited
24
+    color off-white
25
+    border-color secondColor
26
+    background-color secondColor
27
+    box-shadow 0 0 1px 2px fifthColor
28
+    outline fifthColor
29
+
30
+.dropdown-item
31
+  &:hover, &:focus, &:active, &:visited
32
+    background-color fourthColor
33
+    color off-white
34
+
6
 .sidebarpagecontainer
35
 .sidebarpagecontainer
7
   display flex
36
   display flex
8
   padding-top 88px
37
   padding-top 88px
112
 .subTitle
141
 .subTitle
113
   font-size 20px
142
   font-size 20px
114
   font-weight 500
143
   font-weight 500
115
-  color blue
144
+  color thirdColor
116
 
145
 
117
 .btnaction
146
 .btnaction
118
   display flex
147
   display flex
131
   &__btn
160
   &__btn
132
     display flex
161
     display flex
133
     margin-bottom 30px
162
     margin-bottom 30px
134
-    border 1px solid blue
163
+    border 1px solid thirdColor
135
     border-radius 10px
164
     border-radius 10px
136
     padding 15px 25px
165
     padding 15px 25px
137
-    color blue
166
+    color thirdColor
138
     cursor pointer
167
     cursor pointer
139
     &:hover, &:focus
168
     &:hover, &:focus
140
-      background-color blue
169
+      background-color thirdColor
141
       color white
170
       color white
142
     &__icon
171
     &__icon
143
       margin-right 20px
172
       margin-right 20px

+ 0 - 1
src/css/Header.styl View File

2
   position fixed
2
   position fixed
3
   width 100%
3
   width 100%
4
   box-shadow shadow-bottom
4
   box-shadow shadow-bottom
5
-  background mainColor
6
   z-index 5
5
   z-index 5
7
   &__logo
6
   &__logo
8
     &__img
7
     &__img

+ 7 - 7
src/css/Sidebar.styl View File

50
     border-bottom-right-radius 15px
50
     border-bottom-right-radius 15px
51
     padding 8px 15px
51
     padding 8px 15px
52
     cursor pointer
52
     cursor pointer
53
-    background-color blue
53
+    background-color thirdColor
54
     color white
54
     color white
55
     transition all sidebar-animate-speed
55
     transition all sidebar-animate-speed
56
   &__btnnewworkspace
56
   &__btnnewworkspace
70
         &__wrapper
70
         &__wrapper
71
           display flex
71
           display flex
72
           align-items center
72
           align-items center
73
-          border-bottom 1px solid darkBlue
73
+          border-bottom 1px solid secondColor
74
           width 100%
74
           width 100%
75
           height 100%
75
           height 100%
76
-          background-color blue
76
+          background-color thirdColor
77
           cursor pointer
77
           cursor pointer
78
           &:hover
78
           &:hover
79
-            background-color darkenBlue
79
+            background-color fifthColor
80
         &__number
80
         &__number
81
           leftside()
81
           leftside()
82
           padding 12px
82
           padding 12px
103
           &__dropdown
103
           &__dropdown
104
             display flex
104
             display flex
105
             align-items center
105
             align-items center
106
-            border-top 1px solid darkBlue
106
+            border-top 1px solid secondColor
107
             cursor pointer
107
             cursor pointer
108
             &:nth-last-child(1)
108
             &:nth-last-child(1)
109
-              border-bottom 1px solid darkBlue
109
+              border-bottom 1px solid secondColor
110
             &:hover
110
             &:hover
111
-              background-color lightBlue
111
+              background-color thirdColor
112
             &__showdropdown
112
             &__showdropdown
113
               display flex
113
               display flex
114
               justify-content space-between
114
               justify-content space-between

+ 4 - 3
src/css/Variable.styl View File

4
 /*** COULEURS ****/
4
 /*** COULEURS ****/
5
 
5
 
6
 mainColor = #fdfdfd // Bg header
6
 mainColor = #fdfdfd // Bg header
7
-secondColor = #215e8e // bg sidebar
8
-thirdColor = #2571fe // bg workspace name
9
-fourthColor = #82b2cc // bg filter sidebar
7
+secondColor = #7d4e24 // #7d4e24 bg sidebar
8
+thirdColor = lighten(secondColor, 25%) // #2571fe bg workspace name
9
+fourthColor = lighten(secondColor, 55%) // #82b2cc bg filter sidebar
10
+fifthColor = lighten(secondColor, 10%)
10
 
11
 
11
 fontColor = #252525
12
 fontColor = #252525
12
 
13
 

+ 1 - 1
src/css/btnSwtich.styl View File

39
   background-color blue
39
   background-color blue
40
 
40
 
41
 input:focus + .slider
41
 input:focus + .slider
42
-  box-shadow 0 0 1px blue
42
+  box-shadow 0 0 1px thirdColor
43
 
43
 
44
 input:checked + .slider:before
44
 input:checked + .slider:before
45
   -webkit-transform translateX(26px)
45
   -webkit-transform translateX(26px)