arctic_admin 1.2.0 → 1.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b8d483af20b927b80b3b489f326367950893852
4
- data.tar.gz: 719a7e132b20d9e0ae6f22889831ff06b458c88c
3
+ metadata.gz: 7833ceecb94243b98bb17b1161d729105b971974
4
+ data.tar.gz: f1948a685adddeef8899b2bfa395c761a29c3337
5
5
  SHA512:
6
- metadata.gz: 7954001d6ef6ae770bfc486eb919c4beba579b9ef47414ead1d07b2abda6786b1d8b566ed08878d7e722e3d48d6a3984fd65747dfd9b38600f873cfd4b815d92
7
- data.tar.gz: 0b1afa99a002b966e021a1f3458af8c3d9d0d64d8fdd6a7d6870e89ab03558805d3881a1cbc8321622f147d0ac38fb9378a0aaa5022d8d6264d6b90bb842e91d
6
+ metadata.gz: 70c188492e367a632d227fab6dd296dffbdc74d6273dd17aa39a2fb5c5af2e9be6bc56231817248c49ee7c3b8a58e85cc629a99f11c0f578946b5091c255a538
7
+ data.tar.gz: 4e549ca41dc952846dd400b8aaae1d18cbf609c9c72000df6a79bb6c315b90ad279bf0aeef579bc1d12b1e10a66f600d5964cb8aefd30cbe04f77d843abb1b3a
@@ -23,7 +23,7 @@ $(function() {
23
23
  });
24
24
 
25
25
  var animationDone = true;
26
- $('#title_bar').click(function (e) {
26
+ $('#utility_nav').click(function (e) {
27
27
  if ($(window).width() < 960) {
28
28
  var position = $(this).position();
29
29
  var tabs = $('#tabs');
@@ -4,13 +4,7 @@
4
4
 
5
5
  @import "mixins/mixins";
6
6
 
7
- @import "components/inputs";
8
- @import "components/flash";
9
- @import "components/tables";
10
- @import "components/date_picker";
11
- @import "components/status_tag";
12
- @import "components/panel_contents";
13
- @import "components/form";
7
+ @import "components/components";
14
8
 
15
9
  @import "layouts/header";
16
10
  @import "layouts/sidebar";
@@ -0,0 +1,9 @@
1
+ @import "components/inputs";
2
+ @import "components/flash";
3
+ @import "components/tables";
4
+ @import "components/date_picker";
5
+ @import "components/status_tag";
6
+ @import "components/panel_contents";
7
+ @import "components/form";
8
+ @import "components/pagination";
9
+ @import "components/dialogs";
@@ -0,0 +1,22 @@
1
+ .ui-dialog {
2
+ background-color: #fff;
3
+ box-shadow: 0 0 4px 0 rgba(0,0,0,0.1);
4
+ border-radius: 3px;
5
+ padding: 15px 10px;
6
+
7
+ &:focus, &:active {
8
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
9
+ outline: 0;
10
+ }
11
+
12
+ .ui-button {
13
+ @include primary-button($primary-color, #fff);
14
+ border: 0;
15
+ margin-right: 5px;
16
+ padding: 5px 10px;
17
+ }
18
+
19
+ .ui-dialog-titlebar-close {
20
+ display: none;
21
+ }
22
+ }
@@ -9,6 +9,10 @@
9
9
 
10
10
  #active_admin_content {
11
11
  .formtastic {
12
+ li {
13
+ list-style: none;
14
+ }
15
+
12
16
  legend {
13
17
  margin-bottom: 20px;
14
18
  font-weight: bold;
@@ -43,4 +47,4 @@
43
47
  }
44
48
  }
45
49
  }
46
- }
50
+ }
@@ -39,8 +39,9 @@ input[type="text"], input[type="email"], input[type="password"], input[type="num
39
39
  -moz-appearance: none;
40
40
  }
41
41
 
42
- &:-webkit-autofill {
42
+ &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus {
43
43
  -webkit-box-shadow: 0 0 0px 1000px white inset;
44
+ -webkit-text-fill-color: #76838f;
44
45
  }
45
46
  }
46
47
 
@@ -0,0 +1,9 @@
1
+ .pagination {
2
+ font-size: 13px;
3
+ margin-bottom: 10px;
4
+
5
+ .page a, .next a, .last a, .first a, .prev a {
6
+ @include primary-button($primary-color, white);
7
+ padding: 3px 4px;
8
+ }
9
+ }
@@ -45,6 +45,37 @@
45
45
  right: 0;
46
46
  z-index: 3;
47
47
  text-align: right;
48
+ background-color: $header-background;
49
+ border-bottom: 1px solid $header-border-color;
50
+ width: $screen-header-width;
51
+
52
+ @media screen and (min-width: $sm-width) {
53
+ &:before {
54
+ @include icon("\f0c9");
55
+
56
+ display: inline;
57
+ visibility: visible;
58
+ cursor: pointer;
59
+ position: absolute;
60
+ top: 0;
61
+ left: 0;
62
+ color: $text-color;
63
+ padding: 20px 0;
64
+ text-align: center;
65
+ width: 40px;
66
+ font-size: 20px;
67
+ }
68
+ }
69
+
70
+ @media screen and (min-width: $md-width) {
71
+ &:before {
72
+ display: none;
73
+ }
74
+ }
75
+
76
+ @media screen and (min-width: $lg-width) {
77
+ width: $lg-screen-header-width;
78
+ }
48
79
 
49
80
  li {
50
81
  display: inline-block;
@@ -115,76 +146,36 @@
115
146
  }
116
147
 
117
148
  #title_bar {
118
- height: 60px;
119
- width: $screen-header-width;
120
- background-color: $header-background;
121
- position: fixed;
122
- top: 0;
123
- left: $header-width;
124
- border-bottom: 1px solid $header-border-color;
125
- z-index: 2;
126
-
127
- @media screen and (min-width: $sm-width) {
128
- padding: 0 20px 0 50px;
129
-
130
- &:before {
131
- @include icon("\f0c9");
132
-
133
- display: inline;
134
- visibility: visible;
135
- cursor: pointer;
136
- position: absolute;
137
- top: 0;
138
- left: 0;
139
- color: $text-color;
140
- padding: 20px 0;
141
- text-align: center;
142
- width: 40px;
143
- font-size: 20px;
144
- }
145
- }
149
+ background-color: #fff;
150
+ box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
151
+ margin: 15px 0 0 0;
152
+ padding: 8px 10px;
153
+ @include clear-fix();
146
154
 
147
155
  @media screen and (min-width: $md-width) {
148
- padding: 0 20px;
149
-
150
- &:before {
151
- display: none;
152
- }
153
- }
154
-
155
- @media screen and (min-width: $lg-width) {
156
- width: $lg-screen-header-width;
157
- left: $lg-header-width;
156
+ padding: 8px 20px;
157
+ border-radius: 3px;
158
+ margin: 15px 25px 0 25px;
158
159
  }
159
160
 
160
161
  #titlebar_left {
161
- padding-top: 6px;
162
162
  display: inline-block;
163
163
  float: left;
164
+ line-height: 29px;
164
165
 
165
- h2:nth-child(1) {
166
- line-height: 48px;
166
+ h2 {
167
+ display: inline-block;
168
+ font-size: 16px;
167
169
  }
168
170
  }
169
171
 
170
172
  #titlebar_right {
171
173
  display: inline-block;
172
- margin-left: 20px;
174
+ float: right;
173
175
 
174
176
  .action_item a {
175
- color: $text-color;
176
- display: inline-block;
177
- @include transition-button();
178
- padding: 20px 12px;
179
- float: left;
180
-
181
- &:hover {
182
- background-color: $header-nav-action-hover-background;
183
- }
184
-
185
- &:active {
186
- background-color: $header-nav-action-active-background;
187
- }
177
+ @include primary-button($primary-color, #fff);
178
+ padding: 5px 8px;
188
179
  }
189
180
  }
190
181
 
@@ -1,9 +1,18 @@
1
- @mixin primary-button($background-color, $color) {
2
- background-color: $background-color;
3
- color: $color;
1
+ @mixin button() {
4
2
  border-radius: 3px;
5
3
  display: inline-block;
6
4
  @include transition-button();
5
+ cursor: pointer;
6
+
7
+ &:active, &:focus {
8
+ outline: 0;
9
+ }
10
+ }
11
+
12
+ @mixin primary-button($background-color, $color) {
13
+ background-color: $background-color;
14
+ color: $color;
15
+ @include button();
7
16
 
8
17
  &:hover {
9
18
  background-color: lighten($background-color, 10%);
@@ -18,9 +27,7 @@
18
27
  background-color: #fff;
19
28
  color: $color;
20
29
  border: 1px solid $color;
21
- border-radius: 3px;
22
- display: inline-block;
23
- @include transition-button();
30
+ @include button();
24
31
 
25
32
  &:hover {
26
33
  color: #fff;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arctic_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clément Prod'homme
@@ -151,10 +151,13 @@ files:
151
151
  - app/assets/stylesheets/_fonts.scss
152
152
  - app/assets/stylesheets/_reset.scss
153
153
  - app/assets/stylesheets/arctic_admin.scss
154
+ - app/assets/stylesheets/components/_components.scss
154
155
  - app/assets/stylesheets/components/_date_picker.scss
156
+ - app/assets/stylesheets/components/_dialogs.scss
155
157
  - app/assets/stylesheets/components/_flash.scss
156
158
  - app/assets/stylesheets/components/_form.scss
157
159
  - app/assets/stylesheets/components/_inputs.scss
160
+ - app/assets/stylesheets/components/_pagination.scss
158
161
  - app/assets/stylesheets/components/_panel_contents.scss
159
162
  - app/assets/stylesheets/components/_status_tag.scss
160
163
  - app/assets/stylesheets/components/_tables.scss