myg 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/generators/myg/install_generator.rb +11 -0
- data/lib/generators/templates/install/_variables.sass +22 -0
- data/lib/generators/templates/install/variables/_action-button.scss +3 -0
- data/lib/generators/templates/install/variables/_animate.scss +18 -0
- data/lib/generators/templates/install/variables/_base.scss +18 -0
- data/lib/generators/templates/install/variables/_elevation.scss +5 -0
- data/lib/generators/templates/install/variables/_font.scss +6 -0
- data/lib/generators/templates/install/variables/_footer.scss +3 -0
- data/lib/generators/templates/install/variables/_grid.scss +15 -0
- data/lib/generators/templates/install/variables/_layout.scss +5 -0
- data/lib/generators/templates/install/variables/_spacing.scss +6 -0
- data/lib/generators/templates/install/variables/_text.scss +55 -0
- data/lib/generators/templates/install/variables/_theme.scss +17 -0
- data/lib/myg/version.rb +1 -1
- metadata +13 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecfef11006865a49b4670f14bbdd96ee30b090b621b6d81f26261d9472ac6950
|
4
|
+
data.tar.gz: 5b2a749c760218a405c6a167b403f76f44018ef0fe9de77751b5839cf902e776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d3eca61f622c8e7899d888c603a0ceac72bae75f7f74519b02f056d53b122116aa05770e3049d5aace4abac1b919e34a6bdb28629684779c5ece4777fac75f2
|
7
|
+
data.tar.gz: bc4a1a9f3ac9560b4fe846dd899745e6a34d97c1d61468f1f59c37b1ee4eede95fc7b0609edf051091997dfd2d868ff4017ef5489de47a8c52536b4ee14d5c25
|
data/CHANGELOG.md
CHANGED
@@ -16,6 +16,17 @@ class Myg::InstallGenerator < Rails::Generators::Base
|
|
16
16
|
template 'myg.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/myg.sass"
|
17
17
|
template '_myg.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/_myg.sass"
|
18
18
|
template '_variables.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/_variables.sass"
|
19
|
+
template 'variables/_action-button.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_action-button.scss"
|
20
|
+
template 'variables/_animate.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_animate.scss"
|
21
|
+
template 'variables/_base.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_base.scss"
|
22
|
+
template 'variables/_elevation.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_elevation.scss"
|
23
|
+
template 'variables/_font.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_font.scss"
|
24
|
+
template 'variables/_footer.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_footer.scss"
|
25
|
+
template 'variables/_grid.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_grid.scss"
|
26
|
+
template 'variables/_layout.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_layout.scss"
|
27
|
+
template 'variables/_spacing.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_spacing.scss"
|
28
|
+
template 'variables/_text.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_text.scss"
|
29
|
+
template 'variables/_theme.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_theme.scss"
|
19
30
|
template 'theme/theme.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/theme/theme.sass"
|
20
31
|
template 'theme/_default.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/theme/_default.scss"
|
21
32
|
end
|
@@ -1 +1,23 @@
|
|
1
1
|
@import "theme/_default"
|
2
|
+
|
3
|
+
@import "variables/_action-button"
|
4
|
+
@import "variables/_base"
|
5
|
+
@import "variables/_elevation"
|
6
|
+
@import "variables/_font"
|
7
|
+
@import "variables/_footer"
|
8
|
+
@import "variables/_grid"
|
9
|
+
@import "variables/_layout"
|
10
|
+
@import "variables/_spacing"
|
11
|
+
@import "variables/_text"
|
12
|
+
@import "variables/_theme"
|
13
|
+
@import "variables/_animate"
|
14
|
+
@import "variables/_animate"
|
15
|
+
@import "variables/_animate"
|
16
|
+
@import "variables/_animate"
|
17
|
+
@import "variables/_animate"
|
18
|
+
@import "variables/_animate"
|
19
|
+
@import "variables/_animate"
|
20
|
+
@import "variables/_animate"
|
21
|
+
@import "variables/_animate"
|
22
|
+
@import "variables/_animate"
|
23
|
+
@import "variables/_animate"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Animations
|
2
|
+
$myg-animate: (
|
3
|
+
shake: (
|
4
|
+
duration: .82s,
|
5
|
+
easing: cubic-bezier(.36,.07,.19,.97) both
|
6
|
+
),
|
7
|
+
bell: (
|
8
|
+
duration: 3s,
|
9
|
+
easing: ease-in-out
|
10
|
+
)
|
11
|
+
) !default;
|
12
|
+
|
13
|
+
|
14
|
+
// Transitions
|
15
|
+
$myg-animate--transitions: (
|
16
|
+
duration: .15s,
|
17
|
+
easing: ease-out
|
18
|
+
) !default;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Base
|
2
|
+
$myg-base: (
|
3
|
+
font-size: 16,
|
4
|
+
pwa-display-mode: standalone
|
5
|
+
) !default;
|
6
|
+
|
7
|
+
|
8
|
+
// Cursor
|
9
|
+
$myg--cursors: (
|
10
|
+
default: default,
|
11
|
+
text: text,
|
12
|
+
pointer: pointer,
|
13
|
+
help: help,
|
14
|
+
move: move,
|
15
|
+
grab: grab,
|
16
|
+
progress: progress,
|
17
|
+
wait: wait
|
18
|
+
) !default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
// Family
|
2
|
+
$myg-font: (
|
3
|
+
default: (-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"),
|
4
|
+
sans-serif: ("Inter UI", "Helvetica Neue", sans-serif),
|
5
|
+
monospace: ("Inconsolata", "Roboto Mono", "Courier New", monospace)
|
6
|
+
) !default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Breakpoints
|
2
|
+
$myg-grid--breakpoints: (
|
3
|
+
phone: 512px,
|
4
|
+
tablet: 768px,
|
5
|
+
laptop: 1024px,
|
6
|
+
large: 1280px,
|
7
|
+
desktop: 1920px
|
8
|
+
) !default;
|
9
|
+
$myg-grid--columns: (
|
10
|
+
phone: 4,
|
11
|
+
tablet: 8,
|
12
|
+
laptop: 12,
|
13
|
+
large: 12,
|
14
|
+
desktop: 12
|
15
|
+
) !default;
|
@@ -0,0 +1,55 @@
|
|
1
|
+
// Text Size
|
2
|
+
$myg-text--size: (
|
3
|
+
p: (sm: px(14), base: px(16), lg: px(18)),
|
4
|
+
h1: (sm: px(36), base: px(48), lg: px(64)),
|
5
|
+
h2: (sm: px(21), base: px(24), lg: px(30)),
|
6
|
+
h3: (sm: px(18), base: px(21), lg: px(24)),
|
7
|
+
h4: (sm: px(16), base: px(18), lg: px(21)),
|
8
|
+
h5: (sm: px(14), base: px(16), lg: px(18)),
|
9
|
+
h6: (sm: px(13), base: px(14), lg: px(16))
|
10
|
+
) !default;
|
11
|
+
$myg-text--size-mobile: (
|
12
|
+
p: (sm: px(13), base: px(14), lg: px(16)),
|
13
|
+
h1: (sm: px(30), base: px(36), lg: px(48)),
|
14
|
+
h2: (sm: px(18), base: px(21), lg: px(24)),
|
15
|
+
h3: (sm: px(16), base: px(18), lg: px(21)),
|
16
|
+
h4: (sm: px(14), base: px(16), lg: px(18)),
|
17
|
+
h5: (sm: px(13), base: px(14), lg: px(16)),
|
18
|
+
h6: (sm: px(12), base: px(13), lg: px(14))
|
19
|
+
) !default;
|
20
|
+
|
21
|
+
|
22
|
+
// Text Family
|
23
|
+
$myg-text--family: (
|
24
|
+
p: sans-serif,
|
25
|
+
h1: sans-serif,
|
26
|
+
h2: sans-serif,
|
27
|
+
h3: sans-serif,
|
28
|
+
h4: sans-serif,
|
29
|
+
h5: sans-serif,
|
30
|
+
h6: sans-serif
|
31
|
+
) !default;
|
32
|
+
|
33
|
+
|
34
|
+
// Text Color
|
35
|
+
$myg-text--color: (
|
36
|
+
p: color(text, base),
|
37
|
+
h1: color(text, darker),
|
38
|
+
h2: color(text, darker),
|
39
|
+
h3: color(text, darker),
|
40
|
+
h4: color(text, darker),
|
41
|
+
h5: color(text, darker),
|
42
|
+
h6: color(text, darker)
|
43
|
+
) !default;
|
44
|
+
|
45
|
+
|
46
|
+
// Text Weight
|
47
|
+
$myg-text--weight: (
|
48
|
+
p: normal,
|
49
|
+
h1: bold,
|
50
|
+
h2: bold,
|
51
|
+
h3: bold,
|
52
|
+
h4: bold,
|
53
|
+
h5: bold,
|
54
|
+
h6: bold
|
55
|
+
) !default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// Border Radius
|
2
|
+
$border-radius: (
|
3
|
+
none: 0,
|
4
|
+
sm: px(3),
|
5
|
+
md: px(5),
|
6
|
+
lg: px(10)
|
7
|
+
) !default;
|
8
|
+
|
9
|
+
|
10
|
+
// Scrollbar
|
11
|
+
$scrollbar: (
|
12
|
+
width: px(5),
|
13
|
+
track-background: transparent,
|
14
|
+
thumb-border-radius: px(2.5),
|
15
|
+
thumb-background: color(border),
|
16
|
+
thumb-hover-background: color(text, dark)
|
17
|
+
) !default;
|
data/lib/myg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -145,6 +145,17 @@ files:
|
|
145
145
|
- lib/generators/templates/install/myg.sass
|
146
146
|
- lib/generators/templates/install/theme/_default.scss
|
147
147
|
- lib/generators/templates/install/theme/theme.sass
|
148
|
+
- lib/generators/templates/install/variables/_action-button.scss
|
149
|
+
- lib/generators/templates/install/variables/_animate.scss
|
150
|
+
- lib/generators/templates/install/variables/_base.scss
|
151
|
+
- lib/generators/templates/install/variables/_elevation.scss
|
152
|
+
- lib/generators/templates/install/variables/_font.scss
|
153
|
+
- lib/generators/templates/install/variables/_footer.scss
|
154
|
+
- lib/generators/templates/install/variables/_grid.scss
|
155
|
+
- lib/generators/templates/install/variables/_layout.scss
|
156
|
+
- lib/generators/templates/install/variables/_spacing.scss
|
157
|
+
- lib/generators/templates/install/variables/_text.scss
|
158
|
+
- lib/generators/templates/install/variables/_theme.scss
|
148
159
|
- lib/generators/templates/theme/_theme.scss.erb
|
149
160
|
- lib/myg.rb
|
150
161
|
- lib/myg/configuration.rb
|