dlegr250_material_design 0.5.65 → 0.5.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dlegr250_material_design/version.rb +1 -1
- data/vendor/assets/stylesheets/base/mixins.scss +6 -0
- data/vendor/assets/stylesheets/base/variables/dimensions.scss +3 -3
- data/vendor/assets/stylesheets/components/buttons.scss +0 -26
- data/vendor/assets/stylesheets/layouts/application/appbar.scss +149 -146
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e34e2f90bd24e3f13ba975d87a974152d3c5887
|
4
|
+
data.tar.gz: e371a71cfa340ae69709ab6d8b9f7246710cc20e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c76b5727490da0d87adcfcfe2175ddff37f61e7a0e77a763fcef88256cf11506d415071c691c897c18b03609b674bc27a7cd60001a181eca4b9fd0da7a4970f
|
7
|
+
data.tar.gz: f2f4e84f174efef0647ab0fb60e77a5e4b4e287d7e0bcba04207427ff2220f41b8ae725ecc008f80165ae01c2fa61dea2141fbe6fbf810233f3b73aa88466997
|
@@ -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:
|
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:
|
81
|
+
$button-icon-height: $button-height;
|
82
82
|
|
83
83
|
$button-fab-mini-height: $button-icon-height;
|
84
|
-
$button-fab-height:
|
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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
//
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
//
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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 -
|
133
|
-
//----------------------------------------------------------------------
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
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.
|
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-
|
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
|