visagio-arctic_admin 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/assets/fonts/Lato-Bold.eot +0 -0
- data/app/assets/fonts/Lato-Bold.ttf +0 -0
- data/app/assets/fonts/Lato-Bold.woff +0 -0
- data/app/assets/fonts/Lato-Bold.woff2 +0 -0
- data/app/assets/fonts/Lato-BoldItalic.eot +0 -0
- data/app/assets/fonts/Lato-BoldItalic.ttf +0 -0
- data/app/assets/fonts/Lato-BoldItalic.woff +0 -0
- data/app/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- data/app/assets/fonts/Lato-Italic.eot +0 -0
- data/app/assets/fonts/Lato-Italic.ttf +0 -0
- data/app/assets/fonts/Lato-Italic.woff +0 -0
- data/app/assets/fonts/Lato-Italic.woff2 +0 -0
- data/app/assets/fonts/Lato-Regular.eot +0 -0
- data/app/assets/fonts/Lato-Regular.ttf +0 -0
- data/app/assets/fonts/Lato-Regular.woff +0 -0
- data/app/assets/fonts/Lato-Regular.woff2 +0 -0
- data/app/assets/javascripts/arctic_admin/base.js +79 -0
- data/app/assets/stylesheets/arctic_admin/_base.scss +34 -0
- data/app/assets/stylesheets/arctic_admin/_common.scss +27 -0
- data/app/assets/stylesheets/arctic_admin/_fonts.scss +47 -0
- data/app/assets/stylesheets/arctic_admin/_grid.scss +4 -0
- data/app/assets/stylesheets/arctic_admin/_reset.scss +41 -0
- data/app/assets/stylesheets/arctic_admin/components/_columns.scss +4 -0
- data/app/assets/stylesheets/arctic_admin/components/_comments.scss +54 -0
- data/app/assets/stylesheets/arctic_admin/components/_components.scss +12 -0
- data/app/assets/stylesheets/arctic_admin/components/_date_picker.scss +38 -0
- data/app/assets/stylesheets/arctic_admin/components/_dialogs.scss +23 -0
- data/app/assets/stylesheets/arctic_admin/components/_flash.scss +27 -0
- data/app/assets/stylesheets/arctic_admin/components/_form.scss +65 -0
- data/app/assets/stylesheets/arctic_admin/components/_inputs.scss +109 -0
- data/app/assets/stylesheets/arctic_admin/components/_pagination.scss +25 -0
- data/app/assets/stylesheets/arctic_admin/components/_panel_contents.scss +14 -0
- data/app/assets/stylesheets/arctic_admin/components/_status_tag.scss +17 -0
- data/app/assets/stylesheets/arctic_admin/components/_tables.scss +66 -0
- data/app/assets/stylesheets/arctic_admin/components/_tabs.scss +33 -0
- data/app/assets/stylesheets/arctic_admin/layouts/_filter.scss +64 -0
- data/app/assets/stylesheets/arctic_admin/layouts/_footer.scss +4 -0
- data/app/assets/stylesheets/arctic_admin/layouts/_header.scss +237 -0
- data/app/assets/stylesheets/arctic_admin/layouts/_main_content.scss +44 -0
- data/app/assets/stylesheets/arctic_admin/layouts/_sidebar.scss +104 -0
- data/app/assets/stylesheets/arctic_admin/mixins/_buttons_mixins.scss +120 -0
- data/app/assets/stylesheets/arctic_admin/mixins/_mixins.scss +2 -0
- data/app/assets/stylesheets/arctic_admin/mixins/_prefix_mixins.scss +63 -0
- data/app/assets/stylesheets/arctic_admin/pages/_form.scss +114 -0
- data/app/assets/stylesheets/arctic_admin/pages/_index.scss +115 -0
- data/app/assets/stylesheets/arctic_admin/pages/_login.scss +65 -0
- data/app/assets/stylesheets/arctic_admin/pages/_show.scss +24 -0
- data/app/assets/stylesheets/arctic_admin/variables/_colors.scss +49 -0
- data/app/assets/stylesheets/arctic_admin/variables/_media_queries.scss +10 -0
- data/app/assets/stylesheets/arctic_admin/variables/_size.scss +9 -0
- data/app/assets/stylesheets/arctic_admin/variables/_variables.scss +5 -0
- data/lib/arctic_admin.rb +9 -0
- data/lib/arctic_admin/version.rb +3 -0
- metadata +166 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
#main_content_wrapper {
|
2
|
+
float: left;
|
3
|
+
width: 100%;
|
4
|
+
|
5
|
+
@include clear-fix();
|
6
|
+
}
|
7
|
+
|
8
|
+
#active_admin_content.with_sidebar #main_content_wrapper {
|
9
|
+
width: 100%;
|
10
|
+
|
11
|
+
@media screen and (min-width: $sm-width) {
|
12
|
+
#main_content {
|
13
|
+
border-top-right-radius: $border-radius;
|
14
|
+
border-bottom-right-radius: $border-radius;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
@media screen and (min-width: $lg-width) {
|
19
|
+
#main_content {
|
20
|
+
margin-right: 20px;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
@media screen and (min-width: $lg-width) {
|
25
|
+
#main_content {
|
26
|
+
margin-right: 20px;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
#main_content {
|
32
|
+
background-color: #fff;
|
33
|
+
@include box-shadow(0 0 4px 0 rgba(0,0,0,.04));
|
34
|
+
padding: 15px 10px;
|
35
|
+
|
36
|
+
@media screen and (max-width: 576px) {
|
37
|
+
overflow-x: scroll;
|
38
|
+
}
|
39
|
+
|
40
|
+
@media screen and (min-width: $lg-width) {
|
41
|
+
padding: 20px;
|
42
|
+
border-radius: $border-radius;
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,104 @@
|
|
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: 1;
|
9
|
+
overflow: auto;
|
10
|
+
left: - $header-width;
|
11
|
+
|
12
|
+
@media screen and (min-width: $sm-width) {
|
13
|
+
top: 60px;
|
14
|
+
}
|
15
|
+
|
16
|
+
@media screen and (min-width: $lg-width) {
|
17
|
+
left: 0px !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
@media screen and (min-width: $x-lg-width) {
|
21
|
+
width: $lg-header-width;
|
22
|
+
}
|
23
|
+
|
24
|
+
li {
|
25
|
+
width: 100%;
|
26
|
+
font-size: 14px;
|
27
|
+
line-height: 38px;
|
28
|
+
cursor: pointer;
|
29
|
+
|
30
|
+
a {
|
31
|
+
width: 100%;
|
32
|
+
height: 100%;
|
33
|
+
display: inline-block;
|
34
|
+
color: $text-color;
|
35
|
+
padding: 0 20px;
|
36
|
+
|
37
|
+
&:hover {
|
38
|
+
background-color: $sidebar-item-hover-background;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
&.current {
|
43
|
+
a {
|
44
|
+
color: $primary-color;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
&.has_nested {
|
49
|
+
& > a:nth-child(1) {
|
50
|
+
position: relative;
|
51
|
+
|
52
|
+
&:after {
|
53
|
+
@include icon("\f0d7");
|
54
|
+
display: inline;
|
55
|
+
position: absolute;
|
56
|
+
top: 50%;
|
57
|
+
right: 20px;
|
58
|
+
@include transform(translateY(-50%));
|
59
|
+
color: $text-color;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
ul {
|
64
|
+
border-top: 1px solid $sidebar-border-color;
|
65
|
+
border-bottom: 1px solid $sidebar-border-color;
|
66
|
+
background-color: $body-background;
|
67
|
+
padding: 10px 0;
|
68
|
+
cursor: auto;
|
69
|
+
display: none;
|
70
|
+
|
71
|
+
a {
|
72
|
+
padding: 0px 15px 0px 35px;
|
73
|
+
color: $text-color;
|
74
|
+
|
75
|
+
&:hover {
|
76
|
+
background-color: $sidebar-nested-item-hover-background;
|
77
|
+
}
|
78
|
+
|
79
|
+
@media screen and (min-width: $x-lg-width) {
|
80
|
+
padding: 0px 15px 0px 40px;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.current a {
|
85
|
+
color: $primary-color;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
&.open, &.current {
|
90
|
+
& > a:nth-child(1) {
|
91
|
+
position: relative;
|
92
|
+
|
93
|
+
&:after {
|
94
|
+
@include icon("\f0d8");
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
ul {
|
99
|
+
display: block;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
@mixin button() {
|
2
|
+
border-radius: $border-radius;
|
3
|
+
display: inline-block;
|
4
|
+
@include transition-button();
|
5
|
+
cursor: pointer;
|
6
|
+
|
7
|
+
&:active, &:focus {
|
8
|
+
outline: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
&.disabled, &:disabled {
|
12
|
+
opacity: 0.6;
|
13
|
+
cursor: no-drop;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin primary-button($background-color, $color) {
|
18
|
+
background-color: $background-color;
|
19
|
+
color: $color;
|
20
|
+
border: none;
|
21
|
+
@include button();
|
22
|
+
|
23
|
+
&:hover {
|
24
|
+
background-color: lighten($background-color, 10%);
|
25
|
+
}
|
26
|
+
|
27
|
+
&:active, &:focus {
|
28
|
+
background-color: darken($background-color, 10%);
|
29
|
+
}
|
30
|
+
|
31
|
+
&:disabled {
|
32
|
+
background-color: $background-color;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin secondary-button($color) {
|
37
|
+
background-color: #fff;
|
38
|
+
color: $color;
|
39
|
+
border: 1px solid $color;
|
40
|
+
@include button();
|
41
|
+
|
42
|
+
&:hover {
|
43
|
+
color: #fff;
|
44
|
+
background-color: $color;
|
45
|
+
}
|
46
|
+
|
47
|
+
&:active, &:focus {
|
48
|
+
background-color: darken($color, 10%);
|
49
|
+
color: #fff;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin secondary-dropdown($color) {
|
54
|
+
@include secondary-button($color);
|
55
|
+
padding: 6px 25px 6px 10px;
|
56
|
+
position: relative;
|
57
|
+
|
58
|
+
&:after {
|
59
|
+
@include icon("\f0dd");
|
60
|
+
position: absolute;
|
61
|
+
right: 8px;
|
62
|
+
}
|
63
|
+
|
64
|
+
&:active, &:focus {
|
65
|
+
background-color: darken($color, 10%);
|
66
|
+
color: #fff;
|
67
|
+
}
|
68
|
+
|
69
|
+
&.disabled, &:disabled {
|
70
|
+
color: $grey;
|
71
|
+
background-color: #f3f7f9;
|
72
|
+
border-color: #f3f7f9;
|
73
|
+
@include box-shadow(none);
|
74
|
+
opacity: .65;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@mixin group-button($color) {
|
79
|
+
a {
|
80
|
+
display: inline-block;
|
81
|
+
color: $color;
|
82
|
+
border-top: 1px solid $color;
|
83
|
+
border-bottom: 1px solid $color;
|
84
|
+
float: left;
|
85
|
+
padding: 6px 10px;
|
86
|
+
border-right: 1px solid $color;
|
87
|
+
@include transition-button();
|
88
|
+
}
|
89
|
+
|
90
|
+
&:first-child a {
|
91
|
+
border-left: 1px solid $color;
|
92
|
+
border-top-left-radius: $border-radius;
|
93
|
+
border-bottom-left-radius: $border-radius;
|
94
|
+
}
|
95
|
+
|
96
|
+
&:last-child a {
|
97
|
+
border-top-right-radius: $border-radius;
|
98
|
+
border-bottom-right-radius: $border-radius;
|
99
|
+
}
|
100
|
+
|
101
|
+
&:hover {
|
102
|
+
a {
|
103
|
+
background-color: lighten($color, 10%);
|
104
|
+
border-color: lighten($color, 10%);
|
105
|
+
color: #fff;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
&:active, &:focus, &.selected {
|
110
|
+
a {
|
111
|
+
background-color: darken($color, 10%);
|
112
|
+
border-color: darken($color, 10%);
|
113
|
+
color: #fff;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
@mixin little-button() {
|
119
|
+
padding: 6px 12px;
|
120
|
+
}
|
@@ -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 .2s linear,color .2s linear,width .2s linear,background-color .2s 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: normal normal normal 14px/1 FontAwesome;
|
62
|
+
content: $code-icon;
|
63
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
body.logged_in {
|
2
|
+
&.new, &.edit, &.create, &.update {
|
3
|
+
.formtastic legend {
|
4
|
+
font-weight: normal;
|
5
|
+
}
|
6
|
+
|
7
|
+
fieldset.inputs {
|
8
|
+
margin-bottom: 20px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.input {
|
12
|
+
.label {
|
13
|
+
padding-bottom: 5px;
|
14
|
+
text-align: left;
|
15
|
+
margin: auto 0;
|
16
|
+
padding-top: 8px;
|
17
|
+
text-align: right;
|
18
|
+
font-size: 14px;
|
19
|
+
|
20
|
+
@media screen and (min-width: $sm-width) {
|
21
|
+
padding-bottom: 0;
|
22
|
+
height: 25px;
|
23
|
+
width: 25%;
|
24
|
+
float: left;
|
25
|
+
padding-right: 20px;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
input, textarea {
|
29
|
+
@media screen and (min-width: $sm-width) {
|
30
|
+
width: 50%;
|
31
|
+
}
|
32
|
+
|
33
|
+
&[type='radio'] {
|
34
|
+
width: 15px;
|
35
|
+
float: left;
|
36
|
+
margin-top: 3px;
|
37
|
+
}
|
38
|
+
|
39
|
+
&[type='checkbox'] {
|
40
|
+
width: 15px;
|
41
|
+
margin: 0 5px -2px 0;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.select2-container {
|
46
|
+
@media screen and (min-width: $sm-width) {
|
47
|
+
width: 50% !important;
|
48
|
+
}
|
49
|
+
|
50
|
+
a {
|
51
|
+
height: 30px;
|
52
|
+
line-height: 30px;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
select {
|
57
|
+
min-width: 50%;
|
58
|
+
height: 30px;
|
59
|
+
}
|
60
|
+
|
61
|
+
.fragment {
|
62
|
+
margin-right: 10px;
|
63
|
+
|
64
|
+
label {
|
65
|
+
padding-right: 5px;
|
66
|
+
}
|
67
|
+
|
68
|
+
select {
|
69
|
+
min-width: auto;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&.boolean {
|
74
|
+
margin-left: 25%;
|
75
|
+
@include disable-user-select();
|
76
|
+
|
77
|
+
input {
|
78
|
+
width: auto;
|
79
|
+
}
|
80
|
+
|
81
|
+
label {
|
82
|
+
font-size: 14px;
|
83
|
+
cursor: pointer;
|
84
|
+
padding: 5px 5px 5px 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
input[type='checkbox'] {
|
88
|
+
width: 15px;
|
89
|
+
margin: 0 5px -2px 0;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
li.fragment {
|
94
|
+
display: inline;
|
95
|
+
}
|
96
|
+
|
97
|
+
li.choice {
|
98
|
+
margin-left: 25%;
|
99
|
+
|
100
|
+
.field_with_errors {
|
101
|
+
float: left;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
.inline-errors {
|
106
|
+
padding-left: 25%;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.actions {
|
111
|
+
padding-left: 25%;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|