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/_title-bar.scss
DELETED
@@ -1,135 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
TITLE BAR
|
3
|
-
---------
|
4
|
-
|
5
|
-
A navigational component which can display the current screen the user is on, along with additional controls or menu items.
|
6
|
-
|
7
|
-
The title bar includes classes to create center, left, and right sections, which can be used in any combination. However, in the markup, the sections must come in this order:
|
8
|
-
- Center
|
9
|
-
- Left
|
10
|
-
- Right
|
11
|
-
*/
|
12
|
-
|
13
|
-
/// @Foundation.settings
|
14
|
-
// Title Bar
|
15
|
-
$titlebar-center-width: 50% !default;
|
16
|
-
$titlebar-side-width: (100% - $titlebar-center-width) / 2 !default;
|
17
|
-
$titlebar-background: #eee !default;
|
18
|
-
$titlebar-color: #000 !default;
|
19
|
-
$titlebar-border: 1px solid #ccc !default;
|
20
|
-
$titlebar-padding: $global-padding !default;
|
21
|
-
$titlebar-item-classes: (
|
22
|
-
center: 'center',
|
23
|
-
left: 'left',
|
24
|
-
right: 'right',
|
25
|
-
title: 'title',
|
26
|
-
) !default;
|
27
|
-
///
|
28
|
-
|
29
|
-
%title-bar {
|
30
|
-
$center: map-get($titlebar-item-classes, center);
|
31
|
-
$left: map-get($titlebar-item-classes, left);
|
32
|
-
$right: map-get($titlebar-item-classes, right);
|
33
|
-
$title: map-get($titlebar-item-classes, title);
|
34
|
-
|
35
|
-
display: flex;
|
36
|
-
flex: 0 0 auto;
|
37
|
-
align-items: center;
|
38
|
-
justify-content: flex-start;
|
39
|
-
overflow: visible;
|
40
|
-
|
41
|
-
// Denotes the title of the bar
|
42
|
-
.#{$title} {
|
43
|
-
font-weight: bold;
|
44
|
-
}
|
45
|
-
|
46
|
-
// Denotes left, right, and center sections of the bar
|
47
|
-
.#{$left}, .#{$center}, .#{$right} {
|
48
|
-
display: block;
|
49
|
-
white-space: nowrap;
|
50
|
-
overflow: visible;
|
51
|
-
|
52
|
-
// If only one section is in use, stretch it all the way out
|
53
|
-
&:first-child:last-child {
|
54
|
-
flex: 1;
|
55
|
-
margin: 0;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
// Left always comes first, then center, then right
|
60
|
-
// The left and right sections have the same width
|
61
|
-
.#{$left} {
|
62
|
-
order: 1;
|
63
|
-
flex: 0 0 $titlebar-side-width;
|
64
|
-
}
|
65
|
-
.#{$center} {
|
66
|
-
order: 2;
|
67
|
-
flex: 0 0 $titlebar-center-width;
|
68
|
-
text-align: center;
|
69
|
-
}
|
70
|
-
.#{$right} {
|
71
|
-
order: 3;
|
72
|
-
flex: 0 0 $titlebar-side-width;
|
73
|
-
text-align: right;
|
74
|
-
}
|
75
|
-
|
76
|
-
// If only left and right are in use, stretch them both out equally
|
77
|
-
.#{$left}:first-child {
|
78
|
-
flex: 1 1 auto;
|
79
|
-
}
|
80
|
-
.#{$left}:first-child + .#{$right}:last-child {
|
81
|
-
flex: 1 1 auto;
|
82
|
-
}
|
83
|
-
|
84
|
-
// If only center and right are in use, shift the center section into the right position
|
85
|
-
.#{$center}:first-child:not(:last-child) {
|
86
|
-
margin-left: $titlebar-side-width;
|
87
|
-
}
|
88
|
-
// If only center and left are in use, override the above style
|
89
|
-
.#{$center} + .#{$left} {
|
90
|
-
margin-right: -($titlebar-side-width);
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
@mixin title-bar-style(
|
95
|
-
$background: $titlebar-background,
|
96
|
-
$color: $titlebar-color,
|
97
|
-
$border: $titlebar-border,
|
98
|
-
$padding: $titlebar-padding
|
99
|
-
) {
|
100
|
-
background: $background;
|
101
|
-
color: $color;
|
102
|
-
padding: $padding;
|
103
|
-
border-bottom: $border;
|
104
|
-
}
|
105
|
-
|
106
|
-
@mixin title-bar(
|
107
|
-
$background: $titlebar-background,
|
108
|
-
$color: $titlebar-color,
|
109
|
-
$border: $titlebar-border,
|
110
|
-
$padding: $titlebar-padding
|
111
|
-
) {
|
112
|
-
@extend %title-bar;
|
113
|
-
@include title-bar-style($background, $color, $border, $padding);
|
114
|
-
}
|
115
|
-
|
116
|
-
@include exports(title-bar) {
|
117
|
-
.title-bar {
|
118
|
-
@include title-bar;
|
119
|
-
|
120
|
-
&.primary {
|
121
|
-
@include title-bar-style($primary-color, isitlight($primary-color));
|
122
|
-
a, a:hover { color: isitlight($primary-color); }
|
123
|
-
@if using(iconic) { .iconic { @include color-icon(isitlight($primary-color)); } }
|
124
|
-
}
|
125
|
-
&.dark {
|
126
|
-
@include title-bar-style($dark-color, #fff);
|
127
|
-
a, a:hover { color: #fff; }
|
128
|
-
@if using(iconic) { .iconic { @include color-icon(#fff); } }
|
129
|
-
}
|
130
|
-
}
|
131
|
-
.title-bar-bottom {
|
132
|
-
border-bottom: 0;
|
133
|
-
border-top: $titlebar-border;
|
134
|
-
}
|
135
|
-
}
|
data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_typography.scss
DELETED
@@ -1,345 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
TYPOGRAPHY
|
3
|
-
----------
|
4
|
-
|
5
|
-
Includes typographic resets for many common elements, and a few helper classes.
|
6
|
-
- Headers
|
7
|
-
- Subheaders
|
8
|
-
- Lead paragraphs
|
9
|
-
- Ordered/unordered lists
|
10
|
-
- Code samples
|
11
|
-
- Anchors
|
12
|
-
- Dividers
|
13
|
-
- Blockquotes
|
14
|
-
- Acronyms
|
15
|
-
*/
|
16
|
-
|
17
|
-
/// @Foundation.settings
|
18
|
-
// Typography
|
19
|
-
// We use these to control header font styles
|
20
|
-
$header-font-family: $body-font-family !default;
|
21
|
-
$header-font-weight: $font-weight-normal !default;
|
22
|
-
$header-font-style: $font-weight-normal !default;
|
23
|
-
$header-font-color: #222 !default;
|
24
|
-
$header-line-height: 1.4 !default;
|
25
|
-
$header-top-margin: .2rem !default;
|
26
|
-
$header-bottom-margin: .5rem !default;
|
27
|
-
$header-text-rendering: optimizeLegibility !default;
|
28
|
-
|
29
|
-
// We use these to control header font sizes
|
30
|
-
$h1-font-size: rem-calc(44) !default;
|
31
|
-
$h2-font-size: rem-calc(37) !default;
|
32
|
-
$h3-font-size: rem-calc(27) !default;
|
33
|
-
$h4-font-size: rem-calc(23) !default;
|
34
|
-
$h5-font-size: rem-calc(18) !default;
|
35
|
-
$h6-font-size: 1rem !default;
|
36
|
-
|
37
|
-
// We use these to control header size reduction on small screens
|
38
|
-
$h1-font-reduction: rem-calc(10) !default;
|
39
|
-
$h2-font-reduction: rem-calc(10) !default;
|
40
|
-
$h3-font-reduction: rem-calc(5) !default;
|
41
|
-
$h4-font-reduction: rem-calc(5) !default;
|
42
|
-
$h5-font-reduction: 0 !default;
|
43
|
-
$h6-font-reduction: 0 !default;
|
44
|
-
|
45
|
-
// These control how subheaders are styled.
|
46
|
-
$subheader-line-height: 1.4 !default;
|
47
|
-
$subheader-font-color: scale-color($header-font-color, $lightness: 35%) !default;
|
48
|
-
$subheader-font-weight: $font-weight-normal !default;
|
49
|
-
$subheader-top-margin: .2rem !default;
|
50
|
-
$subheader-bottom-margin: .5rem !default;
|
51
|
-
|
52
|
-
// A general <small> styling
|
53
|
-
$small-font-size: 60% !default;
|
54
|
-
$small-font-color: scale-color($header-font-color, $lightness: 35%) !default;
|
55
|
-
|
56
|
-
// We use these to style paragraphs
|
57
|
-
$paragraph-font-family: inherit !default;
|
58
|
-
$paragraph-font-weight: $font-weight-normal !default;
|
59
|
-
$paragraph-font-size: 1rem !default;
|
60
|
-
$paragraph-line-height: 1.6 !default;
|
61
|
-
$paragraph-margin-bottom: rem-calc(20) !default;
|
62
|
-
$paragraph-aside-font-size: rem-calc(14) !default;
|
63
|
-
$paragraph-aside-line-height: 1.35 !default;
|
64
|
-
$paragraph-aside-font-style: italic !default;
|
65
|
-
$paragraph-text-rendering: optimizeLegibility !default;
|
66
|
-
|
67
|
-
// We use these to style <code> tags
|
68
|
-
$code-color: grayscale($primary-color) !default;
|
69
|
-
$code-font-family: Consolas, 'Liberation Mono', Courier, monospace !default;
|
70
|
-
$code-font-weight: $font-weight-normal !default;
|
71
|
-
$code-background-color: scale-color($secondary-color, $lightness: 70%) !default;
|
72
|
-
$code-border-size: 1px !default;
|
73
|
-
$code-border-style: solid !default;
|
74
|
-
$code-border-color: scale-color($code-background-color, $lightness: -10%) !default;
|
75
|
-
$code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default;
|
76
|
-
|
77
|
-
// We use these to style anchors
|
78
|
-
$anchor-text-decoration: none !default;
|
79
|
-
$anchor-text-decoration-hover: none !default;
|
80
|
-
$anchor-font-color: $primary-color !default;
|
81
|
-
$anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !default;
|
82
|
-
|
83
|
-
// We use these to style the <hr> element
|
84
|
-
$hr-border-width: 1px !default;
|
85
|
-
$hr-border-style: solid !default;
|
86
|
-
$hr-border-color: #ddd !default;
|
87
|
-
$hr-margin: rem-calc(20) !default;
|
88
|
-
|
89
|
-
// We use these to style lists
|
90
|
-
$list-font-family: $paragraph-font-family !default;
|
91
|
-
$list-font-size: $paragraph-font-size !default;
|
92
|
-
$list-line-height: $paragraph-line-height !default;
|
93
|
-
$list-margin-bottom: $paragraph-margin-bottom !default;
|
94
|
-
$list-style-position: outside !default;
|
95
|
-
$list-side-margin: 1.1rem !default;
|
96
|
-
$list-ordered-side-margin: 1.4rem !default;
|
97
|
-
$list-side-margin-no-bullet: 0 !default;
|
98
|
-
$list-nested-margin: rem-calc(20) !default;
|
99
|
-
$definition-list-header-weight: $font-weight-bold !default;
|
100
|
-
$definition-list-header-margin-bottom: .3rem !default;
|
101
|
-
$definition-list-margin-bottom: rem-calc(12) !default;
|
102
|
-
|
103
|
-
// We use these to style blockquotes
|
104
|
-
$blockquote-font-color: scale-color($header-font-color, $lightness: 35%) !default;
|
105
|
-
$blockquote-padding: rem-calc(9 20 0 19) !default;
|
106
|
-
$blockquote-border: 1px solid #ddd !default;
|
107
|
-
$blockquote-cite-font-size: rem-calc(13) !default;
|
108
|
-
$blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%) !default;
|
109
|
-
$blockquote-cite-link-color: $blockquote-cite-font-color !default;
|
110
|
-
|
111
|
-
// Acronym styles
|
112
|
-
$acronym-underline: 1px dotted #ddd !default;
|
113
|
-
///
|
114
|
-
|
115
|
-
@mixin lead {
|
116
|
-
font-size: $paragraph-font-size + rem-calc(3.5);
|
117
|
-
line-height: 1.6;
|
118
|
-
}
|
119
|
-
|
120
|
-
@mixin subheader {
|
121
|
-
line-height: $subheader-line-height;
|
122
|
-
color: $subheader-font-color;
|
123
|
-
font-weight: $subheader-font-weight;
|
124
|
-
margin-top: $subheader-top-margin;
|
125
|
-
margin-bottom: $subheader-bottom-margin;
|
126
|
-
}
|
127
|
-
|
128
|
-
@include exports(typography) {
|
129
|
-
/* Typography resets */
|
130
|
-
div,
|
131
|
-
dl,
|
132
|
-
dt,
|
133
|
-
dd,
|
134
|
-
ul,
|
135
|
-
ol,
|
136
|
-
li,
|
137
|
-
h1,
|
138
|
-
h2,
|
139
|
-
h3,
|
140
|
-
h4,
|
141
|
-
h5,
|
142
|
-
h6,
|
143
|
-
pre,
|
144
|
-
form,
|
145
|
-
p,
|
146
|
-
blockquote,
|
147
|
-
th,
|
148
|
-
td {
|
149
|
-
margin:0;
|
150
|
-
padding:0;
|
151
|
-
}
|
152
|
-
|
153
|
-
/* Default Link Styles */
|
154
|
-
a {
|
155
|
-
color: $anchor-font-color;
|
156
|
-
text-decoration: $anchor-text-decoration;
|
157
|
-
line-height: inherit;
|
158
|
-
|
159
|
-
&[ui-sref] {
|
160
|
-
cursor: pointer;
|
161
|
-
}
|
162
|
-
|
163
|
-
&:hover,
|
164
|
-
&:focus {
|
165
|
-
color: $anchor-font-color-hover;
|
166
|
-
@if $anchor-text-decoration-hover != $anchor-text-decoration {
|
167
|
-
text-decoration: $anchor-text-decoration-hover;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
|
171
|
-
img { border:none; }
|
172
|
-
}
|
173
|
-
|
174
|
-
/* Default paragraph styles */
|
175
|
-
p {
|
176
|
-
font-family: $paragraph-font-family;
|
177
|
-
font-weight: $paragraph-font-weight;
|
178
|
-
font-size: $paragraph-font-size;
|
179
|
-
line-height: $paragraph-line-height;
|
180
|
-
margin-bottom: $paragraph-margin-bottom;
|
181
|
-
text-rendering: $paragraph-text-rendering;
|
182
|
-
|
183
|
-
&.lead { @include lead; }
|
184
|
-
|
185
|
-
& aside {
|
186
|
-
font-size: $paragraph-aside-font-size;
|
187
|
-
line-height: $paragraph-aside-line-height;
|
188
|
-
font-style: $paragraph-aside-font-style;
|
189
|
-
}
|
190
|
-
}
|
191
|
-
|
192
|
-
/* Default header styles */
|
193
|
-
h1, h2, h3, h4, h5, h6 {
|
194
|
-
font-family: $header-font-family;
|
195
|
-
font-weight: $header-font-weight;
|
196
|
-
font-style: $header-font-style;
|
197
|
-
color: $header-font-color;
|
198
|
-
text-rendering: $header-text-rendering;
|
199
|
-
margin-top: $header-top-margin;
|
200
|
-
margin-bottom: $header-bottom-margin;
|
201
|
-
line-height: $header-line-height;
|
202
|
-
|
203
|
-
small {
|
204
|
-
font-size: $small-font-size;
|
205
|
-
color: $small-font-color;
|
206
|
-
line-height: 0;
|
207
|
-
}
|
208
|
-
}
|
209
|
-
|
210
|
-
h1 { font-size: $h1-font-size - $h1-font-reduction; }
|
211
|
-
h2 { font-size: $h2-font-size - $h2-font-reduction; }
|
212
|
-
h3 { font-size: $h3-font-size - $h3-font-reduction; }
|
213
|
-
h4 { font-size: $h4-font-size - $h4-font-reduction; }
|
214
|
-
h5 { font-size: $h5-font-size - $h5-font-reduction; }
|
215
|
-
h6 { font-size: $h6-font-size - $h6-font-reduction; }
|
216
|
-
|
217
|
-
.subheader { @include subheader; }
|
218
|
-
|
219
|
-
hr {
|
220
|
-
border: $hr-border-style $hr-border-color;
|
221
|
-
border-width: $hr-border-width 0 0;
|
222
|
-
clear: both;
|
223
|
-
margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width));
|
224
|
-
height: 0;
|
225
|
-
}
|
226
|
-
|
227
|
-
/* Helpful Typography Defaults */
|
228
|
-
em,
|
229
|
-
i {
|
230
|
-
font-style: italic;
|
231
|
-
line-height: inherit;
|
232
|
-
}
|
233
|
-
|
234
|
-
strong,
|
235
|
-
b {
|
236
|
-
font-weight: $font-weight-bold;
|
237
|
-
line-height: inherit;
|
238
|
-
}
|
239
|
-
|
240
|
-
small {
|
241
|
-
font-size: $small-font-size;
|
242
|
-
color: $small-font-color;
|
243
|
-
line-height: inherit;
|
244
|
-
}
|
245
|
-
|
246
|
-
code {
|
247
|
-
font-family: $code-font-family;
|
248
|
-
font-weight: $code-font-weight;
|
249
|
-
color: $code-color;
|
250
|
-
background-color: $code-background-color;
|
251
|
-
border-width: $code-border-size;
|
252
|
-
border-style: $code-border-style;
|
253
|
-
border-color: $code-border-color;
|
254
|
-
padding: $code-padding;
|
255
|
-
}
|
256
|
-
|
257
|
-
/* Lists */
|
258
|
-
ul,
|
259
|
-
ol,
|
260
|
-
dl {
|
261
|
-
font-size: $list-font-size;
|
262
|
-
line-height: $list-line-height;
|
263
|
-
margin-bottom: $list-margin-bottom;
|
264
|
-
list-style-position: $list-style-position;
|
265
|
-
font-family: $list-font-family;
|
266
|
-
}
|
267
|
-
|
268
|
-
/* Lists */
|
269
|
-
ul, ol {
|
270
|
-
margin-left: $list-side-margin;
|
271
|
-
li {
|
272
|
-
ul,
|
273
|
-
ol {
|
274
|
-
margin-left: $list-nested-margin;
|
275
|
-
margin-bottom: 0;
|
276
|
-
}
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
/* Lists without bullets */
|
281
|
-
ul.no-bullet {
|
282
|
-
&, li ul, li ol {
|
283
|
-
list-style-type: none;
|
284
|
-
}
|
285
|
-
margin-left: $list-side-margin-no-bullet;
|
286
|
-
}
|
287
|
-
|
288
|
-
/* Definition Lists */
|
289
|
-
dl {
|
290
|
-
dt {
|
291
|
-
margin-bottom: $definition-list-header-margin-bottom;
|
292
|
-
font-weight: $definition-list-header-weight;
|
293
|
-
}
|
294
|
-
dd { margin-bottom: $definition-list-margin-bottom; }
|
295
|
-
}
|
296
|
-
|
297
|
-
/* Abbreviations */
|
298
|
-
abbr,
|
299
|
-
acronym {
|
300
|
-
text-transform: uppercase;
|
301
|
-
font-size: 90%;
|
302
|
-
color: $body-font-color;
|
303
|
-
border-bottom: $acronym-underline;
|
304
|
-
cursor: help;
|
305
|
-
}
|
306
|
-
abbr {
|
307
|
-
text-transform: none;
|
308
|
-
}
|
309
|
-
|
310
|
-
/* Blockquotes */
|
311
|
-
blockquote {
|
312
|
-
margin: 0 0 $paragraph-margin-bottom;
|
313
|
-
padding: $blockquote-padding;
|
314
|
-
border-left: $blockquote-border;
|
315
|
-
|
316
|
-
cite {
|
317
|
-
display: block;
|
318
|
-
font-size: $blockquote-cite-font-size;
|
319
|
-
color: $blockquote-cite-font-color;
|
320
|
-
&:before {
|
321
|
-
content: "\2014 \0020";
|
322
|
-
}
|
323
|
-
|
324
|
-
a,
|
325
|
-
a:visited {
|
326
|
-
color: $blockquote-cite-link-color;
|
327
|
-
}
|
328
|
-
}
|
329
|
-
}
|
330
|
-
blockquote,
|
331
|
-
blockquote p {
|
332
|
-
line-height: $paragraph-line-height;
|
333
|
-
color: $blockquote-font-color;
|
334
|
-
}
|
335
|
-
|
336
|
-
@include breakpoint(medium) {
|
337
|
-
h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }
|
338
|
-
h1 { font-size: $h1-font-size; }
|
339
|
-
h2 { font-size: $h2-font-size; }
|
340
|
-
h3 { font-size: $h3-font-size; }
|
341
|
-
h4 { font-size: $h4-font-size; }
|
342
|
-
h5 { font-size: $h5-font-size; }
|
343
|
-
h6 { font-size: $h6-font-size; }
|
344
|
-
}
|
345
|
-
}
|
data/vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_utilities.scss
DELETED
@@ -1,160 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
UTILITIES
|
3
|
-
---------
|
4
|
-
|
5
|
-
Responsive helper classes to assist you in quickly doing basic formatting and layout.
|
6
|
-
|
7
|
-
Features:
|
8
|
-
- Vertical alignment
|
9
|
-
- Visibility
|
10
|
-
- Text alignment
|
11
|
-
- Floating
|
12
|
-
*/
|
13
|
-
|
14
|
-
$block-selector: '[class*="grid-block"]';
|
15
|
-
|
16
|
-
@mixin show-for($size, $prop: block) {
|
17
|
-
&:not(.ng-hide) {
|
18
|
-
display: none !important;
|
19
|
-
@include breakpoint($size) {
|
20
|
-
display: $prop !important;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
@mixin show-for-only($size, $prop: block) {
|
26
|
-
&:not(.ng-hide) {
|
27
|
-
display: none !important;
|
28
|
-
@include breakpoint($size only) {
|
29
|
-
display: $prop !important;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
@mixin hide-for($size, $prop: block) {
|
35
|
-
&:not(.ng-hide) {
|
36
|
-
display: $prop !important;
|
37
|
-
@include breakpoint($size) {
|
38
|
-
display: none !important;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
@mixin hide-for-only($size, $prop: block) {
|
44
|
-
&:not(.ng-hide) {
|
45
|
-
display: $prop !important;
|
46
|
-
@include breakpoint($size only) {
|
47
|
-
display: none !important;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
@include exports(utilities) {
|
53
|
-
// Vertical alignment
|
54
|
-
.v-align {
|
55
|
-
display: flex;
|
56
|
-
align-items: center;
|
57
|
-
justify-content: space-between;
|
58
|
-
|
59
|
-
$align-values: (
|
60
|
-
'top': flex-start,
|
61
|
-
'center': center,
|
62
|
-
'bottom': flex-end,
|
63
|
-
);
|
64
|
-
|
65
|
-
@each $orient in (top, center, bottom) {
|
66
|
-
.align-#{$orient} {
|
67
|
-
align-self: map-get($align-values, $orient);
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
@each $size in $breakpoint-classes {
|
72
|
-
@each $orient in (top, center, bottom) {
|
73
|
-
@include breakpoint($size) {
|
74
|
-
.#{$size}-align-#{$orient} {
|
75
|
-
align-self: map-get($align-values, $orient);
|
76
|
-
}
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
// Visibility
|
83
|
-
.hide { display: none !important; }
|
84
|
-
|
85
|
-
.invisible { visibility: hidden; }
|
86
|
-
|
87
|
-
@each $size in $breakpoint-classes {
|
88
|
-
.hide-for-#{$size} {
|
89
|
-
@include hide-for($size);
|
90
|
-
&#{$block-selector} { @include hide-for($size, flex); }
|
91
|
-
}
|
92
|
-
|
93
|
-
.show-for-#{$size} {
|
94
|
-
@include show-for($size);
|
95
|
-
&#{$block-selector} { @include show-for($size, flex); }
|
96
|
-
}
|
97
|
-
|
98
|
-
.hide-for-#{$size}-only {
|
99
|
-
@include hide-for-only($size);
|
100
|
-
&#{$block-selector} { @include hide-for-only($size, flex); }
|
101
|
-
}
|
102
|
-
|
103
|
-
.show-for-#{$size}-only {
|
104
|
-
@include show-for-only($size);
|
105
|
-
&#{$block-selector} { @include show-for-only($size, flex); }
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
@each $orientation in (portrait, landscape) {
|
110
|
-
.hide-for-#{$orientation} {
|
111
|
-
@include breakpoint($orientation) {
|
112
|
-
display: none !important;
|
113
|
-
&#{$block-selector} { display: flex !important; }
|
114
|
-
}
|
115
|
-
}
|
116
|
-
|
117
|
-
.show-for-#{$orientation} {
|
118
|
-
display: none !important;
|
119
|
-
|
120
|
-
@include breakpoint($orientation) {
|
121
|
-
display: block !important;
|
122
|
-
&#{$block-selector} { display: flex !important; }
|
123
|
-
}
|
124
|
-
}
|
125
|
-
}
|
126
|
-
|
127
|
-
/*
|
128
|
-
Text alignment
|
129
|
-
*/
|
130
|
-
@each $align in (left, right, center, justify) {
|
131
|
-
.text-#{$align} {
|
132
|
-
text-align: $align;
|
133
|
-
}
|
134
|
-
|
135
|
-
@each $size in $breakpoint-classes {
|
136
|
-
@include breakpoint($size) {
|
137
|
-
.#{$size}-text-#{$align} {
|
138
|
-
text-align: $align;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
|
142
|
-
@include breakpoint($size only) {
|
143
|
-
.#{$size}-only-text-#{$align} {
|
144
|
-
text-align: $align;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
/*
|
151
|
-
Floating
|
152
|
-
*/
|
153
|
-
.clearfix { @include clearfix; }
|
154
|
-
|
155
|
-
@each $float in (left, right, none) {
|
156
|
-
.float-#{$float} {
|
157
|
-
float: #{$float};
|
158
|
-
}
|
159
|
-
}
|
160
|
-
}
|