active_s95 1.0.0

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 (71) hide show
  1. checksums.yaml +7 -0
  2. data/LICENCE.txt +24 -0
  3. data/README.md +120 -0
  4. data/app/assets/fonts/Lato-Bold.eot +0 -0
  5. data/app/assets/fonts/Lato-Bold.ttf +0 -0
  6. data/app/assets/fonts/Lato-Bold.woff +0 -0
  7. data/app/assets/fonts/Lato-Bold.woff2 +0 -0
  8. data/app/assets/fonts/Lato-BoldItalic.eot +0 -0
  9. data/app/assets/fonts/Lato-BoldItalic.ttf +0 -0
  10. data/app/assets/fonts/Lato-BoldItalic.woff +0 -0
  11. data/app/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  12. data/app/assets/fonts/Lato-Italic.eot +0 -0
  13. data/app/assets/fonts/Lato-Italic.ttf +0 -0
  14. data/app/assets/fonts/Lato-Italic.woff +0 -0
  15. data/app/assets/fonts/Lato-Italic.woff2 +0 -0
  16. data/app/assets/fonts/Lato-Regular.eot +0 -0
  17. data/app/assets/fonts/Lato-Regular.ttf +0 -0
  18. data/app/assets/fonts/Lato-Regular.woff +0 -0
  19. data/app/assets/fonts/Lato-Regular.woff2 +0 -0
  20. data/app/assets/javascripts/arctic_admin/base.js +2 -0
  21. data/app/assets/javascripts/arctic_admin/main.js +105 -0
  22. data/app/assets/stylesheets/arctic_admin/_base.scss +30 -0
  23. data/app/assets/stylesheets/arctic_admin/_buttons.scss +80 -0
  24. data/app/assets/stylesheets/arctic_admin/_common.scss +101 -0
  25. data/app/assets/stylesheets/arctic_admin/_custom_enhancements.scss +275 -0
  26. data/app/assets/stylesheets/arctic_admin/_fonts.scss +47 -0
  27. data/app/assets/stylesheets/arctic_admin/_grid.scss +4 -0
  28. data/app/assets/stylesheets/arctic_admin/_main.scss +57 -0
  29. data/app/assets/stylesheets/arctic_admin/_mobile_utilities.scss +212 -0
  30. data/app/assets/stylesheets/arctic_admin/_reset.scss +41 -0
  31. data/app/assets/stylesheets/arctic_admin/components/_columns.scss +4 -0
  32. data/app/assets/stylesheets/arctic_admin/components/_comments.scss +49 -0
  33. data/app/assets/stylesheets/arctic_admin/components/_date_picker.scss +38 -0
  34. data/app/assets/stylesheets/arctic_admin/components/_dialogs.scss +23 -0
  35. data/app/assets/stylesheets/arctic_admin/components/_flash.scss +32 -0
  36. data/app/assets/stylesheets/arctic_admin/components/_form.scss +182 -0
  37. data/app/assets/stylesheets/arctic_admin/components/_inputs.scss +218 -0
  38. data/app/assets/stylesheets/arctic_admin/components/_pagination.scss +80 -0
  39. data/app/assets/stylesheets/arctic_admin/components/_panel_contents.scss +126 -0
  40. data/app/assets/stylesheets/arctic_admin/components/_select2.scss +50 -0
  41. data/app/assets/stylesheets/arctic_admin/components/_status_tag.scss +41 -0
  42. data/app/assets/stylesheets/arctic_admin/components/_tables.scss +434 -0
  43. data/app/assets/stylesheets/arctic_admin/components/_tabs.scss +51 -0
  44. data/app/assets/stylesheets/arctic_admin/components/_toggle.scss +77 -0
  45. data/app/assets/stylesheets/arctic_admin/layouts/_filter.scss +142 -0
  46. data/app/assets/stylesheets/arctic_admin/layouts/_footer.scss +4 -0
  47. data/app/assets/stylesheets/arctic_admin/layouts/_header.scss +444 -0
  48. data/app/assets/stylesheets/arctic_admin/layouts/_main_content.scss +47 -0
  49. data/app/assets/stylesheets/arctic_admin/layouts/_sidebar.scss +150 -0
  50. data/app/assets/stylesheets/arctic_admin/layouts/_wrapper.scss +8 -0
  51. data/app/assets/stylesheets/arctic_admin/mixins/_buttons_mixins.scss +142 -0
  52. data/app/assets/stylesheets/arctic_admin/mixins/_forms.scss +9 -0
  53. data/app/assets/stylesheets/arctic_admin/mixins/_mixins.scss +4 -0
  54. data/app/assets/stylesheets/arctic_admin/mixins/_prefix_mixins.scss +63 -0
  55. data/app/assets/stylesheets/arctic_admin/mixins/_sidebar_mixins.scss +24 -0
  56. data/app/assets/stylesheets/arctic_admin/pages/_form.scss +124 -0
  57. data/app/assets/stylesheets/arctic_admin/pages/_index.scss +207 -0
  58. data/app/assets/stylesheets/arctic_admin/pages/_login.scss +65 -0
  59. data/app/assets/stylesheets/arctic_admin/pages/_show.scss +3 -0
  60. data/app/assets/stylesheets/arctic_admin/variables/_borders.scss +7 -0
  61. data/app/assets/stylesheets/arctic_admin/variables/_box_shadows.scss +6 -0
  62. data/app/assets/stylesheets/arctic_admin/variables/_colors.scss +59 -0
  63. data/app/assets/stylesheets/arctic_admin/variables/_fonts.scss +10 -0
  64. data/app/assets/stylesheets/arctic_admin/variables/_icons.scss +17 -0
  65. data/app/assets/stylesheets/arctic_admin/variables/_media_queries.scss +41 -0
  66. data/app/assets/stylesheets/arctic_admin/variables/_size.scss +15 -0
  67. data/app/assets/stylesheets/arctic_admin/variables/_spaces.scss +31 -0
  68. data/app/assets/stylesheets/arctic_admin/variables/_variables.scss +7 -0
  69. data/lib/active_s95/version.rb +3 -0
  70. data/lib/arctic_admin.rb +9 -0
  71. metadata +171 -0
@@ -0,0 +1,150 @@
1
+ .header #tabs {
2
+ width: $header-width;
3
+ height: calc(100% - 60px);
4
+ position: fixed;
5
+ top: 50px;
6
+ background-color: $sidebar-background;
7
+ border-right: 1px solid $sidebar-border-color;
8
+ z-index: 1000;
9
+ overflow: auto;
10
+ left: - $header-width;
11
+ transition: transform 0.3s ease-in-out;
12
+ @include momentum-scroll;
13
+
14
+ // Backdrop overlay when open
15
+ @include backdrop-overlay(999);
16
+
17
+ &.tabs_open {
18
+ transform: translateX($header-width);
19
+ }
20
+
21
+ @media screen and (min-width: $sm-width) {
22
+ top: 60px;
23
+ }
24
+
25
+ @media screen and (min-width: $lg-width) {
26
+ left: 0px !important;
27
+ transform: none !important;
28
+
29
+ &::before {
30
+ display: none !important;
31
+ }
32
+ }
33
+
34
+ @media screen and (min-width: $x-lg-width) {
35
+ width: $lg-header-width;
36
+ }
37
+
38
+ li {
39
+ width: 100%;
40
+ font-size: $font-size;
41
+ line-height: 42px;
42
+ cursor: pointer;
43
+ margin: 4px 0;
44
+
45
+ a {
46
+ width: 100%;
47
+ height: 100%;
48
+ display: inline-block;
49
+ color: $text-color;
50
+ padding: 0 20px;
51
+ transition: all 0.3s ease;
52
+ font-weight: 500;
53
+ @include no-tap-highlight;
54
+ min-height: 44px;
55
+ display: flex;
56
+ align-items: center;
57
+
58
+ @media screen and (max-width: $sm-width) {
59
+ min-height: 48px;
60
+ padding: 0 24px;
61
+ font-size: 15px;
62
+ }
63
+
64
+ &:hover {
65
+ background-color: $sidebar-item-hover-background;
66
+ padding-left: 28px;
67
+ color: $indigo;
68
+
69
+ @media screen and (max-width: $sm-width) {
70
+ padding-left: 32px;
71
+ }
72
+ }
73
+ }
74
+
75
+ &.current {
76
+ a {
77
+ color: $indigo;
78
+ background-color: $sidebar-active-background;
79
+ border-radius: 0 25px 25px 0;
80
+ font-weight: 700;
81
+ border-left: 4px solid $indigo;
82
+ padding-left: 16px;
83
+ }
84
+ }
85
+
86
+ &.has_nested {
87
+ &>a:nth-child(1) {
88
+ position: relative;
89
+
90
+ &:after {
91
+ @include icon($icon-down);
92
+ display: inline;
93
+ position: absolute;
94
+ top: 50%;
95
+ right: 20px;
96
+ @include transform(translateY(-50%));
97
+ color: $text-color;
98
+ }
99
+ }
100
+
101
+ ul {
102
+ border-top: 1px solid $sidebar-border-color;
103
+ border-bottom: 1px solid $sidebar-border-color;
104
+ background-color: $body-background;
105
+ padding: 10px 0;
106
+ cursor: auto;
107
+ display: none;
108
+
109
+ a {
110
+ padding: 0px 15px 0px 35px;
111
+ color: $text-color;
112
+
113
+ &:hover {
114
+ background-color: $sidebar-nested-item-hover-background;
115
+ padding-left: 40px;
116
+ }
117
+
118
+ @media screen and (min-width: $x-lg-width) {
119
+ padding: 0px 15px 0px 40px;
120
+
121
+ &:hover {
122
+ padding-left: 45px;
123
+ }
124
+ }
125
+ }
126
+
127
+ .current a {
128
+ color: $indigo;
129
+ font-weight: 700;
130
+ background-color: rgba($indigo, 0.05);
131
+ }
132
+ }
133
+
134
+ &.open,
135
+ &.current {
136
+ &>a:nth-child(1) {
137
+ position: relative;
138
+
139
+ &:after {
140
+ @include icon($icon-up);
141
+ }
142
+ }
143
+
144
+ &>ul {
145
+ display: block;
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
@@ -0,0 +1,8 @@
1
+ #wrapper {
2
+ display: flex;
3
+ flex-direction: column;
4
+
5
+ .flashes {
6
+ order: -1;
7
+ }
8
+ }
@@ -0,0 +1,142 @@
1
+ $bg-tertiary-button: transparent;
2
+ $bg-tertiary-button-hover: rgba($border-color, .3);;
3
+
4
+ @mixin button() {
5
+ border-radius: $border-radius;
6
+ display: inline-block;
7
+ @include transition-button();
8
+ cursor: pointer;
9
+
10
+ &:active, &:focus {
11
+ outline: 0;
12
+ }
13
+
14
+ &.disabled, &:disabled {
15
+ opacity: 0.6;
16
+ cursor: no-drop;
17
+ }
18
+ }
19
+
20
+ @mixin primary-button($background-color, $color) {
21
+ background-color: $background-color;
22
+ color: $color;
23
+ border: none;
24
+ @include button();
25
+
26
+ &:hover {
27
+ background-color: lighten($background-color, 10%);
28
+ }
29
+
30
+ &:active, &:focus {
31
+ background-color: darken($background-color, 10%);
32
+ }
33
+
34
+ &:disabled {
35
+ background-color: $background-color;
36
+ }
37
+ }
38
+
39
+ @mixin secondary-button($color) {
40
+ background-color: #fff;
41
+ color: $color;
42
+ border: 1px solid $color;
43
+ padding: 4px 8px;
44
+ @include button();
45
+
46
+ &:hover {
47
+ color: #fff;
48
+ background-color: $color;
49
+ }
50
+
51
+ &:active, &:focus {
52
+ background-color: darken($color, 10%);
53
+ color: #fff;
54
+ }
55
+ }
56
+
57
+ @mixin tertiary-button($color) {
58
+ background-color: $bg-tertiary-button;
59
+ color: $color;
60
+ border: 1px solid $bg-tertiary-button;
61
+ padding: 4px 8px;
62
+ @include button();
63
+
64
+ &:hover {
65
+ color: $color;
66
+ background-color: $bg-tertiary-button-hover;
67
+ }
68
+
69
+ &:active, &:focus {
70
+ background-color: $bg-tertiary-button-hover;
71
+ color: $color;
72
+ }
73
+ }
74
+
75
+ @mixin secondary-dropdown($color) {
76
+ @include secondary-button($color);
77
+ padding: 6px 25px 6px 10px;
78
+ position: relative;
79
+
80
+ &:after {
81
+ @include icon($icon-sort-down);
82
+ position: absolute;
83
+ right: 8px;
84
+ }
85
+
86
+ &:active, &:focus {
87
+ background-color: darken($color, 10%);
88
+ color: #fff;
89
+ }
90
+
91
+ &.disabled, &:disabled {
92
+ color: $grey;
93
+ background-color: #f3f7f9;
94
+ border-color: #f3f7f9;
95
+ @include box-shadow(none);
96
+ opacity: .65;
97
+ }
98
+ }
99
+
100
+ @mixin group-button($color) {
101
+ a {
102
+ display: inline-block;
103
+ color: $color;
104
+ border-top: 1px solid $color;
105
+ border-bottom: 1px solid $color;
106
+ float: left;
107
+ padding: 6px 10px;
108
+ border-right: 1px solid $color;
109
+ @include transition-button();
110
+ }
111
+
112
+ &:first-child a {
113
+ border-left: 1px solid $color;
114
+ border-top-left-radius: $border-radius;
115
+ border-bottom-left-radius: $border-radius;
116
+ }
117
+
118
+ &:last-child a {
119
+ border-top-right-radius: $border-radius;
120
+ border-bottom-right-radius: $border-radius;
121
+ }
122
+
123
+ &:hover {
124
+ a {
125
+ background-color: lighten($color, 10%);
126
+ border-color: lighten($color, 10%);
127
+ color: #fff;
128
+ }
129
+ }
130
+
131
+ &:active, &:focus, &.selected {
132
+ a {
133
+ background-color: darken($color, 10%);
134
+ border-color: darken($color, 10%);
135
+ color: #fff;
136
+ }
137
+ }
138
+ }
139
+
140
+ @mixin little-button() {
141
+ padding: 6px 12px;
142
+ }
@@ -0,0 +1,9 @@
1
+ @mixin input-valid() {
2
+ border-color: $success;
3
+ background-color: rgba($success, .1);
4
+ }
5
+
6
+ @mixin input-invalid() {
7
+ border-color: $error;
8
+ background-color: rgba($error, .1);
9
+ }
@@ -0,0 +1,4 @@
1
+ @import "prefix_mixins";
2
+ @import "buttons_mixins";
3
+ @import "sidebar_mixins";
4
+ @import "forms";
@@ -0,0 +1,63 @@
1
+ @mixin transform($var) {
2
+ -webkit-transform: $var;
3
+ -moz-transform: $var;
4
+ -ms-transform: $var;
5
+ -o-transform: $var;
6
+ transform: $var;
7
+ }
8
+
9
+ @mixin appearance($effect:none) {
10
+ -webkit-appearance: $effect;
11
+ -moz-appearance: $effect;
12
+ -ms-appearance: $effect;
13
+ -o-appearance: $effect;
14
+ appearance: $effect;
15
+ }
16
+
17
+ @mixin transition($args...) {
18
+ -webkit-transition: $args;
19
+ -o-transition: $args;
20
+ transition: $args;
21
+ }
22
+
23
+ @mixin transition-button() {
24
+ @include transition(border .15s linear,color .15s linear,width .15s linear,background-color .15s linear);
25
+ }
26
+
27
+ @mixin box-shadow($args...) {
28
+ -webkit-box-shadow: $args;
29
+ -moz-box-shadow: $args;
30
+ box-shadow: $args;
31
+ }
32
+
33
+ @mixin disable-user-select() {
34
+ -webkit-touch-callout: none;
35
+ -webkit-user-select: none;
36
+ -khtml-user-select: none;
37
+ -moz-user-select: none;
38
+ -ms-user-select: none;
39
+ user-select: none;
40
+ }
41
+
42
+ @mixin clear-fix() {
43
+ &:after {
44
+ content: '';
45
+ display: block;
46
+ clear: both;
47
+ }
48
+ }
49
+
50
+ @mixin outline() {
51
+ &:focus {
52
+ outline: 0;
53
+ }
54
+ }
55
+
56
+ @mixin icon($code-icon) {
57
+ font-size: inherit;
58
+ text-rendering: auto;
59
+ -webkit-font-smoothing: antialiased;
60
+ -moz-osx-font-smoothing: grayscale;
61
+ font: 900 normal normal 14px/1 $font-icon;
62
+ content: $code-icon;
63
+ }
@@ -0,0 +1,24 @@
1
+ @mixin sidebar-container() {
2
+ #active_admin_content.with_sidebar {
3
+ #main_content_wrapper {
4
+ width: $screen-filter-width;
5
+
6
+ @media screen and (min-width: $sm-width) {
7
+ padding-right: 10px;
8
+ }
9
+
10
+ @media screen and (min-width: $lg-width) {
11
+ padding-right: 0;
12
+ width: $lg-screen-filter-width;
13
+ }
14
+ }
15
+
16
+ #sidebar {
17
+ display: inline-block;
18
+
19
+ tr:hover {
20
+ background: rgba(243, 247, 249, 0.3);
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,124 @@
1
+ @mixin s95-admin-form() {
2
+ @include sidebar-container();
3
+
4
+ form legend {
5
+ font-weight: normal;
6
+ }
7
+
8
+ fieldset.inputs {
9
+ margin-bottom: 20px;
10
+ }
11
+
12
+ .input {
13
+ .label {
14
+ padding-bottom: 5px;
15
+ text-align: left;
16
+ margin: auto 0;
17
+ padding-top: 8px;
18
+ text-align: right;
19
+ font-size: $font-size;
20
+
21
+ @media screen and (min-width: $sm-width) {
22
+ padding-bottom: 0;
23
+ height: 25px;
24
+ width: $form-margin-left;
25
+ float: left;
26
+ padding-right: 20px;
27
+ }
28
+ }
29
+ input, textarea {
30
+ @media screen and (min-width: $sm-width) {
31
+ width: $form-input-width;
32
+ }
33
+
34
+ &[type='radio'] {
35
+ width: 15px;
36
+ float: left;
37
+ margin-top: 3px;
38
+ }
39
+
40
+ &[type='checkbox'] {
41
+ width: 15px;
42
+ margin: 0 5px -2px 0;
43
+ }
44
+ }
45
+
46
+ .select2-container {
47
+ @media screen and (min-width: $sm-width) {
48
+ width: $form-input-width !important;
49
+ }
50
+
51
+ a {
52
+ height: 30px;
53
+ line-height: 30px;
54
+ }
55
+ }
56
+
57
+ select {
58
+ min-width: $form-input-width;
59
+ height: 30px;
60
+ }
61
+
62
+ select[multiple] {
63
+ height: 100px;
64
+ }
65
+
66
+ .fragment {
67
+ margin-right: 10px;
68
+
69
+ label {
70
+ padding-right: 5px;
71
+ }
72
+
73
+ select {
74
+ min-width: auto;
75
+ }
76
+ }
77
+
78
+ &.boolean {
79
+ margin-left: $form-margin-left;
80
+ @include disable-user-select();
81
+
82
+ input {
83
+ width: auto;
84
+ }
85
+
86
+ label {
87
+ font-size: $font-size;
88
+ cursor: pointer;
89
+ padding: 5px 5px 5px 0;
90
+ }
91
+
92
+ input[type='checkbox'] {
93
+ width: 15px;
94
+ margin: 0 5px -2px 0;
95
+ }
96
+ }
97
+
98
+ li.fragment {
99
+ display: inline;
100
+ }
101
+
102
+ li.choice {
103
+ margin-left: $form-margin-left;
104
+
105
+ .field_with_errors {
106
+ float: left;
107
+ }
108
+ }
109
+
110
+ .inline-errors {
111
+ padding-left: $form-margin-left;
112
+ }
113
+ }
114
+
115
+ .actions {
116
+ padding-left: $form-margin-left;
117
+ }
118
+ }
119
+
120
+ body.logged_in {
121
+ &.new, &.edit, &.create, &.update {
122
+ @include s95-admin-form();
123
+ }
124
+ }