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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d81a5c395ddec0a16561001ea969cb37ec3af7a4d10f61cfcfab78d064392ebb
4
- data.tar.gz: 349769abad5d1fe9301b7bb83262c654b73e82a18da0740f77a16a23db4a27eb
3
+ metadata.gz: fbc34fd6265b8805b68b0705d17f1926a64ad9715bc6a0bc9310921540e97ff9
4
+ data.tar.gz: 322de85f349dd4197b5ea78e2ec8f38ba8b7c6b4d9f4bfa617f8909bae056438
5
5
  SHA512:
6
- metadata.gz: 2048cf303a25dad55122dcf5cf36fb12b8007244391617c68af23cf45863000cfe4bc7783dac2dc729f2b1b820f0d5812914ffcafa5d72a55f98f21dbbd05a3f
7
- data.tar.gz: 9d4acac97d21fc2a85c356f3e0a153d1092dd89be31425cca8efdc61ef54f77c277011a4458c567ef626928540a8ba10eacbca31ab76d217c0b4665c9fe68b34
6
+ metadata.gz: 74e1c0f0e14fbbd31ed937561490e99f3cb1850c0612474992718dd7ef1b1b2292753f2d59f819a3f31f4120fce2241c5fd930c0dda3ec7ac444c3a24462305f
7
+ data.tar.gz: 22c8639a2df7a685494ad81be1937ceeb393307d8f467691256294fb155da446bb2335d6e06f071c1b3e64bb9f9458cab3faf9ca654ba20af8b8f09d5dd30ddd
@@ -0,0 +1,14 @@
1
+ module Vbax
2
+ module AdminSyst
3
+ class Engine < ::Rails::Engine
4
+ initializer 'admin_syst.sass' do |app|
5
+ # Set the sass load paths
6
+ app.config.sass.load_paths << File.join(config.root, "lib","vbax", "sass")
7
+
8
+ # Set the add becky_thatcher/lib/sass to assets path
9
+ app.config.assets.paths << File.join(config.root, "lib","vbax", "sass")
10
+ end
11
+
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Vbax
2
2
  module AdminSyst
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -0,0 +1,26 @@
1
+ @import "becky_thatcher";
2
+ @import "library/clearfix";
3
+ @import "library/data-label";
4
+ @import "library/variables";
5
+ @import "base/newcolor";
6
+ @import "base/forms";
7
+ @import "base/layout";
8
+ @import "base/lists";
9
+ @import "base/tables";
10
+ @import "base/typography";
11
+
12
+ @import "components/app-container";
13
+ @import "components/attributes";
14
+ @import "components/buttons";
15
+ @import "components/cells";
16
+ @import "components/field-unit";
17
+ @import "components/flashes";
18
+ @import "components/form-actions";
19
+ @import "components/main-content";
20
+ @import "components/navigation";
21
+ @import "components/pagination";
22
+ @import "components/search";
23
+
24
+ @import "reset/normalize";
25
+
26
+ @import "custom/index";
@@ -0,0 +1,107 @@
1
+ fieldset {
2
+ background-color: transparent;
3
+ border: 0;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ legend {
9
+ font-weight: $bold-font-weight;
10
+ margin: 0;
11
+ padding: 0;
12
+ }
13
+
14
+ label {
15
+ display: block;
16
+ font-weight: $light-font-weight;
17
+ margin: 0;
18
+ }
19
+
20
+ input,
21
+ select {
22
+ display: block;
23
+ font-family: $base-font-family;
24
+ font-size: $base-font-size;
25
+ }
26
+
27
+ input,
28
+ select,
29
+ textarea {
30
+ display: block;
31
+ font-family: $base-font-family;
32
+ font-size: 16px;
33
+ }
34
+
35
+ [type="color"],
36
+ [type="date"],
37
+ [type="datetime-local"],
38
+ [type="email"],
39
+ [type="month"],
40
+ [type="number"],
41
+ [type="password"],
42
+ [type="search"],
43
+ [type="tel"],
44
+ [type="text"],
45
+ [type="time"],
46
+ [type="url"],
47
+ [type="week"],
48
+ input:not([type]),
49
+ textarea {
50
+ appearance: none;
51
+ background-color: $white;
52
+ border: $base-border;
53
+ border-radius: $base-border-radius;
54
+ padding: 0.5em;
55
+ transition: border-color $base-duration $base-timing;
56
+ width: 100%;
57
+
58
+ &:hover {
59
+ border-color: mix($black, $base-border-color, 20%);
60
+ }
61
+
62
+ &:focus {
63
+ border-color: $action-color-focus;
64
+ outline: none;
65
+ }
66
+
67
+ &:disabled {
68
+ background-color: mix($black, $white, 5%);
69
+ cursor: not-allowed;
70
+
71
+ &:hover {
72
+ border: $base-border;
73
+ }
74
+ }
75
+
76
+ &::placeholder {
77
+ font-style: italic;
78
+ }
79
+ }
80
+
81
+ textarea {
82
+ resize: vertical;
83
+ }
84
+
85
+ [type="checkbox"],
86
+ [type="radio"] {
87
+ display: inline;
88
+ margin-right: $small-spacing / 2;
89
+ }
90
+
91
+ [type="file"] {
92
+ width: 100%;
93
+ }
94
+
95
+ select {
96
+ width: 100%;
97
+ }
98
+
99
+ [type="checkbox"],
100
+ [type="radio"],
101
+ [type="file"],
102
+ select {
103
+ &:focus {
104
+ outline: $focus-outline;
105
+ outline-offset: $focus-outline-offset;
106
+ }
107
+ }
@@ -0,0 +1,20 @@
1
+ html {
2
+ background-color: $base-background-color;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ *,
7
+ *::before,
8
+ *::after {
9
+ box-sizing: inherit;
10
+ }
11
+
12
+ figure {
13
+ margin: 0;
14
+ }
15
+
16
+ img,
17
+ picture {
18
+ margin: 0;
19
+ max-width: 100%;
20
+ }
@@ -0,0 +1,19 @@
1
+ ul,
2
+ ol {
3
+ list-style-type: none;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ dl {
9
+ margin-bottom: $small-spacing;
10
+
11
+ dt {
12
+ font-weight: $bold-font-weight;
13
+ margin-top: $small-spacing;
14
+ }
15
+
16
+ dd {
17
+ margin: 0;
18
+ }
19
+ }
@@ -0,0 +1 @@
1
+ $action-color-focus: rgba(118,118,212,0.5)!important;
@@ -0,0 +1,55 @@
1
+ table {
2
+ border-collapse: collapse;
3
+ font-size: 0.7em;
4
+ text-align: left;
5
+ width: 100%;
6
+
7
+ a {
8
+ color: inherit;
9
+ text-decoration: none;
10
+ }
11
+ }
12
+
13
+ thead {
14
+ font-weight: $bold-font-weight;
15
+ }
16
+
17
+ tr {
18
+ border-bottom: $base-border;
19
+ }
20
+
21
+ tbody tr {
22
+ &:hover {
23
+ background-color: $base-background-color;
24
+ cursor: pointer;
25
+ }
26
+
27
+ &:focus {
28
+ outline: $focus-outline;
29
+ outline-offset: -($focus-outline-width);
30
+ }
31
+ }
32
+
33
+ td,
34
+ th {
35
+ font-feature-settings: "kern", "liga", "clig", "calt", "lnum", "tnum";
36
+ font-kerning: normal;
37
+ font-variant-ligatures: common-ligatures, contextual;
38
+ font-variant-numeric: lining-nums, tabular-nums;
39
+ padding: 0.55rem;
40
+ vertical-align: middle;
41
+ }
42
+
43
+ td:first-child,
44
+ th:first-child {
45
+ padding-left: 2rem;
46
+ }
47
+
48
+ td:last-child,
49
+ th:last-child {
50
+ padding-right: 2rem;
51
+ }
52
+
53
+ td img {
54
+ max-height: 2rem;
55
+ }
@@ -0,0 +1,45 @@
1
+ body {
2
+ color: $base-font-color;
3
+ // font-family: $base-font-family;
4
+ font-size: $base-font-size;
5
+ line-height: $base-line-height;
6
+ }
7
+
8
+ h1,
9
+ h2,
10
+ h3,
11
+ h4,
12
+ h5,
13
+ h6 {
14
+ font-family: $heading-font-family;
15
+ font-size: $base-font-size;
16
+ line-height: $heading-line-height;
17
+ margin: 0;
18
+ }
19
+
20
+ p {
21
+ margin: 0 0 $small-spacing;
22
+ }
23
+
24
+ a {
25
+ color: $action-color;
26
+ text-decoration-skip-ink: auto;
27
+ transition: color $base-duration $base-timing;
28
+
29
+ &:hover {
30
+ color: mix($black, $action-color, 25%);
31
+ }
32
+
33
+ &:focus {
34
+ outline: $focus-outline;
35
+ outline-offset: $focus-outline-offset;
36
+ }
37
+ }
38
+
39
+ hr {
40
+ border-bottom: $base-border;
41
+ border-left: 0;
42
+ border-right: 0;
43
+ border-top: 0;
44
+ margin: $base-spacing 0;
45
+ }
@@ -0,0 +1,12 @@
1
+ .app-container {
2
+ // align-items: stretch;
3
+ // display: flex;
4
+ // margin-left: auto;
5
+ // margin-right: auto;
6
+ // max-width: 100rem;
7
+ min-height: 100vh;
8
+ padding: $base-spacing-panel;
9
+ @include media-breakpoint-down(lg) {
10
+ padding: 0px;
11
+ }
12
+ }
@@ -0,0 +1,26 @@
1
+ .attribute-label {
2
+ @include data-label;
3
+ clear: left;
4
+ float: left;
5
+ margin-bottom: $base-spacing;
6
+ margin-top: 0;
7
+ text-align: right;
8
+ width: calc(15% - 1rem);
9
+ }
10
+
11
+ .preserve-whitespace {
12
+ white-space: pre-wrap;
13
+ word-wrap: break-word;
14
+ }
15
+
16
+ .attribute-data {
17
+ float: left;
18
+ margin-bottom: $base-spacing;
19
+ margin-left: 2rem;
20
+ width: calc(85% - 1rem);
21
+ }
22
+
23
+ .attribute--nested {
24
+ border: $base-border;
25
+ padding: $small-spacing;
26
+ }
@@ -0,0 +1,51 @@
1
+ button,
2
+ input[type="button"],
3
+ input[type="reset"],
4
+ input[type="submit"],
5
+ .button {
6
+ appearance: none;
7
+ background-color: $action-color;
8
+ border: 0;
9
+ border-radius: $base-border-radius;
10
+ color: $white;
11
+ cursor: pointer;
12
+ display: inline-block;
13
+ // font-family: $base-font-family;
14
+ // font-size: $base-font-size;
15
+ -webkit-font-smoothing: antialiased;
16
+ font-weight: $light-font-weight;
17
+ line-height: 1;
18
+ padding: $small-spacing $base-spacing;
19
+ text-decoration: none;
20
+ transition: background-color $base-duration $base-timing;
21
+ user-select: none;
22
+ vertical-align: middle;
23
+ white-space: nowrap;
24
+ transition: all .25s ease-in-out;
25
+ &.btn-xxl{
26
+ padding: 0.75em 80px 0.75em 1.5em;;
27
+ }
28
+
29
+ &:hover {
30
+ // background-color: mix($black, $action-color, 20%);
31
+ color: $white;
32
+ box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
33
+ &.close-admin{
34
+ box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.0);
35
+ }
36
+ }
37
+
38
+ &:focus {
39
+ outline: $focus-outline;
40
+ outline-offset: $focus-outline-offset;
41
+ }
42
+
43
+ &:disabled {
44
+ cursor: not-allowed;
45
+ opacity: 0.5;
46
+
47
+ &:hover {
48
+ background-color: $action-color;
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,45 @@
1
+ .cell-label {
2
+ &:hover {
3
+ a {
4
+ color: $action-color;
5
+ }
6
+
7
+ svg {
8
+ fill: $action-color;
9
+ transform: rotate(180deg);
10
+ }
11
+ }
12
+
13
+ a {
14
+ color: inherit;
15
+ display: inline-block;
16
+ transition: color $base-duration $base-timing;
17
+ width: 100%;
18
+ }
19
+ }
20
+
21
+ .cell-label--asc,
22
+ .cell-label--desc {
23
+ font-weight: $bold-font-weight;
24
+ }
25
+
26
+ .cell-label__sort-indicator {
27
+ float: right;
28
+ margin-left: 5px;
29
+
30
+ svg {
31
+ fill: $hint-grey;
32
+ height: 13px;
33
+ transition: transform $base-duration $base-timing;
34
+ width: 13px;
35
+ }
36
+ }
37
+
38
+ .cell-label__sort-indicator--desc {
39
+ transform: rotate(180deg);
40
+ }
41
+
42
+ .cell-data--number,
43
+ .cell-label--number {
44
+ text-align: right;
45
+ }
@@ -0,0 +1,36 @@
1
+ .field-unit {
2
+ @include administrate-clearfix;
3
+ align-items: center;
4
+ display: flex;
5
+ margin-bottom: $base-spacing;
6
+ position: relative;
7
+ width: 100%;
8
+ }
9
+
10
+ .field-unit__label {
11
+ float: left;
12
+ margin-left: 1rem;
13
+ text-align: right;
14
+ width: calc(15% - 1rem);
15
+ }
16
+
17
+ .field-unit__field {
18
+ float: left;
19
+ margin-left: 2rem;
20
+ width: 45%;
21
+ }
22
+
23
+ .field-unit--nested {
24
+ border: $base-border;
25
+ margin-left: 7.5%;
26
+ padding: $small-spacing;
27
+ width: 50%;
28
+
29
+ .field-unit__field {
30
+ width: calc(75% - 1rem);
31
+ }
32
+
33
+ .field-unit__label {
34
+ width: calc(25% - 1rem);
35
+ }
36
+ }
File without changes
@@ -0,0 +1,3 @@
1
+ .form-actions {
2
+ margin-left: calc(15% + 2rem);
3
+ }
@@ -0,0 +1,29 @@
1
+ .main-content {
2
+ background-color: $white;
3
+ border-radius: $base-border-radius;
4
+ box-shadow: 0 0 6px 0 rgba($black, 0.12),
5
+ 0 2px 2px rgba($black, 0.2);
6
+ flex: 1 1 100%;
7
+ padding-bottom: 10vh;
8
+ }
9
+
10
+ .main-content__header,
11
+ .main-content__body {
12
+ padding: 1rem 2rem;
13
+ }
14
+
15
+ .main-content__body--flush {
16
+ padding-left: 0;
17
+ padding-right: 0;
18
+ }
19
+
20
+ .main-content__header {
21
+ align-items: center;
22
+ border-bottom: $base-border;
23
+ display: flex;
24
+ }
25
+
26
+ .main-content__page-title {
27
+ font-size: 1.6em;
28
+ margin-right: auto;
29
+ }
@@ -0,0 +1,34 @@
1
+ $_navigation-link-padding: 0.6em;
2
+
3
+ .navigation {
4
+ flex: 1 0 10rem;
5
+ padding-bottom: $base-spacing;
6
+ padding-right: calc(#{$base-spacing} - #{$_navigation-link-padding});
7
+ padding-top: $base-spacing;
8
+ }
9
+
10
+ .navigation__link {
11
+ background-color: transparent;
12
+ color: $base-font-color;
13
+ display: block;
14
+ line-height: 1;
15
+ margin-left: -($_navigation-link-padding);
16
+ padding: $_navigation-link-padding;
17
+ transition: background-color $base-duration $base-timing,
18
+ color $base-duration $base-timing;
19
+
20
+ &:not(:last-of-type) {
21
+ margin-bottom: $small-spacing;
22
+ }
23
+
24
+ &:hover {
25
+ // background-color: mix($black, $base-background-color, 0%);
26
+ // border-radius: $base-border-radius;
27
+ border: #fff solid 1px;
28
+ color: $base-font-color;
29
+ }
30
+ }
31
+
32
+ .navigation__link--active {
33
+ font-weight: $bold-font-weight;
34
+ }
@@ -0,0 +1,18 @@
1
+ .pagination {
2
+ margin-top: $base-spacing;
3
+ padding-left: $base-spacing;
4
+ padding-right: $base-spacing;
5
+ text-align: center;
6
+
7
+ .first,
8
+ .prev,
9
+ .page,
10
+ .next,
11
+ .last {
12
+ margin: $small-spacing;
13
+ }
14
+
15
+ .current {
16
+ font-weight: $light-font-weight;
17
+ }
18
+ }
@@ -0,0 +1,46 @@
1
+ $_search-icon-size: 1rem;
2
+
3
+ .search {
4
+ margin-left: auto;
5
+ margin-right: 2rem;
6
+ max-width: 20rem;
7
+ position: relative;
8
+ width: 100%;
9
+ }
10
+
11
+ .search__input {
12
+ border-radius: 100rem;
13
+ padding-left: $_search-icon-size * 2.5;
14
+ padding-right: $_search-icon-size * 2.5;
15
+ }
16
+
17
+ .search__eyeglass-icon {
18
+ fill: $grey-7;
19
+ height: $_search-icon-size;
20
+ left: $_search-icon-size;
21
+ position: absolute;
22
+ top: 50%;
23
+ transform: translateY(-50%);
24
+ width: $_search-icon-size;
25
+ }
26
+
27
+ .search__clear-link {
28
+ height: $_search-icon-size;
29
+ position: absolute;
30
+ right: $_search-icon-size * 0.75;
31
+ top: 50%;
32
+ transform: translateY(-50%);
33
+ width: $_search-icon-size;
34
+ }
35
+
36
+ .search__clear-icon {
37
+ fill: $grey-5;
38
+ height: $_search-icon-size;
39
+ position: absolute;
40
+ transition: fill $base-duration $base-timing;
41
+ width: $_search-icon-size;
42
+
43
+ &:hover {
44
+ fill: $action-color;
45
+ }
46
+ }