ama_layout 2.3.4 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 587631f093122018d10b47bdafcebbe7328cc796
4
- data.tar.gz: 0e1b50a42840b3ab4081b0c86197c58e8fc603d3
3
+ metadata.gz: 90b72d64f6a9a009648defa5522d42724a4e1964
4
+ data.tar.gz: 3637567b89e3ed1a424bbecab0ad1da01389c1be
5
5
  SHA512:
6
- metadata.gz: ca00d27a963039e539b423c83efd439d5c58f22396683a260c62587ec65f99b534761828e4e16612914b2a35f3fcbe256f6c5603c6af1a99b4b226f5574d0fa0
7
- data.tar.gz: d4e4991d70b018ec0f140213cf85858800b42c719d41c7f8915c38f9a70a59301167856ebcf620e09388dc63fe90230ba36b1c9c86c7b1ff7f0e722d2e9bccc8
6
+ metadata.gz: 44af4e3ef1ff9ad015445eb4937b609f98167340f7c8581c9551cf239141c3978406d1e00d5d5fca5da0c0ab396c9e34fa37fdec7ccedc36c2c1842b593d47b1
7
+ data.tar.gz: 75bd075e2ad579fe3b5f2bfc5de882118159befcbe2420ed0146f0e6272e7ec22b221b0c22cf8fe1ea510233724bb9b9daa01ebc1e06783b00be0a46faa630af
@@ -70,6 +70,7 @@ input[type="checkbox"] + label{
70
70
  background: $ash;
71
71
  border: $base-border;
72
72
  margin: 0;
73
+ width: 100%;
73
74
 
74
75
  &:nth-child(2){
75
76
  margin-top: -1px;
@@ -80,37 +81,47 @@ input[type="checkbox"] + label{
80
81
  background: darken($ash, 4%);
81
82
  }
82
83
  }
83
-
84
- input[type="radio"] + label > span:first-of-type,
85
84
  input[type="checkbox"] + label > span:first-of-type,
85
+ input[type="radio"] + label > span:first-of-type,
86
86
  input[type="radio"] + label span:first-of-type{
87
87
  display: inline-block;
88
- width: 30px;
89
- min-width: 30px;
90
- height: 30px;
91
- margin: $base-margin 0 $base-margin*2;
88
+ width: 24px;
89
+ min-width: 24px;
90
+ height: 24px;
91
+ margin: $base-margin 0 $base-margin;
92
92
  vertical-align: top;
93
93
  cursor: pointer;
94
- -moz-border-radius: 50%;
95
94
  border-radius: 50%;
96
95
  background-color: $white;
97
96
  border: $base-border;
98
97
  }
99
98
 
100
- input[type="checkbox"] + label > span:first-of-type{
101
- max-width: 10%;
102
- margin: $base-margin $base-margin*2 $base-margin 0;
103
- }
104
-
105
- .checkbox-label{
106
- display: inline-block;
107
- width: 80%;
99
+ input[type="radio"] + label > span:first-of-type,
100
+ input[type="radio"] + label span:first-of-type{
101
+ &:before{
102
+ content: ' ';
103
+ border-radius: 100%;
104
+ margin: 6px auto 0 auto;
105
+ transition: all .5s ease-in-out;
106
+ }
108
107
  }
109
108
 
110
109
  input[type="radio"]:checked + label > span:first-of-type,
111
110
  input[type="radio"]:checked + label span:first-of-type{
112
111
  background-color: $white;
113
- border: 7px solid $secondary-color;
112
+ border: 2px solid $secondary-color;
113
+
114
+ &:before{
115
+ content: '';
116
+ display: block;
117
+ position: relative;
118
+ width: 8px;
119
+ height: 8px;
120
+ background-color: $secondary-color;
121
+ -moz-transform: scale(2,2);
122
+ -webkit-transform: scale(2,2);
123
+ transform: scale(2,2);
124
+ }
114
125
  }
115
126
 
116
127
  input[type="radio"]:checked + label{
@@ -130,31 +141,65 @@ input[type="radio"]:checked + label{
130
141
  }
131
142
  }
132
143
 
144
+ input[type="checkbox"] + label > span:first-of-type{
145
+ border-radius: 0;
146
+ max-width: 10%;
147
+ margin: $base-margin $base-margin*2 $base-margin 0;
148
+ }
149
+
150
+ .checkbox-label{
151
+ display: inline-block;
152
+ width: 80%;
153
+ }
154
+
133
155
  input[type="checkbox"]:checked + label{
134
156
  position: relative;
135
- }
136
157
 
137
- [type="checkbox"]:checked + label:before{
138
- content: '';
139
- background-color: $secondary-color;
140
- color: $white;
141
- position: absolute;
142
- width: 30px;
143
- min-width: 30px;
144
- max-width: 10%;
145
- height: 30px;
146
- top: 15px;
147
- padding-left: 6px;
148
- font-size: $base-font-size*1.3;
149
- -moz-border-radius: 50%;
150
- border-radius: 50%;
151
- margin: 0 $base-margin*2 $base-margin 0;
158
+ &:before{
159
+ content: '';
160
+ display: block;
161
+ position: absolute;
162
+ left: 14px;
163
+ top: 28px;
164
+ width: 8px;
165
+ height: 16px;
166
+ border-right: 3px solid $white;
167
+ border-top: 3px solid $white;
168
+ transform:(scaleX(-1) rotate(180deg + -45deg));
169
+ transform-origin:left top;
170
+ -webkit-transform:(scaleX(-1) rotate(180deg + -45deg));
171
+ -webkit-transform-origin:left top;
172
+ -moz-transform:(scaleX(-1) rotate(180deg + -45deg));
173
+ -moz-transform-origin:left top;
174
+ animation:checkbox 0.8s;
175
+ }
176
+
177
+ span:first-of-type{
178
+ background: $brand-blue-light;
179
+ }
152
180
  }
153
181
 
154
182
  [type="checkbox"]:checked + label:after{
155
183
  margin-left: $base-margin*6;
156
184
  }
157
185
 
186
+ @keyframes checkbox{
187
+ 0%{
188
+ height: 0;
189
+ width: 0;
190
+ }
191
+
192
+ 25%{
193
+ height: 0;
194
+ width: 8px;
195
+ }
196
+
197
+ 50%{
198
+ height: 17px;
199
+ width: 8px;
200
+ }
201
+ }
202
+
158
203
  .month,
159
204
  .year{
160
205
  @extend %inputs-thirds;
@@ -44,10 +44,6 @@
44
44
  margin: 0;
45
45
  }
46
46
 
47
- .checkbox-label{
48
- width: 84%;
49
- }
50
-
51
47
  h4{
52
48
  margin-top: $base-margin*6;
53
49
  }
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = '2.3.4'
2
+ VERSION = '2.4.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2016-02-22 00:00:00.000000000 Z
21
+ date: 2016-02-23 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: foundation-rails
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  requirements: []
361
361
  rubyforge_project:
362
- rubygems_version: 2.2.2
362
+ rubygems_version: 2.4.5.1
363
363
  signing_key:
364
364
  specification_version: 4
365
365
  summary: ".ama.ab.ca site layouts"