easy_cms 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/easy_cms.gemspec +36 -0
- data/lib/easy_cms.rb +5 -0
- data/lib/easy_cms/version.rb +3 -0
- data/lib/generators/easy_cms/model/model_generator.rb +71 -0
- data/lib/generators/easy_cms/model/templates/controllers/model_controller.erb +55 -0
- data/lib/generators/easy_cms/model/templates/layouts/_form.html.erb +26 -0
- data/lib/generators/easy_cms/model/templates/layouts/edit.html.erb +13 -0
- data/lib/generators/easy_cms/model/templates/layouts/index.html.erb +37 -0
- data/lib/generators/easy_cms/model/templates/layouts/item_navegation.html.erb +19 -0
- data/lib/generators/easy_cms/model/templates/layouts/new.html.erb +13 -0
- data/lib/generators/easy_cms/model/templates/layouts/show.html.erb +22 -0
- data/lib/generators/easy_cms/namespace/namespace_generator.rb +45 -0
- data/lib/generators/easy_cms/namespace/templates/assets/base_javascript.erb +3 -0
- data/lib/generators/easy_cms/namespace/templates/assets/base_scss.erb +1 -0
- data/lib/generators/easy_cms/namespace/templates/controllers/base_controller.erb +5 -0
- data/lib/generators/easy_cms/namespace/templates/layouts/layout.html.erb +71 -0
- data/lib/generators/resource_helpers.rb +31 -0
- data/vendor/assets/javascripts/.keep +0 -0
- data/vendor/assets/javascripts/easy_cms/base.js +351 -0
- data/vendor/assets/javascripts/easy_cms/bootstrap-notify.js +404 -0
- data/vendor/assets/javascripts/easy_cms/bootstrap.min.js +7 -0
- data/vendor/assets/javascripts/easy_cms/chartist.min.js +9 -0
- data/vendor/assets/javascripts/easy_cms/demo.js +183 -0
- data/vendor/assets/javascripts/easy_cms/jquery-3.1.0.min.js +4 -0
- data/vendor/assets/javascripts/easy_cms/material.min.js +1 -0
- data/vendor/assets/stylesheets/.keep +0 -0
- data/vendor/assets/stylesheets/easy_cms/bootstrap.min.css +5 -0
- data/vendor/assets/stylesheets/easy_cms/demo.css +64 -0
- data/vendor/assets/stylesheets/easy_cms/easy_cms.css +5065 -0
- data/vendor/assets/stylesheets/easy_cms/easy_cms_sass.scss +51 -0
- data/vendor/assets/stylesheets/easy_cms/md/_alerts.scss +57 -0
- data/vendor/assets/stylesheets/easy_cms/md/_buttons.scss +259 -0
- data/vendor/assets/stylesheets/easy_cms/md/_cards.scss +337 -0
- data/vendor/assets/stylesheets/easy_cms/md/_chartist.scss +254 -0
- data/vendor/assets/stylesheets/easy_cms/md/_checkboxes.scss +193 -0
- data/vendor/assets/stylesheets/easy_cms/md/_colors.scss +325 -0
- data/vendor/assets/stylesheets/easy_cms/md/_dialogs.scss +99 -0
- data/vendor/assets/stylesheets/easy_cms/md/_dropdown.scss +67 -0
- data/vendor/assets/stylesheets/easy_cms/md/_footers.scss +44 -0
- data/vendor/assets/stylesheets/easy_cms/md/_forms.scss +58 -0
- data/vendor/assets/stylesheets/easy_cms/md/_inputs-size.scss +223 -0
- data/vendor/assets/stylesheets/easy_cms/md/_inputs.scss +394 -0
- data/vendor/assets/stylesheets/easy_cms/md/_misc.scss +115 -0
- data/vendor/assets/stylesheets/easy_cms/md/_mixins.scss +422 -0
- data/vendor/assets/stylesheets/easy_cms/md/_navbars.scss +329 -0
- data/vendor/assets/stylesheets/easy_cms/md/_pills.scss +117 -0
- data/vendor/assets/stylesheets/easy_cms/md/_popups.scss +77 -0
- data/vendor/assets/stylesheets/easy_cms/md/_radios.scss +114 -0
- data/vendor/assets/stylesheets/easy_cms/md/_responsive.scss +453 -0
- data/vendor/assets/stylesheets/easy_cms/md/_ripples.scss +40 -0
- data/vendor/assets/stylesheets/easy_cms/md/_shadows.scss +138 -0
- data/vendor/assets/stylesheets/easy_cms/md/_sidebar-and-main-panel.scss +260 -0
- data/vendor/assets/stylesheets/easy_cms/md/_tables.scss +45 -0
- data/vendor/assets/stylesheets/easy_cms/md/_tabs.scss +53 -0
- data/vendor/assets/stylesheets/easy_cms/md/_togglebutton.scss +87 -0
- data/vendor/assets/stylesheets/easy_cms/md/_typography.scss +75 -0
- data/vendor/assets/stylesheets/easy_cms/md/_variables.scss +1127 -0
- data/vendor/assets/stylesheets/easy_cms/md/mixins/_chartist.scss +89 -0
- data/vendor/assets/stylesheets/easy_cms/md/mixins/_transparency.scss +20 -0
- data/vendor/assets/stylesheets/easy_cms/md/mixins/_vendor-prefixes.scss +185 -0
- data/vendor/assets/stylesheets/easy_cms/md/plugins/_animate.scss +227 -0
- data/vendor/assets/stylesheets/easy_cms/md/plugins/_plugin-nouislider.scss +161 -0
- metadata +174 -0
@@ -0,0 +1,422 @@
|
|
1
|
+
//Utilities
|
2
|
+
|
3
|
+
@import "mixins/transparency";
|
4
|
+
@import "mixins/vendor-prefixes";
|
5
|
+
@import "mixins/chartist";
|
6
|
+
|
7
|
+
// Placeholder text
|
8
|
+
@mixin material-placeholder() {
|
9
|
+
&::-moz-placeholder {@content; } // Firefox
|
10
|
+
&:-ms-input-placeholder {@content; } // Internet Explorer 10+
|
11
|
+
&::-webkit-input-placeholder {@content; } // Safari and Chrome
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
// variations(unquote(""), background-color, #FFF);
|
16
|
+
@mixin variations($component, $selector-suffix, $mdb-param-1, $color-default) {
|
17
|
+
@include generic-variations($component, $selector-suffix, $color-default, "variations-content", $mdb-param-1);
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin variations-content($args) {
|
21
|
+
//@debug "#{map-get($args, mixin-name)}{ #{map-get($args, material-param-1)}: #{map-get($args, variation-color)}; }";
|
22
|
+
//@debug "#{inspect($args)}";
|
23
|
+
//@error "break here";
|
24
|
+
#{map-get($args, material-param-1)}: map-get($args, variation-color);
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin background-variations($component, $selector-suffix, $color-default) {
|
28
|
+
@include generic-variations($component, $selector-suffix, $color-default, "background-variations-content", null);
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin background-variations-content($args) {
|
32
|
+
background-color: map-get($args, variation-color);
|
33
|
+
@if (map-get($args, variation-color) == $mdb-btn-background-color) {
|
34
|
+
color: $mdb-text-color-primary;
|
35
|
+
} @else {
|
36
|
+
color: map-get($args, variation-color-text);
|
37
|
+
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
//@mixin text-variations($component, $selector-suffix, $color-default) {
|
42
|
+
// @include generic-variations($component, $selector-suffix, $color-default, "text-variations-content", null);
|
43
|
+
//}
|
44
|
+
//
|
45
|
+
//@mixin text-variations-content($args) {
|
46
|
+
// color: map-get($args, variation-color);
|
47
|
+
//}
|
48
|
+
|
49
|
+
@mixin button-variations($component, $selector-suffix, $color-default) {
|
50
|
+
@include generic-variations($component, $selector-suffix, $color-default, "button-variations-content", 4%);
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin button-variations-content($args) {
|
54
|
+
//@debug "#{inspect($args)}";
|
55
|
+
$variation-color: map-get($args, variation-color);
|
56
|
+
$mdb-param-1: map-get($args, material-param-1);
|
57
|
+
background-color: contrast-color($variation-color,
|
58
|
+
darken($variation-color, $mdb-param-1),
|
59
|
+
lighten($variation-color, $mdb-param-1));
|
60
|
+
}
|
61
|
+
|
62
|
+
// navbar-variations(" label input[type=checkbox]:checked + .toggle:active:after", $brand-primary
|
63
|
+
@mixin navbar-variations($component, $selector-suffix, $color-default) {
|
64
|
+
@include generic-variations($component, $selector-suffix, $color-default, "navbar-variations-content", null);
|
65
|
+
}
|
66
|
+
|
67
|
+
@mixin navbar-variations-content($args){
|
68
|
+
$variation-color: map-get($args, variation-color);
|
69
|
+
$variation-color-text: map-get($args, variation-color-text);
|
70
|
+
|
71
|
+
background-color: $variation-color;
|
72
|
+
color: $variation-color-text;
|
73
|
+
// deeply defined to override welljumbo class without !impotant need
|
74
|
+
.navbar-form .form-group input.form-control,
|
75
|
+
.navbar-form input.form-control {
|
76
|
+
@include material-placeholder {
|
77
|
+
color: $variation-color-text;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
.dropdown-menu {
|
81
|
+
border-radius: $border-radius-base !important;
|
82
|
+
li > a {
|
83
|
+
&:hover,
|
84
|
+
&:focus {
|
85
|
+
color: $white-color;
|
86
|
+
background-color: $variation-color;
|
87
|
+
@include shadow-big-color($variation-color);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
.active > a {
|
92
|
+
&:hover,
|
93
|
+
&:focus {
|
94
|
+
color: $variation-color-text;
|
95
|
+
}
|
96
|
+
background-color: $variation-color;
|
97
|
+
color: $variation-color-text;
|
98
|
+
@include shadow-big-color($variation-color);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// alert-variations("", $brand-primary)
|
104
|
+
@mixin alert-variations($component, $selector-suffix, $color-default) {
|
105
|
+
@include generic-variations($component, $selector-suffix, $color-default, "alert-variations-content", null);
|
106
|
+
}
|
107
|
+
|
108
|
+
@mixin alert-variations-content($args){
|
109
|
+
$variation-color: map-get($args, variation-color);
|
110
|
+
$variation-color-text: map-get($args, variation-color-text);
|
111
|
+
|
112
|
+
background-color: lighten($variation-color,5%);
|
113
|
+
color: $variation-color-text;
|
114
|
+
border-radius: $border-radius-base;
|
115
|
+
|
116
|
+
@include shadow-big-color($variation-color);
|
117
|
+
|
118
|
+
a, .alert-link {
|
119
|
+
color: $variation-color-text;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
// interpolation of mixin-name is not allowed evidently, so we statically include based on the mixin-name given
|
124
|
+
@mixin call-variations-content-mixin($args) {
|
125
|
+
$mixin-name: map-get($args, mixin-name);
|
126
|
+
@if $mixin-name == variations-content {
|
127
|
+
@include variations-content($args);
|
128
|
+
} @else if $mixin-name == background-variations-content {
|
129
|
+
@include background-variations-content($args);
|
130
|
+
} @else if $mixin-name == text-variations-content {
|
131
|
+
@include text-variations-content($args);
|
132
|
+
} @else if $mixin-name == button-variations-content {
|
133
|
+
@include button-variations-content($args);
|
134
|
+
} @else if $mixin-name == bg-color-variations-content {
|
135
|
+
@include bg-color-variations-content($args);
|
136
|
+
} @else if $mixin-name == bg-box-shadow-variations-content {
|
137
|
+
@include bg-box-shadow-variations-content($args);
|
138
|
+
} @else if $mixin-name == bg-img-variations-content {
|
139
|
+
@include bg-img-variations-content($args);
|
140
|
+
} @else if $mixin-name == navbar-variations-content {
|
141
|
+
@include navbar-variations-content($args);
|
142
|
+
}@else if $mixin-name == alert-variations-content {
|
143
|
+
@include alert-variations-content($args);
|
144
|
+
} @else {
|
145
|
+
@error "Unknown mixin: #{$mixin-name}"
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
//
|
150
|
+
// To use this mixin you should pass a function as final parameter to define
|
151
|
+
// the style. In that definition you can use the following variables to define it.
|
152
|
+
//
|
153
|
+
// $variation-color-name ---> "red", "green", "indigo" ...
|
154
|
+
// $variation-color-full-name ---> "red", "green-50", "indigo-400" ...
|
155
|
+
// $variation-color ---> #f44336, #e8f5e9, #5c6bc0 ...
|
156
|
+
// $variation-color-text ---> rgba(255,255,255,0.84), rgba(0,0,0,0.84), rgba(255,255,255,0.84) ...
|
157
|
+
//
|
158
|
+
|
159
|
+
@mixin generic-variations($component, $selector-suffix, $color-default, $mixin-name, $mdb-param-1) {
|
160
|
+
|
161
|
+
//setup map to pass parameters (instead of the incredibly long-error-prone list for each and every @include)
|
162
|
+
$args: (
|
163
|
+
//extra: $selector-suffix,
|
164
|
+
//default: $color-default,
|
165
|
+
mixin-name: $mixin-name,
|
166
|
+
material-param-1: $mdb-param-1
|
167
|
+
);
|
168
|
+
|
169
|
+
// bootstrap styles
|
170
|
+
&#{$selector-suffix},
|
171
|
+
&#{$component}-default#{$selector-suffix} {
|
172
|
+
|
173
|
+
$args-extra: map-merge($args, (
|
174
|
+
variation-color: $white-color,
|
175
|
+
variation-color-text: $gray
|
176
|
+
));
|
177
|
+
@include call-variations-content-mixin($args-extra);
|
178
|
+
}
|
179
|
+
&#{$component}-inverse#{$selector-suffix} {
|
180
|
+
$args-inverse: map-merge($args, (
|
181
|
+
variation-color: #212121,
|
182
|
+
variation-color-text: #fff
|
183
|
+
));
|
184
|
+
@include call-variations-content-mixin($args-inverse);
|
185
|
+
}
|
186
|
+
&#{$component}-primary#{$selector-suffix} {
|
187
|
+
$args-primary: map-merge($args, (
|
188
|
+
variation-color: $brand-primary,
|
189
|
+
variation-color-text: $mdb-text-color-light
|
190
|
+
));
|
191
|
+
@include call-variations-content-mixin($args-primary);
|
192
|
+
}
|
193
|
+
&#{$component}-success#{$selector-suffix} {
|
194
|
+
$args-success: map-merge($args, (
|
195
|
+
variation-color: $brand-success,
|
196
|
+
variation-color-text: $mdb-text-color-light
|
197
|
+
));
|
198
|
+
@include call-variations-content-mixin($args-success);
|
199
|
+
}
|
200
|
+
&#{$component}-info#{$selector-suffix} {
|
201
|
+
$args-info: map-merge($args, (
|
202
|
+
variation-color: $brand-info,
|
203
|
+
variation-color-text: $mdb-text-color-light
|
204
|
+
));
|
205
|
+
@include call-variations-content-mixin($args-info);
|
206
|
+
}
|
207
|
+
&#{$component}-warning#{$selector-suffix} {
|
208
|
+
$args-warning: map-merge($args, (
|
209
|
+
variation-color: $brand-warning,
|
210
|
+
variation-color-text: $mdb-text-color-light
|
211
|
+
));
|
212
|
+
@include call-variations-content-mixin($args-warning);
|
213
|
+
}
|
214
|
+
&#{$component}-danger#{$selector-suffix} {
|
215
|
+
$args-danger: map-merge($args, (
|
216
|
+
variation-color: $brand-danger,
|
217
|
+
variation-color-text: $mdb-text-color-light
|
218
|
+
));
|
219
|
+
@include call-variations-content-mixin($args-danger);
|
220
|
+
}
|
221
|
+
|
222
|
+
&#{$component}-rose#{$selector-suffix} {
|
223
|
+
$args-rose: map-merge($args, (
|
224
|
+
variation-color: $brand-rose,
|
225
|
+
variation-color-text: $mdb-text-color-light
|
226
|
+
));
|
227
|
+
@include call-variations-content-mixin($args-rose);
|
228
|
+
}
|
229
|
+
|
230
|
+
}
|
231
|
+
|
232
|
+
@mixin transition($time, $type){
|
233
|
+
-webkit-transition: all $time $type;
|
234
|
+
-moz-transition: all $time $type;
|
235
|
+
-o-transition: all $time $type;
|
236
|
+
-ms-transition: all $time $type;
|
237
|
+
transition: all $time $type;
|
238
|
+
}
|
239
|
+
|
240
|
+
@mixin transform-scale($value){
|
241
|
+
-webkit-transform: scale($value);
|
242
|
+
-moz-transform: scale($value);
|
243
|
+
-o-transform: scale($value);
|
244
|
+
-ms-transform: scale($value);
|
245
|
+
transform: scale($value);
|
246
|
+
}
|
247
|
+
|
248
|
+
@mixin transform-translate-x($value){
|
249
|
+
-webkit-transform: translate3d($value, 0, 0);
|
250
|
+
-moz-transform: translate3d($value, 0, 0);
|
251
|
+
-o-transform: translate3d($value, 0, 0);
|
252
|
+
-ms-transform: translate3d($value, 0, 0);
|
253
|
+
transform: translate3d($value, 0, 0);
|
254
|
+
}
|
255
|
+
|
256
|
+
@mixin transform-translate-y($value){
|
257
|
+
-webkit-transform: translate3d(0,$value, 0);
|
258
|
+
-moz-transform: translate3d(0, $value, 0);
|
259
|
+
-o-transform: translate3d(0, $value, 0);
|
260
|
+
-ms-transform: translate3d(0, $value, 0);
|
261
|
+
transform: translate3d(0, $value, 0);
|
262
|
+
}
|
263
|
+
|
264
|
+
@mixin transform-origin($coordinates){
|
265
|
+
-webkit-transform-origin: $coordinates;
|
266
|
+
-moz-transform-origin: $coordinates;
|
267
|
+
-o-transform-origin: $coordinates;
|
268
|
+
-ms-transform-origin: $coordinates;
|
269
|
+
transform-origin: $coordinates;
|
270
|
+
}
|
271
|
+
|
272
|
+
@mixin black-filter(){
|
273
|
+
background: rgba(0,0,0,.55);
|
274
|
+
position: absolute;
|
275
|
+
width: 100%;
|
276
|
+
height: 100%;
|
277
|
+
content: "";
|
278
|
+
z-index: 0;
|
279
|
+
left: 0;
|
280
|
+
top: 0;
|
281
|
+
}
|
282
|
+
|
283
|
+
@mixin radial-gradient($extern-color, $center-color){
|
284
|
+
background: $extern-color;
|
285
|
+
background: -moz-radial-gradient(center, ellipse cover, $center-color 0%, $extern-color 100%); /* FF3.6+ */
|
286
|
+
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,$center-color), color-stop(100%,$extern-color)); /* Chrome,Safari4+ */
|
287
|
+
background: -webkit-radial-gradient(center, ellipse cover, $center-color 0%,$extern-color 100%); /* Chrome10+,Safari5.1+ */
|
288
|
+
background: -o-radial-gradient(center, ellipse cover, $center-color 0%,$extern-color 100%); /* Opera 12+ */
|
289
|
+
background: -ms-radial-gradient(center, ellipse cover, $center-color 0%,$extern-color 100%); /* IE10+ */
|
290
|
+
background: radial-gradient(ellipse at center, $center-color 0%,$extern-color 100%); /* W3C */
|
291
|
+
background-size: 550% 450%;
|
292
|
+
}
|
293
|
+
|
294
|
+
@mixin tag-color ($color){
|
295
|
+
.tag{
|
296
|
+
background-color: $color;
|
297
|
+
color: $white-color;
|
298
|
+
.tagsinput-remove-link{
|
299
|
+
color: $white-color;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
.tagsinput-add{
|
303
|
+
color: $color;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
@mixin create-colored-tags(){
|
307
|
+
&.tag-primary{
|
308
|
+
@include tag-color($brand-primary);
|
309
|
+
}
|
310
|
+
&.tag-info {
|
311
|
+
@include tag-color($brand-info);
|
312
|
+
}
|
313
|
+
&.tag-success{
|
314
|
+
@include tag-color($brand-success);
|
315
|
+
}
|
316
|
+
&.tag-warning{
|
317
|
+
@include tag-color($brand-warning);
|
318
|
+
}
|
319
|
+
&.tag-danger{
|
320
|
+
@include tag-color($brand-danger);
|
321
|
+
}
|
322
|
+
&.tag-rose{
|
323
|
+
@include tag-color($brand-rose);
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
@mixin rotate-180(){
|
328
|
+
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
|
329
|
+
-webkit-transform: rotate(180deg);
|
330
|
+
-ms-transform: rotate(180deg);
|
331
|
+
transform: rotate(180deg);
|
332
|
+
}
|
333
|
+
|
334
|
+
@mixin linear-gradient($color1, $color2){
|
335
|
+
background: $color1; /* For browsers that do not support gradients */
|
336
|
+
background: -webkit-linear-gradient(60deg, $color1 , $color2); /* For Safari 5.1 to 6.0 */
|
337
|
+
background: -o-linear-gradient(60deg, $color1, $color2); /* For Opera 11.1 to 12.0 */
|
338
|
+
background: -moz-linear-gradient(60deg, $color1, $color2); /* For Firefox 3.6 to 15 */
|
339
|
+
background: linear-gradient(60deg, $color1 , $color2); /* Standard syntax */
|
340
|
+
}
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
// Mixins for buttons
|
345
|
+
|
346
|
+
@mixin btn-styles($btn-color) {
|
347
|
+
|
348
|
+
// remove this line if you want black shadows
|
349
|
+
@include shadow-2dp-color($btn-color);
|
350
|
+
|
351
|
+
&,
|
352
|
+
&:hover,
|
353
|
+
&:focus,
|
354
|
+
&:active,
|
355
|
+
&.active,
|
356
|
+
&:active:focus,
|
357
|
+
&:active:hover,
|
358
|
+
&.active:focus,
|
359
|
+
&.active:hover,
|
360
|
+
.open > &.dropdown-toggle,
|
361
|
+
.open > &.dropdown-toggle:focus,
|
362
|
+
.open > &.dropdown-toggle:hover {
|
363
|
+
background-color: $btn-color;
|
364
|
+
color: $white-color;
|
365
|
+
}
|
366
|
+
|
367
|
+
&:focus,
|
368
|
+
&:active,
|
369
|
+
&:hover{
|
370
|
+
// remove this line if you want black shadows
|
371
|
+
@include button-shadow-color($btn-color);
|
372
|
+
}
|
373
|
+
|
374
|
+
&.disabled,
|
375
|
+
&:disabled,
|
376
|
+
&[disabled],
|
377
|
+
fieldset[disabled] & {
|
378
|
+
&,
|
379
|
+
&:hover,
|
380
|
+
&:focus,
|
381
|
+
&.focus,
|
382
|
+
&:active,
|
383
|
+
&.active {
|
384
|
+
box-shadow: none;
|
385
|
+
}
|
386
|
+
}
|
387
|
+
|
388
|
+
&.btn-simple{
|
389
|
+
background-color: transparent;
|
390
|
+
color: $btn-color;
|
391
|
+
box-shadow: none;
|
392
|
+
|
393
|
+
&:hover,
|
394
|
+
&:focus,
|
395
|
+
&:active{
|
396
|
+
background-color: transparent;
|
397
|
+
color: $btn-color;
|
398
|
+
}
|
399
|
+
}
|
400
|
+
|
401
|
+
}
|
402
|
+
|
403
|
+
// for social buttons
|
404
|
+
@mixin social-buttons-color ($color){
|
405
|
+
background-color: $color;
|
406
|
+
color: #fff;
|
407
|
+
@include shadow-2dp-color($color);
|
408
|
+
|
409
|
+
&:focus,
|
410
|
+
&:active,
|
411
|
+
&:hover{
|
412
|
+
background-color: $color;
|
413
|
+
color: #fff;
|
414
|
+
@include button-shadow-color($color);
|
415
|
+
}
|
416
|
+
|
417
|
+
&.btn-simple{
|
418
|
+
color: $color;
|
419
|
+
background-color: transparent;
|
420
|
+
box-shadow: none;
|
421
|
+
}
|
422
|
+
}
|
@@ -0,0 +1,329 @@
|
|
1
|
+
// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
|
2
|
+
|
3
|
+
.navbar {
|
4
|
+
// background-color: $brand-primary;
|
5
|
+
border: 0;
|
6
|
+
border-radius: $border-radius-base;
|
7
|
+
// @include shadow-big-navbar();
|
8
|
+
|
9
|
+
border-bottom: 1px solid #ededf3;
|
10
|
+
@extend .animation-transition-fast;
|
11
|
+
|
12
|
+
padding: 10px 0;
|
13
|
+
|
14
|
+
.navbar-brand {
|
15
|
+
position: relative;
|
16
|
+
height: 50px;
|
17
|
+
line-height: 30px;
|
18
|
+
color: inherit;
|
19
|
+
padding: 10px 15px;
|
20
|
+
|
21
|
+
&:hover,
|
22
|
+
&:focus {
|
23
|
+
color: inherit;
|
24
|
+
background-color: transparent;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.notification{
|
29
|
+
position: absolute;
|
30
|
+
top: 5px;
|
31
|
+
border: 1px solid #FFF;
|
32
|
+
right: 10px;
|
33
|
+
font-size: 9px;
|
34
|
+
background: #f44336;
|
35
|
+
color: #FFFFFF;
|
36
|
+
min-width: 20px;
|
37
|
+
padding: 0px 5px;
|
38
|
+
height: 20px;
|
39
|
+
border-radius: 10px;
|
40
|
+
text-align: center;
|
41
|
+
line-height: 19px;
|
42
|
+
vertical-align: middle;
|
43
|
+
display: block;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
.navbar-text {
|
49
|
+
color: inherit;
|
50
|
+
margin-top: 15px;
|
51
|
+
margin-bottom: 15px;
|
52
|
+
}
|
53
|
+
|
54
|
+
.navbar-nav {
|
55
|
+
> li > a {
|
56
|
+
color: inherit;
|
57
|
+
padding-top: 15px;
|
58
|
+
padding-bottom: 15px;
|
59
|
+
|
60
|
+
font-weight: $font-weight-default;
|
61
|
+
font-size: $mdb-btn-font-size-base;
|
62
|
+
text-transform: uppercase;
|
63
|
+
|
64
|
+
border-radius: $border-radius-base;
|
65
|
+
|
66
|
+
&:hover,
|
67
|
+
&:focus {
|
68
|
+
color: inherit;
|
69
|
+
background-color: transparent;
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
.material-icons,
|
74
|
+
.fa{
|
75
|
+
font-size: 20px;
|
76
|
+
}
|
77
|
+
|
78
|
+
&.btn:not(.btn-just-icon){
|
79
|
+
.fa{
|
80
|
+
position: relative;
|
81
|
+
top: 2px;
|
82
|
+
margin-top: -4px;
|
83
|
+
margin-right: 4px;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
> li > .dropdown-menu{
|
89
|
+
margin-top: -20px;
|
90
|
+
}
|
91
|
+
|
92
|
+
> li.open > .dropdown-menu{
|
93
|
+
margin-top: 0;
|
94
|
+
}
|
95
|
+
|
96
|
+
> .active > a {
|
97
|
+
&,
|
98
|
+
&:hover,
|
99
|
+
&:focus {
|
100
|
+
color: inherit;
|
101
|
+
background-color: rgba(255, 255, 255, 0.1);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
> .disabled > a {
|
105
|
+
&,
|
106
|
+
&:hover,
|
107
|
+
&:focus {
|
108
|
+
color: inherit;
|
109
|
+
background-color: transparent;
|
110
|
+
opacity: 0.9;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
.profile-photo{
|
114
|
+
padding: 0 5px 0;
|
115
|
+
.profile-photo-small{
|
116
|
+
height: 40px;
|
117
|
+
width: 40px;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
// Darken the responsive nav toggle
|
124
|
+
.navbar-toggle {
|
125
|
+
border: 0;
|
126
|
+
&:hover,
|
127
|
+
&:focus {
|
128
|
+
background-color: transparent;
|
129
|
+
}
|
130
|
+
.icon-bar {
|
131
|
+
background-color: inherit;
|
132
|
+
border: 1px solid;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
.navbar-default .navbar-toggle,
|
137
|
+
.navbar-inverse .navbar-toggle {
|
138
|
+
border-color: transparent;
|
139
|
+
}
|
140
|
+
|
141
|
+
.navbar-collapse,
|
142
|
+
.navbar-form {
|
143
|
+
border-top: none;
|
144
|
+
box-shadow: none;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Dropdowns
|
148
|
+
.navbar-nav {
|
149
|
+
> .open > a {
|
150
|
+
&,
|
151
|
+
&:hover,
|
152
|
+
&:focus {
|
153
|
+
background-color: transparent;
|
154
|
+
color: inherit;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
159
|
+
.navbar-text {
|
160
|
+
color: inherit;
|
161
|
+
margin-top: 15px;
|
162
|
+
margin-bottom: 15px;
|
163
|
+
}
|
164
|
+
|
165
|
+
// Dropdowns get custom display
|
166
|
+
.open .dropdown-menu {
|
167
|
+
> .dropdown-header {
|
168
|
+
border: 0;
|
169
|
+
color: inherit;
|
170
|
+
}
|
171
|
+
.divider {
|
172
|
+
border-bottom: 1px solid;
|
173
|
+
opacity: 0.08;
|
174
|
+
}
|
175
|
+
> li > a {
|
176
|
+
color: inherit;
|
177
|
+
&:hover,
|
178
|
+
&:focus {
|
179
|
+
color: inherit;
|
180
|
+
background-color: transparent;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
> .active > a {
|
184
|
+
&,
|
185
|
+
&:hover,
|
186
|
+
&:focus {
|
187
|
+
color: inherit;
|
188
|
+
background-color: transparent;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
> .disabled > a {
|
192
|
+
&,
|
193
|
+
&:hover,
|
194
|
+
&:focus {
|
195
|
+
color: inherit;
|
196
|
+
background-color: transparent;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
&.navbar-default{
|
204
|
+
.logo-container .brand{
|
205
|
+
color: $gray;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
.navbar-link {
|
210
|
+
color: inherit;
|
211
|
+
&:hover {
|
212
|
+
color: inherit;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
.btn{
|
217
|
+
margin-top: 0;
|
218
|
+
margin-bottom: 0;
|
219
|
+
}
|
220
|
+
.btn-link {
|
221
|
+
color: inherit;
|
222
|
+
&:hover,
|
223
|
+
&:focus {
|
224
|
+
color: inherit;
|
225
|
+
}
|
226
|
+
&[disabled],
|
227
|
+
fieldset[disabled] & {
|
228
|
+
&:hover,
|
229
|
+
&:focus {
|
230
|
+
color: inherit;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
}
|
234
|
+
|
235
|
+
.navbar-form {
|
236
|
+
margin: 4px 0 0;
|
237
|
+
.form-group {
|
238
|
+
margin: 0;
|
239
|
+
padding: 0;
|
240
|
+
|
241
|
+
.material-input:before,
|
242
|
+
&.is-focused .material-input:after {
|
243
|
+
background-color: inherit;
|
244
|
+
}
|
245
|
+
}
|
246
|
+
|
247
|
+
.form-group .form-control,
|
248
|
+
.form-control {
|
249
|
+
border-color: inherit;
|
250
|
+
color: inherit;
|
251
|
+
padding: 0;
|
252
|
+
margin: 0;
|
253
|
+
|
254
|
+
// re-normalize inputs in a navbar the size of standard bootstrap since our normal inputs are larger by spec than bootstrap
|
255
|
+
//---
|
256
|
+
//height: $mdb-input-height-base;
|
257
|
+
$bs-line-height-base: 1.428571429 !default;
|
258
|
+
$bs-line-height-computed: floor(($font-size-base * $bs-line-height-base)) !default; // ~20px
|
259
|
+
height: ($bs-line-height-computed + 8px);
|
260
|
+
font-size: $font-size-base;
|
261
|
+
line-height: $bs-line-height-base;
|
262
|
+
//---
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
// SASS conversion note: please mirror any content change in _mixins-shared.scss navbar-variations-content
|
267
|
+
@include navbar-variations(unquote(".navbar"), unquote(""), $brand-primary);
|
268
|
+
|
269
|
+
|
270
|
+
&-inverse {
|
271
|
+
background-color: $indigo;
|
272
|
+
}
|
273
|
+
|
274
|
+
&.navbar-transparent{
|
275
|
+
background-color: transparent;
|
276
|
+
box-shadow: none;
|
277
|
+
border-bottom: 0;
|
278
|
+
|
279
|
+
.logo-container .brand{
|
280
|
+
color: $white-color;
|
281
|
+
}
|
282
|
+
}
|
283
|
+
&-fixed-top{
|
284
|
+
border-radius: 0;
|
285
|
+
}
|
286
|
+
@media (max-width: $screen-md-max) {
|
287
|
+
|
288
|
+
.navbar-brand {
|
289
|
+
height: 50px;
|
290
|
+
padding: 10px 15px;
|
291
|
+
}
|
292
|
+
/*
|
293
|
+
.navbar-form {
|
294
|
+
margin-top: 10px;
|
295
|
+
}
|
296
|
+
*/
|
297
|
+
|
298
|
+
.navbar-nav > li > a {
|
299
|
+
padding-top: 15px;
|
300
|
+
padding-bottom: 15px;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
304
|
+
.alert{
|
305
|
+
border-radius: 0;
|
306
|
+
left: 0;
|
307
|
+
position: absolute;
|
308
|
+
right: 0;
|
309
|
+
top: 85px;
|
310
|
+
width: 100%;
|
311
|
+
z-index: 3;
|
312
|
+
transition: all 0.3s;
|
313
|
+
}
|
314
|
+
|
315
|
+
}
|
316
|
+
|
317
|
+
.nav-align-center{
|
318
|
+
text-align: center;
|
319
|
+
|
320
|
+
.nav-pills{
|
321
|
+
display: inline-block;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
.navbar-absolute{
|
325
|
+
position: absolute;
|
326
|
+
width: 100%;
|
327
|
+
padding-top: 10px;
|
328
|
+
z-index: 1029;
|
329
|
+
}
|