express_admin 1.7.5 → 1.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/express_admin/components/command_button.js.coffee +25 -0
- data/app/assets/stylesheets/express_admin/components/_command_button.sass +6 -1
- data/app/assets/stylesheets/express_admin/globals/_variables.sass +2 -0
- data/app/assets/stylesheets/express_admin/plugins/_select2.sass +3 -0
- data/app/assets/stylesheets/express_admin/screen.sass +0 -2
- data/app/assets/stylesheets/express_admin/shared/_tables.sass +2 -0
- data/app/components/express_admin/command_button.rb +9 -3
- data/app/components/express_admin/definition_table.rb +1 -1
- data/app/components/express_admin/smart_table.rb +6 -0
- data/app/views/layouts/devise.html.erb +19 -0
- data/config/initializers/postgresql_trigram.rb +13 -0
- data/db/migrate/20150928044202_install_trigram.rb +18 -0
- data/lib/express_admin/engine.rb +4 -2
- data/lib/express_admin/search.rb +51 -0
- data/lib/express_admin/standard_actions.rb +18 -5
- data/lib/express_admin/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/test/components/command_button_test.rb +2 -2
- metadata +22 -160
- data/app/assets/stylesheets/express_admin/shared/_buttons.sass +0 -3
- data/app/assets/stylesheets/express_admin/shared/_tabs.sass +0 -25
- data/vendor/gems/express_templates/CHANGELOG.md +0 -12
- data/vendor/gems/express_templates/Gemfile +0 -16
- data/vendor/gems/express_templates/LICENSE +0 -21
- data/vendor/gems/express_templates/README.md +0 -133
- data/vendor/gems/express_templates/Rakefile +0 -32
- data/vendor/gems/express_templates/express_templates.gemspec +0 -32
- data/vendor/gems/express_templates/lib/arbre/patches.rb +0 -76
- data/vendor/gems/express_templates/lib/core_extensions/proc.rb +0 -103
- data/vendor/gems/express_templates/lib/core_extensions/string.rb +0 -25
- data/vendor/gems/express_templates/lib/express_templates/compiler.rb +0 -22
- data/vendor/gems/express_templates/lib/express_templates/components/all.rb +0 -28
- data/vendor/gems/express_templates/lib/express_templates/components/base.rb +0 -156
- data/vendor/gems/express_templates/lib/express_templates/components/capabilities/resourceful.rb +0 -213
- data/vendor/gems/express_templates/lib/express_templates/components/configurable.rb +0 -181
- data/vendor/gems/express_templates/lib/express_templates/components/container.rb +0 -45
- data/vendor/gems/express_templates/lib/express_templates/components/forms/basic_fields.rb +0 -52
- data/vendor/gems/express_templates/lib/express_templates/components/forms/checkbox.rb +0 -37
- data/vendor/gems/express_templates/lib/express_templates/components/forms/express_form.rb +0 -48
- data/vendor/gems/express_templates/lib/express_templates/components/forms/form_component.rb +0 -88
- data/vendor/gems/express_templates/lib/express_templates/components/forms/option_support.rb +0 -69
- data/vendor/gems/express_templates/lib/express_templates/components/forms/radio.rb +0 -65
- data/vendor/gems/express_templates/lib/express_templates/components/forms/select.rb +0 -126
- data/vendor/gems/express_templates/lib/express_templates/components/forms/select_collection.rb +0 -45
- data/vendor/gems/express_templates/lib/express_templates/components/forms/submit.rb +0 -30
- data/vendor/gems/express_templates/lib/express_templates/components/forms.rb +0 -16
- data/vendor/gems/express_templates/lib/express_templates/components/tree_for.rb +0 -88
- data/vendor/gems/express_templates/lib/express_templates/components.rb +0 -11
- data/vendor/gems/express_templates/lib/express_templates/indenter.rb +0 -47
- data/vendor/gems/express_templates/lib/express_templates/interpolator.rb +0 -36
- data/vendor/gems/express_templates/lib/express_templates/renderer.rb +0 -9
- data/vendor/gems/express_templates/lib/express_templates/template/handler.rb +0 -32
- data/vendor/gems/express_templates/lib/express_templates/version.rb +0 -3
- data/vendor/gems/express_templates/lib/express_templates.rb +0 -18
- data/vendor/gems/express_templates/lib/tasks/express_templates.rake +0 -4
- data/vendor/gems/express_templates/test/compiler_test.rb +0 -9
- data/vendor/gems/express_templates/test/components/base_test.rb +0 -67
- data/vendor/gems/express_templates/test/components/capabilities/resourceful_test.rb +0 -63
- data/vendor/gems/express_templates/test/components/configurable_test.rb +0 -140
- data/vendor/gems/express_templates/test/components/forms/basic_fields_test.rb +0 -158
- data/vendor/gems/express_templates/test/components/forms/checkbox_test.rb +0 -51
- data/vendor/gems/express_templates/test/components/forms/express_form_test.rb +0 -62
- data/vendor/gems/express_templates/test/components/forms/radio_test.rb +0 -112
- data/vendor/gems/express_templates/test/components/forms/select_test.rb +0 -129
- data/vendor/gems/express_templates/test/components/forms/submit_test.rb +0 -36
- data/vendor/gems/express_templates/test/components/tree_for_test.rb +0 -70
- data/vendor/gems/express_templates/test/core_extensions/proc_test.rb +0 -90
- data/vendor/gems/express_templates/test/core_extensions/string_test.rb +0 -20
- data/vendor/gems/express_templates/test/dummy/Rakefile +0 -6
- data/vendor/gems/express_templates/test/dummy/app/assets/javascripts/application.js +0 -13
- data/vendor/gems/express_templates/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/vendor/gems/express_templates/test/dummy/app/controllers/application_controller.rb +0 -5
- data/vendor/gems/express_templates/test/dummy/app/controllers/hello_controller.rb +0 -5
- data/vendor/gems/express_templates/test/dummy/app/helpers/application_helper.rb +0 -2
- data/vendor/gems/express_templates/test/dummy/app/views/hello/show.html.et +0 -6
- data/vendor/gems/express_templates/test/dummy/app/views/layouts/application.html.et +0 -15
- data/vendor/gems/express_templates/test/dummy/bin/bundle +0 -3
- data/vendor/gems/express_templates/test/dummy/bin/rails +0 -4
- data/vendor/gems/express_templates/test/dummy/bin/rake +0 -4
- data/vendor/gems/express_templates/test/dummy/config/application.rb +0 -26
- data/vendor/gems/express_templates/test/dummy/config/boot.rb +0 -5
- data/vendor/gems/express_templates/test/dummy/config/environment.rb +0 -5
- data/vendor/gems/express_templates/test/dummy/config/environments/development.rb +0 -37
- data/vendor/gems/express_templates/test/dummy/config/environments/production.rb +0 -82
- data/vendor/gems/express_templates/test/dummy/config/environments/test.rb +0 -40
- data/vendor/gems/express_templates/test/dummy/config/initializers/assets.rb +0 -8
- data/vendor/gems/express_templates/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/vendor/gems/express_templates/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/vendor/gems/express_templates/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/vendor/gems/express_templates/test/dummy/config/initializers/inflections.rb +0 -16
- data/vendor/gems/express_templates/test/dummy/config/initializers/mime_types.rb +0 -4
- data/vendor/gems/express_templates/test/dummy/config/initializers/session_store.rb +0 -3
- data/vendor/gems/express_templates/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/vendor/gems/express_templates/test/dummy/config/locales/en.yml +0 -23
- data/vendor/gems/express_templates/test/dummy/config/routes.rb +0 -4
- data/vendor/gems/express_templates/test/dummy/config/secrets.yml +0 -22
- data/vendor/gems/express_templates/test/dummy/config.ru +0 -4
- data/vendor/gems/express_templates/test/dummy/public/404.html +0 -67
- data/vendor/gems/express_templates/test/dummy/public/422.html +0 -67
- data/vendor/gems/express_templates/test/dummy/public/500.html +0 -66
- data/vendor/gems/express_templates/test/dummy/public/favicon.ico +0 -0
- data/vendor/gems/express_templates/test/dummy/test/controllers/hello_controller_test.rb +0 -14
- data/vendor/gems/express_templates/test/dummy/test/helpers/hello_helper_test.rb +0 -4
- data/vendor/gems/express_templates/test/express_templates_test.rb +0 -23
- data/vendor/gems/express_templates/test/handler_test.rb +0 -148
- data/vendor/gems/express_templates/test/indenter_test.rb +0 -27
- data/vendor/gems/express_templates/test/interpolator_test.rb +0 -80
- data/vendor/gems/express_templates/test/performance_test.rb +0 -97
- data/vendor/gems/express_templates/test/test_helper.rb +0 -178
- data/vendor/gems/foundation_apps_styles/Gemfile +0 -4
- data/vendor/gems/foundation_apps_styles/LICENSE.txt +0 -21
- data/vendor/gems/foundation_apps_styles/README.md +0 -41
- data/vendor/gems/foundation_apps_styles/Rakefile +0 -13
- data/vendor/gems/foundation_apps_styles/bin/console +0 -14
- data/vendor/gems/foundation_apps_styles/bin/setup +0 -7
- data/vendor/gems/foundation_apps_styles/foundation_apps_styles.gemspec +0 -24
- data/vendor/gems/foundation_apps_styles/lib/foundation_apps_styles/version.rb +0 -3
- data/vendor/gems/foundation_apps_styles/lib/foundation_apps_styles.rb +0 -6
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/account.svg +0 -44
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/action.svg +0 -38
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/ban.svg +0 -17
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/bell.svg +0 -22
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/bookmark.svg +0 -14
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/cart.svg +0 -35
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/chevron.svg +0 -28
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/circle-check.svg +0 -25
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/circle-x.svg +0 -25
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/cog.svg +0 -17
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/comment-square.svg +0 -14
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/dashboard.svg +0 -38
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/document.svg +0 -28
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/envelope.svg +0 -44
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/flag.svg +0 -24
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/home.svg +0 -28
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/lock.svg +0 -55
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/magnifying-glass.svg +0 -26
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/person.svg +0 -62
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/reload.svg +0 -19
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/share-boxed.svg +0 -17
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/star.svg +0 -14
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/thumb.svg +0 -38
- data/vendor/gems/foundation_apps_styles/vendor/assets/iconic/zoom.svg +0 -56
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/_global.scss +0 -131
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/_includes.scss +0 -33
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/_settings.scss +0 -614
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss +0 -72
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_action-sheet.scss +0 -265
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_block-list.scss +0 -360
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_button-group.scss +0 -197
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_button.scss +0 -205
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss +0 -93
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_extras.scss +0 -54
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_forms.scss +0 -460
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_grid.scss +0 -422
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_iconic.scss +0 -95
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_label.scss +0 -134
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_list.scss +0 -19
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_menu-bar.scss +0 -382
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_modal.scss +0 -129
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_motion.scss +0 -525
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_notification.scss +0 -207
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_off-canvas.scss +0 -169
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_panel.scss +0 -134
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss +0 -68
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_switch.scss +0 -134
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_tabs.scss +0 -100
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_title-bar.scss +0 -135
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_typography.scss +0 -345
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_utilities.scss +0 -160
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/foundation-apps.css +0 -6146
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/foundation.scss +0 -50
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/helpers/_breakpoints.scss +0 -154
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/helpers/_functions.scss +0 -343
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/helpers/_images.scss +0 -19
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/helpers/_mixins.scss +0 -123
- data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/vendor/_normalize.scss +0 -424
@@ -1,422 +0,0 @@
|
|
1
|
-
@import "panel";
|
2
|
-
|
3
|
-
/*
|
4
|
-
THE GRID
|
5
|
-
--------
|
6
|
-
|
7
|
-
Foundation's magical, flexbox-powered grid.
|
8
|
-
|
9
|
-
Features:
|
10
|
-
- Horizontal or vertical grids
|
11
|
-
- Auto-sizing or percentage width grid blocks
|
12
|
-
- Independently-scrollable blocks
|
13
|
-
- Column alignment
|
14
|
-
- Source ordering
|
15
|
-
- Offsets
|
16
|
-
*/
|
17
|
-
|
18
|
-
/// @Foundation.settings
|
19
|
-
// Grid
|
20
|
-
$container-width: rem-calc(900) !default;
|
21
|
-
$block-padding: $global-padding !default;
|
22
|
-
$total-columns: 12 !default;
|
23
|
-
$block-grid-max-size: 6 !default;
|
24
|
-
///
|
25
|
-
|
26
|
-
/*
|
27
|
-
Define the size of a grid block. Blocks are flex items. By default, they stretch to fill all available space, based on the size of sibling blocks. This is the "expand" behavior.
|
28
|
-
|
29
|
-
If set to "shrink", the block will contract and only fill as much space as it needs for its content.
|
30
|
-
|
31
|
-
If set to a number, the block will be given a percentage width, based on the total number of columns (12 by default). Percentage widths don't work if a block is inside a vertical grid.
|
32
|
-
|
33
|
-
@group grid
|
34
|
-
|
35
|
-
@param {number|string} $size - Sizing behavior of the block. Should be expand, shrink, or a number.
|
36
|
-
|
37
|
-
@output The flex-basis, flex-grow, and flex-shrink properties.
|
38
|
-
*/
|
39
|
-
@mixin grid-size($size: expand) {
|
40
|
-
@if (type-of($size) == 'number') {
|
41
|
-
$pct: percentage($size / $total-columns);
|
42
|
-
flex: 0 0 $pct;
|
43
|
-
// max-width prevents columns from wrapping early in IE10/11
|
44
|
-
max-width: $pct;
|
45
|
-
}
|
46
|
-
@else if ($size == shrink) {
|
47
|
-
flex: 0 0 auto;
|
48
|
-
overflow: visible;
|
49
|
-
}
|
50
|
-
@else if ($size == expand) {
|
51
|
-
flex: 1 1 auto;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
/*
|
55
|
-
Set the orientation of blocks within this block. The grid is re-oriented by changing the flex direction of the block.
|
56
|
-
|
57
|
-
@group grid
|
58
|
-
|
59
|
-
@param {string} $orientation - Direction of the grid, either horizontal or vertical.
|
60
|
-
|
61
|
-
@output A flex-flow property to match the direction given.
|
62
|
-
*/
|
63
|
-
@mixin grid-orient($orientation: horizontal) {
|
64
|
-
@if ($orientation == vertical) {
|
65
|
-
flex-flow: column nowrap;
|
66
|
-
align-items: stretch;
|
67
|
-
}
|
68
|
-
@else {
|
69
|
-
flex-flow: row wrap;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
/*
|
73
|
-
Stretch a grid's child blocks across its cross-axis, making every column appear to have the same height.
|
74
|
-
|
75
|
-
@group grid
|
76
|
-
|
77
|
-
@param {bool} $stretch - Stretch blocks if true, or align blocks to top if false.
|
78
|
-
|
79
|
-
@output Sets align-items to "stretch" if $stretch is true, or "flex-start" (the default value) if false.
|
80
|
-
*/
|
81
|
-
@mixin grid-wrap($wrap: true) {
|
82
|
-
@if $wrap {
|
83
|
-
flex-wrap: wrap;
|
84
|
-
align-items: flex-start;
|
85
|
-
}
|
86
|
-
@else {
|
87
|
-
flex-wrap: nowrap;
|
88
|
-
align-items: stretch;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
/*
|
92
|
-
Set the alignment of blocks within a grid.
|
93
|
-
|
94
|
-
left: Items align to the left.
|
95
|
-
right: Items align to the right.
|
96
|
-
center: Items align to the center.
|
97
|
-
justify: Items are spaced equally apart so they occupy the space of the entire grid.
|
98
|
-
spaced: Items are given equal space to their left and right.
|
99
|
-
|
100
|
-
@group grid
|
101
|
-
|
102
|
-
@param {string} $align - Alignment to use.
|
103
|
-
|
104
|
-
@output An appropriate justify-content value.
|
105
|
-
*/
|
106
|
-
@mixin grid-align($align: left) {
|
107
|
-
$options: (
|
108
|
-
left: flex-start,
|
109
|
-
right: flex-end,
|
110
|
-
center: center,
|
111
|
-
justify: space-between,
|
112
|
-
spaced: space-around,
|
113
|
-
);
|
114
|
-
justify-content: map-get($options, $align);
|
115
|
-
}
|
116
|
-
/*
|
117
|
-
Set the source order of a block. Items with lower numbers appear first. If multiple items have the same number, the one in the HTML first will appear first.
|
118
|
-
|
119
|
-
@group grid
|
120
|
-
|
121
|
-
@param {number} $order - Position in source order.
|
122
|
-
|
123
|
-
@output An order property.
|
124
|
-
*/
|
125
|
-
@mixin grid-order($order: 0) {
|
126
|
-
order: $order;
|
127
|
-
}
|
128
|
-
/*
|
129
|
-
Collapse a content block by removing the padding.
|
130
|
-
|
131
|
-
@group grid
|
132
|
-
|
133
|
-
@param {bool} $collapse - Collapses the block if true.
|
134
|
-
|
135
|
-
@output A padding value.
|
136
|
-
|
137
|
-
@todo No way to reverse collapse using this mixin. Solution:
|
138
|
-
- If true, add padding: 0;
|
139
|
-
- If false, add padding: 1rem;
|
140
|
-
- If null, add nothing, to cut down on CSS output
|
141
|
-
- Make null the default value
|
142
|
-
*/
|
143
|
-
@mixin grid-collapse($collapse: true) {
|
144
|
-
@if ($collapse) {
|
145
|
-
padding: 0;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
/*
|
149
|
-
Constrain the size of a block to the size of the average grid row, and center-align it. This imitates the behavior of ordinary Foundation rows.
|
150
|
-
|
151
|
-
@group grid
|
152
|
-
|
153
|
-
@param {bool} $container - Adds container styles if true.
|
154
|
-
|
155
|
-
@output A maximum width and the good old margin: 0 auto for center alignment.
|
156
|
-
*/
|
157
|
-
@mixin grid-container($width: $container-width, $align: center) {
|
158
|
-
$margins: (
|
159
|
-
left: 0 auto 0 0,
|
160
|
-
right: 0 0 0 auto,
|
161
|
-
center: 0 auto,
|
162
|
-
);
|
163
|
-
max-width: $width;
|
164
|
-
margin: map-get($margins, $align);
|
165
|
-
}
|
166
|
-
/*
|
167
|
-
Add negative margins to a block, equal to the padding of a content block. This aligns the edges of a block nested inside a content block.
|
168
|
-
|
169
|
-
@group grid
|
170
|
-
|
171
|
-
@param {bool} $nest - Adds negative margins if true.
|
172
|
-
|
173
|
-
@output Negative margin values.
|
174
|
-
*/
|
175
|
-
@mixin grid-nest($nest: true) {
|
176
|
-
@if ($nest) {
|
177
|
-
margin-left: -1rem;
|
178
|
-
margin-right: -1rem;
|
179
|
-
}
|
180
|
-
}
|
181
|
-
/*
|
182
|
-
Offset a block by adding a left margin.
|
183
|
-
|
184
|
-
@group grid
|
185
|
-
|
186
|
-
@param {number | bool} $offset - If false, nothing is output. If a number, offsets the column by the specified number of columns.
|
187
|
-
|
188
|
-
@output A left margin based on the number of columns specified, and the global number of columns.
|
189
|
-
*/
|
190
|
-
@mixin grid-offset($offset: false) {
|
191
|
-
@if ($offset != false) {
|
192
|
-
margin-left: percentage($offset / $total-columns);
|
193
|
-
}
|
194
|
-
}
|
195
|
-
|
196
|
-
/*
|
197
|
-
Resets styles set by panels. Use this when a panel transforms into a block on larger screens.
|
198
|
-
|
199
|
-
@group grid
|
200
|
-
|
201
|
-
@output Resets to transform, position, and a few visual styles.
|
202
|
-
*/
|
203
|
-
@mixin grid-panel-reset() {
|
204
|
-
transform: none;
|
205
|
-
position: relative;
|
206
|
-
width: auto;
|
207
|
-
height: auto;
|
208
|
-
z-index: auto;
|
209
|
-
box-shadow: none;
|
210
|
-
background: transparent;
|
211
|
-
top: auto;
|
212
|
-
right: auto;
|
213
|
-
bottom: auto;
|
214
|
-
left: auto;
|
215
|
-
}
|
216
|
-
|
217
|
-
/*
|
218
|
-
Frames are containers that stretch to the full dimmensions of the browser window.
|
219
|
-
*/
|
220
|
-
@mixin grid-frame($size: expand, $orientation: horizontal, $wrap: false, $align: left, $order: 0) {
|
221
|
-
display: flex;
|
222
|
-
height: 100vh;
|
223
|
-
position: relative;
|
224
|
-
overflow: hidden;
|
225
|
-
backface-visibility: hidden;
|
226
|
-
|
227
|
-
@include grid-size($size);
|
228
|
-
@include grid-orient($orientation);
|
229
|
-
@include grid-wrap($wrap);
|
230
|
-
@include grid-align($align);
|
231
|
-
@include grid-order($order);
|
232
|
-
}
|
233
|
-
|
234
|
-
/*
|
235
|
-
Groups are collections of content items. They're the "rows" of Foundation for Apps.
|
236
|
-
*/
|
237
|
-
@mixin grid-block($size: expand, $orientation: horizontal, $wrap: false, $align: left, $order: 0) {
|
238
|
-
@include grid-frame($size, $orientation, $wrap, $align, $order);
|
239
|
-
|
240
|
-
// Reset the height used by frames
|
241
|
-
height: auto;
|
242
|
-
|
243
|
-
// Blocks will scroll by default if their content overflows
|
244
|
-
@if ($orientation == vertical) {
|
245
|
-
overflow-x: auto;
|
246
|
-
}
|
247
|
-
@else {
|
248
|
-
overflow-y: auto;
|
249
|
-
}
|
250
|
-
|
251
|
-
// Add scrolling with inertia
|
252
|
-
-webkit-overflow-scrolling: touch;
|
253
|
-
-ms-overflow-style: -ms-autohiding-scrollbar;
|
254
|
-
}
|
255
|
-
|
256
|
-
/*
|
257
|
-
Blocks are containers for actual content. They're the "columns" of Foundation for Apps.
|
258
|
-
*/
|
259
|
-
@mixin grid-content($size: expand, $offset: null, $order: null) {
|
260
|
-
// Content blocks are not flex items and have padding
|
261
|
-
display: block;
|
262
|
-
padding: 0 $block-padding;
|
263
|
-
|
264
|
-
// Add scrolling with inertia
|
265
|
-
overflow-y: auto;
|
266
|
-
-webkit-overflow-scrolling: touch;
|
267
|
-
-ms-overflow-style: -ms-autohiding-scrollbar;
|
268
|
-
|
269
|
-
@include grid-size($size);
|
270
|
-
@if $offset != null { @include grid-offset($offset); }
|
271
|
-
@if $order != null { @include grid-order($order); }
|
272
|
-
}
|
273
|
-
|
274
|
-
@mixin grid-layout($up) {
|
275
|
-
flex-flow: row wrap;
|
276
|
-
overflow: visible;
|
277
|
-
list-style-type: none;
|
278
|
-
|
279
|
-
> li, > div, > section {
|
280
|
-
padding: 0 1rem 1rem;
|
281
|
-
flex: 0 0 percentage(1 / $up);
|
282
|
-
max-width: percentage(1 / $up);
|
283
|
-
}
|
284
|
-
}
|
285
|
-
|
286
|
-
// CSS Output
|
287
|
-
// - - - - - - - - - - - - - - - - - - - -
|
288
|
-
|
289
|
-
// Shared styles for frames and blocks (parent elements)
|
290
|
-
%block-core {
|
291
|
-
// Change the direction children flow
|
292
|
-
&.vertical { @include grid-orient(vertical); }
|
293
|
-
@each $size in $breakpoint-classes {
|
294
|
-
@include breakpoint($size) {
|
295
|
-
&.#{$size}-vertical { @include grid-orient(vertical); }
|
296
|
-
&.#{$size}-horizontal { @include grid-orient(horizontal); }
|
297
|
-
}
|
298
|
-
}
|
299
|
-
|
300
|
-
// Align the children of a grid block
|
301
|
-
&.align-right { @include grid-align(right); }
|
302
|
-
&.align-center { @include grid-align(center); }
|
303
|
-
&.align-justify { @include grid-align(justify); }
|
304
|
-
&.align-spaced { @include grid-align(spaced); }
|
305
|
-
|
306
|
-
// Allow child elements to wrap
|
307
|
-
&.wrap { @include grid-wrap(true); }
|
308
|
-
}
|
309
|
-
|
310
|
-
// Shared styles for blocks and content blocks (child elements)
|
311
|
-
%child-core {
|
312
|
-
// Shrink a flex item so it only takes up the space it needs
|
313
|
-
&.shrink { @include grid-size(shrink); }
|
314
|
-
|
315
|
-
// Prevent an element from scrolling
|
316
|
-
&.noscroll { overflow: visible; }
|
317
|
-
}
|
318
|
-
|
319
|
-
@include exports(grid) {
|
320
|
-
// The core grid elements:
|
321
|
-
// - Frame
|
322
|
-
// - Block
|
323
|
-
// - Content block
|
324
|
-
// - Container
|
325
|
-
.grid-frame {
|
326
|
-
@extend %block-core;
|
327
|
-
@include grid-frame;
|
328
|
-
}
|
329
|
-
.grid-block {
|
330
|
-
@extend %block-core;
|
331
|
-
@extend %child-core;
|
332
|
-
@include grid-block;
|
333
|
-
}
|
334
|
-
.grid-content {
|
335
|
-
@extend %child-core;
|
336
|
-
@include grid-content;
|
337
|
-
|
338
|
-
&.collapse {
|
339
|
-
padding: 0;
|
340
|
-
}
|
341
|
-
|
342
|
-
// Grids inside content blocks should wrap by default, so they mimic traditional float grids
|
343
|
-
.grid-block {
|
344
|
-
margin-left: -($block-padding);
|
345
|
-
margin-right: -($block-padding);
|
346
|
-
flex-wrap: wrap;
|
347
|
-
overflow: visible;
|
348
|
-
|
349
|
-
// Reverse the above wrapping behavior
|
350
|
-
&.nowrap {
|
351
|
-
@include grid-wrap(false);
|
352
|
-
}
|
353
|
-
|
354
|
-
.grid-content {
|
355
|
-
overflow: visible;
|
356
|
-
}
|
357
|
-
}
|
358
|
-
}
|
359
|
-
.grid-container {
|
360
|
-
@include grid-container;
|
361
|
-
|
362
|
-
&.contain-left { @include grid-container($align: left); }
|
363
|
-
&.contain-right { @include grid-container($align: right); }
|
364
|
-
}
|
365
|
-
|
366
|
-
// Breakpoint classes for blocks
|
367
|
-
@each $size in $breakpoint-classes {
|
368
|
-
.#{$size}-grid-block {
|
369
|
-
@extend %block-core;
|
370
|
-
@extend %child-core;
|
371
|
-
|
372
|
-
@include breakpoint($size) {
|
373
|
-
@include grid-block;
|
374
|
-
|
375
|
-
// Override panel styles
|
376
|
-
&.panel { @include grid-panel-reset; }
|
377
|
-
}
|
378
|
-
}
|
379
|
-
.#{$size}-grid-content {
|
380
|
-
@extend %child-core;
|
381
|
-
|
382
|
-
@include breakpoint($size) {
|
383
|
-
@include grid-content;
|
384
|
-
|
385
|
-
// Override panel styles
|
386
|
-
&.panel { @include grid-panel-reset; }
|
387
|
-
}
|
388
|
-
}
|
389
|
-
}
|
390
|
-
|
391
|
-
// Sizing and ordering classes
|
392
|
-
@for $i from 1 through $total-columns {
|
393
|
-
// Source ordering
|
394
|
-
.order-#{$i} { @include grid-order($i); }
|
395
|
-
}
|
396
|
-
@each $size in $breakpoint-classes {
|
397
|
-
@for $i from 1 through $total-columns {
|
398
|
-
@include breakpoint($size) {
|
399
|
-
// Block sizing
|
400
|
-
.#{$size}-#{$i} {
|
401
|
-
@include grid-size($i);
|
402
|
-
}
|
403
|
-
// Source ordering
|
404
|
-
.#{$size}-order-#{$i} {
|
405
|
-
@include grid-order($i);
|
406
|
-
}
|
407
|
-
// Offsets
|
408
|
-
.#{$size}-offset-#{$i} {
|
409
|
-
@include grid-offset($i);
|
410
|
-
}
|
411
|
-
// Parent sizing (block grids)
|
412
|
-
.#{$size}-up-#{$i} {
|
413
|
-
@include grid-layout($i);
|
414
|
-
}
|
415
|
-
}
|
416
|
-
}
|
417
|
-
}
|
418
|
-
|
419
|
-
.grid-content .modal .grid-block {
|
420
|
-
flex-wrap: nowrap;
|
421
|
-
}
|
422
|
-
}
|
@@ -1,95 +0,0 @@
|
|
1
|
-
// ICONIC
|
2
|
-
// ------
|
3
|
-
//
|
4
|
-
// A sample of 24 flexible, easily schemable icons from the folks at Iconic.
|
5
|
-
//
|
6
|
-
// Features:
|
7
|
-
// - 24 icons
|
8
|
-
// - Built-in coloring and sizing classes
|
9
|
-
// - Coloring mixin
|
10
|
-
// - Angular support
|
11
|
-
|
12
|
-
/// @Foundation.settings
|
13
|
-
// Iconic
|
14
|
-
$iconic-primary-fill: $primary-color !default;
|
15
|
-
$iconic-primary-stroke: $primary-color !default;
|
16
|
-
$iconic-accent-fill: $iconic-primary-fill !default;
|
17
|
-
$iconic-accent-stroke: $iconic-accent-fill !default;
|
18
|
-
///
|
19
|
-
|
20
|
-
// Colors the fill, and optionally stroke, accent fill, and accent stroke of an Iconic icon.
|
21
|
-
@mixin color-icon(
|
22
|
-
$fill,
|
23
|
-
$stroke: null,
|
24
|
-
$fillAccent: null,
|
25
|
-
$strokeAccent: null
|
26
|
-
) {
|
27
|
-
* {
|
28
|
-
fill: $fill;
|
29
|
-
|
30
|
-
// Use the fill color if no stroke is provided
|
31
|
-
@if hasvalue($stroke) {
|
32
|
-
stroke: $stroke;
|
33
|
-
}
|
34
|
-
@else {
|
35
|
-
stroke: $fill;
|
36
|
-
}
|
37
|
-
|
38
|
-
&.iconic-property-accent {
|
39
|
-
// Use the fill color if no accent is provided
|
40
|
-
@if hasvalue($fillAccent) {
|
41
|
-
fill: $fillAccent;
|
42
|
-
}
|
43
|
-
@else {
|
44
|
-
fill: $fill;
|
45
|
-
}
|
46
|
-
|
47
|
-
// Use the normal stroke color if no accent is provided
|
48
|
-
@if hasvalue($strokeAccent) {
|
49
|
-
stroke: $strokeAccent;
|
50
|
-
}
|
51
|
-
@else {
|
52
|
-
// ...or use the fill if no normal stroke is provided
|
53
|
-
@if hasvalue($stroke) {
|
54
|
-
stroke: $stroke;
|
55
|
-
}
|
56
|
-
@else {
|
57
|
-
stroke: $fill;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
@include exports(iconic) {
|
65
|
-
.iconic {
|
66
|
-
width: 1rem;
|
67
|
-
height: 1rem;
|
68
|
-
vertical-align: middle;
|
69
|
-
|
70
|
-
a > & {
|
71
|
-
@include color-icon($primary-color);
|
72
|
-
margin-top: -2px;
|
73
|
-
margin-right: 0.25rem;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
.iconic * {
|
78
|
-
fill: $iconic-primary-fill;
|
79
|
-
stroke: $iconic-primary-stroke;
|
80
|
-
|
81
|
-
&.iconic-property-accent {
|
82
|
-
fill: $iconic-accent-fill;
|
83
|
-
stroke: $iconic-accent-stroke;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
@each $color in map-keys($foundation-colors) {
|
88
|
-
.iconic-color-#{$color} {
|
89
|
-
@include color-icon(map-get($foundation-colors, $color));
|
90
|
-
}
|
91
|
-
}
|
92
|
-
.iconic-color-secondary {
|
93
|
-
@include color-icon($secondary-color);
|
94
|
-
}
|
95
|
-
}
|
@@ -1,134 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Label
|
3
|
-
*/
|
4
|
-
|
5
|
-
/// @Foundation.settings
|
6
|
-
// Label
|
7
|
-
$label-fontsize: 0.8rem !default;
|
8
|
-
$label-padding: ($global-padding / 3) ($global-padding / 2) !default;
|
9
|
-
$label-radius: 0 !default;
|
10
|
-
$label-background: $primary-color !default;
|
11
|
-
$label-color: isitlight($primary-color) !default;
|
12
|
-
|
13
|
-
$badge-fontsize: 0.8em !default;
|
14
|
-
$badge-diameter: 1.5rem !default;
|
15
|
-
$badge-background: $primary-color !default;
|
16
|
-
$badge-color: #fff !default;
|
17
|
-
///
|
18
|
-
|
19
|
-
%label {
|
20
|
-
line-height: 1;
|
21
|
-
white-space: nowrap;
|
22
|
-
display: inline-block;
|
23
|
-
cursor: default;
|
24
|
-
}
|
25
|
-
|
26
|
-
@mixin label-layout(
|
27
|
-
$fontsize: $label-fontsize,
|
28
|
-
$padding: $label-padding
|
29
|
-
) {
|
30
|
-
font-size: $fontsize;
|
31
|
-
padding: $padding;
|
32
|
-
}
|
33
|
-
|
34
|
-
@mixin label-style(
|
35
|
-
$background: $label-background,
|
36
|
-
$color: $label-color,
|
37
|
-
$radius: $label-radius
|
38
|
-
) {
|
39
|
-
background: $background;
|
40
|
-
border-radius: $radius;
|
41
|
-
|
42
|
-
@if $color == auto {
|
43
|
-
color: isitlight($background);
|
44
|
-
}
|
45
|
-
@else {
|
46
|
-
color: $color;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
@mixin label(
|
51
|
-
$background: $label-background,
|
52
|
-
$color: $label-color,
|
53
|
-
$radius: $label-radius,
|
54
|
-
$fontsize: $label-fontsize,
|
55
|
-
$padding: $label-padding
|
56
|
-
) {
|
57
|
-
@extend %label;
|
58
|
-
@include label-layout($fontsize, $padding);
|
59
|
-
@include label-style($background, $color, $radius);
|
60
|
-
}
|
61
|
-
|
62
|
-
@include exports(label) {
|
63
|
-
.label {
|
64
|
-
@include label;
|
65
|
-
|
66
|
-
@each $color in map-keys($foundation-colors) {
|
67
|
-
&.#{$color} {
|
68
|
-
$color-value: map-get($foundation-colors, $color);
|
69
|
-
@include label-style($color-value, auto);
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
/*
|
76
|
-
Badge
|
77
|
-
*/
|
78
|
-
|
79
|
-
%badge {
|
80
|
-
align-items: center;
|
81
|
-
justify-content: center;
|
82
|
-
display: inline-flex;
|
83
|
-
border-radius: 1000px;
|
84
|
-
}
|
85
|
-
|
86
|
-
@mixin badge-layout(
|
87
|
-
$fontsize: $badge-fontsize,
|
88
|
-
$diameter: $badge-diameter
|
89
|
-
) {
|
90
|
-
font-size: $fontsize;
|
91
|
-
width: $diameter;
|
92
|
-
height: $diameter;
|
93
|
-
}
|
94
|
-
|
95
|
-
@mixin badge-style(
|
96
|
-
$background: $badge-background,
|
97
|
-
$color: $badge-font-color
|
98
|
-
) {
|
99
|
-
background: $background;
|
100
|
-
|
101
|
-
@if $color == auto {
|
102
|
-
color: isitlight($background);
|
103
|
-
}
|
104
|
-
@else {
|
105
|
-
color: $color;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
@mixin badge(
|
110
|
-
$background: $badge-background,
|
111
|
-
$color: $badge-color,
|
112
|
-
$diameter: $badge-diameter,
|
113
|
-
$fontsize: $badge-fontsize
|
114
|
-
) {
|
115
|
-
@extend %badge;
|
116
|
-
@include badge-layout($fontsize, $diameter);
|
117
|
-
@include badge-style($background, $color);
|
118
|
-
}
|
119
|
-
|
120
|
-
@include exports(badge) {
|
121
|
-
.badge {
|
122
|
-
@include badge;
|
123
|
-
|
124
|
-
&.secondary {
|
125
|
-
@include badge-style($secondary-color, auto);
|
126
|
-
}
|
127
|
-
@each $color in map-keys($foundation-colors) {
|
128
|
-
&.#{$color} {
|
129
|
-
$color-value: map-get($foundation-colors, $color);
|
130
|
-
@include badge-style($color-value, auto);
|
131
|
-
}
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
@mixin inline-list($alignment){
|
2
|
-
list-style-type: none;
|
3
|
-
text-align: $alignment;
|
4
|
-
li, dt, dd {
|
5
|
-
display: inline-block;
|
6
|
-
margin-left: -2px;
|
7
|
-
margin-right: -2px;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
@include exports(list) {
|
12
|
-
.inline-list {
|
13
|
-
@include inline-list(left);
|
14
|
-
li {
|
15
|
-
margin-right: 1rem;
|
16
|
-
margin-left: 0;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|