codeclimate-styles 0.1.2 → 0.1.3

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: b0f2949e3f791a24c35986565fffbd0624ad0f3c
4
- data.tar.gz: 1cf25eb965be8fab9c2b3d6dc3c5fe85f22859df
3
+ metadata.gz: b1c54caf161b88e598bd69a5d0ff5a157ffc0a31
4
+ data.tar.gz: d655cdd643f212059e94ffdc658bc06abb825bd5
5
5
  SHA512:
6
- metadata.gz: 0a07500b5092dcfd2e790d99725f3b8c82ce64eba6bdce06cba20621b3bf132d76deffe7a51f18cc503522067344b873a9a0c835a013c8cdbc039cee51210a48
7
- data.tar.gz: 6d9274123286f3e43af2e1d7c61f78a6fac624b64b799ae927c5fff390dad033f3fe56ffdffaa9277dc14dd0ff7dfcb063000ea052ca8daaf6a546e4074b23a6
6
+ metadata.gz: 776cf9b6c27d8071fc509cf50ff238cda8166fa1cf91e0ec1941812a98c98be053e0741378bc4146236e42cf9b3edb23f3ffecd88a584b2decb0a67282bd7ff3
7
+ data.tar.gz: c00189f215f103207f202724326f15e397762577578f49c02f20816f4b8edf0f5500bd0b23f004351be586f6c4ffe109c52fac1ec22a40a1f34b1cc91f150f4e
@@ -115,10 +115,14 @@ category: misc
115
115
  ---
116
116
 
117
117
  ```slim_example
118
+ label.grade.grade--x2.grade--a A
118
119
  label.grade.grade--d D
119
120
  ```
120
121
  */
121
122
 
123
+ $grade-size: 30px;
124
+ $grade-font-size: 20px;
125
+
122
126
  .grade {
123
127
  background-color: rgba($grayscale-pearl, .45);
124
128
  border: 2px dashed rgba($box-border-color, .45);
@@ -127,14 +131,15 @@ label.grade.grade--d D
127
131
  color: $white;
128
132
  content: "";
129
133
  display: inline-block;
130
- font-size: 16px;
134
+ font-size: $grade-font-size;
131
135
  font-weight: 700;
132
- height: 27px;
136
+ height: $grade-size;
133
137
  line-height: 1;
138
+ padding-top: (($grade-size - $grade-font-size) / 2) + 2;
134
139
  position: relative;
135
140
  text-align: center;
136
141
  vertical-align: middle;
137
- width: 27px;
142
+ width: $grade-size;
138
143
 
139
144
  .tooltip {
140
145
  bottom: 100%;
@@ -144,11 +149,17 @@ label.grade.grade--d D
144
149
  }
145
150
  }
146
151
 
152
+ .grade--x2 {
153
+ font-size: $grade-font-size * 2;
154
+ height: $grade-size * 2;
155
+ padding-top: ((($grade-size * 2) - ($grade-font-size * 2)) / 2) + 2;
156
+ width: $grade-size * 2;
157
+ }
158
+
147
159
  @each $grade, $color-map in $grade-colors {
148
160
  .grade--#{$grade} {
149
161
  background-color: #{map-get($color-map, color)};
150
162
  border: 0;
151
- padding-top: 7px;
152
163
  }
153
164
  }
154
165
 
@@ -189,11 +200,11 @@ $hotspot-arrow-color: #231f20;
189
200
  left: 30px;
190
201
  position: absolute;
191
202
  text-align: center;
192
- width: 27px;
203
+ width: $grade-size;
193
204
  }
194
205
 
195
206
  + .grade {
196
- margin-left: 27px;
207
+ margin-left: $grade-size;
197
208
  margin-right: 12px;
198
209
  }
199
210
  }
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Styles
3
- VERSION = "0.1.2".freeze
3
+ VERSION = "0.1.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
@@ -99,18 +99,19 @@ require_paths:
99
99
  - lib
100
100
  required_ruby_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ">="
102
+ - - '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
107
+ - - '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.6.8
112
+ rubygems_version: 2.0.3
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Code Climate stylesheets
116
116
  test_files: []
117
+ has_rdoc: