arctic_admin 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/Gemfile +1 -0
  4. data/LICENCE.txt +22 -0
  5. data/README.md +71 -0
  6. data/app/assets/.DS_Store +0 -0
  7. data/app/assets/fonts/Lato-Black.eot +0 -0
  8. data/app/assets/fonts/Lato-Black.ttf +0 -0
  9. data/app/assets/fonts/Lato-Black.woff +0 -0
  10. data/app/assets/fonts/Lato-Black.woff2 +0 -0
  11. data/app/assets/fonts/Lato-BlackItalic.eot +0 -0
  12. data/app/assets/fonts/Lato-BlackItalic.ttf +0 -0
  13. data/app/assets/fonts/Lato-BlackItalic.woff +0 -0
  14. data/app/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  15. data/app/assets/fonts/Lato-Bold.eot +0 -0
  16. data/app/assets/fonts/Lato-Bold.ttf +0 -0
  17. data/app/assets/fonts/Lato-Bold.woff +0 -0
  18. data/app/assets/fonts/Lato-Bold.woff2 +0 -0
  19. data/app/assets/fonts/Lato-BoldItalic.eot +0 -0
  20. data/app/assets/fonts/Lato-BoldItalic.ttf +0 -0
  21. data/app/assets/fonts/Lato-BoldItalic.woff +0 -0
  22. data/app/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  23. data/app/assets/fonts/Lato-Hairline.eot +0 -0
  24. data/app/assets/fonts/Lato-Hairline.ttf +0 -0
  25. data/app/assets/fonts/Lato-Hairline.woff +0 -0
  26. data/app/assets/fonts/Lato-Hairline.woff2 +0 -0
  27. data/app/assets/fonts/Lato-HairlineItalic.eot +0 -0
  28. data/app/assets/fonts/Lato-HairlineItalic.ttf +0 -0
  29. data/app/assets/fonts/Lato-HairlineItalic.woff +0 -0
  30. data/app/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  31. data/app/assets/fonts/Lato-Heavy.eot +0 -0
  32. data/app/assets/fonts/Lato-Heavy.ttf +0 -0
  33. data/app/assets/fonts/Lato-Heavy.woff +0 -0
  34. data/app/assets/fonts/Lato-Heavy.woff2 +0 -0
  35. data/app/assets/fonts/Lato-HeavyItalic.eot +0 -0
  36. data/app/assets/fonts/Lato-HeavyItalic.ttf +0 -0
  37. data/app/assets/fonts/Lato-HeavyItalic.woff +0 -0
  38. data/app/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  39. data/app/assets/fonts/Lato-Italic.eot +0 -0
  40. data/app/assets/fonts/Lato-Italic.ttf +0 -0
  41. data/app/assets/fonts/Lato-Italic.woff +0 -0
  42. data/app/assets/fonts/Lato-Italic.woff2 +0 -0
  43. data/app/assets/fonts/Lato-Light.eot +0 -0
  44. data/app/assets/fonts/Lato-Light.ttf +0 -0
  45. data/app/assets/fonts/Lato-Light.woff +0 -0
  46. data/app/assets/fonts/Lato-Light.woff2 +0 -0
  47. data/app/assets/fonts/Lato-LightItalic.eot +0 -0
  48. data/app/assets/fonts/Lato-LightItalic.ttf +0 -0
  49. data/app/assets/fonts/Lato-LightItalic.woff +0 -0
  50. data/app/assets/fonts/Lato-LightItalic.woff2 +0 -0
  51. data/app/assets/fonts/Lato-Medium.eot +0 -0
  52. data/app/assets/fonts/Lato-Medium.ttf +0 -0
  53. data/app/assets/fonts/Lato-Medium.woff +0 -0
  54. data/app/assets/fonts/Lato-Medium.woff2 +0 -0
  55. data/app/assets/fonts/Lato-MediumItalic.eot +0 -0
  56. data/app/assets/fonts/Lato-MediumItalic.ttf +0 -0
  57. data/app/assets/fonts/Lato-MediumItalic.woff +0 -0
  58. data/app/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  59. data/app/assets/fonts/Lato-Regular.eot +0 -0
  60. data/app/assets/fonts/Lato-Regular.ttf +0 -0
  61. data/app/assets/fonts/Lato-Regular.woff +0 -0
  62. data/app/assets/fonts/Lato-Regular.woff2 +0 -0
  63. data/app/assets/fonts/Lato-Semibold.eot +0 -0
  64. data/app/assets/fonts/Lato-Semibold.ttf +0 -0
  65. data/app/assets/fonts/Lato-Semibold.woff +0 -0
  66. data/app/assets/fonts/Lato-Semibold.woff2 +0 -0
  67. data/app/assets/fonts/Lato-SemiboldItalic.eot +0 -0
  68. data/app/assets/fonts/Lato-SemiboldItalic.ttf +0 -0
  69. data/app/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  70. data/app/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  71. data/app/assets/fonts/Lato-Thin.eot +0 -0
  72. data/app/assets/fonts/Lato-Thin.ttf +0 -0
  73. data/app/assets/fonts/Lato-Thin.woff +0 -0
  74. data/app/assets/fonts/Lato-Thin.woff2 +0 -0
  75. data/app/assets/fonts/Lato-ThinItalic.eot +0 -0
  76. data/app/assets/fonts/Lato-ThinItalic.ttf +0 -0
  77. data/app/assets/fonts/Lato-ThinItalic.woff +0 -0
  78. data/app/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  79. data/app/assets/images/.keep +0 -0
  80. data/app/assets/javascripts/.DS_Store +0 -0
  81. data/app/assets/javascripts/arctic_admin.js +17 -0
  82. data/app/assets/stylesheets/.DS_Store +0 -0
  83. data/app/assets/stylesheets/_base.scss +34 -0
  84. data/app/assets/stylesheets/_fonts.scss +216 -0
  85. data/app/assets/stylesheets/_reset.scss +26 -0
  86. data/app/assets/stylesheets/_variables.scss +21 -0
  87. data/app/assets/stylesheets/arctic_admin.scss +1 -0
  88. data/app/assets/stylesheets/components/_date_picker.scss +29 -0
  89. data/app/assets/stylesheets/components/_flash.scss +27 -0
  90. data/app/assets/stylesheets/components/_form.scss +32 -0
  91. data/app/assets/stylesheets/components/_inputs.scss +61 -0
  92. data/app/assets/stylesheets/components/_panel_contents.scss +7 -0
  93. data/app/assets/stylesheets/components/_status_tag.scss +17 -0
  94. data/app/assets/stylesheets/components/_tables.scss +47 -0
  95. data/app/assets/stylesheets/layouts/_footer.scss +4 -0
  96. data/app/assets/stylesheets/layouts/_header.scss +203 -0
  97. data/app/assets/stylesheets/layouts/_main_content.scss +21 -0
  98. data/app/assets/stylesheets/layouts/_sidebar.scss +60 -0
  99. data/app/assets/stylesheets/mixins/_buttons_mixins.scss +104 -0
  100. data/app/assets/stylesheets/mixins/_mixins.scss +2 -0
  101. data/app/assets/stylesheets/mixins/_prefix_mixins.scss +29 -0
  102. data/app/assets/stylesheets/pages/_edit.scss +19 -0
  103. data/app/assets/stylesheets/pages/_index.scss +99 -0
  104. data/app/assets/stylesheets/pages/_login.scss +36 -0
  105. data/app/assets/stylesheets/pages/_show.scss +15 -0
  106. data/arctic_admin-1.0.0.gem +0 -0
  107. data/arctic_admin-1.0.1.gem +0 -0
  108. data/arctic_admin.gemspec +14 -0
  109. data/doc/.DS_Store +0 -0
  110. data/doc/dashboard.png +0 -0
  111. data/doc/index.png +0 -0
  112. data/doc/login.png +0 -0
  113. data/doc/show.png +0 -0
  114. metadata +113 -1
@@ -0,0 +1,26 @@
1
+ *, *:after, *:before {
2
+ -webkit-box-sizing: border-box;
3
+ -moz-box-sizing: border-box;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ html {
8
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
9
+ }
10
+
11
+ html, body {
12
+ padding: 0;
13
+ margin: 0;
14
+ }
15
+
16
+ fieldset {
17
+ border: none;
18
+ margin: 0;
19
+ padding: 0;
20
+ }
21
+
22
+ ol, ul {
23
+ margin: 0;
24
+ padding: 0;
25
+ list-style: none;
26
+ }
@@ -0,0 +1,21 @@
1
+ $red: #b34247;
2
+ $green: #2dbb43;
3
+ $blue: #4bacfe;
4
+
5
+ $body-background: #eee !default;
6
+ $header-border-color: #e6e6e6 !default;
7
+ $left-menu-background: #f5f5f5 !default;
8
+
9
+ $left-menu-item-hover-background: #f0f0f0 !default;
10
+ $left-menu-item-nested-hover-background: #e7e7e7 !default;
11
+
12
+ $text-color: #5a5a5a !default;
13
+ $text-color-important: #526069 !default;
14
+
15
+ $header-width: 200px !default;
16
+ $screen-header-width: calc(100% - 200px) !default;
17
+
18
+ $sidebar-width: 230px !default;
19
+ $screen-sidebar-width: calc(100% - 230px) !default;
20
+
21
+ $primary-color: $blue !default;
@@ -0,0 +1 @@
1
+ @import "base";
@@ -0,0 +1,29 @@
1
+ #ui-datepicker-div {
2
+ background-color: #fff;
3
+ padding: 5px;
4
+ border-radius: 3px;
5
+ box-shadow: 0 0 4px 0 rgba(0,0,0,.04);
6
+ z-index: 3!important;
7
+
8
+ .ui-datepicker-prev {
9
+ float: left;
10
+ }
11
+
12
+ .ui-datepicker-next {
13
+ float: right;
14
+ }
15
+
16
+ .ui-datepicker-title {
17
+ text-align: center;
18
+ }
19
+
20
+ .ui-datepicker-calendar {
21
+ tr:hover {
22
+ background-color: #fff;
23
+ }
24
+
25
+ td {
26
+ border: none;
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,27 @@
1
+ .flash {
2
+ width: 100%;
3
+ padding: 10px;
4
+ text-align: center;
5
+ background-color: #76838f;
6
+ color: #fff;
7
+ }
8
+
9
+ .flash_alert {
10
+ background-color: #f96868;
11
+ color: #fff;
12
+ }
13
+
14
+ .flash_warning {
15
+ background-color: #f2a654;
16
+ color: #fff;
17
+ }
18
+
19
+ .flash_notice {
20
+ background-color: #46be8a;
21
+ color: #fff;
22
+ }
23
+
24
+ .flash_info {
25
+ background-color: #57c7d4;
26
+ color: #fff;
27
+ }
@@ -0,0 +1,32 @@
1
+ .label {
2
+ display: inline-block;
3
+ margin-bottom: 5px;
4
+ }
5
+
6
+ .input {
7
+ margin-bottom: 20px;
8
+ }
9
+
10
+ #active_admin_content {
11
+ .formtastic {
12
+ legend {
13
+ margin-bottom: 20px;
14
+ }
15
+
16
+ .actions {
17
+
18
+ .action {
19
+ display: inline-block;
20
+ margin-right: 10px;
21
+
22
+ input[type="submit"] {
23
+ line-height: 43px;
24
+ }
25
+ }
26
+
27
+ .cancel {
28
+ display: inline-block;
29
+ }
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,61 @@
1
+ input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
2
+ -webkit-appearance: none;
3
+ -webkit-box-shadow: none;
4
+ box-shadow: none;
5
+ -webkit-transition: -webkit-box-shadow .25s linear,border .25s linear,color .25s linear,background-color .25s linear;
6
+ -o-transition: box-shadow .25s linear,border .25s linear,color .25s linear,background-color .25s linear;
7
+ transition: box-shadow .25s linear,border .25s linear,color .25s linear,background-color .25s linear;
8
+ -moz-appearance: none;
9
+
10
+ display: block;
11
+ width: 100%;
12
+ height: 36px;
13
+ padding: 6px 15px;
14
+ font-size: 14px;
15
+ line-height: 1.57142857;
16
+ color: #76838f;
17
+ background-color: #fff;
18
+ background-image: none;
19
+ border: 1px solid #e4eaec;
20
+ border-radius: 3px;
21
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
22
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
23
+ -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
24
+ -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
25
+ transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
26
+
27
+ &:focus {
28
+ border-color: #62a8ea;
29
+ -webkit-box-shadow: none;
30
+ box-shadow: none;
31
+ outline: 0;
32
+
33
+ -webkit-appearance: none;
34
+ -webkit-box-shadow: none;
35
+ box-shadow: none;
36
+ -webkit-transition: -webkit-box-shadow .25s linear,border .25s linear,color .25s linear,background-color .25s linear;
37
+ -o-transition: box-shadow .25s linear,border .25s linear,color .25s linear,background-color .25s linear;
38
+ transition: box-shadow .25s linear,border .25s linear,color .25s linear,background-color .25s linear;
39
+ -moz-appearance: none;
40
+ }
41
+
42
+ &:-webkit-autofill {
43
+ -webkit-box-shadow: 0 0 0px 1000px white inset;
44
+ }
45
+ }
46
+
47
+ input[type="submit"] {
48
+ @include primary-button($primary-color, white);
49
+ width: 100%;
50
+ padding: 0 12px;
51
+ font-size: 15px;
52
+ font-weight: 500;
53
+ box-shadow: 0 1px 0 rgba(0,0,0,.05);
54
+ border: none;
55
+ cursor: pointer;
56
+ }
57
+
58
+ textarea {
59
+ height: 80px;
60
+ padding: 5px 10px;
61
+ }
@@ -0,0 +1,7 @@
1
+ .panel_contents {
2
+ th {
3
+ border-top: 1px solid #e4eaec;
4
+ text-align: left;
5
+ padding: 8px;
6
+ }
7
+ }
@@ -0,0 +1,17 @@
1
+ .status_tag {
2
+ background: #cacaca;
3
+ color: #fff;
4
+ text-transform: uppercase;
5
+ letter-spacing: 0.15em;
6
+ padding: 3px 5px 2px 5px;
7
+ font-size: 0.8em;
8
+ border-radius: 3px;
9
+ }
10
+
11
+ .status_tag.ok, .status_tag.published, .status_tag.complete, .status_tag.completed, .status_tag.green {
12
+ background-color: #46be8a;
13
+ }
14
+
15
+ .status_tag.cancel, .status_tag.red {
16
+ background-color: #f73737;
17
+ }
@@ -0,0 +1,47 @@
1
+ table {
2
+ width: 100%;
3
+ }
4
+
5
+ thead th {
6
+ font-size: 12px;
7
+ text-align: left;
8
+
9
+ a {
10
+ color: $text-color-important;
11
+ font-weight: normal;
12
+ width: 100%;
13
+ display: inline-block;
14
+ padding: 8px 20px 8px 8px;
15
+ }
16
+
17
+ &.col-selectable {
18
+ padding-left: 8px;
19
+ }
20
+ }
21
+
22
+ tbody tr {
23
+ &:nth-of-type(odd) {
24
+ background-color: rgba(243,247,249,.3);
25
+ }
26
+
27
+ &:hover {
28
+ background-color: #f3f7f9;
29
+ }
30
+
31
+ th {
32
+ font-size: 14px;
33
+ }
34
+
35
+ td {
36
+ padding: 8px;
37
+ line-height: 1.57142857;
38
+ vertical-align: top;
39
+ border-top: 1px solid #e4eaec;
40
+ color: #7A8392;
41
+ font-size: 12px;
42
+
43
+ &.col-actions {
44
+ padding: 6px 8px;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,4 @@
1
+ .footer {
2
+ display: inline-block;
3
+ padding: 0 15px;
4
+ }
@@ -0,0 +1,203 @@
1
+ .admin_namespace {
2
+ padding-left: $header-width;
3
+ padding-top: 60px;
4
+
5
+ #active_admin_content {
6
+ padding: 30px 25px;
7
+
8
+ @include clear-fix();
9
+ }
10
+ }
11
+
12
+ .header {
13
+ .site_title {
14
+ width: $header-width;
15
+ height: 60px;
16
+ position: fixed;
17
+ top: 0;
18
+ left: 0;
19
+ background-color: #fff;
20
+ border-bottom: 1px solid $header-border-color;
21
+ font-size: 20px;
22
+ text-align: center;
23
+ margin: 0;
24
+ line-height: 60px;
25
+ }
26
+
27
+ #tabs {
28
+ width: $header-width;
29
+ height: calc(100% - 60px);
30
+ position: fixed;
31
+ top: 60px;
32
+ left: 0;
33
+ background-color: $left-menu-background;
34
+ border-right: 1px solid $header-border-color;
35
+
36
+ li {
37
+ width: 100%;
38
+ font-size: 14px;
39
+ line-height: 38px;
40
+ cursor: pointer;
41
+
42
+ a {
43
+ width: 100%;
44
+ height: 100%;
45
+ display: inline-block;
46
+ color: $text-color;
47
+ padding: 0 20px;
48
+
49
+ &:hover {
50
+ background-color: $left-menu-item-hover-background;
51
+ }
52
+ }
53
+
54
+ &.current {
55
+ a {
56
+ color: $primary-color;
57
+ }
58
+ }
59
+
60
+ &.has_nested {
61
+ ul {
62
+ border-top: 1px solid $header-border-color;
63
+ border-bottom: 1px solid $header-border-color;
64
+ background-color: $body-background;
65
+ padding: 10px 0;
66
+ cursor: auto;
67
+
68
+ a {
69
+ padding: 0px 15px 0px 40px;
70
+ color: $text-color;
71
+
72
+ &:hover {
73
+ background-color: $left-menu-item-nested-hover-background;
74
+ }
75
+ }
76
+
77
+ .current a {
78
+ color: $primary-color;
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ #utility_nav {
86
+ height: 60px;
87
+ position: fixed;
88
+ top: 0;
89
+ right: 0;
90
+ z-index: 3;
91
+ text-align: right;
92
+
93
+ li {
94
+ display: inline-block;
95
+ @include transition-button();
96
+
97
+ &:hover {
98
+ background-color: $left-menu-background;
99
+ }
100
+
101
+ &:active {
102
+ background-color: $left-menu-item-hover-background;
103
+ }
104
+ }
105
+
106
+ #current_user {
107
+ a {
108
+ visibility: hidden;
109
+ position: relative;
110
+ width: 60px;
111
+ height: 59px;
112
+ display: inline-block;
113
+
114
+ &:before {
115
+ @include icon("\f007");
116
+
117
+ display: inline;
118
+ visibility: visible;
119
+ cursor: pointer;
120
+ position: absolute;
121
+ top: 0;
122
+ right: 0;
123
+ color: $text-color;
124
+ padding: 20px 0;
125
+ text-align: center;
126
+ width: 60px;
127
+ font-size: 20px;
128
+ }
129
+ }
130
+ // a {
131
+ // color: $text-color;
132
+ // padding: 20px 10px;
133
+ // display: inline-block;
134
+ // }
135
+ }
136
+
137
+ #logout {
138
+ min-width: 60px;
139
+ min-height: 59px;
140
+ float: right;
141
+
142
+ a {
143
+ visibility: hidden;
144
+ position: relative;
145
+
146
+ &:before {
147
+ @include icon("\f011");
148
+
149
+ display: inline;
150
+ visibility: visible;
151
+ cursor: pointer;
152
+ position: absolute;
153
+ top: 0;
154
+ right: 0;
155
+ color: $text-color;
156
+ padding: 20px 0;
157
+ text-align: center;
158
+ width: 60px;
159
+ font-size: 20px;
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+
166
+ #title_bar {
167
+ height: 60px;
168
+ width: $screen-header-width;
169
+ background-color: #fff;
170
+ position: fixed;
171
+ top: 0;
172
+ left: $header-width;
173
+ border-bottom: 1px solid $header-border-color;
174
+ padding: 0 20px;
175
+ z-index: 2;
176
+
177
+ #titlebar_left {
178
+ padding-top: 6px;
179
+ display: inline-block;
180
+ float: left;
181
+ }
182
+
183
+ #titlebar_right {
184
+ display: inline-block;
185
+ margin-left: 20px;
186
+
187
+ .action_item a {
188
+ color: $text-color;
189
+ display: inline-block;
190
+ @include transition-button();
191
+ padding: 20px 12px;
192
+ float: left;
193
+
194
+ &:hover {
195
+ background-color: $left-menu-background;
196
+ }
197
+ }
198
+ }
199
+
200
+ #page_title {
201
+ margin: 0;
202
+ }
203
+ }