active_material 1.4.1

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.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/README.md +60 -0
  4. data/app/assets/images/active_material/icons/account_circle.svg +9 -0
  5. data/app/assets/images/active_material/icons/arrow-dropdown.svg +7 -0
  6. data/app/assets/images/active_material/icons/arrow_down.svg +7 -0
  7. data/app/assets/images/active_material/icons/clear.svg +8 -0
  8. data/app/assets/images/active_material/icons/create.svg +8 -0
  9. data/app/assets/images/active_material/icons/email.svg +8 -0
  10. data/app/assets/images/active_material/icons/event.svg +8 -0
  11. data/app/assets/images/active_material/icons/more.svg +9 -0
  12. data/app/assets/images/active_material/icons/reorder.svg +4 -0
  13. data/app/assets/images/active_material/icons/search.svg +9 -0
  14. data/app/assets/images/active_material/icons/secret.svg +8 -0
  15. data/app/assets/javascripts/active_material/fonts.js +21 -0
  16. data/app/assets/javascripts/active_material.js +1 -0
  17. data/app/assets/stylesheets/active_material/atoms/clearfix.scss +14 -0
  18. data/app/assets/stylesheets/active_material/atoms/color.scss +5 -0
  19. data/app/assets/stylesheets/active_material/atoms/family.scss +5 -0
  20. data/app/assets/stylesheets/active_material/atoms/fill.scss +5 -0
  21. data/app/assets/stylesheets/active_material/atoms/hidden.scss +5 -0
  22. data/app/assets/stylesheets/active_material/atoms/links.scss +23 -0
  23. data/app/assets/stylesheets/active_material/atoms/lists.scss +13 -0
  24. data/app/assets/stylesheets/active_material/atoms/paper.scss +7 -0
  25. data/app/assets/stylesheets/active_material/atoms/type.scss +54 -0
  26. data/app/assets/stylesheets/active_material/components/avatar.scss +3 -0
  27. data/app/assets/stylesheets/active_material/components/blank_slate.scss +26 -0
  28. data/app/assets/stylesheets/active_material/components/breadcrumbs.scss +11 -0
  29. data/app/assets/stylesheets/active_material/components/buttons.scss +20 -0
  30. data/app/assets/stylesheets/active_material/components/checkbox.scss +21 -0
  31. data/app/assets/stylesheets/active_material/components/clearfix.scss +3 -0
  32. data/app/assets/stylesheets/active_material/components/date-select.scss +31 -0
  33. data/app/assets/stylesheets/active_material/components/datepicker.scss +58 -0
  34. data/app/assets/stylesheets/active_material/components/dialog.scss +37 -0
  35. data/app/assets/stylesheets/active_material/components/dropdown.scss +33 -0
  36. data/app/assets/stylesheets/active_material/components/featured-blocks.scss +12 -0
  37. data/app/assets/stylesheets/active_material/components/filter.scss +61 -0
  38. data/app/assets/stylesheets/active_material/components/flash.scss +13 -0
  39. data/app/assets/stylesheets/active_material/components/footer.scss +4 -0
  40. data/app/assets/stylesheets/active_material/components/forms.scss +92 -0
  41. data/app/assets/stylesheets/active_material/components/header.scss +64 -0
  42. data/app/assets/stylesheets/active_material/components/hidden.scss +3 -0
  43. data/app/assets/stylesheets/active_material/components/login.scss +53 -0
  44. data/app/assets/stylesheets/active_material/components/overlay.scss +8 -0
  45. data/app/assets/stylesheets/active_material/components/pagination.scss +43 -0
  46. data/app/assets/stylesheets/active_material/components/panels.scss +38 -0
  47. data/app/assets/stylesheets/active_material/components/photo_select.scss +7 -0
  48. data/app/assets/stylesheets/active_material/components/scopes.scss +29 -0
  49. data/app/assets/stylesheets/active_material/components/select.scss +20 -0
  50. data/app/assets/stylesheets/active_material/components/sortable.scss +36 -0
  51. data/app/assets/stylesheets/active_material/components/structure.scss +30 -0
  52. data/app/assets/stylesheets/active_material/components/tables.scss +85 -0
  53. data/app/assets/stylesheets/active_material/components/tabs.scss +25 -0
  54. data/app/assets/stylesheets/active_material/components/tag.scss +23 -0
  55. data/app/assets/stylesheets/active_material/components/title_bar.scss +21 -0
  56. data/app/assets/stylesheets/active_material/components/utility_nav.scss +84 -0
  57. data/app/assets/stylesheets/active_material/generators/functions.scss +102 -0
  58. data/app/assets/stylesheets/active_material/generators/mixins.scss +24 -0
  59. data/app/assets/stylesheets/active_material/global/foundation.scss +107 -0
  60. data/app/assets/stylesheets/active_material/prototypes/actions-footer.scss +8 -0
  61. data/app/assets/stylesheets/active_material/prototypes/avatar.scss +19 -0
  62. data/app/assets/stylesheets/active_material/prototypes/btn-icon.scss +14 -0
  63. data/app/assets/stylesheets/active_material/prototypes/button.scss +58 -0
  64. data/app/assets/stylesheets/active_material/prototypes/datepicker.scss +107 -0
  65. data/app/assets/stylesheets/active_material/prototypes/dialog.scss +54 -0
  66. data/app/assets/stylesheets/active_material/prototypes/menu.scss +118 -0
  67. data/app/assets/stylesheets/active_material/prototypes/multiselect.scss +20 -0
  68. data/app/assets/stylesheets/active_material/prototypes/select.scss +42 -0
  69. data/app/assets/stylesheets/active_material/prototypes/snackbar.scss +47 -0
  70. data/app/assets/stylesheets/active_material/prototypes/subheader.scss +13 -0
  71. data/app/assets/stylesheets/active_material/prototypes/table.scss +116 -0
  72. data/app/assets/stylesheets/active_material/prototypes/tabs.scss +109 -0
  73. data/app/assets/stylesheets/active_material/prototypes/tag.scss +36 -0
  74. data/app/assets/stylesheets/active_material/prototypes/textfield.scss +137 -0
  75. data/app/assets/stylesheets/active_material/prototypes/toolbar.scss +70 -0
  76. data/app/assets/stylesheets/active_material/prototypes/underlay.scss +16 -0
  77. data/app/assets/stylesheets/active_material/values/breakpoints.scss +3 -0
  78. data/app/assets/stylesheets/active_material/values/colors.scss +104 -0
  79. data/app/assets/stylesheets/active_material/values/elevation.scss +8 -0
  80. data/app/assets/stylesheets/active_material/values/fonts.scss +10 -0
  81. data/app/assets/stylesheets/active_material/values/units.scss +8 -0
  82. data/app/assets/stylesheets/active_material.scss +36 -0
  83. data/lib/active_material/version.rb +3 -0
  84. data/lib/active_material.rb +8 -0
  85. metadata +156 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Multiselects
3
+ */
4
+
5
+ @mixin am-multiselect {
6
+ border: 1px solid #d3d3d3;
7
+ box-shadow: inset 0 1px 2px rgba(#000, 0.1);
8
+ border-radius: 2px;
9
+ min-width: 250px;
10
+ max-width: 100%;
11
+ }
12
+
13
+ @mixin am-multiselect-option {
14
+ padding: 8px;
15
+ border-top: 1px solid am-color(divider);
16
+
17
+ &:first-child {
18
+ border-top: 0;
19
+ }
20
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Select
3
+ * Custom select styles, taken from textfields in material design
4
+ */
5
+
6
+ @mixin am-select {
7
+ border: 1px solid am-color(divider);
8
+ border-radius: 2px;
9
+ display: inline-block;
10
+ margin-top: am-unit(1);
11
+ }
12
+
13
+ @mixin am-select-input {
14
+ @include am-font-size(14);
15
+ background: #fafafa asset-url("active_material/icons/arrow-dropdown.svg") no-repeat calc(100% - 4px) 50%;
16
+ border: 1px solid #d3d3d3;
17
+ border-radius: 3px;
18
+ box-shadow: inset 0 1px 0 rgba(#fff, 0.8);
19
+ height: am-unit(5) + 2px; // line height + border for Firefox
20
+ line-height: am-unit(5);
21
+ -webkit-appearance: none;
22
+ -moz-appearance: none;
23
+
24
+ // These rules are so that opening a select will
25
+ // align as closely to the open options as much as possible
26
+ letter-spacing: 0.01em;
27
+ padding: 0 am-unit(3) 0 10px;
28
+ }
29
+
30
+ @mixin am-select-input-borderless {
31
+ border: 0;
32
+ border-radius: 0;
33
+ }
34
+
35
+ @mixin am-select-unit {
36
+ border-left: 1px solid am-color(divider);
37
+ text-align: center;
38
+
39
+ &:first-child {
40
+ border-left: none;
41
+ }
42
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Snackbars
3
+ * Material design notifications
4
+ * http://www.google.com/design/spec/components/snackbars-toasts.html
5
+ */
6
+
7
+ $am-snackbar-background: #323232 !default;
8
+ $am-snackbar-color: am-color(text-light) !default;
9
+ $am-snackbar-min-width: am-unit(36) !default;
10
+ $am-snackbar-max-width: am-unit(72) !default;
11
+ $am-snackbar-duration: 9s !default;
12
+
13
+ @keyframes am-snackbar-fade {
14
+ from {
15
+ opacity: 0;
16
+ transform: translate3d(0, 5px, 0);
17
+ }
18
+
19
+ to {
20
+ opacity: 1;
21
+ transform: none;
22
+ }
23
+ }
24
+
25
+ @mixin am-snackbar {
26
+ animation: 0.6s am-snackbar-fade, 0.6s am-snackbar-fade reverse $am-snackbar-duration forwards;
27
+ background: $am-snackbar-background;
28
+ border-radius: 2px;
29
+ bottom: 0;
30
+ box-shadow: 0 1px 2px rgba(#000, 0.24);
31
+ color: $am-snackbar-color;
32
+ font-weight: 300;
33
+ font-size: 14px;
34
+ line-height: am-sp(20);
35
+ margin: am-unit(2);
36
+ min-width: $am-snackbar-min-width;
37
+ max-width: $am-snackbar-max-width;
38
+ padding: am-unit(2) am-unit(3) am-unit(1.5);
39
+ position: fixed;
40
+ text-shadow: 0 1px 1px #000;
41
+ z-index: $am-elevation-top;
42
+ }
43
+
44
+ @mixin am-snackbar-error {
45
+ background-color: am-darken(error, 25%);
46
+ text-shadow: 0 1px 1px am-darken(error, 65%);
47
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Subheader
3
+ * Used for sidebar headings and other secondary content
4
+ * which require title text
5
+ */
6
+
7
+ @mixin am-subheader {
8
+ @include am-font-size(14);
9
+ @include am-color(secondary-text);
10
+ font-weight: 500;
11
+ padding: am-unit(2);
12
+ line-height: am-unit(2);
13
+ }
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Tables
3
+ */
4
+
5
+ $am-table-background: #fff !default;
6
+ $am-table-border-color: am-color(divider);
7
+
8
+ @mixin am-table {
9
+ background: $am-table-background;
10
+ width: 100%;
11
+ word-break: break-word;
12
+ }
13
+
14
+ @mixin am-table-header {
15
+ border-bottom: 1px solid $am-table-border-color;
16
+ display: flex;
17
+ padding: am-unit(2);
18
+ }
19
+
20
+ @mixin am-table-column-heading {
21
+ @include am-color(secondary-text);
22
+ @include am-font-size(13px);
23
+ border-bottom: 1px solid $am-table-border-color;
24
+ font-weight: 600;
25
+ height: am-unit(6);
26
+ line-height: am-unit(2);
27
+ padding: am-unit(1) am-unit(2);
28
+ text-align: left;
29
+ white-space: nowrap;
30
+ }
31
+
32
+ @mixin am-table-sort {
33
+ position: relative;
34
+
35
+ &:after {
36
+ border: 5px solid transparent;
37
+ margin-left: $am-unit-type;
38
+ content: "";
39
+ margin-top: -1.5px;
40
+ position: absolute;
41
+ top: 50%;
42
+ right: -15px;
43
+ width: 0;
44
+ height: 0;
45
+ }
46
+ }
47
+
48
+ @mixin am-table-sort-asc {
49
+ &:after {
50
+ border-bottom-color: am-color(primary);
51
+ margin-top: -7.5px;
52
+ }
53
+ }
54
+
55
+ @mixin am-table-sort-desc {
56
+ &:after {
57
+ border-top-color: am-color(primary);
58
+ }
59
+ }
60
+
61
+ @mixin am-table-row {
62
+ height: am-unit(6);
63
+ transition: 0.12s background;
64
+ }
65
+
66
+ @mixin am-table-row-hover {
67
+ background: #eee;
68
+
69
+ td,
70
+ th {
71
+ box-shadow: 0 -1px 0 rgba(#000, 0.05);
72
+ border-bottom: 1px solid darken($am-table-border-color, 5%);
73
+ }
74
+ }
75
+
76
+ @mixin am-table-row-selected {
77
+ background: #e0e0e0;
78
+
79
+ td,
80
+ th {
81
+ box-shadow: 0 -1px 0 rgba(#000, 0.15);
82
+ border-bottom: 1px solid darken($am-table-border-color, 15%);
83
+ }
84
+ }
85
+
86
+ @mixin am-table-cell {
87
+ @include am-color(text);
88
+ @include am-font-size(13px);
89
+ border-bottom: 1px solid $am-table-border-color;
90
+ font-weight: 400;
91
+ padding: am-unit(1) am-unit(2);
92
+
93
+ img {
94
+ display: block;
95
+ max-width: 320px;
96
+ }
97
+ }
98
+
99
+ @mixin am-table-cell-selectable {
100
+ padding: am-unit(2) am-unit(3) am-unit(2);
101
+ width: 18px + am-unit(6);
102
+
103
+ [type=checkbox] {
104
+ display: inline-block;
105
+ height: 18px;
106
+ margin: 0;
107
+ vertical-align: middle;
108
+ width: 18px;
109
+ }
110
+ }
111
+
112
+ @mixin am-table-cell-actions {
113
+ background: asset_url("active_material/icons/more.svg") 25% 50% no-repeat;
114
+ position: relative;
115
+ width: am-unit(6);
116
+ }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Tabs
3
+ * http://www.google.com/design/spec/components/tabs.html
4
+ */
5
+
6
+ $am-tabs-padding: 0 24px !default;
7
+ $am-tabs-background: am-color(primary) !default;
8
+ $am-tabs-border-width: 3px !default;
9
+ $am-tabs-color: rgba(#fff, 0.6) !default;
10
+ $am-tabs-color-focus: #fff !default;
11
+ $am-tabs-font: 400 14px/16px $am-font-sans !default;
12
+
13
+ @keyframes am-tabs-error-throb {
14
+ from {
15
+ text-shadow: none;
16
+ transform: translateY(1px);
17
+ }
18
+
19
+ to {
20
+ text-shadow: 0 0 5px rgba($am-theme-error, 0.8);
21
+ transform: translateY(-1px);
22
+ }
23
+ }
24
+
25
+ @mixin am-tabs {
26
+ color: $am-tabs-color;
27
+ background: $am-tabs-background;
28
+ box-shadow: inset 0 -1px 1px rgba(#000, 0.15);
29
+ line-height: 0;
30
+ margin: 0;
31
+ padding: $am-tabs-padding;
32
+ }
33
+
34
+ @mixin am-tabs-list {
35
+ list-style: none;
36
+ }
37
+
38
+ @mixin am-tabs-list-item {
39
+ display: inline-block;
40
+ }
41
+
42
+ @mixin am-tabs-btn {
43
+ color: inherit;
44
+ cursor: pointer;
45
+ display: block;
46
+ font: $am-tabs-font;
47
+ letter-spacing: 0.08em;
48
+ padding: am-unit(2);
49
+ position: relative;
50
+ text-transform: uppercase;
51
+ transition: 0.2s color;
52
+ -moz-appearance: none;
53
+ -webkit-appearance: none;
54
+
55
+ &:after {
56
+ @include am-fill(secondary-text-light);
57
+ bottom: 0;
58
+ box-shadow: 0 -1px 1px rgba(#000, 0.1);
59
+ content: "";
60
+ height: $am-tabs-border-width;
61
+ left: 0;
62
+ position: absolute;
63
+ transform: translateY($am-tabs-border-width);
64
+ transition: 0.2s background, 0.25s transform;
65
+ width: 100%;
66
+ }
67
+
68
+ &:focus,
69
+ &:hover {
70
+ background: transparent;
71
+ outline: none;
72
+ text-decoration: none;
73
+
74
+ &:after {
75
+ transform: none;
76
+ }
77
+ }
78
+
79
+ &:active {
80
+ border: 0;
81
+ box-shadow: none;
82
+ }
83
+ }
84
+
85
+ @mixin am-tabs-btn-active {
86
+ color: $am-tabs-color-focus;
87
+
88
+ &:after {
89
+ @include am-fill(accent);
90
+ box-shadow: 0 -1px 1px rgba(#000, 0.1), inset 0 1px 1px rgba(#fff, 0.50);
91
+ transform: none;
92
+ }
93
+ }
94
+
95
+ @mixin am-tabs-btn-error {
96
+ padding-right: am-unit(5);
97
+
98
+ &:before {
99
+ @include am-color(error-400);
100
+ animation: 2s am-tabs-error-throb infinite alternate;
101
+ content: '\026a0';
102
+ font-size: 20px;
103
+ line-height: am-unit(2);
104
+ margin-top: -6px;
105
+ position: absolute;
106
+ right: am-unit(1);
107
+ top: 50%;
108
+ }
109
+ }
@@ -0,0 +1,36 @@
1
+ @mixin am-tag {
2
+ @include am-fill(secondary-text);
3
+ @include am-type-caption;
4
+ @include am-type-smooth;
5
+ border-radius: 3px;
6
+ color: #fff;
7
+ display: inline-block;
8
+ letter-spacing: 0.1em;
9
+ line-height: am-unit(2);
10
+ padding: am-unit(0.5) am-unit(1);
11
+ text-decoration: none;
12
+ text-transform: uppercase;
13
+ white-space: nowrap;
14
+ }
15
+
16
+ @mixin am-tag-pressable {
17
+ transition: 0.2s all;
18
+
19
+ &:hover,
20
+ &:focus {
21
+ box-shadow: 0 1px 1px rgba(#000, 0.22);
22
+ text-shadow: none;
23
+ }
24
+
25
+ &:active {
26
+ box-shadow: none;
27
+ }
28
+ }
29
+
30
+ @mixin am-tag-success {
31
+ @include am-fill(primary);
32
+ }
33
+
34
+ @mixin am-tag-error {
35
+ @include am-fill(error);
36
+ }
@@ -0,0 +1,137 @@
1
+ ////
2
+ /// Textfield
3
+ /// Character inputs, for simple form fields
4
+ /// @group textfield
5
+ ////
6
+
7
+ /// Textfield input typography.
8
+ $am-textfield-input-type: normal am-sp(14)/24px $am-font-sans !default;
9
+ /// Textfield label typography.
10
+ $am-textfield-label-type: 400 am-sp(12)/am-unit(2) $am-font-sans !default;
11
+ /// Textfield margin.
12
+ $am-textfield-margin: am-unit(1) 0 !default;
13
+ /// Textfield padding.
14
+ $am-textfield-padding: am-unit(1) am-unit(2) !default;
15
+ /// Textfield error color.
16
+ $am-textfield-error-color: $am-theme-error !default;
17
+ /// Textfield color.
18
+ $am-textfield-color: rgba(#000, 0.70) !default;
19
+ /// Textfield highlight color.
20
+ $am-textfield-primary: am-color(primary) !default;
21
+ /// Icon for email fields.
22
+ $am-textfield-email-icon: asset-url("active_material/icons/email.svg") !default;
23
+ /// Icon for password fields.
24
+ $am-textfield-password-icon: asset-url("active_material/icons/secret.svg") !default;
25
+ /// Icon for date fields.
26
+ $am-textfield-date-icon: asset-url("active_material/icons/event.svg") !default;
27
+
28
+ @mixin am-textfield {
29
+ color: $am-textfield-color;
30
+ margin: $am-textfield-margin;
31
+ padding: $am-textfield-padding;
32
+ position: relative;
33
+ }
34
+
35
+ @mixin am-textfield-input {
36
+ background: #fff;
37
+ border-radius: 3px;
38
+ border: 1px solid #d3d3d3;
39
+ box-shadow: inset 1px 1px 1px rgba(#222, 0.08);
40
+ display: block;
41
+ font-size: am-sp(14);
42
+ font-weight: normal;
43
+ line-height: 24px;
44
+ margin: 0;
45
+ padding: am-unit(1);
46
+ transition: 0.35s border-color, 0.35s box-shadow;
47
+ width: 100%;
48
+
49
+ &:focus {
50
+ border-color: am-color(primary);
51
+ outline: 0;
52
+ transition: 0.15s border-color, 0.15s box-shadow;
53
+ }
54
+ }
55
+
56
+ @mixin am-textfield-input-email {
57
+ background: #fff $am-textfield-email-icon am-unit(1) 50% no-repeat;
58
+ padding-left: am-unit(5);
59
+ }
60
+
61
+ @mixin am-textfield-input-password {
62
+ background: #fff $am-textfield-password-icon am-unit(1) 50% no-repeat;
63
+ padding-left: am-unit(5);
64
+ }
65
+
66
+ @mixin am-textfield-input-date {
67
+ background: #fff $am-textfield-date-icon am-unit(1) 50% no-repeat;
68
+ padding-left: am-unit(5);
69
+ }
70
+
71
+ @mixin am-textfield-textarea {
72
+ border-radius: 2px;
73
+ height: am-sp(am-unit(7));
74
+ padding: am-unit(1);
75
+ }
76
+
77
+ @mixin am-textfield-input-error {
78
+ border-color: $am-textfield-error-color;
79
+ box-shadow: 0 1px 0 0 $am-textfield-error-color;
80
+ }
81
+
82
+ @mixin am-textfield-label {
83
+ @include am-font-size(13);
84
+ @include am-color(secondary-text);
85
+ display: block;
86
+ line-height: 16px;
87
+ font-weight: 400;
88
+ margin-bottom: 8px;
89
+ position: relative;
90
+ transition: 0.28s all;
91
+ width: 100%;
92
+
93
+ .has-focus & {
94
+ color: $am-textfield-primary;
95
+ }
96
+ }
97
+
98
+ @mixin am-textfield-hint {
99
+ @include am-type-caption;
100
+ @include am-color(secondary-text);
101
+ margin: am-unit(1) 0 0;
102
+ }
103
+
104
+ @mixin am-textfield-hint-error {
105
+ @include am-type-caption;
106
+ color: $am-textfield-error-color;
107
+ display: inline-block;
108
+ margin: $am-unit-type 0 0;
109
+ vertical-align: middle;
110
+ transition: 0.3s all;
111
+
112
+ &:first-letter {
113
+ text-transform: uppercase;
114
+ }
115
+ }
116
+
117
+ @mixin am-textfield-required {
118
+ @include am-type-caption;
119
+ border: 0;
120
+ color: $am-textfield-primary;
121
+ margin-left: 4px;
122
+ }
123
+
124
+ @mixin am-textfield-inline {
125
+ align-items: center;
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ }
129
+
130
+ @mixin am-textfield-label-inline {
131
+ width: 100%;
132
+ }
133
+
134
+ @mixin am-textfield-input-inline {
135
+ flex: 1;
136
+ width: auto;
137
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Toolbar
3
+ * A basic navigation element, primary used for top level navigation
4
+ */
5
+
6
+ $am-toolbar-base-font-size : am-sp(14) !default;
7
+ $am-toolbar-title-font-size : am-sp(20) !default;
8
+ $am-toolbar-keyline-small : am-unit(7) !default;
9
+ $am-toolbar-keyline-medium : $am-toolbar-keyline-small + 8px !default;
10
+
11
+ @mixin am-toolbar {
12
+ @include am-type-smooth;
13
+ align-items: center;
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ font-size: $am-toolbar-base-font-size;
17
+ position: relative;
18
+ }
19
+
20
+ @mixin am-toolbar-primary {
21
+ @include am-fill(primary);
22
+ @include am-color(text-light);
23
+ }
24
+
25
+ @mixin am-toolbar-title {
26
+ font-size: $am-toolbar-title-font-size;
27
+ font-weight: 500;
28
+ line-height: am-unit(2);
29
+ padding: am-unit(2);
30
+ width: 100%;
31
+ text-align: left;
32
+
33
+ @include am-min-breakpoint($am-breakpoint-medium) {
34
+ width: auto;
35
+ }
36
+ }
37
+
38
+ @mixin am-toolbar-list {
39
+ margin: 0 0 0 am-unit(2);
40
+ padding: 0;
41
+ text-align: left;
42
+ }
43
+
44
+ @mixin am-toolbar-item {
45
+ @include am-link-no-decoration;
46
+ @include am-color(text);
47
+ display: inline-block;
48
+ font-weight: 500;
49
+ line-height: am-unit(3);
50
+ margin: 0;
51
+ }
52
+
53
+ @mixin am-toolbar-item-primary {
54
+ @include am-link-no-decoration;
55
+ @include am-color(text-light);
56
+ display: block;
57
+ line-height: am-unit(2);
58
+ padding: am-unit(2) am-unit(1);
59
+ text-align: center;
60
+
61
+ &:hover,
62
+ &:focus {
63
+ @include am-color(accent);
64
+ }
65
+ }
66
+
67
+ @mixin am-toolbar-item-primary-active {
68
+ @include am-color(accent);
69
+ font-weight: 600;
70
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Underlay
3
+ * Underlays appear below modal content that takes up the entire screen.
4
+ */
5
+
6
+ $am-underlay-background: rgba(#000, 0.54) !default;
7
+
8
+ @mixin am-underlay {
9
+ background: $am-underlay-background;
10
+ height: 100%;
11
+ left: 0;
12
+ position: fixed;
13
+ top: 0;
14
+ width: 100%;
15
+ z-index: $am-elevation-top;
16
+ }
@@ -0,0 +1,3 @@
1
+ $am-breakpoint-medium : 600px !default;
2
+ $am-breakpoint-large : 1024px !default;
3
+ $am-breakpoint-extra-large : 1279px !default;