dlegr250_material_design 0.5.65 → 0.5.66

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10af7ac14dcd0a62414923352f72dfe72a8f83df
4
- data.tar.gz: eb41c9e55089296bcf1acf1e3ba75413bf3dd2f1
3
+ metadata.gz: 7e34e2f90bd24e3f13ba975d87a974152d3c5887
4
+ data.tar.gz: e371a71cfa340ae69709ab6d8b9f7246710cc20e
5
5
  SHA512:
6
- metadata.gz: eedae9e50af791815d7a0c47fb7c9a78ea18a24ad7943df35e9258a89ed7c170912625e1f6a9f63d76c368d69c89d7ae0cf13ff688162adaacfa0a834cf69a27
7
- data.tar.gz: b5eacb3a9b7e99c495913db2f3c14831f5987a3b7fcc4448218472eb55987815c2d7d2e7879aeaf62cc420c80adb20bd1e2643d25644aa4b18c20e457a3ad1ab
6
+ metadata.gz: 0c76b5727490da0d87adcfcfe2175ddff37f61e7a0e77a763fcef88256cf11506d415071c691c897c18b03609b674bc27a7cd60001a181eca4b9fd0da7a4970f
7
+ data.tar.gz: f2f4e84f174efef0647ab0fb60e77a5e4b4e287d7e0bcba04207427ff2220f41b8ae725ecc008f80165ae01c2fa61dea2141fbe6fbf810233f3b73aa88466997
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.5.65"
2
+ VERSION = "0.5.66"
3
3
  end
@@ -166,6 +166,12 @@ $default-rounded-corners-radius: 3px;
166
166
  justify-content: center;
167
167
  }
168
168
 
169
+ @mixin flex-parent-row-align-right() {
170
+ @include flex-parent-row();
171
+ flex: 1;
172
+ justify-content: flex-end;
173
+ }
174
+
169
175
  @mixin flex-parent-row-align-top() {
170
176
  @include flex-parent-row();
171
177
  align-items: flex-start;
@@ -11,7 +11,7 @@ $application-container-min-width: 300px;
11
11
  //----------------------------------------------------------------------
12
12
 
13
13
  $appbar-height: 64px;
14
- $appbar-button-height: 44px;
14
+ $appbar-button-height: 48px;
15
15
 
16
16
  // Dimensions - sidebars
17
17
  //----------------------------------------------------------------------
@@ -78,10 +78,10 @@ $button-height-dense: 32px;
78
78
  $button-height: 40px;
79
79
  $button-height-large: 56px;
80
80
 
81
- $button-icon-height: 40px;
81
+ $button-icon-height: $button-height;
82
82
 
83
83
  $button-fab-mini-height: $button-icon-height;
84
- $button-fab-height: 56px;
84
+ $button-fab-height: $button-height-large;
85
85
 
86
86
  // Dimensions - inputs (text-fields, etc...)
87
87
  //----------------------------------------------------------------------
@@ -20,14 +20,11 @@ $buttons: ".button";
20
20
  border: 1px solid transparent;
21
21
  box-sizing: border-box;
22
22
  cursor: pointer;
23
- // display: inline-block;
24
- // display: inline-flex;
25
23
  font-size: $font-size-normal;
26
24
  font-weight: 500;
27
25
  height: $button-height;
28
26
  line-height: 1.2;
29
27
  letter-spacing: 0.5px;
30
- // min-width: 88px;
31
28
  min-width: 0;
32
29
  outline: none;
33
30
  padding: 0 $spacing-normal;
@@ -42,20 +39,11 @@ $buttons: ".button";
42
39
  @include rounded-corners;
43
40
  @include transition(all 0.2s ease-in-out);
44
41
 
45
- // .material-icons {
46
- // line-height: $button-height;
47
- // }
48
-
49
42
  &:hover {
50
43
  text-decoration: none !important;
51
44
  }
52
45
  }
53
46
 
54
- // Icons inside button
55
- // .button .material-icons {
56
- // line-height: 40px;
57
- // }
58
-
59
47
  .button.icon-left {
60
48
  padding-left: $spacing-normal - 8px;
61
49
 
@@ -78,8 +66,6 @@ $buttons: ".button";
78
66
  .button-xsmall {
79
67
  font-size: $font-size-small;
80
68
  height: 28px !important;
81
- // line-height: 28px;
82
- // min-width: $button-height * 0.6;
83
69
  padding: 0 $spacing-xsmall;
84
70
  }
85
71
 
@@ -88,16 +74,12 @@ $buttons: ".button";
88
74
  .button-dense {
89
75
  font-size: $font-size-small;
90
76
  height: $button-height-dense !important;
91
- // line-height: $button-height-dense !important;
92
- // min-height: $button-height-dense !important;
93
77
  min-width: $button-height * 0.8;
94
78
  padding: 0 $spacing-small;
95
79
  }
96
80
 
97
81
  .button-large {
98
82
  height: $button-height-large !important;
99
- // line-height: $button-height-large !important;
100
- // min-height: $button-height-large !important;
101
83
  }
102
84
 
103
85
  .button-normal {
@@ -114,8 +96,6 @@ $buttons: ".button";
114
96
  color: color("icon");
115
97
  cursor: pointer;
116
98
  height: $button-icon-height;
117
- // line-height: $button-icon-height;
118
- // min-height: $button-icon-height;
119
99
  text-align: center;
120
100
  width: $button-icon-height;
121
101
  @include flex-parent-row-align-center();
@@ -328,12 +308,6 @@ $buttons: ".button";
328
308
  z-index: $layout-depth + 1;
329
309
  }
330
310
 
331
- // If using Google Material Design icon font
332
- // [role="fab"] .material-icons {
333
- // height: 56px;
334
- // // line-height: 56px;
335
- // }
336
-
337
311
  // Buttons - disabled
338
312
  //----------------------------------------------------------------------
339
313
 
@@ -1,148 +1,151 @@
1
- //======================================================================
2
- // EXAMPLE:
3
- // <div class="appbar">
4
- // <div class="appbar-nav-icon">
5
- // <i class="zmdi zmdi-menu appbar-button" role="left-sidebar-toggle"></i>
6
- // </div>
7
- // <div class="appbar-title">
8
- // Title...
9
- // </div>
10
- // <div class="appbar-actions">
11
- // <i class="zmdi zmdi-menu appbar-button" role="right-sidebar-toggle"></i>
12
- // </div>
13
- // </div>
14
- //======================================================================
15
-
16
- // appbar - base
17
- //----------------------------------------------------------------------
18
-
19
- .appbar {
20
- background-color: $color-primary;
21
- bottom: auto;
22
- box-sizing: border-box;
23
- color: $appbar-title-color;
24
- height: $appbar-height;
25
- padding: 0 $spacing-small;
26
- position: relative;
27
- width: 100%;
28
- z-index: $layout-depth + 1;
29
- @include box-shadow(0 2px 5px rgba(0, 0, 0, 0.30));
30
- @include flex-parent-row();
31
- }
32
-
33
- // appbar - buttons
34
- //----------------------------------------------------------------------
35
-
36
- .appbar-button {
37
- background-color: $color-primary;
38
- box-sizing: border-box;
39
- color: $appbar-button-color;
40
- cursor: pointer;
41
- display: inline-block;
42
- font-size: $font-size-icon;
43
- height: $appbar-button-height;
44
- line-height: 1;
45
- outline: none;
46
- padding: 10px;
47
- position: relative;
48
- width: $appbar-button-height;
49
- text-align: center;
50
- text-decoration: none;
51
- @include no-touch-highlight-color();
52
- @include rounded-corners(250px);
53
- @include transition(background 0.2s ease-in-out);
54
-
55
- &:active {
56
- background-color: darken($color-primary, 12%);
57
- }
58
- }
59
-
60
- // Devices with pointers
61
- @media (hover: hover) {
62
- .appbar-button {
63
- &:hover {
64
- background-color: darken($color-primary, 7%);
65
- }
66
- //
67
- // &:active {
68
- // background-color: darken($color-primary, 12%);
69
- // }
70
- }
71
- }
72
-
73
- // appbar - nav icon (special button in top-left for menu toggle)
74
- //----------------------------------------------------------------------
75
-
76
- #appbar-nav-button[role="left-sidebar-toggle"] {
77
- visibility: visible;
78
- }
79
-
80
- @media (min-width: $width-large) {
81
- #appbar-nav-button[role="left-sidebar-toggle"] {
82
- visibility: hidden;
83
- }
84
- }
85
-
86
- // appbar - title
87
- //----------------------------------------------------------------------
88
-
89
- .appbar-title {
90
- flex: 1; // To fill empty gaps
91
- font-size: $font-size-normal + 2px;
92
- font-weight: 400;
93
- line-height: 1;
94
- margin: 0 $spacing-small;
95
- max-width: auto;
96
- pointer-events: none;
97
- @include font-smoothing();
98
-
99
- a {
100
- color: $appbar-subtitle-color;
101
- }
102
- }
103
-
104
- @media (min-width: $width-small) {
105
- .appbar-title {
106
- font-size: $font-size-large;
107
- max-width: $sidebar-width - 64px;
108
- }
109
- }
110
-
111
- // Above and below main text
112
- .appbar-title-supertitle,
113
- .appbar-title-subtitle {
114
- color: $appbar-subtitle-color;
115
- font-size: $font-size-normal;
116
- @include flex-parent-row();
117
- }
118
-
119
- // appbar - actions
120
- //----------------------------------------------------------------------
121
-
122
- // .appbar-actions {
123
- // @include flex-parent-row(); // To line up dividers and buttons properly
124
- // padding-left: $spacing-small;
125
- // text-align: right;
126
- //
127
- // .button {
128
- // margin-right: $spacing-small;
1
+ // //======================================================================
2
+ // // EXAMPLE:
3
+ // // <div class="appbar">
4
+ // // <div class="appbar-nav-icon">
5
+ // // <i class="zmdi zmdi-menu appbar-button" role="left-sidebar-toggle"></i>
6
+ // // </div>
7
+ // // <div class="appbar-title">
8
+ // // Title...
9
+ // // </div>
10
+ // // <div class="appbar-actions">
11
+ // // <i class="zmdi zmdi-menu appbar-button" role="right-sidebar-toggle"></i>
12
+ // // </div>
13
+ // // </div>
14
+ // //======================================================================
15
+ //
16
+ // // appbar - base
17
+ // //----------------------------------------------------------------------
18
+ //
19
+ // // .appbar {
20
+ // // background-color: $color-primary;
21
+ // // bottom: auto;
22
+ // // box-sizing: border-box;
23
+ // // color: $appbar-title-color;
24
+ // // height: $appbar-height;
25
+ // // padding: 0 $spacing-small;
26
+ // // position: relative;
27
+ // // width: 100%;
28
+ // // z-index: $layout-depth + 1;
29
+ // // @include flex-parent-row();
30
+ // // }
31
+ // //
32
+ // // .appbar-shadow {
33
+ // // @include box-shadow(0 2px 5px rgba(0, 0, 0, 0.30));
34
+ // // }
35
+ //
36
+ // // appbar - buttons
37
+ // //----------------------------------------------------------------------
38
+ //
39
+ // .appbar-button {
40
+ // background-color: $color-primary;
41
+ // box-sizing: border-box;
42
+ // color: $appbar-button-color;
43
+ // cursor: pointer;
44
+ // display: inline-block;
45
+ // font-size: $font-size-icon;
46
+ // height: $appbar-button-height;
47
+ // line-height: 1;
48
+ // outline: none;
49
+ // padding: 10px;
50
+ // position: relative;
51
+ // width: $appbar-button-height;
52
+ // text-align: center;
53
+ // text-decoration: none;
54
+ // @include no-touch-highlight-color();
55
+ // @include rounded-corners(250px);
56
+ // @include transition(background 0.2s ease-in-out);
57
+ //
58
+ // &:active {
59
+ // background-color: darken($color-primary, 12%);
60
+ // }
61
+ // }
62
+ //
63
+ // // Devices with pointers
64
+ // @media (hover: hover) {
65
+ // .appbar-button {
66
+ // &:hover {
67
+ // background-color: darken($color-primary, 7%);
68
+ // }
69
+ // //
70
+ // // &:active {
71
+ // // background-color: darken($color-primary, 12%);
72
+ // // }
129
73
  // }
130
74
  // }
131
-
132
- // appbar - dividers
133
- //----------------------------------------------------------------------
134
-
135
- .appbar-divider,
136
- .appbar-spacer {
137
- background-color: darken($color-primary, 10%);
138
- content: "";
139
- display: inline-block;
140
- height: $appbar-button-height - $spacing-normal;
141
- line-height: 1;
142
- margin: 0 $spacing-small;
143
- width: 1px;
144
- }
145
-
146
- .appbar-spacer {
147
- background-color: transparent;
148
- }
75
+ //
76
+ // // appbar - nav icon (special button in top-left for menu toggle)
77
+ // //----------------------------------------------------------------------
78
+ //
79
+ // #appbar-nav-button[role="left-sidebar-toggle"] {
80
+ // visibility: visible;
81
+ // }
82
+ //
83
+ // @media (min-width: $width-large) {
84
+ // #appbar-nav-button[role="left-sidebar-toggle"] {
85
+ // visibility: hidden;
86
+ // }
87
+ // }
88
+ //
89
+ // // appbar - title
90
+ // //----------------------------------------------------------------------
91
+ //
92
+ // .appbar-title {
93
+ // flex: 1; // To fill empty gaps
94
+ // font-size: $font-size-normal + 2px;
95
+ // font-weight: 400;
96
+ // line-height: 1;
97
+ // margin: 0 $spacing-small;
98
+ // max-width: auto;
99
+ // pointer-events: none;
100
+ // @include font-smoothing();
101
+ //
102
+ // a {
103
+ // color: $appbar-subtitle-color;
104
+ // }
105
+ // }
106
+ //
107
+ // @media (min-width: $width-small) {
108
+ // .appbar-title {
109
+ // font-size: $font-size-large;
110
+ // max-width: $sidebar-width - 64px;
111
+ // }
112
+ // }
113
+ //
114
+ // // Above and below main text
115
+ // .appbar-title-supertitle,
116
+ // .appbar-title-subtitle {
117
+ // color: $appbar-subtitle-color;
118
+ // font-size: $font-size-normal;
119
+ // @include flex-parent-row();
120
+ // }
121
+ //
122
+ // // appbar - actions
123
+ // //----------------------------------------------------------------------
124
+ //
125
+ // // .appbar-actions {
126
+ // // @include flex-parent-row(); // To line up dividers and buttons properly
127
+ // // padding-left: $spacing-small;
128
+ // // text-align: right;
129
+ // //
130
+ // // .button {
131
+ // // margin-right: $spacing-small;
132
+ // // }
133
+ // // }
134
+ //
135
+ // // appbar - dividers
136
+ // //----------------------------------------------------------------------
137
+ //
138
+ // .appbar-divider,
139
+ // .appbar-spacer {
140
+ // background-color: darken($color-primary, 10%);
141
+ // content: "";
142
+ // display: inline-block;
143
+ // height: $appbar-button-height - $spacing-normal;
144
+ // line-height: 1;
145
+ // margin: 0 $spacing-small;
146
+ // width: 1px;
147
+ // }
148
+ //
149
+ // .appbar-spacer {
150
+ // background-color: transparent;
151
+ // }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.65
4
+ version: 0.5.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-14 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'WARNING: ALPHA CODE, NOT PRODUCTION READY. ACTIVELY UNDER DEVELOPMENT
14
14
  AS OF AUG 2016. Implement Google Material Design spec with modern browsers in mind