atlas_assets 0.7.0 → 0.7.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODhkNjA3OWZiZDE0YzlkMjQ5ZTE3Y2I5ODJmZTFkZWYxZDQ1MWU0OQ==
4
+ YzljMzRjODg2ZjJlMjlhOGQxYzc0NGU0NGI2OTVkMjY4ODAxMmM1OQ==
5
5
  data.tar.gz: !binary |-
6
- M2ExMjZkM2Y2YWRjMGU5NjQzZjljMTk1MTg3OTE0ZDQyNmExZDUzNA==
6
+ ZTAxNzY0YWZlNjUxYmFkODM1NzUxMTdiM2MyM2UyOTdlYzNkZjE2ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGUyMGZmNjQ5Y2Y4NGRhODQ3MjU0OTBkMjU5MThiNmZjM2Y5ODkyYTg4Y2Yw
10
- ZWMxNmViODcyOWIxZDQ1NzY4YTk5NzhjMWQyODI1ZmViYmY5N2Q5MjYxOTkz
11
- NmQ0ZmMzNjRjN2QwZmIwOGQwNDA4YTFhY2FmZTExODNmMTdkZGY=
9
+ NTVkMWM3ZDdhZDc5MTBiOWYyZGQyMmJkYzNkNzBjZDAzN2JhYjEwMjZjMTMw
10
+ NmQyOThkNThhNTM1YzZjYWM3NWNjMmE3YjE0NDM1Mjc0MDA1OGIyYmZjNzU3
11
+ ODBmNDZhY2E4ZDkxODc0ZWNjNmY2MmQyOTFhNzI4NjY3NGQwODQ=
12
12
  data.tar.gz: !binary |-
13
- YWNhMjY3YTA2OTZkZDVlYTRhMjVhMWU0ZWIwOGY0ZjRkYmRkMGU0OTVhNDky
14
- ZmNhZjRmMzRhNzJkM2M2Nzk4NWM4M2QwZTE1NDE2ZjkwNTk0MzdkNWUxZGNm
15
- NWJlNTAyNDAxYTliMzQ5NTgyZTdmZDY4ZmU1MTg2MGJjYzgzN2I=
13
+ YTFmY2EzYmJhZTIzZTczNWIyZGUxZDZjM2M0MTY5ZjNiNDY2YmY3MmVhMDcy
14
+ ZjFiZmEyNTRhNzdmYTFkYThjZDE3NjUzZDZhZjc5NTllYzU1N2Y1MGEzMjhl
15
+ ZDA3YjdjOWU5MWJkNTlhYjRmYmRlNmMzMWRjMzE5ZDUwNDliMGM=
data/Gemfile.lock CHANGED
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- atlas_assets (0.6.6.1)
13
+ atlas_assets (0.7.0)
14
14
  handlebars_assets (~> 0.15)
15
15
 
16
16
  GEM
@@ -51,7 +51,10 @@ class classes.SelectView extends Backbone.View
51
51
  bind_select: ->
52
52
  t = @
53
53
  @rendered = true
54
- @select = new Select({el: @$el.find('select')[0] })
54
+ @select = new Select({
55
+ el: @$el.find('select')[0]
56
+ className: 'select-theme-atlas'
57
+ })
55
58
  @select.on('change', (v) ->
56
59
  selected_model = t.collection.find((m) -> m.get(t.label) is v.value)
57
60
  t.trigger('change', selected_model)
@@ -26,7 +26,7 @@
26
26
  @import "atlas_assets/drop-theme-arrows";
27
27
  @import "atlas_assets/drop-theme-basic";
28
28
 
29
- @import "atlas_assets/select-theme-defaults";
29
+ @import "atlas_assets/select-theme-atlas";
30
30
 
31
31
  @import "atlas_assets/responsive-utilities";
32
32
  @import "atlas_assets/responsive-768-979";
@@ -0,0 +1,170 @@
1
+ // The svg uris need to be converted to Base64 for the asset pipeline
2
+ // minification.
3
+ //
4
+ // original white:
5
+ // "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='-0.5 0 20 15'><rect fill='white' stroke='none' transform='rotate(45 4.0033 8.87436)' height='5' width='6.32304' y='6.37436' x='0.84178'></rect><rect fill='white' stroke='none' transform='rotate(45 11.1776 7.7066)' width='5' height='16.79756' y='-0.69218' x='8.67764'></rect></svg>"
6
+ //
7
+ // original
8
+ // "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='-0.5 0 20 15'><rect fill='white' stroke='none' transform='rotate(45 4.0033 8.87436)' height='5' width='6.32304' y='6.37436' x='0.84178'></rect><rect fill='white' stroke='none' transform='rotate(45 11.1776 7.7066)' width='5' height='16.79756' y='-0.69218' x='8.67764'></rect></svg>"
9
+
10
+ @import "atlas_assets/_mixins";
11
+ @import "atlas_assets/_variables";
12
+
13
+ .select-select {
14
+ display: none;
15
+ /* For when we are on a small touch device and want to use native controls */
16
+ -webkit-pointer-events: none;
17
+ -moz-pointer-events: none;
18
+ pointer-events: none;
19
+ position: absolute;
20
+ opacity: 0;
21
+ }
22
+
23
+ .select-element, .select-element:after, .select-element:before, .select-element *, .select-element *:after, .select-element *:before {
24
+ @include box-sizing(border-box);
25
+ }
26
+
27
+ .select-element {
28
+ position: absolute;
29
+ display: none;
30
+
31
+ &.select-open {
32
+ display: block;
33
+ }
34
+ }
35
+
36
+ .select-theme-atlas, .select-theme-atlas *, .select-theme-atlas *:after, .select-theme-atlas *:before {
37
+ @include box-sizing(border-box); }
38
+
39
+ .select.select-theme-atlas {
40
+ -webkit-user-select: none;
41
+ -moz-user-select: none;
42
+ -ms-user-select: none;
43
+ -o-user-select: none;
44
+ user-select: none; }
45
+
46
+ .select.select-theme-atlas .select-content {
47
+ @include border-radius($defaultBorderRadius);
48
+ -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
49
+ -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
50
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
51
+ background: $white;
52
+ font-family: inherit;
53
+ color: inherit;
54
+ overflow: auto;
55
+ max-width: 18rem;
56
+ max-height: 18rem;
57
+ -webkit-overflow-scrolling: touch; }
58
+ @media (max-width: 27rem), (max-height: 27rem) {
59
+ .select.select-theme-atlas .select-content {
60
+ max-width: 11.25rem;
61
+ max-height: 11.25rem; } }
62
+ .select.select-theme-atlas .select-options {
63
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
64
+ -webkit-touch-callout: none;
65
+ margin: 0;
66
+ padding: 0; }
67
+ .select.select-theme-atlas .select-options .select-option {
68
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
69
+ -webkit-touch-callout: none;
70
+ position: relative;
71
+ list-style: none;
72
+ margin: 0;
73
+ line-height: 1.25rem;
74
+ padding: 0.5rem 1em 0.5rem 2.5em;
75
+ display: block;
76
+ cursor: pointer;
77
+ white-space: nowrap;
78
+ overflow: hidden;
79
+ text-overflow: ellipsis; }
80
+ .select.select-theme-atlas .select-options .select-option.select-option-selected:before {
81
+ content: url("data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9Jy0wLjUgMCAyMCAxNSc+PHJlY3QgZmlsbD0nIzQ0NDQ0NCcgc3Ryb2tlPSdub25lJyB0cmFuc2Zvcm09J3JvdGF0ZSg0NSA0LjAwMzMgOC44NzQzNiknIGhlaWdodD0nNScgd2lkdGg9JzYuMzIzMDQnIHk9JzYuMzc0MzYnIHg9JzAuODQxNzgnPjwvcmVjdD48cmVjdCBmaWxsPScjNDQ0NDQ0JyBzdHJva2U9J25vbmUnIHRyYW5zZm9ybT0ncm90YXRlKDQ1IDExLjE3NzYgNy43MDY2KScgd2lkdGg9JzUnIGhlaWdodD0nMTYuNzk3NTYnIHk9Jy0wLjY5MjE4JyB4PSc4LjY3NzY0Jz48L3JlY3Q+PC9zdmc+");
82
+ position: absolute;
83
+ left: 1em;
84
+ top: 0;
85
+ bottom: 0.2em;
86
+ height: 1em;
87
+ width: 1em;
88
+ margin: auto; }
89
+ .select.select-theme-atlas .select-options .select-option:hover, .select.select-theme-atlas .select-options .select-option.select-option-highlight {
90
+ background: $blue;
91
+ color: white; }
92
+ .select.select-theme-atlas .select-options .select-option:hover.select-option-selected:before, .select.select-theme-atlas .select-options .select-option.select-option-highlight.select-option-selected:before {
93
+ content: url("data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9Jy0wLjUgMCAyMCAxNSc+PHJlY3QgZmlsbD0nd2hpdGUnIHN0cm9rZT0nbm9uZScgdHJhbnNmb3JtPSdyb3RhdGUoNDUgNC4wMDMzIDguODc0MzYpJyBoZWlnaHQ9JzUnIHdpZHRoPSc2LjMyMzA0JyB5PSc2LjM3NDM2JyB4PScwLjg0MTc4Jz48L3JlY3Q+PHJlY3QgZmlsbD0nd2hpdGUnIHN0cm9rZT0nbm9uZScgdHJhbnNmb3JtPSdyb3RhdGUoNDUgMTEuMTc3NiA3LjcwNjYpJyB3aWR0aD0nNScgaGVpZ2h0PScxNi43OTc1NicgeT0nLTAuNjkyMTgnIHg9JzguNjc3NjQnPjwvcmVjdD48L3N2Zz4="); }
94
+ .select.select-theme-atlas .select-options .select-option:first-child {
95
+ @include border-radius($defaultBorderRadius $defaultBorderRadius 0 0);
96
+ }
97
+ .select.select-theme-atlas .select-options .select-option:last-child {
98
+ @include border-radius(0 0 $defaultBorderRadius $defaultBorderRadius);
99
+ }
100
+
101
+ .select-target.select-theme-atlas {
102
+ display: -moz-inline-stack;
103
+ display: inline-block;
104
+ vertical-align: middle;
105
+ *vertical-align: auto;
106
+ zoom: 1;
107
+ *display: inline;
108
+ @include border-radius($defaultBorderRadius);
109
+ -webkit-user-select: none;
110
+ -moz-user-select: none;
111
+ -ms-user-select: none;
112
+ -o-user-select: none;
113
+ user-select: none;
114
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
115
+ -webkit-touch-callout: none;
116
+ position: relative;
117
+ padding: 0.5rem 3em 0.5rem 1em;
118
+ background: $defaultBackgroundColor;
119
+ border: 1px solid #dddddd;
120
+ cursor: pointer;
121
+ color: #444444;
122
+ text-decoration: none;
123
+ white-space: nowrap;
124
+ max-width: 100%;
125
+ overflow: hidden;
126
+ text-overflow: ellipsis;
127
+
128
+ &.select-theme-atlas:hover {
129
+ border-color: #aaaaaa;
130
+ color: black;
131
+ }
132
+
133
+ &.select-theme-atlas.select-target-focused,
134
+ &.select-theme-atlas.select-target-focused:focus {
135
+ border-color: $blue;
136
+ outline: none;
137
+ }
138
+
139
+ &.select-theme-atlas b {
140
+ position: absolute;
141
+ right: 1em;
142
+ top: 0;
143
+ bottom: 0;
144
+ margin: auto;
145
+ height: 1.25rem;
146
+ width: 2em;
147
+
148
+ &:before,
149
+ &:after {
150
+ content: "";
151
+ display: block;
152
+ position: absolute;
153
+ margin: auto;
154
+ right: 0;
155
+ height: 0;
156
+ width: 0;
157
+ border: 0.263em solid transparent;
158
+ }
159
+
160
+ &:before {
161
+ top: 0;
162
+ border-bottom-color: inherit;
163
+ }
164
+
165
+ &:after {
166
+ bottom: 0;
167
+ border-top-color: inherit;
168
+ }
169
+ }
170
+ }
@@ -1,5 +1,5 @@
1
1
  module Atlas
2
2
  module Assets
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rune Skjoldborg Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-05 00:00:00.000000000 Z
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: handlebars_assets
@@ -125,6 +125,7 @@ files:
125
125
  - lib/assets/stylesheets/atlas_assets/_responsive-767.scss
126
126
  - lib/assets/stylesheets/atlas_assets/_responsive-768-979.scss
127
127
  - lib/assets/stylesheets/atlas_assets/_responsive-utilities.scss
128
+ - lib/assets/stylesheets/atlas_assets/_select-theme-atlas.scss
128
129
  - lib/assets/stylesheets/atlas_assets/_tabs.scss
129
130
  - lib/assets/stylesheets/atlas_assets/_utilities.scss
130
131
  - lib/assets/stylesheets/atlas_assets/_variables.scss