@dashadmin/dash-styles 1.3.17 → 1.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/assets/fonts/Montserrat-Black.ttf +0 -0
  2. package/dist/assets/fonts/Montserrat-Bold.ttf +0 -0
  3. package/dist/assets/fonts/Montserrat-Medium.ttf +0 -0
  4. package/dist/assets/fonts/Montserrat-Regular.ttf +0 -0
  5. package/dist/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  6. package/dist/dash-css-transformer.less +766 -0
  7. package/dist/dash-variables.less +10 -0
  8. package/dist/dash.less +38 -0
  9. package/dist/helpers/getAllCssVariablesFromStyleSheets.js +1 -0
  10. package/dist/index.tsx.suffixed +680 -0
  11. package/dist/styles/button.less +120 -0
  12. package/dist/styles/buttons.less +10 -0
  13. package/dist/styles/card.less +337 -0
  14. package/dist/styles/common.less +62 -0
  15. package/dist/styles/components/notfound.less +50 -0
  16. package/dist/styles/extra.less +25 -0
  17. package/dist/styles/filters.less +7 -0
  18. package/dist/styles/forms.less +41 -0
  19. package/dist/styles/framed.less +45 -0
  20. package/dist/styles/header.less +879 -0
  21. package/dist/styles/input.copy.less +223 -0
  22. package/dist/styles/input.less +223 -0
  23. package/dist/styles/layout.less +296 -0
  24. package/dist/styles/links.less +28 -0
  25. package/dist/styles/loader.less +20 -0
  26. package/dist/styles/login.less +331 -0
  27. package/dist/styles/modal.less +0 -0
  28. package/dist/styles/module.less +29 -0
  29. package/dist/styles/mui-overrides.less +62 -0
  30. package/dist/styles/notification.less +46 -0
  31. package/dist/styles/pages/profile.less +139 -0
  32. package/dist/styles/pagination.less +90 -0
  33. package/dist/styles/popover.less +21 -0
  34. package/dist/styles/react-admin/common.less +184 -0
  35. package/dist/styles/react-admin/toolbar.less +22 -0
  36. package/dist/styles/root.less +13 -0
  37. package/dist/styles/sidebar.less +705 -0
  38. package/dist/styles/splash.less +44 -0
  39. package/dist/styles/static.less +59 -0
  40. package/dist/styles/stats.less +5 -0
  41. package/dist/styles/svg.less +30 -0
  42. package/dist/styles/switch.less +7 -0
  43. package/dist/styles/table.less +196 -0
  44. package/dist/styles/tabs.less +173 -0
  45. package/dist/styles/tags.less +97 -0
  46. package/dist/styles/toast.less +83 -0
  47. package/dist/styles/toolbar.less +90 -0
  48. package/dist/styles/transition.less +226 -0
  49. package/dist/styles/uploader.less +38 -0
  50. package/dist/variables/breakpoints.less +35 -0
  51. package/dist/variables/colors.less +205 -0
  52. package/dist/variables/dash-colors.less +52 -0
  53. package/dist/variables/sizes.less +150 -0
  54. package/package.json +14 -3
@@ -0,0 +1,62 @@
1
+ .MuiTablePagination-displayedRows {
2
+ margin-right:15px;
3
+ }
4
+
5
+ /*
6
+ .MuiToolbar-root {
7
+ // Removes default ReactAdmin white background
8
+ background: inherit;
9
+ //justify-content: flex-start !important;
10
+
11
+ }
12
+ */
13
+
14
+ /*.RaBulkActionsToolbar-toolbar {
15
+ background: var(--header-bg);
16
+ }*/
17
+
18
+ .MuiTablePagination-toolbar {
19
+ background-color: transparent !important;
20
+ justify-content: center;
21
+ align-items: baseline;
22
+ }
23
+
24
+ .MuiFormLabel-root{
25
+ &.MuiInputLabel-shrink{
26
+ top: -2px !important;
27
+ }
28
+ }
29
+
30
+ .MuiStack-root-RaLabeled-root{
31
+ width: 100%;
32
+ margin-bottom: 1rem !important;
33
+ }
34
+
35
+ .MuiStack-root {
36
+ align-items: stretch;
37
+ }
38
+
39
+ // Fixed Mui Field Inputs
40
+ .MuiAutocomplete-root {
41
+ width: 100%;
42
+ }
43
+
44
+ .RaList-actions {
45
+ .MuiAutocomplete-input {
46
+ //width: 160px !important;
47
+ width:100% !important;
48
+
49
+ }
50
+
51
+ .MuiInputBase-root {
52
+ //width: 217px;
53
+ flex-wrap: inherit;
54
+ }
55
+ }
56
+
57
+
58
+ @media screen and (max-width: 576px) {
59
+ .MuiPaper-root {
60
+ overflow-x: none !important;
61
+ }
62
+ }
@@ -0,0 +1,46 @@
1
+ .dash-notification .MuiSnackbarContent-message {
2
+ padding: 20px;
3
+ }
4
+
5
+ .dash-media{
6
+ /*.dash-user-thumb{
7
+
8
+ }*/
9
+ &-body{
10
+ .table{
11
+ width: 100%;
12
+ border: 1px solid rgba(#000000, .12);
13
+ margin-top: 1rem;
14
+ border-collapse: collapse;
15
+ th, td{
16
+ padding: 5px 10px;
17
+ border: 1px solid rgba(#000000, .12);
18
+ }
19
+ th{
20
+ background-color: rgba(#000000, .12);
21
+ font-size: 12px;
22
+ }
23
+ td{
24
+ vertical-align: top;
25
+ min-width: 90px;
26
+ font-size: 11px;
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+
33
+ /*
34
+ .dash-notification .RaNotification-success {
35
+
36
+ }
37
+ .dash-notification .RaNotification-info {
38
+
39
+ }
40
+ .dash-notification .RaNotification-warning {
41
+
42
+ }
43
+ .dash-notification .RaNotification-error {
44
+
45
+ }
46
+ */
@@ -0,0 +1,139 @@
1
+ .dash-profile {
2
+ &-img{
3
+ display: flex;
4
+ margin: 0 auto 2rem;
5
+ width: 160px;
6
+ height: 160px;
7
+ border-radius: 50%;
8
+ justify-content: center;
9
+ align-items: center;
10
+ position: relative;
11
+ img{
12
+ width: 100%;
13
+ height: 100%;
14
+ position: relative;
15
+ object-fit: cover;
16
+ border-radius: 50%;
17
+ }
18
+ }
19
+ &-icon{
20
+ display: flex;
21
+ width: 100%;
22
+ height: 100%;
23
+ background-color: #FFB74D;
24
+ justify-content: center;
25
+ align-items: center;
26
+ position: relative;
27
+ border-radius: 50%;
28
+ }
29
+ &-edit{
30
+ display: flex;
31
+ width: 42px;
32
+ height: 42px;
33
+ border-radius: 50%;
34
+ background-color: var(--highlight-color) !important;
35
+ justify-content: center;
36
+ align-items: center;
37
+ position: absolute !important;
38
+ top: 0;
39
+ right: 10px;
40
+ box-shadow: 0 5px 6px rgba(#000000, .38);
41
+ }
42
+ }
43
+
44
+
45
+ // Moved to sidebar
46
+ /*
47
+ .dash-user{
48
+ &-avatar{
49
+ .MuiAvatar-root{
50
+ width: 65px;
51
+ height: 65px;
52
+ background-color: @primary-color;
53
+ }
54
+ }
55
+ &-menu{
56
+ .MuiList-root.MuiList-padding.MuiMenu-list{
57
+ padding: .5rem .75rem;
58
+ }
59
+ .MuiPaper-root.MuiMenu-paper.MuiPaper-elevation{
60
+ overflow: visible;
61
+ transform: translateY(10px) !important;
62
+ filter: drop-shadow(0px 6px 16px rgba(0, 0, 0, 0.08));
63
+ &::before{
64
+ content: "";
65
+ display: block;
66
+ width: 12px;
67
+ height: 12px;
68
+ background: var('--module-bg');
69
+ transform: rotate(-45deg);
70
+ position: absolute;
71
+ top: -6px;
72
+ left: 25px;
73
+ z-index: 99;
74
+ }
75
+ }
76
+ }
77
+ &-name{
78
+ display: block;
79
+ width: 100%;
80
+ padding: 6px 4px .5rem;
81
+ border-bottom: 1px solid #ddd;
82
+ font-style: normal;
83
+ font-weight: 900;
84
+ font-size: 14px;
85
+ line-height: 16px;
86
+ margin-bottom: .5rem;
87
+ }
88
+ &-item{
89
+ .MuiTypography-root{
90
+ font-family: 'Montserrat';
91
+ font-style: normal;
92
+ font-weight: 500;
93
+ font-size: 14px;
94
+ line-height: 22px;
95
+ color: @sidebar_submenu-color-primary;
96
+ }
97
+ }
98
+ &-icon{
99
+ display: inline-block;
100
+ width: 18px;
101
+ height: 18px;
102
+ margin: 0 10px 0 0;
103
+ min-width: auto;
104
+ color:inherit;
105
+ svg{
106
+ width: 18px;
107
+ height: 18px;
108
+ object-fit: contain;
109
+ color: inherit;
110
+ path{
111
+ fill: inherit;
112
+ }
113
+ }
114
+ }
115
+
116
+ @media (max-width: @mq-sm){
117
+
118
+
119
+ &-avatar{
120
+ .MuiAvatar-root{
121
+ width: 30px;
122
+ height: 30px;
123
+ }
124
+ }
125
+
126
+ &-menu{
127
+ .MuiPaper-root.MuiMenu-paper.MuiPaper-elevation{
128
+ &::before{
129
+ right: 10px;
130
+ left: auto;
131
+ }
132
+ }
133
+ }
134
+
135
+ }
136
+
137
+
138
+ }
139
+ */
@@ -0,0 +1,90 @@
1
+ .MuiTablePagination-actions {
2
+ margin-left: 1rem !important;
3
+ }
4
+ .MuiPaginationItem-root {
5
+ display: flex;
6
+ flex-direction: column;
7
+ justify-content: center;
8
+ align-items: center;
9
+ padding: 5px 6px;
10
+ width: 32px;
11
+ height: 32px;
12
+ background: var(--highlight-color);
13
+ border: 1px solid var(--module-bg);
14
+ border-radius: 2px;
15
+
16
+ font-style: normal;
17
+ font-weight: 400;
18
+ font-size: 14px;
19
+ line-height: 22px;
20
+ text-align: center;
21
+ color: #262626;
22
+
23
+ &.Mui-selected {
24
+ background: var(--highlight-color);
25
+ border: 1px solid var(--primary-color);
26
+ color: var(--primary-color);
27
+ }
28
+
29
+ &.MuiPaginationItem-previousNext {
30
+ background: var(--primary-color);
31
+ border: 1px solid var(--primary-color);
32
+ color: var(--highlight-color);
33
+ }
34
+
35
+ &.Mui-disabled {
36
+ background: #f5f5f5;
37
+ border: 1px solid var(--module-bg);
38
+ color: #bfbfbf;
39
+ }
40
+ }
41
+
42
+ .dash-pagination-component {
43
+ // background-color: #f5f5f5;
44
+ // z-index: 800;
45
+ // position: fixed;
46
+ bottom: 15px;
47
+ right: 20px;
48
+
49
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
50
+ border-radius: 8px;
51
+ .MuiTablePagination-select {
52
+ background-color: var(--primary-color);
53
+ color: var(--highlight-color);
54
+ font-weight: bold;
55
+ font-size: 10px;
56
+ }
57
+ }
58
+
59
+ .MuiPaginationItem-page {
60
+ display: inline-flex;
61
+ -webkit-box-align: center;
62
+ align-items: center;
63
+ -webkit-box-pack: center;
64
+ justify-content: center;
65
+ position: relative;
66
+ -webkit-tap-highlight-color: transparent;
67
+ background-color: transparent;
68
+ outline: 0px;
69
+ border: 0px;
70
+ cursor: pointer;
71
+ user-select: none;
72
+ vertical-align: middle;
73
+ appearance: none;
74
+ text-decoration: none;
75
+ font-family: Roboto, Helvetica, Arial, sans-serif;
76
+ font-weight: 400;
77
+ font-size: 0.875rem;
78
+ line-height: 1.43;
79
+ letter-spacing: 0.01071em;
80
+ border-radius: 13px;
81
+ text-align: center;
82
+ box-sizing: border-box;
83
+ min-width: 26px;
84
+ height: 26px;
85
+ padding: 0px 4px;
86
+ margin: 0px 1px;
87
+ color: rgb(35, 48, 68);
88
+ transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
89
+ }
90
+
@@ -0,0 +1,21 @@
1
+ .ant-popover{
2
+ &-title{
3
+ padding: 5px 16px;
4
+ font-family: 'Montserrat';
5
+ font-style: normal;
6
+ font-weight: 700;
7
+ font-size: 14px;
8
+ line-height: 22px;
9
+ color: var(--primary-color);
10
+ border-bottom: 1px solid #F0F0F0;
11
+ }
12
+ &-inner-content{
13
+ padding: 12px 16px;
14
+ font-family: 'Montserrat';
15
+ font-style: normal;
16
+ font-weight: 400;
17
+ font-size: 14px;
18
+ line-height: 22px;
19
+ color: #262626;
20
+ }
21
+ }
@@ -0,0 +1,184 @@
1
+ /*.RaList-content {
2
+ //overflow: scroll !important;
3
+ }*/
4
+ /*
5
+ .dash-app-module {
6
+ .RaList-actions > .MuiPaper-root {
7
+ background-color: inherit;
8
+ border-radius: inherit;
9
+ box-shadow: inherit;
10
+ }
11
+ .RaList-main > .MuiPaper-root {
12
+ background-color: inherit;
13
+ border-radius: inherit;
14
+ box-shadow: inherit;
15
+ }
16
+ }*/
17
+
18
+ .dash-module-box-content div:empty,
19
+ .edit-page div:empty,
20
+ .show-page div:empty,
21
+ .view-page div:empty,
22
+ .create-page div:empty
23
+ {
24
+ display: none;
25
+ }
26
+
27
+
28
+ .MuiStack-root {
29
+ align-items: stretch !important;
30
+ }
31
+
32
+ .top-toolbar {
33
+
34
+ .MuiToolbar-root {
35
+
36
+ //background-color: #F6F7FC;
37
+ //border-right: 1px solid #c8c8c8;
38
+ padding-bottom:0px;
39
+ padding-right: 10px;
40
+ //margin-right: 35px;
41
+
42
+ }
43
+
44
+ }
45
+
46
+ .RaCreate-main, .RaEdit-main {
47
+ > .MuiPaper-root {
48
+ background-color: inherit;
49
+ border-radius: inherit;
50
+ box-shadow: inherit;
51
+ }
52
+ /*form {
53
+ > .MuiToolbar-root {
54
+ margin-top: 15px;
55
+ }
56
+ }*/
57
+ }
58
+ /* Hack - for some reason RA adds an empty span immediately after */
59
+ .RaList-actions > span {
60
+ display: none;
61
+ }
62
+
63
+ .RaList-actions {
64
+ display: block !important;
65
+ //margin-bottom: 15px;
66
+ form {
67
+ min-height: auto;
68
+ }
69
+ }
70
+
71
+
72
+ .list-page .RaList-main {
73
+ width: 100%;
74
+ // To give paginator space
75
+ //padding-bottom: 80px;
76
+ //margin-bottom: 80px;
77
+ }
78
+
79
+ /* This is mented to show a horizontal scroll feature when not all elements of bulk actions fit */
80
+
81
+ /*.RaBulkActionsToolbar-topToolbar {
82
+ overflow-x: scroll;
83
+ }*/
84
+
85
+ /*.RaFilterForm-filterFormInput .MuiFormControl-root {
86
+ //min-width: 217px;
87
+ width: 100%;
88
+ }*/
89
+
90
+ .toolbar-filters {
91
+ width: 100%
92
+
93
+ }
94
+
95
+ .filter-field {
96
+ width: 25%;
97
+ }
98
+
99
+ @media (max-width: @mq-lg){
100
+ .filter-field {
101
+ width: 33%;
102
+ }
103
+ }
104
+
105
+
106
+ @media (max-width: @mq-md){
107
+ .filter-field {
108
+ width: 50%;
109
+ }
110
+ }
111
+
112
+ @media (max-width: @mq-sm){
113
+ .filter-field {
114
+ width: 100%;
115
+ }
116
+ }
117
+
118
+ /*
119
+ .MuiToolbar-root.RaBulkActionsToolbar-toolbar {
120
+ min-height: unset !important;
121
+ -webkit-transform: translateY(0px) !important;
122
+ -moz-transform: translateY(0px) !important;
123
+ -ms-transform: translateY(0x) !important;
124
+ transform: translateY(0px) !important;
125
+ position: relative !important;
126
+ width: 100%;
127
+ //overflow-x: scroll;
128
+ }
129
+ */
130
+
131
+ .MuiSelect-select .RaSelectArrayInput-chips {
132
+ display: contents !important;
133
+ }
134
+
135
+ .MuiSelect-select:hover .RaSelectArrayInput-chips {
136
+ //display: flex !important;
137
+ position: absolute;
138
+ background: white;
139
+ border-radius: 14px;
140
+ padding: 4px;
141
+ }
142
+
143
+ .RaDatagrid-tableWrapper table {
144
+ margin-top: auto !important;
145
+ }
146
+
147
+
148
+
149
+ .RaList-actions {
150
+ padding: 15px 5px;
151
+ background: var(--module-bg);
152
+ border-radius: 8px;
153
+ margin-bottom:3px;
154
+ }
155
+
156
+ .RaDatagrid-root {
157
+ [class*="RaBulkActionsToolbar-root"] {
158
+ position: inherit;
159
+ //background-color: var(--primary-contrast);
160
+ background-color: 'none';
161
+ }
162
+ }
163
+
164
+ /*.RaEdit-main {
165
+ padding: 5px 0px 0px 5px;
166
+ }
167
+ */
168
+
169
+ // This is to override RA's display flex that breaks our layouts
170
+ .RaEdit-main, .RaCreate-main {
171
+ display: block !important;
172
+ }
173
+
174
+ .RaSingleFieldList-root {
175
+ .RaSingleFieldList-link > * {
176
+ color: var(--text-color);
177
+ }
178
+ }
179
+
180
+ .RaReferenceField-root {
181
+ .RaReferenceField-link > * {
182
+ color: var(--text-color);
183
+ }
184
+ }
@@ -0,0 +1,22 @@
1
+ /*.RaList-main > .MuiToolbar-root {
2
+ margin-bottom: 15px;
3
+ }*/
4
+
5
+ /*
6
+ .edit-page,
7
+ .create-page {
8
+ margin-bottom: 60px; // The height of the bottom toolbar
9
+ }
10
+ */
11
+
12
+ /*
13
+ .RaToolbar-mobileToolbar {
14
+ background: none !important;
15
+
16
+ }
17
+
18
+ .RaToolbar-desktopToolbar {
19
+ background: none !important;
20
+
21
+ }
22
+ */
@@ -0,0 +1,13 @@
1
+ /*:root {
2
+ color-scheme: only light;
3
+ }*/
4
+
5
+ #root {
6
+ margin:0;
7
+ padding: 0;
8
+ }
9
+ html,body {
10
+ margin: 0;
11
+ padding: 0;
12
+
13
+ }