comfortable_mexican_sofa 2.0.9 → 2.0.10
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/comfy/vendor/bootstrap.min.js +3 -3
- data/app/assets/stylesheets/comfy/admin/cms/application.sass +1 -2
- data/app/assets/stylesheets/comfy/admin/cms/base.sass +12 -13
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_alert.scss +3 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_button-group.scss +31 -72
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_buttons.scss +26 -19
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_card.scss +23 -12
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_carousel.scss +2 -2
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_close.scss +6 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_code.scss +4 -12
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_custom-forms.scss +124 -84
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_dropdown.scss +30 -2
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_forms.scss +46 -71
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_functions.scss +4 -4
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_images.scss +0 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_input-group.scss +99 -126
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_list-group.scss +2 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_modal.scss +24 -9
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_nav.scss +2 -2
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_navbar.scss +8 -3
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_pagination.scss +32 -19
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_popover.scss +106 -117
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_print.scss +17 -3
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_progress.scss +4 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_reboot.scss +3 -25
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_tables.scss +1 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_tooltip.scss +65 -57
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_type.scss +2 -2
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_variables.scss +174 -108
- data/app/assets/stylesheets/comfy/vendor/bootstrap/bootstrap-grid.scss +32 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/bootstrap-reboot.scss +12 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/bootstrap.scss +42 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_background-variant.scss +2 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_breakpoints.scss +11 -7
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_buttons.scss +37 -22
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_caret.scss +30 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_forms.scss +48 -19
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_grid-framework.scss +5 -7
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_hover.scss +24 -46
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_list-group.scss +10 -13
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_screen-reader.scss +1 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_text-hide.scss +1 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_borders.scss +6 -1
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_display.scss +10 -28
- data/app/controllers/comfy/admin/cms/files_controller.rb +6 -7
- data/app/helpers/comfy/admin/cms_helper.rb +5 -4
- data/app/models/concerns/comfy/cms/with_categories.rb +20 -9
- data/app/views/comfy/admin/cms/categories/_edit.html.haml +3 -3
- data/app/views/comfy/admin/cms/categories/_form.html.haml +3 -9
- data/app/views/comfy/admin/cms/categories/_index.html.haml +2 -2
- data/app/views/comfy/admin/cms/categories/_show.html.haml +4 -3
- data/app/views/comfy/admin/cms/categories/create.js.erb +1 -1
- data/app/views/comfy/admin/cms/files/_form.html.haml +11 -12
- data/app/views/comfy/admin/cms/files/edit.html.haml +2 -2
- data/app/views/comfy/admin/cms/files/new.html.haml +2 -2
- data/app/views/comfy/admin/cms/fragments/_form_fragment_attachments.html.haml +7 -5
- data/app/views/comfy/admin/cms/fragments/_form_fragments.html.haml +1 -1
- data/app/views/comfy/admin/cms/layouts/_form.html.haml +3 -2
- data/app/views/comfy/admin/cms/layouts/edit.html.haml +1 -1
- data/app/views/comfy/admin/cms/layouts/new.html.haml +2 -2
- data/app/views/comfy/admin/cms/pages/_form.html.haml +3 -5
- data/app/views/comfy/admin/cms/pages/edit.html.haml +1 -1
- data/app/views/comfy/admin/cms/pages/new.html.haml +1 -1
- data/app/views/comfy/admin/cms/revisions/show.html.haml +2 -2
- data/app/views/comfy/admin/cms/sites/_form.html.haml +4 -4
- data/app/views/comfy/admin/cms/sites/edit.html.haml +1 -1
- data/app/views/comfy/admin/cms/sites/new.html.haml +2 -2
- data/app/views/comfy/admin/cms/snippets/_form.html.haml +2 -2
- data/app/views/comfy/admin/cms/snippets/edit.html.haml +1 -1
- data/app/views/comfy/admin/cms/snippets/new.html.haml +2 -2
- data/app/views/comfy/admin/cms/translations/_form.html.haml +5 -7
- data/app/views/comfy/admin/cms/translations/edit.html.haml +1 -1
- data/app/views/comfy/admin/cms/translations/new.html.haml +2 -2
- data/comfortable_mexican_sofa.gemspec +6 -3
- data/config/locales/fr.yml +33 -33
- data/lib/comfortable_mexican_sofa/content/tags/file.rb +1 -1
- data/lib/comfortable_mexican_sofa/content/tags/files.rb +1 -1
- data/lib/comfortable_mexican_sofa/form_builder.rb +10 -15
- data/lib/comfortable_mexican_sofa/seeds.rb +2 -5
- data/lib/comfortable_mexican_sofa/version.rb +1 -1
- metadata +9 -116
- data/app/assets/stylesheets/comfy/vendor/_bootstrap.scss +0 -42
- data/doc/preview.jpg +0 -0
- data/test/controllers/comfy/admin/cms/base_controller_test.rb +0 -18
- data/test/controllers/comfy/admin/cms/categories_controller_test.rb +0 -74
- data/test/controllers/comfy/admin/cms/files_controller_test.rb +0 -242
- data/test/controllers/comfy/admin/cms/layouts_controller_test.rb +0 -137
- data/test/controllers/comfy/admin/cms/pages_controller_test.rb +0 -580
- data/test/controllers/comfy/admin/cms/revisions/layout_controller_test.rb +0 -62
- data/test/controllers/comfy/admin/cms/revisions/page_controller_test.rb +0 -87
- data/test/controllers/comfy/admin/cms/revisions/snippet_controller_test.rb +0 -60
- data/test/controllers/comfy/admin/cms/revisions/translation_controller_test.rb +0 -68
- data/test/controllers/comfy/admin/cms/sites_controller_test.rb +0 -106
- data/test/controllers/comfy/admin/cms/snippets_controller_test.rb +0 -156
- data/test/controllers/comfy/admin/cms/translations_controller_test.rb +0 -182
- data/test/controllers/comfy/cms/assets_controller_test.rb +0 -61
- data/test/controllers/comfy/cms/content_controller_test.rb +0 -249
- data/test/fixtures/active_storage/attachments.yml +0 -9
- data/test/fixtures/active_storage/blobs.yml +0 -13
- data/test/fixtures/comfy/cms/categories.yml +0 -4
- data/test/fixtures/comfy/cms/categorizations.yml +0 -3
- data/test/fixtures/comfy/cms/files.yml +0 -5
- data/test/fixtures/comfy/cms/fragments.yml +0 -25
- data/test/fixtures/comfy/cms/layouts.yml +0 -34
- data/test/fixtures/comfy/cms/pages.yml +0 -24
- data/test/fixtures/comfy/cms/revisions.yml +0 -29
- data/test/fixtures/comfy/cms/sites.yml +0 -5
- data/test/fixtures/comfy/cms/snippets.yml +0 -6
- data/test/fixtures/comfy/cms/translations.yml +0 -7
- data/test/fixtures/files/data.zip +0 -0
- data/test/fixtures/files/document.pdf +0 -0
- data/test/fixtures/files/image.gif +0 -0
- data/test/fixtures/files/image.jpg +0 -0
- data/test/fixtures/generators/cms/application.rb +0 -7
- data/test/fixtures/generators/cms/routes.rb +0 -5
- data/test/fixtures/generators/scaffold/controller.rb +0 -62
- data/test/fixtures/generators/scaffold/migration.rb +0 -9
- data/test/fixtures/generators/scaffold/model.rb +0 -21
- data/test/fixtures/generators/scaffold/routes.rb +0 -6
- data/test/fixtures/generators/scaffold/tests/controller.rb +0 -111
- data/test/fixtures/generators/scaffold/tests/fixture +0 -2
- data/test/fixtures/generators/scaffold/tests/model.rb +0 -24
- data/test/fixtures/generators/scaffold/views/_form.haml +0 -5
- data/test/fixtures/generators/scaffold/views/edit.haml +0 -5
- data/test/fixtures/generators/scaffold/views/index.haml +0 -21
- data/test/fixtures/generators/scaffold/views/new.haml +0 -5
- data/test/fixtures/generators/scaffold/views/show.haml +0 -4
- data/test/fixtures/views/_nav_hook.html.erb +0 -1
- data/test/fixtures/views/_nav_hook_2.html.erb +0 -1
- data/test/fixtures/views/render_test/_test.html.erb +0 -1
- data/test/fixtures/views/render_test/new.html.erb +0 -1
- data/test/fixtures/views/render_test/render_layout.html.erb +0 -1
- data/test/gemfiles/5.2.gemfile +0 -19
- data/test/generators/cms_assets_generator_test.rb +0 -14
- data/test/generators/cms_controllers_generator_test.rb +0 -14
- data/test/generators/cms_generator_test.rb +0 -26
- data/test/generators/cms_models_generator_test.rb +0 -14
- data/test/generators/cms_views_generator_test.rb +0 -14
- data/test/generators/scaffold_generator_test.rb +0 -32
- data/test/helpers/cms_helper_test.rb +0 -106
- data/test/integration/access_control_test.rb +0 -179
- data/test/integration/i18n_test.rb +0 -38
- data/test/integration/meta_variables_test.rb +0 -27
- data/test/integration/render_cms_test.rb +0 -255
- data/test/integration/routing_test.rb +0 -19
- data/test/integration/seeds_test.rb +0 -75
- data/test/integration/sites_test.rb +0 -107
- data/test/integration/view_hooks_test.rb +0 -47
- data/test/lib/configuration_test.rb +0 -38
- data/test/lib/content/block_test.rb +0 -26
- data/test/lib/content/params_parser_test.rb +0 -126
- data/test/lib/content/renderer_test.rb +0 -276
- data/test/lib/content/tag_test.rb +0 -58
- data/test/lib/content/tags/asset_test.rb +0 -104
- data/test/lib/content/tags/checkbox_test.rb +0 -21
- data/test/lib/content/tags/date_test.rb +0 -21
- data/test/lib/content/tags/datetime_test.rb +0 -21
- data/test/lib/content/tags/file_link_test.rb +0 -91
- data/test/lib/content/tags/file_test.rb +0 -69
- data/test/lib/content/tags/files_test.rb +0 -52
- data/test/lib/content/tags/fragment_test.rb +0 -68
- data/test/lib/content/tags/helper_test.rb +0 -62
- data/test/lib/content/tags/markdown_test.rb +0 -37
- data/test/lib/content/tags/number_test.rb +0 -14
- data/test/lib/content/tags/partial_test.rb +0 -65
- data/test/lib/content/tags/snippet_test.rb +0 -37
- data/test/lib/content/tags/template_test.rb +0 -51
- data/test/lib/content/tags/text_test.rb +0 -14
- data/test/lib/content/tags/textarea_test.rb +0 -14
- data/test/lib/content/tags/wysiwyg_test.rb +0 -14
- data/test/lib/revisions_test.rb +0 -222
- data/test/lib/seeds/files_test.rb +0 -97
- data/test/lib/seeds/layouts_test.rb +0 -156
- data/test/lib/seeds/pages_test.rb +0 -230
- data/test/lib/seeds/snippets_test.rb +0 -99
- data/test/lib/seeds_test.rb +0 -51
- data/test/models/categorization_test.rb +0 -76
- data/test/models/category_test.rb +0 -39
- data/test/models/file_test.rb +0 -43
- data/test/models/fragment_test.rb +0 -132
- data/test/models/layout_test.rb +0 -194
- data/test/models/page_test.rb +0 -575
- data/test/models/site_test.rb +0 -190
- data/test/models/snippet_test.rb +0 -56
- data/test/models/translation_test.rb +0 -67
- data/test/system/layouts_frontend_test.rb +0 -15
- data/test/system/pages_frontend_test.rb +0 -15
- data/test/system/sites_frontend_test.rb +0 -11
- data/test/system/snippets_frontend_test.rb +0 -15
- data/test/tasks/cms_seeds_test.rb +0 -34
- data/test/test_helper.rb +0 -201
@@ -91,13 +91,13 @@
|
|
91
91
|
.carousel-control-prev {
|
92
92
|
left: 0;
|
93
93
|
@if $enable-gradients {
|
94
|
-
background: linear-gradient(90deg, rgba(0,0,0
|
94
|
+
background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
|
95
95
|
}
|
96
96
|
}
|
97
97
|
.carousel-control-next {
|
98
98
|
right: 0;
|
99
99
|
@if $enable-gradients {
|
100
|
-
background: linear-gradient(270deg, rgba(0,0,0
|
100
|
+
background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
|
101
101
|
}
|
102
102
|
}
|
103
103
|
|
@@ -12,6 +12,11 @@
|
|
12
12
|
text-decoration: none;
|
13
13
|
opacity: .75;
|
14
14
|
}
|
15
|
+
|
16
|
+
// Opinionated: add "hand" cursor to non-disabled .close elements
|
17
|
+
&:not(:disabled):not(.disabled) {
|
18
|
+
cursor: pointer;
|
19
|
+
}
|
15
20
|
}
|
16
21
|
|
17
22
|
// Additional properties for button version
|
@@ -22,7 +27,7 @@
|
|
22
27
|
// stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type
|
23
28
|
button.close {
|
24
29
|
padding: 0;
|
25
|
-
background: transparent;
|
30
|
+
background-color: transparent;
|
26
31
|
border: 0;
|
27
32
|
-webkit-appearance: none;
|
28
33
|
}
|
@@ -8,24 +8,20 @@ samp {
|
|
8
8
|
|
9
9
|
// Inline code
|
10
10
|
code {
|
11
|
-
padding: $code-padding-y $code-padding-x;
|
12
11
|
font-size: $code-font-size;
|
13
12
|
color: $code-color;
|
14
|
-
|
15
|
-
@include border-radius($border-radius);
|
13
|
+
word-break: break-word;
|
16
14
|
|
17
15
|
// Streamline the style when inside anchors to avoid broken underline and more
|
18
16
|
a > & {
|
19
|
-
padding: 0;
|
20
17
|
color: inherit;
|
21
|
-
background-color: inherit;
|
22
18
|
}
|
23
19
|
}
|
24
20
|
|
25
21
|
// User input typically entered via keyboard
|
26
22
|
kbd {
|
27
|
-
padding: $
|
28
|
-
font-size: $
|
23
|
+
padding: $kbd-padding-y $kbd-padding-x;
|
24
|
+
font-size: $kbd-font-size;
|
29
25
|
color: $kbd-color;
|
30
26
|
background-color: $kbd-bg;
|
31
27
|
@include border-radius($border-radius-sm);
|
@@ -42,18 +38,14 @@ kbd {
|
|
42
38
|
// Blocks of code
|
43
39
|
pre {
|
44
40
|
display: block;
|
45
|
-
margin-top: 0;
|
46
|
-
margin-bottom: 1rem;
|
47
41
|
font-size: $code-font-size;
|
48
42
|
color: $pre-color;
|
49
43
|
|
50
44
|
// Account for some code outputs that place code tags in pre tags
|
51
45
|
code {
|
52
|
-
padding: 0;
|
53
46
|
font-size: inherit;
|
54
47
|
color: inherit;
|
55
|
-
|
56
|
-
border-radius: 0;
|
48
|
+
word-break: normal;
|
57
49
|
}
|
58
50
|
}
|
59
51
|
|
@@ -9,9 +9,13 @@
|
|
9
9
|
|
10
10
|
.custom-control {
|
11
11
|
position: relative;
|
12
|
-
display:
|
12
|
+
display: block;
|
13
13
|
min-height: (1rem * $line-height-base);
|
14
14
|
padding-left: $custom-control-gutter;
|
15
|
+
}
|
16
|
+
|
17
|
+
.custom-control-inline {
|
18
|
+
display: inline-flex;
|
15
19
|
margin-right: $custom-control-spacer-x;
|
16
20
|
}
|
17
21
|
|
@@ -20,71 +24,107 @@
|
|
20
24
|
z-index: -1; // Put the input behind the label so it doesn't overlay text
|
21
25
|
opacity: 0;
|
22
26
|
|
23
|
-
&:checked ~ .custom-control-
|
27
|
+
&:checked ~ .custom-control-label::before {
|
24
28
|
color: $custom-control-indicator-checked-color;
|
25
29
|
@include gradient-bg($custom-control-indicator-checked-bg);
|
26
30
|
@include box-shadow($custom-control-indicator-checked-box-shadow);
|
27
31
|
}
|
28
32
|
|
29
|
-
&:focus ~ .custom-control-
|
33
|
+
&:focus ~ .custom-control-label::before {
|
30
34
|
// the mixin is not used here to make sure there is feedback
|
31
35
|
box-shadow: $custom-control-indicator-focus-box-shadow;
|
32
36
|
}
|
33
37
|
|
34
|
-
&:active ~ .custom-control-
|
38
|
+
&:active ~ .custom-control-label::before {
|
35
39
|
color: $custom-control-indicator-active-color;
|
36
|
-
|
40
|
+
background-color: $custom-control-indicator-active-bg;
|
37
41
|
@include box-shadow($custom-control-indicator-active-box-shadow);
|
38
42
|
}
|
39
43
|
|
40
44
|
&:disabled {
|
41
|
-
~ .custom-control-
|
42
|
-
|
43
|
-
}
|
45
|
+
~ .custom-control-label {
|
46
|
+
color: $custom-control-label-disabled-color;
|
44
47
|
|
45
|
-
|
46
|
-
|
48
|
+
&::before {
|
49
|
+
background-color: $custom-control-indicator-disabled-bg;
|
50
|
+
}
|
47
51
|
}
|
48
52
|
}
|
49
53
|
}
|
50
54
|
|
51
|
-
// Custom
|
55
|
+
// Custom control indicators
|
52
56
|
//
|
53
|
-
//
|
57
|
+
// Build the custom controls out of psuedo-elements.
|
54
58
|
|
55
|
-
.custom-control-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
59
|
+
.custom-control-label {
|
60
|
+
margin-bottom: 0;
|
61
|
+
|
62
|
+
// Background-color and (when enabled) gradient
|
63
|
+
&::before {
|
64
|
+
position: absolute;
|
65
|
+
top: (($line-height-base - $custom-control-indicator-size) / 2);
|
66
|
+
left: 0;
|
67
|
+
display: block;
|
68
|
+
width: $custom-control-indicator-size;
|
69
|
+
height: $custom-control-indicator-size;
|
70
|
+
pointer-events: none;
|
71
|
+
content: "";
|
72
|
+
user-select: none;
|
73
|
+
background-color: $custom-control-indicator-bg;
|
74
|
+
@include box-shadow($custom-control-indicator-box-shadow);
|
75
|
+
}
|
76
|
+
|
77
|
+
// Foreground (icon)
|
78
|
+
&::after {
|
79
|
+
position: absolute;
|
80
|
+
top: (($line-height-base - $custom-control-indicator-size) / 2);
|
81
|
+
left: 0;
|
82
|
+
display: block;
|
83
|
+
width: $custom-control-indicator-size;
|
84
|
+
height: $custom-control-indicator-size;
|
85
|
+
content: "";
|
86
|
+
background-repeat: no-repeat;
|
87
|
+
background-position: center center;
|
88
|
+
background-size: $custom-control-indicator-bg-size;
|
89
|
+
}
|
69
90
|
}
|
70
91
|
|
92
|
+
|
71
93
|
// Checkboxes
|
72
94
|
//
|
73
95
|
// Tweak just a few things for checkboxes.
|
74
96
|
|
75
97
|
.custom-checkbox {
|
76
|
-
.custom-control-
|
98
|
+
.custom-control-label::before {
|
77
99
|
@include border-radius($custom-checkbox-indicator-border-radius);
|
78
100
|
}
|
79
101
|
|
80
|
-
.custom-control-input:checked ~ .custom-control-
|
81
|
-
|
102
|
+
.custom-control-input:checked ~ .custom-control-label {
|
103
|
+
&::before {
|
104
|
+
@include gradient-bg($custom-control-indicator-checked-bg);
|
105
|
+
}
|
106
|
+
&::after {
|
107
|
+
background-image: $custom-checkbox-indicator-icon-checked;
|
108
|
+
}
|
82
109
|
}
|
83
110
|
|
84
|
-
.custom-control-input:indeterminate ~ .custom-control-
|
85
|
-
|
86
|
-
|
87
|
-
|
111
|
+
.custom-control-input:indeterminate ~ .custom-control-label {
|
112
|
+
&::before {
|
113
|
+
@include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
|
114
|
+
@include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
|
115
|
+
}
|
116
|
+
&::after {
|
117
|
+
background-image: $custom-checkbox-indicator-icon-indeterminate;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.custom-control-input:disabled {
|
122
|
+
&:checked ~ .custom-control-label::before {
|
123
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
124
|
+
}
|
125
|
+
&:indeterminate ~ .custom-control-label::before {
|
126
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
127
|
+
}
|
88
128
|
}
|
89
129
|
}
|
90
130
|
|
@@ -93,30 +133,22 @@
|
|
93
133
|
// Tweak just a few things for radios.
|
94
134
|
|
95
135
|
.custom-radio {
|
96
|
-
.custom-control-
|
136
|
+
.custom-control-label::before {
|
97
137
|
border-radius: $custom-radio-indicator-border-radius;
|
98
138
|
}
|
99
139
|
|
100
|
-
.custom-control-input:checked ~ .custom-control-
|
101
|
-
|
140
|
+
.custom-control-input:checked ~ .custom-control-label {
|
141
|
+
&::before {
|
142
|
+
@include gradient-bg($custom-control-indicator-checked-bg);
|
143
|
+
}
|
144
|
+
&::after {
|
145
|
+
background-image: $custom-radio-indicator-icon-checked;
|
146
|
+
}
|
102
147
|
}
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
// Layout options
|
107
|
-
//
|
108
|
-
// By default radios and checkboxes are `inline-block` with no additional spacing
|
109
|
-
// set. Use these optional classes to tweak the layout.
|
110
148
|
|
111
|
-
.custom-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
.custom-control {
|
116
|
-
margin-bottom: $custom-control-spacer-y;
|
117
|
-
|
118
|
-
+ .custom-control {
|
119
|
-
margin-left: 0;
|
149
|
+
.custom-control-input:disabled {
|
150
|
+
&:checked ~ .custom-control-label::before {
|
151
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
120
152
|
}
|
121
153
|
}
|
122
154
|
}
|
@@ -130,8 +162,8 @@
|
|
130
162
|
|
131
163
|
.custom-select {
|
132
164
|
display: inline-block;
|
133
|
-
|
134
|
-
height: $
|
165
|
+
width: 100%;
|
166
|
+
height: $custom-select-height;
|
135
167
|
padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
|
136
168
|
line-height: $custom-select-line-height;
|
137
169
|
color: $custom-select-color;
|
@@ -148,12 +180,12 @@
|
|
148
180
|
|
149
181
|
&:focus {
|
150
182
|
border-color: $custom-select-focus-border-color;
|
151
|
-
outline:
|
152
|
-
|
183
|
+
outline: 0;
|
184
|
+
box-shadow: $custom-select-focus-box-shadow;
|
153
185
|
|
154
186
|
&::-ms-value {
|
155
187
|
// For visual consistency with other platforms/browsers,
|
156
|
-
//
|
188
|
+
// suppress the default white text on blue background highlight given to
|
157
189
|
// the selected option text when the (still closed) <select> receives focus
|
158
190
|
// in IE and (under certain conditions) Edge.
|
159
191
|
// See https://github.com/twbs/bootstrap/issues/19398.
|
@@ -162,8 +194,10 @@
|
|
162
194
|
}
|
163
195
|
}
|
164
196
|
|
165
|
-
&[multiple]
|
197
|
+
&[multiple],
|
198
|
+
&[size]:not([size="1"]) {
|
166
199
|
height: auto;
|
200
|
+
padding-right: $custom-select-padding-x;
|
167
201
|
background-image: none;
|
168
202
|
}
|
169
203
|
|
@@ -185,6 +219,13 @@
|
|
185
219
|
font-size: $custom-select-font-size-sm;
|
186
220
|
}
|
187
221
|
|
222
|
+
.custom-select-lg {
|
223
|
+
height: $custom-select-height-lg;
|
224
|
+
padding-top: $custom-select-padding-y;
|
225
|
+
padding-bottom: $custom-select-padding-y;
|
226
|
+
font-size: $custom-select-font-size-lg;
|
227
|
+
}
|
228
|
+
|
188
229
|
|
189
230
|
// File
|
190
231
|
//
|
@@ -193,65 +234,64 @@
|
|
193
234
|
.custom-file {
|
194
235
|
position: relative;
|
195
236
|
display: inline-block;
|
196
|
-
|
237
|
+
width: 100%;
|
197
238
|
height: $custom-file-height;
|
198
239
|
margin-bottom: 0;
|
199
240
|
}
|
200
241
|
|
201
242
|
.custom-file-input {
|
202
|
-
|
203
|
-
|
243
|
+
position: relative;
|
244
|
+
z-index: 2;
|
245
|
+
width: 100%;
|
204
246
|
height: $custom-file-height;
|
205
247
|
margin: 0;
|
206
248
|
opacity: 0;
|
207
249
|
|
208
250
|
&:focus ~ .custom-file-control {
|
251
|
+
border-color: $custom-file-focus-border-color;
|
209
252
|
box-shadow: $custom-file-focus-box-shadow;
|
253
|
+
|
254
|
+
&::before {
|
255
|
+
border-color: $custom-file-focus-border-color;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
@each $lang, $value in $custom-file-text {
|
260
|
+
&:lang(#{$lang}) ~ .custom-file-label::after {
|
261
|
+
content: $value;
|
262
|
+
}
|
210
263
|
}
|
211
264
|
}
|
212
265
|
|
213
|
-
.custom-file-
|
266
|
+
.custom-file-label {
|
214
267
|
position: absolute;
|
215
268
|
top: 0;
|
216
269
|
right: 0;
|
217
270
|
left: 0;
|
218
|
-
z-index:
|
271
|
+
z-index: 1;
|
219
272
|
height: $custom-file-height;
|
220
273
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
221
274
|
line-height: $custom-file-line-height;
|
222
275
|
color: $custom-file-color;
|
223
|
-
pointer-events: none;
|
224
|
-
user-select: none;
|
225
276
|
background-color: $custom-file-bg;
|
226
277
|
border: $custom-file-border-width solid $custom-file-border-color;
|
227
278
|
@include border-radius($custom-file-border-radius);
|
228
279
|
@include box-shadow($custom-file-box-shadow);
|
229
280
|
|
230
|
-
|
231
|
-
&:lang(#{$lang}):empty::after {
|
232
|
-
content: $text;
|
233
|
-
}
|
234
|
-
}
|
235
|
-
|
236
|
-
&::before {
|
281
|
+
&::after {
|
237
282
|
position: absolute;
|
238
|
-
top:
|
239
|
-
right:
|
240
|
-
bottom:
|
241
|
-
z-index:
|
283
|
+
top: 0;
|
284
|
+
right: 0;
|
285
|
+
bottom: 0;
|
286
|
+
z-index: 3;
|
242
287
|
display: block;
|
243
|
-
height: $custom-file-height;
|
288
|
+
height: calc(#{$custom-file-height} - #{$custom-file-border-width} * 2);
|
244
289
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
245
290
|
line-height: $custom-file-line-height;
|
246
291
|
color: $custom-file-button-color;
|
292
|
+
content: "Browse";
|
247
293
|
@include gradient-bg($custom-file-button-bg);
|
248
|
-
border: $custom-file-border-width solid $custom-file-border-color;
|
294
|
+
border-left: $custom-file-border-width solid $custom-file-border-color;
|
249
295
|
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
|
250
296
|
}
|
251
|
-
|
252
|
-
@each $lang, $text in map-get($custom-file-text, button-label) {
|
253
|
-
&:lang(#{$lang})::before {
|
254
|
-
content: $text;
|
255
|
-
}
|
256
|
-
}
|
257
297
|
}
|
@@ -27,7 +27,7 @@
|
|
27
27
|
background-color: $dropdown-bg;
|
28
28
|
background-clip: padding-box;
|
29
29
|
border: $dropdown-border-width solid $dropdown-border-color;
|
30
|
-
@include border-radius($border-radius);
|
30
|
+
@include border-radius($dropdown-border-radius);
|
31
31
|
@include box-shadow($dropdown-box-shadow);
|
32
32
|
}
|
33
33
|
|
@@ -44,6 +44,34 @@
|
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
|
+
.dropright {
|
48
|
+
.dropdown-menu {
|
49
|
+
margin-top: 0;
|
50
|
+
margin-left: $dropdown-spacer;
|
51
|
+
}
|
52
|
+
|
53
|
+
.dropdown-toggle {
|
54
|
+
@include caret(right);
|
55
|
+
&::after {
|
56
|
+
vertical-align: 0;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.dropleft {
|
62
|
+
.dropdown-menu {
|
63
|
+
margin-top: 0;
|
64
|
+
margin-right: $dropdown-spacer;
|
65
|
+
}
|
66
|
+
|
67
|
+
.dropdown-toggle {
|
68
|
+
@include caret(left);
|
69
|
+
&::before {
|
70
|
+
vertical-align: 0;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
47
75
|
// Dividers (basically an `<hr>`) within the dropdown
|
48
76
|
.dropdown-divider {
|
49
77
|
@include nav-divider($dropdown-divider-bg);
|
@@ -61,7 +89,7 @@
|
|
61
89
|
color: $dropdown-link-color;
|
62
90
|
text-align: inherit; // For `<button>`s
|
63
91
|
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
64
|
-
background:
|
92
|
+
background-color: transparent; // For `<button>`s
|
65
93
|
border: 0; // For `<button>`s
|
66
94
|
|
67
95
|
@include hover-focus {
|