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
data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_off-canvas.scss
DELETED
@@ -1,169 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Off-canvas menu
|
3
|
-
---------------
|
4
|
-
|
5
|
-
A generic container that stays fixed to the left, top, right, or bottom of the screen, and is summoned when needed. When an off-canvas panel is open, the app frame shifts over to reveal the menu.
|
6
|
-
*/
|
7
|
-
|
8
|
-
/// @Foundation.settings
|
9
|
-
// Off-canvas
|
10
|
-
$offcanvas-size-horizontal: 250px !default;
|
11
|
-
$offcanvas-size-vertical: 250px !default;
|
12
|
-
|
13
|
-
$offcanvas-background: #fff !default;
|
14
|
-
$offcanvas-color: isitlight($offcanvas-background) !default;
|
15
|
-
$offcanvas-padding: 0 !default;
|
16
|
-
$offcanvas-shadow: 3px 0 10px rgba(black, 0.25) !default;
|
17
|
-
$offcanvas-animation-speed: 0.25s !default;
|
18
|
-
|
19
|
-
$offcanvas-frame-selector: '.grid-frame' !default;
|
20
|
-
///
|
21
|
-
|
22
|
-
%off-canvas {
|
23
|
-
position: fixed;
|
24
|
-
overflow: auto;
|
25
|
-
-webkit-overflow-scrolling: touch;
|
26
|
-
transition: transform $offcanvas-animation-speed ease-out;
|
27
|
-
z-index: 2;
|
28
|
-
|
29
|
-
// Active state
|
30
|
-
&.is-active {
|
31
|
-
transform: translate(0,0) !important;
|
32
|
-
}
|
33
|
-
|
34
|
-
// Frame styles
|
35
|
-
& ~ #{$offcanvas-frame-selector} {
|
36
|
-
transform: translate(0,0,0);
|
37
|
-
transition: transform 0.25s ease-out;
|
38
|
-
backface-visibility: hidden;
|
39
|
-
background: white;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
@mixin off-canvas-detached {
|
43
|
-
z-index: 0;
|
44
|
-
box-shadow: none;
|
45
|
-
|
46
|
-
&, &.is-active {
|
47
|
-
transform: none;
|
48
|
-
}
|
49
|
-
|
50
|
-
& ~ #{$offcanvas-frame-selector} {
|
51
|
-
z-index: 1;
|
52
|
-
box-shadow: 0 0 15px rgba(0,0,0,0.5);
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
@mixin off-canvas-layout(
|
57
|
-
$position: left,
|
58
|
-
$size: default,
|
59
|
-
$shadow: $offcanvas-shadow
|
60
|
-
) {
|
61
|
-
/*
|
62
|
-
Get shadow values for later use
|
63
|
-
*/
|
64
|
-
$shadow-length: '';
|
65
|
-
$shadow-size: '';
|
66
|
-
$shadow-color: '';
|
67
|
-
@if hasvalue($shadow) {
|
68
|
-
$shadow-length: get-shadow-value($shadow, x);
|
69
|
-
$shadow-size: get-shadow-value($shadow, size);
|
70
|
-
$shadow-color: get-shadow-value($shadow, color);
|
71
|
-
}
|
72
|
-
|
73
|
-
/*
|
74
|
-
Sizing
|
75
|
-
*/
|
76
|
-
@if $position == left or $position == right {
|
77
|
-
@if $size == default {
|
78
|
-
$size: $offcanvas-size-horizontal;
|
79
|
-
}
|
80
|
-
width: $size;
|
81
|
-
height: 100%;
|
82
|
-
}
|
83
|
-
@else {
|
84
|
-
@if $size == default {
|
85
|
-
$size: $offcanvas-size-vertical;
|
86
|
-
}
|
87
|
-
height: $size;
|
88
|
-
width: 100%;
|
89
|
-
}
|
90
|
-
|
91
|
-
/*
|
92
|
-
Positioning
|
93
|
-
*/
|
94
|
-
@if $position == left {
|
95
|
-
top: 0;
|
96
|
-
left: 0;
|
97
|
-
@if hasvalue($shadow) { box-shadow: inset (-$shadow-length) 0 $shadow-size $shadow-color; }
|
98
|
-
transform: translateX(-100%);
|
99
|
-
&.is-active {
|
100
|
-
& ~ #{$offcanvas-frame-selector} { transform: translateX($size) !important; }
|
101
|
-
}
|
102
|
-
}
|
103
|
-
@else if $position == right {
|
104
|
-
left: auto;
|
105
|
-
top: 0;
|
106
|
-
right: 0;
|
107
|
-
@if hasvalue($shadow) { box-shadow: inset $shadow-length 0 $shadow-size $shadow-color; }
|
108
|
-
transform: translateX(100%);
|
109
|
-
&.is-active {
|
110
|
-
& ~ #{$offcanvas-frame-selector} { transform: translateX(-$size) !important; }
|
111
|
-
}
|
112
|
-
}
|
113
|
-
@else if $position == top {
|
114
|
-
top: 0;
|
115
|
-
left: 0;
|
116
|
-
transform: translateY(-100%);
|
117
|
-
@if hasvalue($shadow) { box-shadow: inset 0 (-$shadow-length) $shadow-size $shadow-color; }
|
118
|
-
&.is-active {
|
119
|
-
& ~ #{$offcanvas-frame-selector} { transform: translateY($size) !important; }
|
120
|
-
}
|
121
|
-
}
|
122
|
-
@else if $position == bottom {
|
123
|
-
top: auto;
|
124
|
-
bottom: 0;
|
125
|
-
left: 0;
|
126
|
-
transform: translateY(100%);
|
127
|
-
@if hasvalue($shadow) { box-shadow: inset 0 $shadow-length $shadow-size $shadow-color; }
|
128
|
-
&.is-active {
|
129
|
-
& ~ #{$offcanvas-frame-selector} { transform: translateY(-$size) !important; }
|
130
|
-
}
|
131
|
-
}
|
132
|
-
}
|
133
|
-
|
134
|
-
@mixin off-canvas-style(
|
135
|
-
$background: $offcanvas-background,
|
136
|
-
$color: $offcanvas-color,
|
137
|
-
$padding: $offcanvas-padding
|
138
|
-
) {
|
139
|
-
background: $background;
|
140
|
-
|
141
|
-
@if $color == auto {
|
142
|
-
color: isitlight($background, #000, #fff);
|
143
|
-
}
|
144
|
-
@else {
|
145
|
-
color: $color;
|
146
|
-
}
|
147
|
-
|
148
|
-
@if hasvalue($padding) {
|
149
|
-
padding: $padding;
|
150
|
-
}
|
151
|
-
}
|
152
|
-
|
153
|
-
@include exports(off-canvas) {
|
154
|
-
.off-canvas {
|
155
|
-
@extend %off-canvas;
|
156
|
-
@include off-canvas-layout;
|
157
|
-
@include off-canvas-style;
|
158
|
-
|
159
|
-
&.top { @include off-canvas-layout(top); }
|
160
|
-
&.right { @include off-canvas-layout(right); }
|
161
|
-
&.bottom { @include off-canvas-layout(bottom); }
|
162
|
-
&.left { @include off-canvas-layout(left); }
|
163
|
-
|
164
|
-
&.detached { @include off-canvas-detached; }
|
165
|
-
|
166
|
-
&.primary { @include off-canvas-style($primary-color, auto); }
|
167
|
-
&.dark { @include off-canvas-style($dark-color, auto); }
|
168
|
-
}
|
169
|
-
}
|
@@ -1,134 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
PANEL
|
3
|
-
-----
|
4
|
-
|
5
|
-
The friendly panel is an all-purpose container for hiding content off-screen.
|
6
|
-
|
7
|
-
Features:
|
8
|
-
- Position at top, right, bottom, or left
|
9
|
-
- Anchor to grid block or window
|
10
|
-
- Define max width or height
|
11
|
-
- Transform into grid block depending on screen size
|
12
|
-
*/
|
13
|
-
|
14
|
-
/// @Foundation.settings
|
15
|
-
// Panel
|
16
|
-
$panel-size-horizontal: 300px !default;
|
17
|
-
$panel-size-vertical: 300px !default;
|
18
|
-
$panel-padding: 0 !default;
|
19
|
-
|
20
|
-
$panel-background: #fff !default;
|
21
|
-
$panel-shadow: 3px 0 10px rgba(black, 0.25) !default;
|
22
|
-
|
23
|
-
// DEPRECATED: these variables will be removed in a future version.
|
24
|
-
$panel-animation-speed: 0.25s !default;
|
25
|
-
///
|
26
|
-
|
27
|
-
%panel-base {
|
28
|
-
display: block;
|
29
|
-
position: absolute;
|
30
|
-
z-index: 100;
|
31
|
-
overflow-y: auto;
|
32
|
-
display: none;
|
33
|
-
|
34
|
-
&.is-active {
|
35
|
-
display: block;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
@mixin panel-layout(
|
40
|
-
$position: left,
|
41
|
-
$size: default,
|
42
|
-
$shadow: $panel-shadow
|
43
|
-
) {
|
44
|
-
@if $size == default {
|
45
|
-
@if $position == left or $position == right {
|
46
|
-
$size: $panel-size-horizontal;
|
47
|
-
}
|
48
|
-
@if $position == top or $position == bottom {
|
49
|
-
$size: $panel-size-vertical;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
/*
|
54
|
-
Direction
|
55
|
-
*/
|
56
|
-
@if $position == top {
|
57
|
-
top: 0;
|
58
|
-
left: 0;
|
59
|
-
width: 100%;
|
60
|
-
}
|
61
|
-
@else if $position == right {
|
62
|
-
top: 0;
|
63
|
-
right: 0;
|
64
|
-
height: 100%;
|
65
|
-
}
|
66
|
-
@else if $position == bottom {
|
67
|
-
bottom: 0;
|
68
|
-
left: 0;
|
69
|
-
width: 100%;
|
70
|
-
}
|
71
|
-
@else if $position == left {
|
72
|
-
top: 0;
|
73
|
-
left: 0;
|
74
|
-
height: 100%;
|
75
|
-
}
|
76
|
-
|
77
|
-
/*
|
78
|
-
Sizing
|
79
|
-
*/
|
80
|
-
// Horizontal panels are always all the way tall and have a set width
|
81
|
-
@if $position == left or $position == right {
|
82
|
-
@if unit($size) == '%' {
|
83
|
-
width: $size;
|
84
|
-
}
|
85
|
-
@else {
|
86
|
-
width: 100%;
|
87
|
-
@include breakpoint($size) {
|
88
|
-
width: $size;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
92
|
-
// (For now) vertical panels don't change size
|
93
|
-
@if $position == top or $position == bottom {
|
94
|
-
height: $size;
|
95
|
-
}
|
96
|
-
|
97
|
-
/*
|
98
|
-
Shadows
|
99
|
-
*/
|
100
|
-
$shadow-distance: get-shadow-value($shadow, x);
|
101
|
-
$shadow-size: get-shadow-value($shadow, size);
|
102
|
-
$shadow-color: get-shadow-value($shadow, color);
|
103
|
-
&.is-active {
|
104
|
-
@if $position == left { box-shadow: $shadow-distance 0 $shadow-size $shadow-color; }
|
105
|
-
@else if $position == right { box-shadow: (-$shadow-distance) 0 $shadow-size $shadow-color; }
|
106
|
-
@else if $position == top { box-shadow: 0 $shadow-distance $shadow-size $shadow-color; }
|
107
|
-
@else if $position == bottom { box-shadow: 2px (-$shadow-distance) $shadow-size $shadow-color; }
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
@mixin panel-style(
|
112
|
-
$padding: $panel-padding,
|
113
|
-
$background: $panel-background
|
114
|
-
) {
|
115
|
-
/*
|
116
|
-
Basic styles
|
117
|
-
*/
|
118
|
-
padding: $padding;
|
119
|
-
background: $background;
|
120
|
-
}
|
121
|
-
|
122
|
-
@include exports(panel) {
|
123
|
-
.panel {
|
124
|
-
@extend %panel-base;
|
125
|
-
@include panel-style;
|
126
|
-
}
|
127
|
-
|
128
|
-
.panel-top { @include panel-layout(top); }
|
129
|
-
.panel-right { @include panel-layout(right); }
|
130
|
-
.panel-bottom { @include panel-layout(bottom); }
|
131
|
-
.panel-left { @include panel-layout(left); }
|
132
|
-
|
133
|
-
.panel-fixed { position: fixed; }
|
134
|
-
}
|
@@ -1,68 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
POPUP
|
3
|
-
-----
|
4
|
-
|
5
|
-
A floating container that can anchor to any other on-screen element, and contain any content, including grid blocks or panels.
|
6
|
-
*/
|
7
|
-
|
8
|
-
/// @Foundation.settings
|
9
|
-
// Popup
|
10
|
-
$popup-width: rem-calc(300) !default;
|
11
|
-
$popup-background: #fff !default;
|
12
|
-
$popup-border: 0 !default;
|
13
|
-
$popup-radius: 0 !default;
|
14
|
-
$popup-shadow: 0 0 10px rgba(#000, 0.25) !default;
|
15
|
-
///
|
16
|
-
|
17
|
-
%popup {
|
18
|
-
position: absolute;
|
19
|
-
z-index: 1000;
|
20
|
-
opacity: 0;
|
21
|
-
overflow: hidden;
|
22
|
-
transition: opacity 0.25s ease-out;
|
23
|
-
pointer-events: none;
|
24
|
-
|
25
|
-
&.tether-enabled {
|
26
|
-
opacity: 1;
|
27
|
-
pointer-events: auto;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
@mixin popup-layout(
|
32
|
-
$width: $popup-width
|
33
|
-
) {
|
34
|
-
width: $popup-width;
|
35
|
-
}
|
36
|
-
@mixin popup-style(
|
37
|
-
$background: $popup-background,
|
38
|
-
$color: #000,
|
39
|
-
$radius: $popup-radius,
|
40
|
-
$shadow: $popup-shadow,
|
41
|
-
$border: $popup-border
|
42
|
-
) {
|
43
|
-
background: $background;
|
44
|
-
border-radius: $radius;
|
45
|
-
box-shadow: $shadow;
|
46
|
-
border: $border;
|
47
|
-
}
|
48
|
-
|
49
|
-
@mixin popup(
|
50
|
-
$width: $popup-width,
|
51
|
-
$background: $popup-background,
|
52
|
-
$radius: $popup-radius,
|
53
|
-
$shadow: $popup-shadow,
|
54
|
-
$border: $popup-border
|
55
|
-
) {
|
56
|
-
@extend %popup;
|
57
|
-
@include popup-layout($width);
|
58
|
-
@include popup-style($background, isitlight($background), $radius, $shadow, $border);
|
59
|
-
}
|
60
|
-
|
61
|
-
@include exports(popup) {
|
62
|
-
.popup {
|
63
|
-
@include popup;
|
64
|
-
|
65
|
-
&.dark { @include popup-style($dark-color, #fff); }
|
66
|
-
&.primary { @include popup-style($primary-color, isitlight($primary-color)); }
|
67
|
-
}
|
68
|
-
}
|
@@ -1,134 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
SWITCH
|
3
|
-
------
|
4
|
-
*/
|
5
|
-
|
6
|
-
/// @Foundation.settings
|
7
|
-
// Switch
|
8
|
-
$switch-width: rem-calc(50) !default;
|
9
|
-
$switch-height: rem-calc(32) !default;
|
10
|
-
$switch-background: #ccc !default;
|
11
|
-
$switch-background-active: $primary-color !default;
|
12
|
-
$switch-border: 0 !default;
|
13
|
-
$switch-radius: 9999px !default;
|
14
|
-
$switch-animation-speed: 0.15s !default;
|
15
|
-
|
16
|
-
$switch-paddle-color: white !default;
|
17
|
-
$switch-paddle-offset: 4px !default;
|
18
|
-
///
|
19
|
-
|
20
|
-
%switch {
|
21
|
-
position: relative;
|
22
|
-
overflow: hidden;
|
23
|
-
display: inline-block;
|
24
|
-
|
25
|
-
> input {
|
26
|
-
position: absolute;
|
27
|
-
left: -9999px;
|
28
|
-
outline: none;
|
29
|
-
}
|
30
|
-
|
31
|
-
> label {
|
32
|
-
-ms-touch-action: manipulation;
|
33
|
-
touch-action: manipulation;
|
34
|
-
display: block;
|
35
|
-
width: 100%;
|
36
|
-
height: 100%;
|
37
|
-
cursor: pointer;
|
38
|
-
margin: 0;
|
39
|
-
|
40
|
-
// Paddle
|
41
|
-
&::after {
|
42
|
-
content: '';
|
43
|
-
display: block;
|
44
|
-
position: absolute;
|
45
|
-
top: 0;
|
46
|
-
left: 0;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
input + label {
|
51
|
-
margin-left: 0;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
/*
|
56
|
-
Defines the dimmensions of the switch.
|
57
|
-
|
58
|
-
$width - width of the switch.
|
59
|
-
$height - height of the switch.
|
60
|
-
*/
|
61
|
-
@mixin switch-layout(
|
62
|
-
$width: $switch-width,
|
63
|
-
$height: $switch-height
|
64
|
-
) {
|
65
|
-
width: $width;
|
66
|
-
height: $height;
|
67
|
-
|
68
|
-
> label {
|
69
|
-
&::after {
|
70
|
-
width: $height;
|
71
|
-
height: $height;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
input:checked + label {
|
75
|
-
&::after {
|
76
|
-
left: $width - $height;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
@mixin switch-style(
|
82
|
-
$background: $switch-background,
|
83
|
-
$background-active: $switch-background-active,
|
84
|
-
$border: $switch-border,
|
85
|
-
$radius: $switch-radius,
|
86
|
-
$paddle-color: $switch-paddle-color,
|
87
|
-
$paddle-offset: $switch-paddle-offset,
|
88
|
-
$animation-speed: $switch-animation-speed
|
89
|
-
) {
|
90
|
-
@if hasvalue($border) {
|
91
|
-
border: $border;
|
92
|
-
}
|
93
|
-
border-radius: $radius;
|
94
|
-
|
95
|
-
> label {
|
96
|
-
background: $background;
|
97
|
-
|
98
|
-
&::after {
|
99
|
-
background: $paddle-color;
|
100
|
-
border-radius: $radius;
|
101
|
-
transition: left $animation-speed ease-out;
|
102
|
-
|
103
|
-
@if hasvalue($paddle-offset) {
|
104
|
-
border: $paddle-offset solid $background
|
105
|
-
}
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
input:checked + label {
|
110
|
-
background: $background-active;
|
111
|
-
margin: 0;
|
112
|
-
|
113
|
-
&::after {
|
114
|
-
@if hasvalue($paddle-offset) {
|
115
|
-
border-color: $background-active;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
@mixin switch() {
|
122
|
-
@extend %switch;
|
123
|
-
@include switch-layout;
|
124
|
-
@include switch-style;
|
125
|
-
}
|
126
|
-
|
127
|
-
@include exports(switch) {
|
128
|
-
.switch {
|
129
|
-
@include switch;
|
130
|
-
|
131
|
-
&.small { @include switch-layout(rem-calc(40), rem-calc(26)); }
|
132
|
-
&.large { @include switch-layout(rem-calc(60), rem-calc(38)); }
|
133
|
-
}
|
134
|
-
}
|
@@ -1,100 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
TABS
|
3
|
-
----
|
4
|
-
*/
|
5
|
-
|
6
|
-
/// @Foundation.settings
|
7
|
-
// Tabs
|
8
|
-
$tabstrip-background: transparent !default;
|
9
|
-
|
10
|
-
$tab-title-background: $gray-light !default;
|
11
|
-
$tab-title-background-hover: smartscale($tab-title-background, 5%) !default;
|
12
|
-
$tab-title-background-active: smartscale($tab-title-background, 3%) !default;
|
13
|
-
$tab-title-color: isitlight($tab-title-background) !default;
|
14
|
-
$tab-title-color-active: $tab-title-color !default;
|
15
|
-
|
16
|
-
$tab-title-padding: $global-padding !default;
|
17
|
-
$tab-content-padding: $global-padding !default;
|
18
|
-
///
|
19
|
-
|
20
|
-
@mixin tabstrip(
|
21
|
-
$orientation: horizontal,
|
22
|
-
$background: $tabstrip-background
|
23
|
-
) {
|
24
|
-
/*
|
25
|
-
Container styles
|
26
|
-
*/
|
27
|
-
display: flex;
|
28
|
-
background: $background;
|
29
|
-
|
30
|
-
@if $orientation == vertical {
|
31
|
-
flex-flow: column nowrap;
|
32
|
-
}
|
33
|
-
@else {
|
34
|
-
flex-flow: row wrap;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
@mixin tabstrip-item(
|
39
|
-
$background: $tab-title-background,
|
40
|
-
$background-hover: $tab-title-background-hover,
|
41
|
-
$background-active: $tab-title-background-active,
|
42
|
-
$color: $tab-title-color,
|
43
|
-
$color-active: $tab-title-color-active,
|
44
|
-
$padding: $tab-title-padding
|
45
|
-
) {
|
46
|
-
background: $background;
|
47
|
-
padding: $padding;
|
48
|
-
line-height: 1;
|
49
|
-
margin: 0;
|
50
|
-
flex: 0 1 auto;
|
51
|
-
cursor: pointer;
|
52
|
-
color: $color;
|
53
|
-
|
54
|
-
&.is-active {
|
55
|
-
background: $background-active;
|
56
|
-
color: $color-active;
|
57
|
-
|
58
|
-
&:hover {
|
59
|
-
background: $background-hover;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
&:hover {
|
63
|
-
background: $background-hover;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
@mixin tab-content(
|
68
|
-
$padding: $tab-content-padding
|
69
|
-
) {
|
70
|
-
padding: $padding;
|
71
|
-
}
|
72
|
-
|
73
|
-
@mixin tab-content-item {
|
74
|
-
display: none;
|
75
|
-
&.is-active {
|
76
|
-
display: block;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
@include exports(tabs) {
|
81
|
-
.tabs {
|
82
|
-
@include tabstrip(horizontal);
|
83
|
-
|
84
|
-
&.vertical {
|
85
|
-
@include tabstrip(vertical);
|
86
|
-
}
|
87
|
-
|
88
|
-
.tab-item {
|
89
|
-
@include tabstrip-item;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
.tab-contents {
|
94
|
-
@include tab-content;
|
95
|
-
|
96
|
-
.tab-content {
|
97
|
-
@include tab-content-item;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|