jekyll-theme-centos 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +66 -0
- data/_includes/centos-content/1col.html +11 -0
- data/_includes/centos-content/2col.html +15 -0
- data/_includes/centos-content/admonition/caution.html +4 -0
- data/_includes/centos-content/admonition/idea.html +4 -0
- data/_includes/centos-content/admonition/note.html +4 -0
- data/_includes/centos-content/admonition/warning.html +4 -0
- data/_includes/centos-content/around.html +6 -0
- data/_includes/centos-content/breadcrumbs.html +11 -0
- data/_includes/centos-content/download/stream-8-doc.html +5 -0
- data/_includes/centos-content/download/stream-8-eol.html +5 -0
- data/_includes/centos-content/download/stream-8.html +5 -0
- data/_includes/centos-content/download/stream.html +16 -0
- data/_includes/centos-content/download/table-body-doc.html +6 -0
- data/_includes/centos-content/download/table-body-eol.html +4 -0
- data/_includes/centos-content/download/table-body.html +7 -0
- data/_includes/centos-content/download/table-footer.html +2 -0
- data/_includes/centos-content/download/table-header-doc.html +8 -0
- data/_includes/centos-content/download/table-header-eol.html +8 -0
- data/_includes/centos-content/download/table-header.html +10 -0
- data/_includes/centos-content/figure.html +4 -0
- data/_includes/centos-content/news.html +15 -0
- data/_includes/centos-content/sponsors.html +19 -0
- data/_includes/centos-content/toc.html +103 -0
- data/_includes/centos-content/video.html +3 -0
- data/_includes/centos-footer.html +42 -0
- data/_includes/centos-head.html +7 -0
- data/_includes/centos-header.html +7 -0
- data/_includes/centos-header/home.html +15 -0
- data/_includes/centos-header/page.html +12 -0
- data/_includes/centos-nav.html +29 -0
- data/_includes/centos-styleguide.md +243 -0
- data/_layouts/centos-content/1col.html +9 -0
- data/_layouts/centos-content/2col.html +9 -0
- data/_layouts/centos-content/download-mirror.html +30 -0
- data/_layouts/centos-content/download.html +18 -0
- data/_layouts/centos-content/sponsors.html +21 -0
- data/_layouts/centos-home.html +39 -0
- data/_layouts/default.html +18 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/bootstrap/_alert.scss +52 -0
- data/_sass/bootstrap/_badge.scss +54 -0
- data/_sass/bootstrap/_breadcrumb.scss +44 -0
- data/_sass/bootstrap/_button-group.scss +163 -0
- data/_sass/bootstrap/_buttons.scss +142 -0
- data/_sass/bootstrap/_card.scss +286 -0
- data/_sass/bootstrap/_carousel.scss +197 -0
- data/_sass/bootstrap/_close.scss +40 -0
- data/_sass/bootstrap/_code.scss +48 -0
- data/_sass/bootstrap/_custom-forms.scss +524 -0
- data/_sass/bootstrap/_dropdown.scss +192 -0
- data/_sass/bootstrap/_forms.scss +347 -0
- data/_sass/bootstrap/_functions.scss +144 -0
- data/_sass/bootstrap/_grid.scss +73 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_input-group.scss +192 -0
- data/_sass/bootstrap/_jumbotron.scss +17 -0
- data/_sass/bootstrap/_list-group.scss +154 -0
- data/_sass/bootstrap/_media.scss +8 -0
- data/_sass/bootstrap/_mixins.scss +47 -0
- data/_sass/bootstrap/_modal.scss +240 -0
- data/_sass/bootstrap/_nav.scss +123 -0
- data/_sass/bootstrap/_navbar.scss +324 -0
- data/_sass/bootstrap/_pagination.scss +74 -0
- data/_sass/bootstrap/_popover.scss +170 -0
- data/_sass/bootstrap/_print.scss +141 -0
- data/_sass/bootstrap/_progress.scss +47 -0
- data/_sass/bootstrap/_reboot.scss +484 -0
- data/_sass/bootstrap/_root.scss +20 -0
- data/_sass/bootstrap/_spinners.scss +56 -0
- data/_sass/bootstrap/_tables.scss +185 -0
- data/_sass/bootstrap/_toasts.scss +46 -0
- data/_sass/bootstrap/_tooltip.scss +115 -0
- data/_sass/bootstrap/_transitions.scss +20 -0
- data/_sass/bootstrap/_type.scss +125 -0
- data/_sass/bootstrap/_utilities.scss +18 -0
- data/_sass/bootstrap/_variables.scss +1142 -0
- data/_sass/bootstrap/bootstrap-grid.scss +29 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap/bootstrap.scss +44 -0
- data/_sass/bootstrap/mixins/_alert.scss +13 -0
- data/_sass/bootstrap/mixins/_background-variant.scss +23 -0
- data/_sass/bootstrap/mixins/_badge.scss +17 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
- data/_sass/bootstrap/mixins/_box-shadow.scss +20 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
- data/_sass/bootstrap/mixins/_buttons.scss +110 -0
- data/_sass/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_float.scss +14 -0
- data/_sass/bootstrap/mixins/_forms.scss +178 -0
- data/_sass/bootstrap/mixins/_gradients.scss +45 -0
- data/_sass/bootstrap/mixins/_grid-framework.scss +80 -0
- data/_sass/bootstrap/mixins/_grid.scss +69 -0
- data/_sass/bootstrap/mixins/_hover.scss +37 -0
- data/_sass/bootstrap/mixins/_image.scss +36 -0
- data/_sass/bootstrap/mixins/_list-group.scss +21 -0
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_nav-divider.scss +11 -0
- data/_sass/bootstrap/mixins/_pagination.scss +22 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_screen-reader.scss +34 -0
- data/_sass/bootstrap/mixins/_size.scss +7 -0
- data/_sass/bootstrap/mixins/_table-row.scss +39 -0
- data/_sass/bootstrap/mixins/_text-emphasis.scss +17 -0
- data/_sass/bootstrap/mixins/_text-hide.scss +11 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +26 -0
- data/_sass/bootstrap/mixins/_visibility.scss +8 -0
- data/_sass/bootstrap/utilities/_align.scss +8 -0
- data/_sass/bootstrap/utilities/_background.scss +19 -0
- data/_sass/bootstrap/utilities/_borders.scss +75 -0
- data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
- data/_sass/bootstrap/utilities/_display.scss +26 -0
- data/_sass/bootstrap/utilities/_embed.scss +39 -0
- data/_sass/bootstrap/utilities/_flex.scss +51 -0
- data/_sass/bootstrap/utilities/_float.scss +11 -0
- data/_sass/bootstrap/utilities/_interactions.scss +5 -0
- data/_sass/bootstrap/utilities/_overflow.scss +5 -0
- data/_sass/bootstrap/utilities/_position.scss +32 -0
- data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
- data/_sass/bootstrap/utilities/_shadows.scss +6 -0
- data/_sass/bootstrap/utilities/_sizing.scss +20 -0
- data/_sass/bootstrap/utilities/_spacing.scss +73 -0
- data/_sass/bootstrap/utilities/_stretched-link.scss +19 -0
- data/_sass/bootstrap/utilities/_text.scss +72 -0
- data/_sass/bootstrap/utilities/_visibility.scss +13 -0
- data/_sass/bootstrap/vendor/_rfs.scss +204 -0
- data/_sass/centos/_content.scss +101 -0
- data/_sass/centos/_datatable.scss +271 -0
- data/_sass/centos/_fonts.scss +1 -0
- data/_sass/centos/_footer.scss +49 -0
- data/_sass/centos/_header.scss +25 -0
- data/_sass/centos/_highlighter.scss +360 -0
- data/_sass/centos/_mixins.scss +4 -0
- data/_sass/centos/_nav.scss +10 -0
- data/_sass/centos/_rssfeeds.scss +17 -0
- data/_sass/centos/_variables.scss +111 -0
- data/_sass/centos/centos.scss +23 -0
- data/_sass/centos/content/_1col.scss +32 -0
- data/_sass/centos/content/_2col.scss +44 -0
- data/_sass/centos/content/_download.scss +17 -0
- data/_sass/centos/content/_sponsors.scss +9 -0
- data/_sass/centos/fonts/_montserrat.scss +256 -0
- data/_sass/centos/header/_home.scss +4 -0
- data/_sass/centos/header/_page.scss +4 -0
- data/_sass/centos/mixins/_content-card.scss +13 -0
- data/_sass/centos/mixins/_content-heading.scss +28 -0
- data/_sass/centos/mixins/_content-toc.scss +18 -0
- data/_sass/centos/mixins/_footer-link.scss +10 -0
- data/_sass/fontawesome/_animated.scss +20 -0
- data/_sass/fontawesome/_bordered-pulled.scss +20 -0
- data/_sass/fontawesome/_core.scss +21 -0
- data/_sass/fontawesome/_fixed-width.scss +6 -0
- data/_sass/fontawesome/_icons.scss +1462 -0
- data/_sass/fontawesome/_larger.scss +23 -0
- data/_sass/fontawesome/_list.scss +18 -0
- data/_sass/fontawesome/_mixins.scss +56 -0
- data/_sass/fontawesome/_rotated-flipped.scss +24 -0
- data/_sass/fontawesome/_screen-reader.scss +5 -0
- data/_sass/fontawesome/_shims.scss +2066 -0
- data/_sass/fontawesome/_stacked.scss +31 -0
- data/_sass/fontawesome/_variables.scss +1479 -0
- data/_sass/fontawesome/brands.scss +23 -0
- data/_sass/fontawesome/fontawesome.scss +16 -0
- data/_sass/fontawesome/regular.scss +23 -0
- data/_sass/fontawesome/solid.scss +24 -0
- data/_sass/fontawesome/v4-shims.scss +6 -0
- data/assets/css/centos.bootstrap.min.scss +4 -0
- data/assets/fonts/Montserrat/Montserrat-Black.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-Black.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-BlackItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-BlackItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-BoldItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-BoldItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraBold.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraBold.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraLight.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraLight.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraLightItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-ExtraLightItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-Italic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-Italic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-Light.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-Light.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-LightItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-LightItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-Medium.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-Medium.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-MediumItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-MediumItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-SemiBold.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-SemiBold.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-SemiBoldItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-SemiBoldItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-Thin.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-Thin.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat-ThinItalic.woff +0 -0
- data/assets/fonts/Montserrat/Montserrat-ThinItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/Montserrat.css +327 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Black.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Black.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-BlackItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-BlackItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Bold.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Bold.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-BoldItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-BoldItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraBold.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraBold.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraBoldItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraBoldItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraLight.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraLight.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraLightItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ExtraLightItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Italic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Italic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Light.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Light.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-LightItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-LightItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Medium.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Medium.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-MediumItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-MediumItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Regular.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Regular.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-SemiBold.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-SemiBold.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-SemiBoldItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-SemiBoldItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Thin.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-Thin.woff2 +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ThinItalic.woff +0 -0
- data/assets/fonts/Montserrat/MontserratAlternates-ThinItalic.woff2 +0 -0
- data/assets/fonts/Montserrat/README.MD +35 -0
- data/assets/fonts/fa-brands-400.eot +0 -0
- data/assets/fonts/fa-brands-400.svg +3717 -0
- data/assets/fonts/fa-brands-400.ttf +0 -0
- data/assets/fonts/fa-brands-400.woff +0 -0
- data/assets/fonts/fa-brands-400.woff2 +0 -0
- data/assets/fonts/fa-regular-400.eot +0 -0
- data/assets/fonts/fa-regular-400.svg +801 -0
- data/assets/fonts/fa-regular-400.ttf +0 -0
- data/assets/fonts/fa-regular-400.woff +0 -0
- data/assets/fonts/fa-regular-400.woff2 +0 -0
- data/assets/fonts/fa-solid-900.eot +0 -0
- data/assets/fonts/fa-solid-900.svg +5028 -0
- data/assets/fonts/fa-solid-900.ttf +0 -0
- data/assets/fonts/fa-solid-900.woff +0 -0
- data/assets/fonts/fa-solid-900.woff2 +0 -0
- data/assets/img/centos-logo-white.png +0 -0
- data/assets/img/centos-motif.png +0 -0
- data/assets/img/favicon.png +0 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/bootstrap.min.js.map +1 -0
- data/assets/js/dataTables.bootstrap4.min.js +14 -0
- data/assets/js/jquery.dataTables.min.js +184 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/jquery.rss.js +11 -0
- data/assets/js/moment.min.js +7 -0
- metadata +357 -0
@@ -0,0 +1,192 @@
|
|
1
|
+
// The dropdown wrapper (`<div>`)
|
2
|
+
.dropup,
|
3
|
+
.dropright,
|
4
|
+
.dropdown,
|
5
|
+
.dropleft {
|
6
|
+
position: relative;
|
7
|
+
}
|
8
|
+
|
9
|
+
.dropdown-toggle {
|
10
|
+
white-space: nowrap;
|
11
|
+
|
12
|
+
// Generate the caret automatically
|
13
|
+
@include caret();
|
14
|
+
}
|
15
|
+
|
16
|
+
// The dropdown menu
|
17
|
+
.dropdown-menu {
|
18
|
+
position: absolute;
|
19
|
+
top: 100%;
|
20
|
+
left: 0;
|
21
|
+
z-index: $zindex-dropdown;
|
22
|
+
display: none; // none by default, but block on "open" of the menu
|
23
|
+
float: left;
|
24
|
+
min-width: $dropdown-min-width;
|
25
|
+
padding: $dropdown-padding-y $dropdown-padding-x;
|
26
|
+
margin: $dropdown-spacer 0 0; // override default ul
|
27
|
+
@include font-size($dropdown-font-size);
|
28
|
+
color: $dropdown-color;
|
29
|
+
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
30
|
+
list-style: none;
|
31
|
+
background-color: $dropdown-bg;
|
32
|
+
background-clip: padding-box;
|
33
|
+
border: $dropdown-border-width solid $dropdown-border-color;
|
34
|
+
@include border-radius($dropdown-border-radius);
|
35
|
+
@include box-shadow($dropdown-box-shadow);
|
36
|
+
}
|
37
|
+
|
38
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
39
|
+
@include media-breakpoint-up($breakpoint) {
|
40
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
41
|
+
|
42
|
+
.dropdown-menu#{$infix}-left {
|
43
|
+
right: auto;
|
44
|
+
left: 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
.dropdown-menu#{$infix}-right {
|
48
|
+
right: 0;
|
49
|
+
left: auto;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
55
|
+
// Just add .dropup after the standard .dropdown class and you're set.
|
56
|
+
.dropup {
|
57
|
+
.dropdown-menu {
|
58
|
+
top: auto;
|
59
|
+
bottom: 100%;
|
60
|
+
margin-top: 0;
|
61
|
+
margin-bottom: $dropdown-spacer;
|
62
|
+
}
|
63
|
+
|
64
|
+
.dropdown-toggle {
|
65
|
+
@include caret(up);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.dropright {
|
70
|
+
.dropdown-menu {
|
71
|
+
top: 0;
|
72
|
+
right: auto;
|
73
|
+
left: 100%;
|
74
|
+
margin-top: 0;
|
75
|
+
margin-left: $dropdown-spacer;
|
76
|
+
}
|
77
|
+
|
78
|
+
.dropdown-toggle {
|
79
|
+
@include caret(right);
|
80
|
+
&::after {
|
81
|
+
vertical-align: 0;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.dropleft {
|
87
|
+
.dropdown-menu {
|
88
|
+
top: 0;
|
89
|
+
right: 100%;
|
90
|
+
left: auto;
|
91
|
+
margin-top: 0;
|
92
|
+
margin-right: $dropdown-spacer;
|
93
|
+
}
|
94
|
+
|
95
|
+
.dropdown-toggle {
|
96
|
+
@include caret(left);
|
97
|
+
&::before {
|
98
|
+
vertical-align: 0;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// When enabled Popper.js, reset basic dropdown position
|
104
|
+
// stylelint-disable-next-line no-duplicate-selectors
|
105
|
+
.dropdown-menu {
|
106
|
+
&[x-placement^="top"],
|
107
|
+
&[x-placement^="right"],
|
108
|
+
&[x-placement^="bottom"],
|
109
|
+
&[x-placement^="left"] {
|
110
|
+
right: auto;
|
111
|
+
bottom: auto;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// Dividers (basically an `<hr>`) within the dropdown
|
116
|
+
.dropdown-divider {
|
117
|
+
@include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y, true);
|
118
|
+
}
|
119
|
+
|
120
|
+
// Links, buttons, and more within the dropdown menu
|
121
|
+
//
|
122
|
+
// `<button>`-specific styles are denoted with `// For <button>s`
|
123
|
+
.dropdown-item {
|
124
|
+
display: block;
|
125
|
+
width: 100%; // For `<button>`s
|
126
|
+
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
127
|
+
clear: both;
|
128
|
+
font-weight: $font-weight-normal;
|
129
|
+
color: $dropdown-link-color;
|
130
|
+
text-align: inherit; // For `<button>`s
|
131
|
+
text-decoration: if($link-decoration == none, null, none);
|
132
|
+
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
133
|
+
background-color: transparent; // For `<button>`s
|
134
|
+
border: 0; // For `<button>`s
|
135
|
+
|
136
|
+
// Prevent dropdown overflow if there's no padding
|
137
|
+
// See https://github.com/twbs/bootstrap/pull/27703
|
138
|
+
@if $dropdown-padding-y == 0 {
|
139
|
+
&:first-child {
|
140
|
+
@include border-top-radius($dropdown-inner-border-radius);
|
141
|
+
}
|
142
|
+
|
143
|
+
&:last-child {
|
144
|
+
@include border-bottom-radius($dropdown-inner-border-radius);
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
@include hover-focus() {
|
149
|
+
color: $dropdown-link-hover-color;
|
150
|
+
text-decoration: none;
|
151
|
+
@include gradient-bg($dropdown-link-hover-bg);
|
152
|
+
}
|
153
|
+
|
154
|
+
&.active,
|
155
|
+
&:active {
|
156
|
+
color: $dropdown-link-active-color;
|
157
|
+
text-decoration: none;
|
158
|
+
@include gradient-bg($dropdown-link-active-bg);
|
159
|
+
}
|
160
|
+
|
161
|
+
&.disabled,
|
162
|
+
&:disabled {
|
163
|
+
color: $dropdown-link-disabled-color;
|
164
|
+
pointer-events: none;
|
165
|
+
background-color: transparent;
|
166
|
+
// Remove CSS gradients if they're enabled
|
167
|
+
@if $enable-gradients {
|
168
|
+
background-image: none;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
.dropdown-menu.show {
|
174
|
+
display: block;
|
175
|
+
}
|
176
|
+
|
177
|
+
// Dropdown section headers
|
178
|
+
.dropdown-header {
|
179
|
+
display: block;
|
180
|
+
padding: $dropdown-header-padding;
|
181
|
+
margin-bottom: 0; // for use with heading elements
|
182
|
+
@include font-size($font-size-sm);
|
183
|
+
color: $dropdown-header-color;
|
184
|
+
white-space: nowrap; // as with > li > a
|
185
|
+
}
|
186
|
+
|
187
|
+
// Dropdown text
|
188
|
+
.dropdown-item-text {
|
189
|
+
display: block;
|
190
|
+
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
191
|
+
color: $dropdown-link-color;
|
192
|
+
}
|
@@ -0,0 +1,347 @@
|
|
1
|
+
// stylelint-disable selector-no-qualifying-type
|
2
|
+
|
3
|
+
//
|
4
|
+
// Textual form controls
|
5
|
+
//
|
6
|
+
|
7
|
+
.form-control {
|
8
|
+
display: block;
|
9
|
+
width: 100%;
|
10
|
+
height: $input-height;
|
11
|
+
padding: $input-padding-y $input-padding-x;
|
12
|
+
font-family: $input-font-family;
|
13
|
+
@include font-size($input-font-size);
|
14
|
+
font-weight: $input-font-weight;
|
15
|
+
line-height: $input-line-height;
|
16
|
+
color: $input-color;
|
17
|
+
background-color: $input-bg;
|
18
|
+
background-clip: padding-box;
|
19
|
+
border: $input-border-width solid $input-border-color;
|
20
|
+
|
21
|
+
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
22
|
+
@include border-radius($input-border-radius, 0);
|
23
|
+
|
24
|
+
@include box-shadow($input-box-shadow);
|
25
|
+
@include transition($input-transition);
|
26
|
+
|
27
|
+
// Unstyle the caret on `<select>`s in IE10+.
|
28
|
+
&::-ms-expand {
|
29
|
+
background-color: transparent;
|
30
|
+
border: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
// Remove select outline from select box in FF
|
34
|
+
&:-moz-focusring {
|
35
|
+
color: transparent;
|
36
|
+
text-shadow: 0 0 0 $input-color;
|
37
|
+
}
|
38
|
+
|
39
|
+
// Customize the `:focus` state to imitate native WebKit styles.
|
40
|
+
@include form-control-focus($ignore-warning: true);
|
41
|
+
|
42
|
+
// Placeholder
|
43
|
+
&::placeholder {
|
44
|
+
color: $input-placeholder-color;
|
45
|
+
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
|
46
|
+
opacity: 1;
|
47
|
+
}
|
48
|
+
|
49
|
+
// Disabled and read-only inputs
|
50
|
+
//
|
51
|
+
// HTML5 says that controls under a fieldset > legend:first-child won't be
|
52
|
+
// disabled if the fieldset is disabled. Due to implementation difficulty, we
|
53
|
+
// don't honor that edge case; we style them as disabled anyway.
|
54
|
+
&:disabled,
|
55
|
+
&[readonly] {
|
56
|
+
background-color: $input-disabled-bg;
|
57
|
+
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
58
|
+
opacity: 1;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
input[type="date"],
|
63
|
+
input[type="time"],
|
64
|
+
input[type="datetime-local"],
|
65
|
+
input[type="month"] {
|
66
|
+
&.form-control {
|
67
|
+
appearance: none; // Fix appearance for date inputs in Safari
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
select.form-control {
|
72
|
+
&:focus::-ms-value {
|
73
|
+
// Suppress the nested default white text on blue background highlight given to
|
74
|
+
// the selected option text when the (still closed) <select> receives focus
|
75
|
+
// in IE and (under certain conditions) Edge, as it looks bad and cannot be made to
|
76
|
+
// match the appearance of the native widget.
|
77
|
+
// See https://github.com/twbs/bootstrap/issues/19398.
|
78
|
+
color: $input-color;
|
79
|
+
background-color: $input-bg;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
// Make file inputs better match text inputs by forcing them to new lines.
|
84
|
+
.form-control-file,
|
85
|
+
.form-control-range {
|
86
|
+
display: block;
|
87
|
+
width: 100%;
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
//
|
92
|
+
// Labels
|
93
|
+
//
|
94
|
+
|
95
|
+
// For use with horizontal and inline forms, when you need the label (or legend)
|
96
|
+
// text to align with the form controls.
|
97
|
+
.col-form-label {
|
98
|
+
padding-top: add($input-padding-y, $input-border-width);
|
99
|
+
padding-bottom: add($input-padding-y, $input-border-width);
|
100
|
+
margin-bottom: 0; // Override the `<label>/<legend>` default
|
101
|
+
@include font-size(inherit); // Override the `<legend>` default
|
102
|
+
line-height: $input-line-height;
|
103
|
+
}
|
104
|
+
|
105
|
+
.col-form-label-lg {
|
106
|
+
padding-top: add($input-padding-y-lg, $input-border-width);
|
107
|
+
padding-bottom: add($input-padding-y-lg, $input-border-width);
|
108
|
+
@include font-size($input-font-size-lg);
|
109
|
+
line-height: $input-line-height-lg;
|
110
|
+
}
|
111
|
+
|
112
|
+
.col-form-label-sm {
|
113
|
+
padding-top: add($input-padding-y-sm, $input-border-width);
|
114
|
+
padding-bottom: add($input-padding-y-sm, $input-border-width);
|
115
|
+
@include font-size($input-font-size-sm);
|
116
|
+
line-height: $input-line-height-sm;
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
// Readonly controls as plain text
|
121
|
+
//
|
122
|
+
// Apply class to a readonly input to make it appear like regular plain
|
123
|
+
// text (without any border, background color, focus indicator)
|
124
|
+
|
125
|
+
.form-control-plaintext {
|
126
|
+
display: block;
|
127
|
+
width: 100%;
|
128
|
+
padding: $input-padding-y 0;
|
129
|
+
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
130
|
+
@include font-size($input-font-size);
|
131
|
+
line-height: $input-line-height;
|
132
|
+
color: $input-plaintext-color;
|
133
|
+
background-color: transparent;
|
134
|
+
border: solid transparent;
|
135
|
+
border-width: $input-border-width 0;
|
136
|
+
|
137
|
+
&.form-control-sm,
|
138
|
+
&.form-control-lg {
|
139
|
+
padding-right: 0;
|
140
|
+
padding-left: 0;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
|
145
|
+
// Form control sizing
|
146
|
+
//
|
147
|
+
// Build on `.form-control` with modifier classes to decrease or increase the
|
148
|
+
// height and font-size of form controls.
|
149
|
+
//
|
150
|
+
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
151
|
+
|
152
|
+
.form-control-sm {
|
153
|
+
height: $input-height-sm;
|
154
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
155
|
+
@include font-size($input-font-size-sm);
|
156
|
+
line-height: $input-line-height-sm;
|
157
|
+
@include border-radius($input-border-radius-sm);
|
158
|
+
}
|
159
|
+
|
160
|
+
.form-control-lg {
|
161
|
+
height: $input-height-lg;
|
162
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
163
|
+
@include font-size($input-font-size-lg);
|
164
|
+
line-height: $input-line-height-lg;
|
165
|
+
@include border-radius($input-border-radius-lg);
|
166
|
+
}
|
167
|
+
|
168
|
+
// stylelint-disable-next-line no-duplicate-selectors
|
169
|
+
select.form-control {
|
170
|
+
&[size],
|
171
|
+
&[multiple] {
|
172
|
+
height: auto;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
textarea.form-control {
|
177
|
+
height: auto;
|
178
|
+
}
|
179
|
+
|
180
|
+
// Form groups
|
181
|
+
//
|
182
|
+
// Designed to help with the organization and spacing of vertical forms. For
|
183
|
+
// horizontal forms, use the predefined grid classes.
|
184
|
+
|
185
|
+
.form-group {
|
186
|
+
margin-bottom: $form-group-margin-bottom;
|
187
|
+
}
|
188
|
+
|
189
|
+
.form-text {
|
190
|
+
display: block;
|
191
|
+
margin-top: $form-text-margin-top;
|
192
|
+
}
|
193
|
+
|
194
|
+
|
195
|
+
// Form grid
|
196
|
+
//
|
197
|
+
// Special replacement for our grid system's `.row` for tighter form layouts.
|
198
|
+
|
199
|
+
.form-row {
|
200
|
+
display: flex;
|
201
|
+
flex-wrap: wrap;
|
202
|
+
margin-right: -$form-grid-gutter-width / 2;
|
203
|
+
margin-left: -$form-grid-gutter-width / 2;
|
204
|
+
|
205
|
+
> .col,
|
206
|
+
> [class*="col-"] {
|
207
|
+
padding-right: $form-grid-gutter-width / 2;
|
208
|
+
padding-left: $form-grid-gutter-width / 2;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
|
213
|
+
// Checkboxes and radios
|
214
|
+
//
|
215
|
+
// Indent the labels to position radios/checkboxes as hanging controls.
|
216
|
+
|
217
|
+
.form-check {
|
218
|
+
position: relative;
|
219
|
+
display: block;
|
220
|
+
padding-left: $form-check-input-gutter;
|
221
|
+
}
|
222
|
+
|
223
|
+
.form-check-input {
|
224
|
+
position: absolute;
|
225
|
+
margin-top: $form-check-input-margin-y;
|
226
|
+
margin-left: -$form-check-input-gutter;
|
227
|
+
|
228
|
+
// Use [disabled] and :disabled for workaround https://github.com/twbs/bootstrap/issues/28247
|
229
|
+
&[disabled] ~ .form-check-label,
|
230
|
+
&:disabled ~ .form-check-label {
|
231
|
+
color: $text-muted;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
|
235
|
+
.form-check-label {
|
236
|
+
margin-bottom: 0; // Override default `<label>` bottom margin
|
237
|
+
}
|
238
|
+
|
239
|
+
.form-check-inline {
|
240
|
+
display: inline-flex;
|
241
|
+
align-items: center;
|
242
|
+
padding-left: 0; // Override base .form-check
|
243
|
+
margin-right: $form-check-inline-margin-x;
|
244
|
+
|
245
|
+
// Undo .form-check-input defaults and add some `margin-right`.
|
246
|
+
.form-check-input {
|
247
|
+
position: static;
|
248
|
+
margin-top: 0;
|
249
|
+
margin-right: $form-check-inline-input-margin-x;
|
250
|
+
margin-left: 0;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
|
255
|
+
// Form validation
|
256
|
+
//
|
257
|
+
// Provide feedback to users when form field values are valid or invalid. Works
|
258
|
+
// primarily for client-side validation via scoped `:invalid` and `:valid`
|
259
|
+
// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
|
260
|
+
// server side validation.
|
261
|
+
|
262
|
+
@each $state, $data in $form-validation-states {
|
263
|
+
@include form-validation-state($state, map-get($data, color), map-get($data, icon));
|
264
|
+
}
|
265
|
+
|
266
|
+
// Inline forms
|
267
|
+
//
|
268
|
+
// Make forms appear inline(-block) by adding the `.form-inline` class. Inline
|
269
|
+
// forms begin stacked on extra small (mobile) devices and then go inline when
|
270
|
+
// viewports reach <768px.
|
271
|
+
//
|
272
|
+
// Requires wrapping inputs and labels with `.form-group` for proper display of
|
273
|
+
// default HTML form controls and our custom form controls (e.g., input groups).
|
274
|
+
|
275
|
+
.form-inline {
|
276
|
+
display: flex;
|
277
|
+
flex-flow: row wrap;
|
278
|
+
align-items: center; // Prevent shorter elements from growing to same height as others (e.g., small buttons growing to normal sized button height)
|
279
|
+
|
280
|
+
// Because we use flex, the initial sizing of checkboxes is collapsed and
|
281
|
+
// doesn't occupy the full-width (which is what we want for xs grid tier),
|
282
|
+
// so we force that here.
|
283
|
+
.form-check {
|
284
|
+
width: 100%;
|
285
|
+
}
|
286
|
+
|
287
|
+
// Kick in the inline
|
288
|
+
@include media-breakpoint-up(sm) {
|
289
|
+
label {
|
290
|
+
display: flex;
|
291
|
+
align-items: center;
|
292
|
+
justify-content: center;
|
293
|
+
margin-bottom: 0;
|
294
|
+
}
|
295
|
+
|
296
|
+
// Inline-block all the things for "inline"
|
297
|
+
.form-group {
|
298
|
+
display: flex;
|
299
|
+
flex: 0 0 auto;
|
300
|
+
flex-flow: row wrap;
|
301
|
+
align-items: center;
|
302
|
+
margin-bottom: 0;
|
303
|
+
}
|
304
|
+
|
305
|
+
// Allow folks to *not* use `.form-group`
|
306
|
+
.form-control {
|
307
|
+
display: inline-block;
|
308
|
+
width: auto; // Prevent labels from stacking above inputs in `.form-group`
|
309
|
+
vertical-align: middle;
|
310
|
+
}
|
311
|
+
|
312
|
+
// Make static controls behave like regular ones
|
313
|
+
.form-control-plaintext {
|
314
|
+
display: inline-block;
|
315
|
+
}
|
316
|
+
|
317
|
+
.input-group,
|
318
|
+
.custom-select {
|
319
|
+
width: auto;
|
320
|
+
}
|
321
|
+
|
322
|
+
// Remove default margin on radios/checkboxes that were used for stacking, and
|
323
|
+
// then undo the floating of radios and checkboxes to match.
|
324
|
+
.form-check {
|
325
|
+
display: flex;
|
326
|
+
align-items: center;
|
327
|
+
justify-content: center;
|
328
|
+
width: auto;
|
329
|
+
padding-left: 0;
|
330
|
+
}
|
331
|
+
.form-check-input {
|
332
|
+
position: relative;
|
333
|
+
flex-shrink: 0;
|
334
|
+
margin-top: 0;
|
335
|
+
margin-right: $form-check-input-margin-x;
|
336
|
+
margin-left: 0;
|
337
|
+
}
|
338
|
+
|
339
|
+
.custom-control {
|
340
|
+
align-items: center;
|
341
|
+
justify-content: center;
|
342
|
+
}
|
343
|
+
.custom-control-label {
|
344
|
+
margin-bottom: 0;
|
345
|
+
}
|
346
|
+
}
|
347
|
+
}
|