axinite 0.0.10 → 0.0.11

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: 26a34f4b759b8fb66898f1e296f72340666103ad
4
- data.tar.gz: be540d739605fbee8726633d92e060b9e1d14cf6
3
+ metadata.gz: 8e0bec4053225af18750011b09e734cebd8c0edb
4
+ data.tar.gz: bb277c96719922483cb8f73fee04900eb02469f8
5
5
  SHA512:
6
- metadata.gz: 9d46bea84d40063f2996b307411828231c9a2d017e3fefc0f2b523201fffd494edbd9385ac6356fb6201c6d1493a88dc08fe07027b4ababbfa66fe43fef2825e
7
- data.tar.gz: b0a8efe89e82acf5ea30b3d2ac7e01eea3fbcd3ae63504c5442bc1f7a117bd41b4978737709adb47c6b0c5c31e73944a79bc05221b47470f3b1ee93c5ae0aee1
6
+ metadata.gz: e37af9d997e9a27f73d56cfd8a7951848c93a7c54e32fa32c15b324e48692157d2f717ad7f1ef89720505475e7006db6e4f1777dd7684a324cd95056f6553ebc
7
+ data.tar.gz: f6e361943543cea9cc8d3e3fcfac4450e1d02ad4f846daedc7d4503703eb7e8df2814d40a2083ce8f397dee969a4dd11072a6fb20eef22a639c560fd07cf1e48
@@ -1,4 +1,4 @@
1
- // Axinite for Jekyll 0.0.9
1
+ // Axinite for Jekyll 0.0.11
2
2
  // Copyright (c) 2016 Avery Magnotti
3
3
  // Released under the MIT license.
4
4
  // https://github.com/axnt/axinite
@@ -6,12 +6,12 @@
6
6
  <body>
7
7
 
8
8
  <div class="container content">
9
- <header class="masthead">
9
+ <div class="masthead">
10
10
  <h3 class="masthead-title">
11
11
  <a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
12
12
  <small>{{ site.flair }}</small>
13
13
  </h3>
14
- </header>
14
+ </div>
15
15
 
16
16
  <main>
17
17
  {{ content }}
@@ -15,12 +15,12 @@ button,
15
15
 
16
16
  .btn-sm,
17
17
  .btn-sm[href] {
18
- @include button-size(.125rem, .5rem, .75em);
18
+ @include button-size(.125rem, .5rem, .75rem);
19
19
  }
20
20
 
21
21
  .btn-lg,
22
22
  .btn-lg[href] {
23
- @include button-size(.625rem, 1.25rem, 1.25em);
23
+ @include button-size(.625rem, 1.25rem, 1.25rem);
24
24
  }
25
25
 
26
26
  .btn-header {
@@ -25,8 +25,9 @@ kbd {
25
25
 
26
26
  pre {
27
27
  display: block;
28
- padding: 1em;
28
+ padding: 1rem;
29
29
  overflow-x: auto;
30
+ overflow-y: hidden;
30
31
  line-height: 1.25;
31
32
  color: $pre-text-color;
32
33
  background-color: $pre-bg-color;
@@ -1,19 +1,269 @@
1
- .form {
2
- min-height: 34px;
3
- padding: 6px 8px;
4
- font-family: inherit;
1
+ // scss-lint:disable QualifyingElement
2
+
3
+ // Inline icons courtsey of Dan Klammer
4
+ // Released under the MIT license.
5
+ // http://danklammer.com/bytesize-icons/
6
+
7
+ form {
8
+ text-decoration: none;
9
+ }
10
+
11
+ .form-group:not(:last-child) {
12
+ margin-bottom: 1rem;
13
+ }
14
+
15
+ .form-input {
16
+ position: relative;
17
+ display: block;
18
+ max-width: 100%;
19
+ padding: .7rem .8rem;
20
+ font-size: $body-font-size;
21
+ line-height: 1.6rem;
22
+ color: $black;
23
+ background: $white;
24
+ background-image: none;
25
+ border: .1rem solid $form-border-color;
26
+ border-radius: .3rem;
27
+ outline: 0;
28
+ appearance: none;
29
+
30
+ &:focus,
31
+ &:hover {
32
+ border-color: $primary-info;
33
+ }
34
+ }
35
+
36
+ .form-label {
37
+ display: block;
38
+ margin-bottom: .5rem;
39
+ line-height: $base-line-height;
40
+ }
41
+
42
+ .form-select {
43
+ padding: .5rem .8rem;
5
44
  font-size: $body-font-size;
6
- line-height: 20px;
7
45
  vertical-align: middle;
8
- background-repeat: no-repeat;
9
- background-position: right 8px center;
10
- border: 1px solid #eee;
46
+ border: .1rem solid $form-border-color;
47
+ border-radius: .3rem;
48
+ outline: 0;
49
+ appearance: none;
50
+
51
+ &:not([multiple]) {
52
+ padding-right: 2.4rem;
53
+ background: $white url('data:image/svg+xml;utf8,#{$form-select-icon}') no-repeat right .75rem center / .8rem 1rem;
54
+ }
55
+
56
+ &:focus,
57
+ &:hover {
58
+ border-color: $primary-info;
59
+ }
60
+ }
61
+
62
+ .form-checkbox,
63
+ .form-radio,
64
+ .form-switch {
65
+ input {
66
+ display: none;
67
+ }
68
+ }
69
+
70
+ .form-checkbox,
71
+ .form-radio {
72
+ position: relative;
73
+ display: inline-block;
74
+ padding: .4rem .5rem;
75
+ line-height: 1.8rem;
76
+ cursor: pointer;
77
+
78
+ .form-icon {
79
+ position: relative;
80
+ top: .08rem;
81
+ left: -.5rem;
82
+ display: inline-block;
83
+ width: 1.4rem;
84
+ height: 1.4rem;
85
+ font-size: 1.4rem;
86
+ line-height: 2.4rem;
87
+ vertical-align: top;
88
+ border: .1rem solid $form-border-color;
89
+ outline: none;
90
+ transition: all .15s ease;
91
+ }
92
+
93
+ &:hover .form-icon {
94
+ border-color: darken($form-border-color, 10%);
95
+ }
96
+
97
+ input {
98
+
99
+ &:focus + .form-icon {
100
+ border-color: $primary-info;
101
+ }
102
+
103
+ &:checked + .form-icon {
104
+ background: $primary-info;
105
+ border-color: $primary-info;
106
+ }
107
+
108
+ &:active + .form-icon {
109
+ background: lighten($form-border-color, 5%);
110
+ }
111
+
112
+ &:active:checked + .form-icon {
113
+ background: lighten($primary-info, 10%);
114
+ border-color: lighten($primary-info, 10%);
115
+ }
116
+
117
+ }
118
+ }
119
+
120
+ .form-checkbox {
121
+ .form-icon {
122
+ border-radius: .2rem;
123
+ }
124
+
125
+ input {
126
+
127
+ &:checked + .form-icon {
128
+
129
+ &::after {
130
+ position: relative;
131
+ top: -35%;
132
+ padding-right: 1.4rem;
133
+ content: "";
134
+ background: url('data:image/svg+xml;utf8,#{$form-checkbox-icon}') no-repeat .8rem / .8rem;
135
+ background-position: center;
136
+ }
137
+ }
138
+ }
139
+ }
140
+ .form-radio {
141
+ .form-icon {
142
+ border-radius: 1rem;
143
+ }
144
+
145
+ input:checked + .form-icon {
146
+
147
+ &::after {
148
+ position: relative;
149
+ top: -34%;
150
+ padding-right: 1.4rem;
151
+ content: "";
152
+ background: url('data:image/svg+xml;utf8,#{$form-radio-icon}') no-repeat .8rem / .8rem;
153
+ background-position: center;
154
+
155
+ }
156
+ }
157
+ }
158
+
159
+ .form-switch {
160
+ position: relative;
161
+ display: inline-block;
162
+ padding: .3rem 2rem .3rem .5rem;
163
+ line-height: 2rem;
164
+ cursor: pointer;
165
+
166
+ .form-icon {
167
+ position: relative;
168
+ top: 0;
169
+ left: -.5rem;
170
+ display: inline-block;
171
+ width: 2.8rem;
172
+ height: 1.6rem;
173
+ padding: 0;
174
+ line-height: 2.6rem;
175
+ vertical-align: top;
176
+ background: $form-border-color;
177
+ border: .125rem solid $form-border-color;
178
+ border-radius: .9rem;
179
+ outline: none;
180
+
181
+ &::after {
182
+ position: relative;
183
+ top: 0;
184
+ left: 0;
185
+ display: block;
186
+ width: 1.6rem;
187
+ height: 1.6rem;
188
+ content: "";
189
+ background: $white;
190
+ border-radius: .8rem;
191
+ transition: left .15s ease;
192
+ }
193
+ }
194
+
195
+ input {
196
+
197
+ &:checked + .form-icon {
198
+ background: $primary-info;
199
+ border-color: $primary-info;
200
+
201
+ &::after {
202
+ left: 1.2rem;
203
+ }
204
+ }
205
+
206
+ &:active + .form-icon {
207
+ &::after {
208
+ background: lighten($form-border-color, 20%);
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ .form-file::-webkit-file-upload-button {
215
+ visibility: hidden;
216
+ }
217
+
218
+ .form-file {
219
+ width: 100%;
220
+ }
221
+
222
+ .form-file::before {
223
+ display: inline-block;
224
+ padding: 5px 8px;
225
+ font-size: .8rem;
226
+ font-weight: bold;
227
+ color: $body-light-color;
228
+ white-space: nowrap;
229
+ cursor: pointer;
230
+ content: "Select a file";
231
+ user-select: none;
232
+ border: 1px solid $form-border-color;
11
233
  border-radius: 3px;
12
234
  outline: none;
235
+ }
13
236
 
14
- .focus,
15
- &:focus {
16
- border: 1px solid $primary-default;
17
- box-shadow: 0 0 5px $primary-default;
18
- }
237
+ .form-file:hover::before {
238
+ border-color: $primary-info;
239
+ }
240
+
241
+ .form-file:focus {
242
+ outline: none;
243
+ }
244
+
245
+ .form-file:active::before {
246
+ border-color: darken($primary-info, 10%);
247
+ }
248
+
249
+ input[type=range]::-webkit-slider-thumb {
250
+ width: 15px;
251
+ height: 15px;
252
+ margin-top: -5px;
253
+ cursor: pointer;
254
+ background: #fff;
255
+ border: 1px solid $form-border-color;
256
+ border-radius: 1rem;
257
+ appearance: none;
258
+ }
259
+
260
+ input[type=range]::-webkit-slider-runnable-track {
261
+ height: 5px;
262
+ background: lighten($form-border-color, 10%);
263
+ border: 0;
264
+ border-radius: 3px;
265
+ }
266
+
267
+ input[type=range]:focus::-webkit-slider-runnable-track {
268
+ background: $form-border-color;
19
269
  }
@@ -1,4 +1,7 @@
1
- .tip { position: relative; }
1
+ .tip {
2
+ position: relative;
3
+ border-bottom: 1px dotted lighten($body-text-color, 10%);
4
+ }
2
5
 
3
6
  .tip::after {
4
7
  position: absolute;
@@ -1,12 +1,19 @@
1
1
  .container {
2
- max-width: 50em;
3
- padding: 4em 1em;
2
+ max-width: 50rem;
3
+ padding: 1rem;
4
4
  margin: 0 auto;
5
5
  line-height: $base-line-height;
6
6
  }
7
7
 
8
- .header {
9
- padding: 1.5em;
8
+ .divider {
9
+ display: block;
10
+ max-width: 50rem;
11
+ margin: 1rem;
12
+ border-bottom: .1rem solid $divider-color;
13
+ }
14
+
15
+ header {
16
+ padding: 1.5rem;
10
17
  text-align: center;
11
18
 
12
19
  h2 {
@@ -15,7 +22,7 @@
15
22
 
16
23
  li {
17
24
  display: inline-block;
18
- padding: .5em;
25
+ padding: .5rem;
19
26
  vertical-align: center;
20
27
  list-style: none;
21
28
  }
@@ -25,7 +25,7 @@ $light-bg-color: $body-dark-color !default;
25
25
 
26
26
  // Code
27
27
  $code-bg-color: #f5f7f9 !default;
28
- $code-text-color: #92b4a7 !default;
28
+ $code-text-color: #31a5a5 !default;
29
29
  $kbd-bg-color: $black !default;
30
30
  $kbd-text-color: $white !default;
31
31
  $pre-text-color: $code-text-color !default;
@@ -40,16 +40,25 @@ $tooltip-text-color: #fff !default;
40
40
  $tooltip-z-index: 1000000 !default;
41
41
 
42
42
  // Sizing
43
- $body-font-size: 1em !default;
44
- $h1-font-size: 2.25em;
45
- $h2-font-size: 2em;
46
- $h3-font-size: 1.75em;
47
- $h4-font-size: 1.5em;
48
- $h5-font-size: 1.25em;
49
- $h6-font-size: $body-font-size !default;
50
-
51
- // Spacing
52
43
  $base-line-height: 1.5 !default;
44
+ $body-font-size: 1rem !default;
45
+ $h1-font-size: 2.25rem;
46
+ $h2-font-size: 2rem;
47
+ $h3-font-size: 1.75rem;
48
+ $h4-font-size: 1.5rem;
49
+ $h5-font-size: 1.25rem;
50
+ $h6-font-size: $body-font-size !default;
53
51
 
54
52
  // Shadow
55
53
  $box-shadow-color: rgba(0,0,0,.3) !default;
54
+
55
+ // SVG icons
56
+ $form-checkbox-icon: '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="12.5%"><path d="M2 20 L12 28 30 3"/></svg>' !default;
57
+ $form-radio-icon: '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#fff" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.25%"><circle cx="16" cy="16" r="14"/><path d=""/></svg>' !default;
58
+ $form-select-icon: '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentcolor" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="12.5%"><path d="M30 10 L16 26 2 10 Z"/></svg>' !default;
59
+
60
+ // Forms
61
+ $form-border-color: $primary-default !default;
62
+
63
+ // Utilities
64
+ $divider-color: #eee !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axinite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avery Magnotti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2016-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll