vbax-admin_syst 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vbax/admin_syst/engine.rb +14 -0
  3. data/lib/vbax/admin_syst/version.rb +1 -1
  4. data/lib/vbax/sass/admin_syst.scss +26 -0
  5. data/lib/vbax/sass/base/_forms.scss +107 -0
  6. data/lib/vbax/sass/base/_layout.scss +20 -0
  7. data/lib/vbax/sass/base/_lists.scss +19 -0
  8. data/lib/vbax/sass/base/_newcolor.scss +1 -0
  9. data/lib/vbax/sass/base/_tables.scss +55 -0
  10. data/lib/vbax/sass/base/_typography.scss +45 -0
  11. data/lib/vbax/sass/components/_app-container.scss +12 -0
  12. data/lib/vbax/sass/components/_attributes.scss +26 -0
  13. data/lib/vbax/sass/components/_buttons.scss +51 -0
  14. data/lib/vbax/sass/components/_cells.scss +45 -0
  15. data/lib/vbax/sass/components/_field-unit.scss +36 -0
  16. data/lib/vbax/sass/components/_flashes.scss +0 -0
  17. data/lib/vbax/sass/components/_form-actions.scss +3 -0
  18. data/lib/vbax/sass/components/_main-content.scss +29 -0
  19. data/lib/vbax/sass/components/_navigation.scss +34 -0
  20. data/lib/vbax/sass/components/_pagination.scss +18 -0
  21. data/lib/vbax/sass/components/_search.scss +46 -0
  22. data/lib/vbax/sass/custom/_AdministrateactiveStorage.scss +79 -0
  23. data/lib/vbax/sass/custom/components/_app-container.scss +0 -0
  24. data/lib/vbax/sass/custom/components/_attributes.scss +0 -0
  25. data/lib/vbax/sass/custom/components/_buttons.scss +0 -0
  26. data/lib/vbax/sass/custom/components/_cells.scss +0 -0
  27. data/lib/vbax/sass/custom/components/_field-unit.scss +0 -0
  28. data/lib/vbax/sass/custom/components/_flashes.scss +0 -0
  29. data/lib/vbax/sass/custom/components/_form-actions.scss +56 -0
  30. data/lib/vbax/sass/custom/components/_index.scss +12 -0
  31. data/lib/vbax/sass/custom/components/_main-content.scss +0 -0
  32. data/lib/vbax/sass/custom/components/_navigation.scss +0 -0
  33. data/lib/vbax/sass/custom/components/_pagination.scss +0 -0
  34. data/lib/vbax/sass/custom/components/_progress.scss +5 -0
  35. data/lib/vbax/sass/custom/components/_search.scss +0 -0
  36. data/lib/vbax/sass/custom/index.scss +3 -0
  37. data/lib/vbax/sass/custom/quotation/_button.scss +88 -0
  38. data/lib/vbax/sass/custom/quotation/_index.scss +12 -0
  39. data/lib/vbax/sass/custom/quotation/_navbar.scss +70 -0
  40. data/lib/vbax/sass/custom/quotation/_quotation.scss +115 -0
  41. data/lib/vbax/sass/custom/quotation/_shortCode.scss +7 -0
  42. data/lib/vbax/sass/custom/quotation/_tabs.scss +43 -0
  43. data/lib/vbax/sass/library/_clearfix.scss +7 -0
  44. data/lib/vbax/sass/library/_data-label.scss +8 -0
  45. data/lib/vbax/sass/library/_variables.scss +66 -0
  46. data/lib/vbax/sass/reset/_normalize.scss +447 -0
  47. data/lib/vbax/sass/utilities/_text-color.scss +3 -0
  48. data/vbax-admin_syst.gemspec +3 -0
  49. metadata +60 -1
@@ -0,0 +1,79 @@
1
+ dd.attribute-data.attribute-data--active-storage {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ }
5
+ .attachments-listing {
6
+ width: 20rem;
7
+ margin-right: 1rem;
8
+ margin-bottom: 1rem;
9
+ }
10
+ .direct-upload {
11
+ display: inline-block;
12
+ position: relative;
13
+ padding: 7px 14px;
14
+ margin: 0 3px 3px 0;
15
+ border: 1px solid rgba(0, 0, 0, 0.3);
16
+ border-radius: 4px;
17
+ font-size: 11px;
18
+ line-height: 13px;
19
+ min-width: 100%;
20
+ }
21
+
22
+ .direct-upload--pending {
23
+ opacity: 0.6;
24
+ }
25
+
26
+ .direct-upload__progress {
27
+ position: absolute;
28
+ top: 0;
29
+ left: 0;
30
+ bottom: 0;
31
+ opacity: 0.2;
32
+ background: #0076ff;
33
+ transition: width 120ms ease-out, opacity 60ms 60ms ease-in;
34
+ transform: translate3d(0, 0, 0);
35
+ }
36
+ .direct-upload.direct-upload--complete{
37
+ .direct-upload__progress{
38
+ transition: background 0.5s ease;
39
+ background: #00ffa3;
40
+ }
41
+ }
42
+
43
+ .direct-upload--complete .direct-upload__progress {
44
+ opacity: 0.4;
45
+ }
46
+
47
+ .direct-upload--error {
48
+ border-color: red;
49
+ }
50
+
51
+ input[type=file][data-direct-upload-url][disabled] {
52
+ display: none;
53
+ }
54
+
55
+ // view edit
56
+ .active__storage__admin > .field-unit__field {
57
+ .field-unit__field__picture{
58
+ display: flex;
59
+ width: 220%;
60
+ flex-wrap: wrap;
61
+ .attachments-listing{
62
+ width: 10rem;
63
+ margin-right: 1rem;
64
+ margin-bottom: 1rem;
65
+ }
66
+ }
67
+ }
68
+ .active__storage__admin > .field-unit__field .field-unit__field__picture .attachments-listing {
69
+ width: 10rem;
70
+ margin-right: 1rem;
71
+ margin-bottom: 1rem;
72
+ display: flex;
73
+ flex-direction: column;
74
+ justify-content: flex-end;
75
+ min-height: 160px;
76
+ }
77
+ .active__storage__admin > .fileinput {
78
+ min-width: 300px;
79
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,56 @@
1
+ // CSS ON NEW
2
+ form#new_customer {
3
+ border: 1px solid #8080801f;
4
+ border-radius: 2%;
5
+ width: 100%;
6
+ padding: 0.75em;
7
+ @include media-breakpoint-up(sm) {
8
+ width: 50%;
9
+ padding: 3em 3em;
10
+ }
11
+ display: flex;
12
+ flex-direction: column;
13
+ justify-content: center;
14
+ .field-unit__field {
15
+ float: left;
16
+ margin-left: 2rem;
17
+ width: 70%;
18
+ }
19
+ }
20
+ #new_customer_section_form,
21
+ #create_customer_section_form {
22
+ padding: 1em 0em;
23
+ display: flex;
24
+ justify-content: center;
25
+ align-items: center;
26
+ min-height: 80vh;
27
+ }
28
+
29
+ // CSS ON SHOW
30
+ #show_seller_profile_section_form,
31
+ #show_supplier_profile_section_form{
32
+ dl{
33
+ display: flex;
34
+ flex-wrap: wrap;
35
+ dt{
36
+ @include media-breakpoint-down(md) {
37
+ width: calc(30% - 1rem);
38
+ }
39
+ @include media-breakpoint-up(md) {
40
+ width: calc(20% - 1rem);
41
+ }
42
+ }
43
+ dd{
44
+ // width: calc(30% - 1rem);
45
+ @include media-breakpoint-down(md) {
46
+ width: calc(55% - 1rem);
47
+ }
48
+ @include media-breakpoint-up(md) {
49
+ width: calc(30% - 1rem);
50
+ }
51
+ }
52
+ }
53
+ }
54
+ section#new_quotation_section_form {
55
+ padding: 1rem 0rem;
56
+ }
@@ -0,0 +1,12 @@
1
+ @import "app-container";
2
+ @import "attributes";
3
+ @import "buttons";
4
+ @import "cells";
5
+ @import "field-unit";
6
+ @import "flashes";
7
+ @import "form-actions";
8
+ @import "main-content";
9
+ @import "navigation";
10
+ @import "pagination";
11
+ @import "search";
12
+ @import "progress";
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ .progress-container .progress .progress-bar {
2
+ border-radius: 0.875rem;
3
+ box-shadow: none;
4
+ background: $worker;
5
+ }
File without changes
@@ -0,0 +1,3 @@
1
+ @import "AdministrateactiveStorage";
2
+ @import "quotation/index";
3
+ @import "components/index"
@@ -0,0 +1,88 @@
1
+ // buttons
2
+ // _______________________________
3
+ .button.disabled {
4
+ opacity: 0.65;
5
+ cursor: not-allowed;
6
+ }
7
+
8
+ button, input[type="button"], input[type="reset"], input[type="submit"], .button{
9
+ background-color: #526889;
10
+ margin: 0 0.75em;
11
+ // &:hover{
12
+ // background-color: #344d71;
13
+ // color: #fff;
14
+ // }
15
+ }
16
+
17
+ // flex button inside lineItem
18
+ // _______________________________
19
+ .sophieTolouba_line_items{
20
+ position: absolute;
21
+ bottom: 20px;
22
+ width: 95%;
23
+ display: flex;
24
+ justify-content: flex-end;
25
+ align-items: center;
26
+ }
27
+
28
+ // Button float inside Quotation
29
+ // _______________________________
30
+ // .testtststst{
31
+ // position: sticky;
32
+ // bottom: 50%;
33
+ // right: 0;
34
+ // margin-left: 88%;
35
+ //
36
+ // }
37
+ // .add_has_many.oioioioioi {
38
+ // position: sticky;
39
+ // bottom: 57%;
40
+ // right: 0;
41
+ // margin-left: 88%;
42
+ // }
43
+ .container-flex_line_items,
44
+ .container-flex_working_zones, {
45
+ display: flex;
46
+ flex-wrap: wrap;
47
+ position: relative;
48
+ }
49
+ .field-unit--nested.fieldset_line_items{
50
+ padding-left: 0px!important;
51
+ }
52
+ .nested-fields.working_zones{
53
+ padding: 1rem 1rem 8rem 1rem!important;
54
+ }
55
+ .nested-fields.working_zones {
56
+ border: 1px solid rgba(255, 90, 95, 0.32)!important;
57
+ border-radius: 6px;
58
+ }
59
+ // .add_has_many.div_button_add_line_items{
60
+ // width: 110px;
61
+ // position: sticky;
62
+ // bottom: 51%;
63
+ // z-index: 9999;
64
+ // margin-left: 98.3%;
65
+ // height: 20px;
66
+ // .button{
67
+ // padding: 25px;
68
+ // border-radius: 50%;
69
+ // z-index: 9999;
70
+ // background: #34e79a;
71
+ // // box-shadow: 0 2px 2px 0 rgba(91, 255, 97, 0.2), 0 3px 1px -2px rgba(91, 255, 97, 0.2), 0 1px 5px 0 rgba(91, 255, 97, 0.2);
72
+ // // transition: all 0.35s ease-in-out;
73
+ // // border: 0px solid #FFFFFF;
74
+ // }
75
+ // }
76
+ // .add_has_many.div_button_add_working_zones{
77
+ // position: sticky;
78
+ // bottom: 40%;
79
+ // z-index: 9999;
80
+ // margin-left: 94%;
81
+ // height: 20px;
82
+ // .button{
83
+ // padding: 25px;
84
+ // border-radius: 50%;
85
+ // z-index: 9999;
86
+ // background: #48ac98;
87
+ // }
88
+ // }
@@ -0,0 +1,12 @@
1
+ $buttonGreen: #34e79a;
2
+ @import "button";
3
+ @import "quotation";
4
+ @import "shortCode";
5
+ @import "tabs";
6
+ // @import "navbar";
7
+
8
+ .field-unit--nested {
9
+ width: 100%;
10
+ min-height: 100px;
11
+ padding-bottom: 1rem!important;
12
+ }
@@ -0,0 +1,70 @@
1
+
2
+ .image[class*="-blur"] {
3
+ margin: -20px;
4
+ -webkit-filter: blur(10px);
5
+ -moz-filter: blur(10px);
6
+ -o-filter: blur(10px);
7
+ -ms-filter: blur(10px);
8
+ filter: blur(10px);
9
+ }
10
+ .image {
11
+ position: absolute;
12
+ top: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+ left: 0;
16
+ background-size: cover;
17
+ background-position: center;
18
+ }
19
+ .image[class*="-overlay"]::after {
20
+ position: absolute;
21
+ top: 0;
22
+ right: 0;
23
+ bottom: 0;
24
+ left: 0;
25
+ content: "";
26
+ background: rgba(0, 0, 0, 0.25);
27
+ }
28
+
29
+ .navigation {
30
+ position: fixed;
31
+ top: 10px;
32
+ // left: 30px;
33
+ bottom: 10px;
34
+ overflow-y: scroll;
35
+ .administrate_logo_div{
36
+ img{
37
+ margin-bottom: 30px;
38
+ }
39
+ display: flex;
40
+ flex-direction: column;
41
+ align-items: flex-start;
42
+ }
43
+ }
44
+ .medium-btn{
45
+ margin-left:0px!important;
46
+ background-color: $buttonGreen;
47
+ &:hover{
48
+ background-color: $buttonGreen;
49
+ }
50
+ }
51
+ .main-content{
52
+ margin-left: 200px;
53
+ .main-content__header{
54
+ position: sticky;
55
+ z-index: 9999;
56
+ height: 107px;
57
+ top: 0rem;
58
+ background-color: rgba(255, 255, 255, 0.85);
59
+ }
60
+ }
61
+ .navigation__link {
62
+ padding: 0.8em;
63
+
64
+ }
65
+ .navigation__link:hover {
66
+ background-color: #34e79a14;
67
+ }
68
+ .navigation {
69
+ padding-left: calc(1.5em - 0.6em);
70
+ }
@@ -0,0 +1,115 @@
1
+ // Button for new_quotation
2
+ // _________________________
3
+
4
+ .button{
5
+ margin-top: 1rem;
6
+ align-items: center;
7
+ justify-content: center;
8
+ // display: flex;
9
+ border-radius: 4px;
10
+ padding: 12px 24px;
11
+ &.remove-field{
12
+ background-color: #ff5a5f;
13
+ }
14
+ &.remove-field__option_buton{
15
+ background-color: #fff;
16
+ border: 1px solid #454545;
17
+ color:#454545;
18
+ width: 100%;
19
+ &.add_option{
20
+ border : 1px double #79df4f;
21
+ display: flex!important;
22
+ }
23
+ }
24
+ a{
25
+ color:#fff;
26
+ font-weight: 500;
27
+ text-decoration: none;
28
+ }
29
+ span{
30
+ font-weight: 500;
31
+ }
32
+
33
+ }
34
+
35
+ // Custom for Selectize
36
+ // _________________________
37
+
38
+ .selectize-dropdown-content {
39
+ overflow-y: auto;
40
+ overflow-x: hidden;
41
+ max-height: 500px;
42
+ cursor: pointer;
43
+ -webkit-overflow-scrolling: touch;
44
+ }
45
+ .selected_green{
46
+ border : 1px solid #79df4f;
47
+ background-color : #aeffa1!important;
48
+ border: 1px solid #d0d0d0;
49
+ padding: 8px 8px;
50
+ display: inline-block;
51
+ width: 100%;
52
+ overflow: hidden;
53
+ position: relative;
54
+ z-index: 1;
55
+ box-sizing: border-box;
56
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
57
+ border-radius: 3px;
58
+ }
59
+
60
+
61
+ // broder
62
+ // _________________________
63
+ .nested-fields.working_zones,
64
+ fieldset.field-unit--nested.fieldset_line_items,
65
+ fieldset.field-unit--nested.fieldset_working_zones
66
+ {
67
+ margin-left: 0%!important;
68
+ width: 100%!important;
69
+ }
70
+ fieldset.field-unit--nested.fieldset_line_items,
71
+ // .field-unit--nested.working_zones
72
+ .nested-fields.working_zones,
73
+ fieldset.field-unit--nested.fieldset_option_pack,
74
+ fieldset.field-unit--nested.fieldset_working_zones
75
+ {
76
+ border: 0px solid #dfe0e1;
77
+ }
78
+ .field-unit__label.check_box_inside_quotation{
79
+ width: 18%!important;
80
+ display: flex;
81
+ flex-direction: column;
82
+ align-items: center;
83
+ justify-content: space-between;
84
+ text-align: center;
85
+ height: 4rem;
86
+ border: 1px solid #cecece1f;
87
+ padding: 0.3rem;
88
+ border-radius: 8%;
89
+ margin: 1rem;
90
+ }
91
+
92
+ // Job On Main Form
93
+ // _________________________
94
+ #new_quotation .field-unit,
95
+ #edit_quotation .field-unit,
96
+ #create_quotation .field-unit,
97
+ #update_quotation .field-unit,
98
+ #quotation_solid_id .field-unit{
99
+ align-items: center;
100
+ display: flex;
101
+ margin-bottom: 0.2em;
102
+ position: relative;
103
+ width: 100%;
104
+ }
105
+
106
+ .field-unit--nested-has-many .nested-fields {
107
+ margin-bottom: 0.4em;
108
+ padding-bottom: 0.3em;
109
+ }
110
+
111
+ .line_item_container .field-unit--has-one {
112
+ display: flex;
113
+ /* flex-shrink: unset; */
114
+ flex-wrap: wrap;
115
+ }
@@ -0,0 +1,7 @@
1
+ .hiden {
2
+ display: none;
3
+ }
4
+ .button.disabled {
5
+ opacity: 0.25;
6
+ cursor: not-allowed;
7
+ }
@@ -0,0 +1,43 @@
1
+ .final_price,
2
+ .final_growth_price {
3
+ color: #28b779;
4
+ font-weight: 600;
5
+ }
6
+ .check_box_inside_quotation{
7
+ margin-top: 0.85rem;
8
+ }
9
+ .tab-to-hide--line_item--promo_cost,
10
+ .tab-to-hide--line_item--promo_cost_euro,
11
+ .tab-to-hide--line_item--line_item_fee,
12
+ .tab-to-hide--line_item--growth_option_price_size{
13
+ &.hidden{
14
+ display: none!important;
15
+ }
16
+ }
17
+
18
+ .line_item_fee.tab-to-hide--line_item--line_item_fee.on {
19
+ background-color: $buttonGreen;
20
+ border-radius: 6px;
21
+ padding: 8px 22px;
22
+ transition: all 1s ease;
23
+ color: white;
24
+ font-weight: 800;
25
+ text-align: center;
26
+ }
27
+ .cell-data{
28
+ a:hover {
29
+ color: inherit!important;
30
+ text-decoration: none!important;
31
+ }
32
+ }
33
+
34
+
35
+ // tab-on lineitem
36
+ table{
37
+ &[aria-labelledby="line_items"]{
38
+ td {
39
+ height: 75px!important;
40
+ font-size: 1.1em;
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,7 @@
1
+ @mixin administrate-clearfix {
2
+ &::after {
3
+ clear: both;
4
+ content: "";
5
+ display: block;
6
+ }
7
+ }
@@ -0,0 +1,8 @@
1
+ @mixin data-label {
2
+ color: $hint-grey;
3
+ font-size: 0.8em;
4
+ font-weight: 400;
5
+ letter-spacing: 0.0357em;
6
+ position: relative;
7
+ text-transform: uppercase;
8
+ }
@@ -0,0 +1,66 @@
1
+ // Typography
2
+ // $base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
3
+ // "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
4
+ // sans-serif !default;
5
+ // $heading-font-family: $base-font-family !default;
6
+ $base-font-family: 'Nunito Sans', sans-serif;
7
+ $headings-font-family: 'Nunito Sans', sans-serif;
8
+ $heading-font-family: 'Nunito Sans', sans-serif;
9
+ $base-font-size: 0.9em !default;
10
+ $light-font-weight: 400 !default;
11
+ $bold-font-weight: 700 !default;
12
+
13
+ $base-line-height: 1.5 !default;
14
+ $heading-line-height: 1.2 !default;
15
+
16
+ // Other Sizes
17
+ $base-spacing-panel: 1.5em 1.5em 1.5em 0em;
18
+ $base-border-radius: 4px !default;
19
+ $base-spacing: $base-line-height * 1em !default;
20
+ $small-spacing: $base-spacing / 2 !default;
21
+
22
+ // Colors
23
+ $white: #fff !default;
24
+ $black: #000 !default;
25
+
26
+ $blue: #1976d2 !default;
27
+ $red: #d32f2f !default;
28
+ $light-yellow: #f0cd66 !default;
29
+ $light-green: #4ab471 !default;
30
+
31
+ $grey-0: #f6f7f7 !default;
32
+ $grey-1: #dfe0e1 !default;
33
+ $grey-2: #cfd8dc !default;
34
+ $grey-5: #adb5bd !default;
35
+ $grey-7: #293f54 !default;
36
+
37
+ $hint-grey: #7b808c !default;
38
+
39
+ // Font Colors
40
+ $base-font-color: $grey-7 !default;
41
+ $action-color: $blue !default;
42
+
43
+ // Background Colors
44
+ $base-background-color: $grey-0 !default;
45
+
46
+ // Focus
47
+ $focus-outline-color: transparentize($action-color, 0.4);
48
+ $focus-outline-width: 3px;
49
+ $focus-outline: $focus-outline-width solid $focus-outline-color;
50
+ $focus-outline-offset: 1px;
51
+
52
+ // Flash Colors
53
+ $flash-colors: (
54
+ alert: $light-yellow,
55
+ error: $red,
56
+ notice: mix($white, $blue, 50%),
57
+ success: $light-green
58
+ );
59
+
60
+ // Border
61
+ $base-border-color: $grey-1 !default;
62
+ $base-border: 1px solid $base-border-color !default;
63
+
64
+ // Transitions
65
+ $base-duration: 250ms !default;
66
+ $base-timing: ease-in-out !default;