jekyll-theme-centos 2.2.0.pre.true.3 → 2.2.1.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/aws-images.csv +81 -0
- data/_data/full-altarchlist.csv +74 -0
- data/_data/full-mirrorlist.csv +609 -0
- data/_includes/breadcrumbs.html +1 -1
- data/_includes/default/header.html +10 -2
- data/_includes/footer.html +1 -1
- data/_includes/head-datatables.html +3 -3
- data/_includes/head.html +1 -1
- data/_includes/home/distributions.html +1 -1
- data/_includes/home/header.html +2 -2
- data/_includes/home/news-and-events.html +6 -9
- data/_includes/home/planet.html +9 -10
- data/_includes/home/sponsors.html +1 -1
- data/_includes/people/about.html +12 -14
- data/_includes/people/posts.html +16 -14
- data/_includes/people/projects.html +19 -17
- data/_includes/people/pubkeys.html +16 -17
- data/_includes/people/support.html +13 -10
- data/_includes/post-nav-explorer.html +1 -1
- data/_includes/search.html +2 -2
- data/_layouts/blog.html +1 -1
- data/_layouts/default.html +2 -10
- data/_layouts/home.html +0 -1
- data/_sass/bootstrap/_accordion.scss +149 -0
- data/_sass/bootstrap/_alert.scss +71 -0
- data/_sass/bootstrap/_badge.scss +38 -0
- data/_sass/bootstrap/_breadcrumb.scss +40 -0
- data/_sass/bootstrap/_button-group.scss +142 -0
- data/_sass/bootstrap/_buttons.scss +207 -0
- data/_sass/bootstrap/_card.scss +234 -0
- data/_sass/bootstrap/_carousel.scss +226 -0
- data/_sass/bootstrap/_close.scss +40 -0
- data/_sass/bootstrap/_containers.scss +41 -0
- data/_sass/bootstrap/_dropdown.scss +249 -0
- data/_sass/bootstrap/_forms.scss +9 -0
- data/_sass/bootstrap/_functions.scss +302 -0
- data/_sass/bootstrap/_grid.scss +33 -0
- data/_sass/bootstrap/_helpers.scss +10 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_list-group.scss +192 -0
- data/_sass/bootstrap/_maps.scss +54 -0
- data/_sass/bootstrap/_mixins.scss +43 -0
- data/_sass/bootstrap/_modal.scss +237 -0
- data/_sass/bootstrap/_nav.scss +172 -0
- data/_sass/bootstrap/_navbar.scss +278 -0
- data/_sass/bootstrap/_offcanvas.scss +144 -0
- data/_sass/bootstrap/_pagination.scss +109 -0
- data/_sass/bootstrap/_placeholders.scss +51 -0
- data/_sass/bootstrap/_popover.scss +196 -0
- data/_sass/bootstrap/_progress.scss +59 -0
- data/_sass/bootstrap/_reboot.scss +610 -0
- data/_sass/bootstrap/_root.scss +73 -0
- data/_sass/bootstrap/_spinners.scss +85 -0
- data/_sass/bootstrap/_tables.scss +164 -0
- data/_sass/bootstrap/_toasts.scss +73 -0
- data/_sass/bootstrap/_tooltip.scss +120 -0
- data/_sass/bootstrap/_transitions.scss +27 -0
- data/_sass/bootstrap/_type.scss +106 -0
- data/_sass/bootstrap/_utilities.scss +647 -0
- data/_sass/bootstrap/_variables.scss +1634 -0
- data/_sass/bootstrap/bootstrap-grid.scss +64 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +9 -0
- data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
- data/_sass/bootstrap/bootstrap.scss +51 -0
- data/_sass/bootstrap/forms/_floating-labels.scss +75 -0
- data/_sass/bootstrap/forms/_form-check.scss +175 -0
- data/_sass/bootstrap/forms/_form-control.scss +194 -0
- data/_sass/bootstrap/forms/_form-range.scss +91 -0
- data/_sass/bootstrap/forms/_form-select.scss +71 -0
- data/_sass/bootstrap/forms/_form-text.scss +11 -0
- data/_sass/bootstrap/forms/_input-group.scss +132 -0
- data/_sass/bootstrap/forms/_labels.scss +36 -0
- data/_sass/bootstrap/forms/_validation.scss +12 -0
- data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
- data/_sass/bootstrap/helpers/_color-bg.scss +10 -0
- data/_sass/bootstrap/helpers/_colored-links.scss +12 -0
- data/_sass/bootstrap/helpers/_position.scss +36 -0
- data/_sass/bootstrap/helpers/_ratio.scss +26 -0
- data/_sass/bootstrap/helpers/_stacks.scss +15 -0
- data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
- data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
- data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/_sass/bootstrap/helpers/_vr.scss +8 -0
- data/_sass/bootstrap/mixins/_alert.scss +15 -0
- data/_sass/bootstrap/mixins/_backdrop.scss +14 -0
- data/_sass/bootstrap/mixins/_banner.scss +9 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +78 -0
- data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
- data/_sass/bootstrap/mixins/_buttons.scss +70 -0
- data/_sass/bootstrap/mixins/_caret.scss +64 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
- data/_sass/bootstrap/mixins/_color-scheme.scss +7 -0
- data/_sass/bootstrap/mixins/_container.scss +11 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_forms.scss +152 -0
- data/_sass/bootstrap/mixins/_gradients.scss +47 -0
- data/_sass/bootstrap/mixins/_grid.scss +151 -0
- data/_sass/bootstrap/mixins/_image.scss +16 -0
- data/_sass/bootstrap/mixins/_list-group.scss +24 -0
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_pagination.scss +10 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_table-variants.scss +24 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +26 -0
- data/_sass/bootstrap/mixins/_utilities.scss +97 -0
- data/_sass/bootstrap/mixins/_visually-hidden.scss +29 -0
- data/_sass/bootstrap/utilities/_api.scss +47 -0
- data/_sass/bootstrap/vendor/_rfs.scss +354 -0
- data/_sass/centos/_headings.scss +17 -0
- data/_sass/centos/_links.scss +5 -56
- data/_sass/centos/_variables.scss +2 -4
- data/_sass/fontawesome-free/_animated.scss +153 -0
- data/_sass/fontawesome-free/_bordered-pulled.scss +20 -0
- data/_sass/fontawesome-free/_core.scss +43 -0
- data/_sass/fontawesome-free/_fixed-width.scss +7 -0
- data/_sass/fontawesome-free/_functions.scss +57 -0
- data/_sass/fontawesome-free/_icons.scss +9 -0
- data/_sass/fontawesome-free/_list.scss +18 -0
- data/_sass/fontawesome-free/_mixins.scss +75 -0
- data/_sass/fontawesome-free/_rotated-flipped.scss +31 -0
- data/_sass/fontawesome-free/_screen-reader.scss +14 -0
- data/_sass/fontawesome-free/_shims.scss +2042 -0
- data/_sass/fontawesome-free/_sizing.scss +16 -0
- data/_sass/fontawesome-free/_stacked.scss +32 -0
- data/_sass/fontawesome-free/_variables.scss +4957 -0
- data/_sass/fontawesome-free/brands.scss +30 -0
- data/_sass/fontawesome-free/fontawesome.scss +21 -0
- data/_sass/fontawesome-free/regular.scss +26 -0
- data/_sass/fontawesome-free/solid.scss +26 -0
- data/_sass/fontawesome-free/v4-shims.scss +11 -0
- data/_sass/montserrat/_montserrat.scss +79 -0
- data/_sass/overpass-mono/_overpass-mono.scss +33 -0
- data/assets/css/dataTables.bootstrap5.css +416 -0
- data/assets/css/dataTables.bootstrap5.min.css +2 -2
- data/assets/css/stylesheet.min.scss +15 -12
- data/assets/img/anaconda-symbolic.svg +1 -0
- data/assets/img/anaconda.svg +1 -0
- data/assets/img/centos-dynamicmsg-logo.svg +1 -0
- data/assets/img/centos-dynamicmsg-type.svg +1 -0
- data/assets/img/centos-dynamicmsg-whitelogo.svg +1 -0
- data/assets/img/centos-dynamicmsg-whitetype.svg +1 -0
- data/assets/img/centos-gdm-whitelogo.svg +1 -0
- data/assets/img/centos-ipa-whiteheader.svg +1 -0
- data/assets/img/centos-logo-2bits.svg +1 -0
- data/assets/img/centos-logo.svg +1 -103
- data/assets/img/centos-message-logo.svg +1 -0
- data/assets/img/centos-motif.png +0 -0
- data/assets/img/centos-poweredby-logo.svg +1 -0
- data/assets/img/centos-symbol-2bits.svg +1 -0
- data/assets/img/centos-symbol.svg +1 -69
- data/assets/img/centos-type.svg +1 -0
- data/assets/img/centos-vertical-logo.svg +1 -0
- data/assets/img/centos-vertical-message-logo.svg +1 -0
- data/assets/img/centos-whitelogo.svg +1 -109
- data/assets/js/bootstrap.bundle.js +7075 -0
- data/assets/js/bootstrap.bundle.js.map +1 -0
- data/assets/js/bootstrap.bundle.min.js +2 -2
- data/assets/js/bootstrap.bundle.min.js.map +1 -1
- data/assets/js/bootstrap.esm.js +5202 -0
- data/assets/js/bootstrap.esm.js.map +1 -0
- data/assets/js/bootstrap.esm.min.js +7 -0
- data/assets/js/bootstrap.esm.min.js.map +1 -0
- data/assets/js/bootstrap.js +5249 -0
- data/assets/js/bootstrap.js.map +1 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/bootstrap.min.js.map +1 -0
- data/assets/js/clipboard.js +890 -0
- data/assets/js/clipboard.min.js +0 -0
- data/assets/js/dataTables.bootstrap5.js +200 -0
- data/assets/js/dataTables.bootstrap5.min.js +4 -14
- data/assets/js/dataTables.bootstrap5.min.mjs +4 -0
- data/assets/js/dataTables.bootstrap5.mjs +164 -0
- data/assets/js/jquery.js +10993 -0
- data/assets/js/jquery.min.js +2 -2
- data/assets/js/jquery.min.map +1 -1
- data/assets/js/jquery.slim.js +8894 -0
- data/assets/js/jquery.slim.min.js +2 -0
- data/assets/js/jquery.slim.min.map +1 -0
- data/assets/webfonts/fa-brands-400.ttf +0 -0
- data/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/webfonts/fa-regular-400.ttf +0 -0
- data/assets/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/webfonts/fa-solid-900.ttf +0 -0
- data/assets/webfonts/fa-solid-900.woff2 +0 -0
- data/assets/webfonts/fa-v4compatibility.ttf +0 -0
- data/assets/webfonts/fa-v4compatibility.woff2 +0 -0
- data/assets/webfonts/overpass-mono-bold.woff +0 -0
- data/assets/webfonts/overpass-mono-bold.woff2 +0 -0
- data/assets/webfonts/overpass-mono-light.woff +0 -0
- data/assets/webfonts/overpass-mono-light.woff2 +0 -0
- data/assets/webfonts/overpass-mono-regular.woff +0 -0
- data/assets/webfonts/overpass-mono-regular.woff2 +0 -0
- data/assets/webfonts/overpass-mono-semibold.woff +0 -0
- data/assets/webfonts/overpass-mono-semibold.woff2 +0 -0
- data/default.md +165 -0
- data/index.md +9 -0
- data/people.md +63 -0
- metadata +184 -143
- data/_sass/centos/centos-blog.scss +0 -46
- data/_sass/centos/centos-httpd.scss +0 -27
- data/_sass/centos/centos-lists.scss +0 -161
- data/_sass/centos/fonts/_montserrat.scss +0 -253
- data/_sass/centos/fonts/_overpass.scss +0 -43
- data/assets/img/centos-symbol-with-shadow.svg +0 -89
- data/assets/img/centos-symbol.png +0 -0
- data/assets/img/distributions/centos-linux/7/screenshot-1.png +0 -0
- data/assets/img/distributions/centos-linux/7/screenshot-2.png +0 -0
- data/assets/img/distributions/centos-linux/7/screenshot-3.png +0 -0
- data/assets/img/distributions/centos-linux/7/screenshot-4.png +0 -0
- data/assets/img/distributions/centos-stream/9/screenshot-1.png +0 -0
- data/assets/img/distributions/centos-stream/9/screenshot-2.png +0 -0
- data/assets/img/distributions/centos-stream/9/screenshot-3.png +0 -0
- data/assets/img/favicon.png +0 -0
- data/assets/img/sponsors/15minuteservers.png +0 -0
- data/assets/img/sponsors/2014-11-10-vi.gif +0 -0
- data/assets/img/sponsors/45drives.png +0 -0
- data/assets/img/sponsors/BackupVault.png +0 -0
- data/assets/img/sponsors/Banner_Castlegem_240x60.gif +0 -0
- data/assets/img/sponsors/CentOS-CBSL-02.png +0 -0
- data/assets/img/sponsors/GameHost.png +0 -0
- data/assets/img/sponsors/HOST1PLUS_240x60.jpg +0 -0
- data/assets/img/sponsors/HostDime_Logo_Slogan_300_71.png +0 -0
- data/assets/img/sponsors/NDCHost.png +0 -0
- data/assets/img/sponsors/OffshoreServers.png +0 -0
- data/assets/img/sponsors/OffshoreVPS.png +0 -0
- data/assets/img/sponsors/PNAP-Logo-CMYK.JPG +0 -0
- data/assets/img/sponsors/PNAP_Banner.gif +0 -0
- data/assets/img/sponsors/PSW_Banner_240x60.jpg +0 -0
- data/assets/img/sponsors/ad_lfcpxen_240x60.png +0 -0
- data/assets/img/sponsors/altushost.png +0 -0
- data/assets/img/sponsors/am-logo.png +0 -0
- data/assets/img/sponsors/aws.png +0 -0
- data/assets/img/sponsors/baseip_240x60.jpg +0 -0
- data/assets/img/sponsors/cdn77.png +0 -0
- data/assets/img/sponsors/centos-serverhub.png +0 -0
- data/assets/img/sponsors/clientvps.png +0 -0
- data/assets/img/sponsors/codero.png +0 -0
- data/assets/img/sponsors/codero_small.gif +0 -0
- data/assets/img/sponsors/coloau.png +0 -0
- data/assets/img/sponsors/colocation-america.png +0 -0
- data/assets/img/sponsors/cologuard.png +0 -0
- data/assets/img/sponsors/constant.png +0 -0
- data/assets/img/sponsors/coreix.jpg +0 -0
- data/assets/img/sponsors/cpanel.png +0 -0
- data/assets/img/sponsors/dbd_240_60.jpg +0 -0
- data/assets/img/sponsors/dedicatednow.gif +0 -0
- data/assets/img/sponsors/dedicatedsolutions.png +0 -0
- data/assets/img/sponsors/dtsnet.png +0 -0
- data/assets/img/sponsors/eStruxture.png +0 -0
- data/assets/img/sponsors/equinix.png +0 -0
- data/assets/img/sponsors/eukhost.png +0 -0
- data/assets/img/sponsors/exabytes.png +0 -0
- data/assets/img/sponsors/fasthosts.png +0 -0
- data/assets/img/sponsors/galaxy_small.gif +0 -0
- data/assets/img/sponsors/globotech.png +0 -0
- data/assets/img/sponsors/godaddy.jpg +0 -0
- data/assets/img/sponsors/heficed.png +0 -0
- data/assets/img/sponsors/host-engine.png +0 -0
- data/assets/img/sponsors/host-stage.png +0 -0
- data/assets/img/sponsors/host1plus_logo.png +0 -0
- data/assets/img/sponsors/hostasaurus240x60banner.gif +0 -0
- data/assets/img/sponsors/hostdime_br_small.jpg +0 -0
- data/assets/img/sponsors/hostingswift240x60.gif +0 -0
- data/assets/img/sponsors/hostiserver.png +0 -0
- data/assets/img/sponsors/hostkey_small.gif +0 -0
- data/assets/img/sponsors/internap.png +0 -0
- data/assets/img/sponsors/internetx.gif +0 -0
- data/assets/img/sponsors/intevation.png +0 -0
- data/assets/img/sponsors/iomart-240x60.gif +0 -0
- data/assets/img/sponsors/iomart.png +0 -0
- data/assets/img/sponsors/itsyndicate.png +0 -0
- data/assets/img/sponsors/leaseweb.png +0 -0
- data/assets/img/sponsors/liquidweb.png +0 -0
- data/assets/img/sponsors/lyrahosting.png +0 -0
- data/assets/img/sponsors/miva.png +0 -0
- data/assets/img/sponsors/multacom-240x60.gif +0 -0
- data/assets/img/sponsors/ndc_host_240.gif +0 -0
- data/assets/img/sponsors/netelligent_small.png +0 -0
- data/assets/img/sponsors/nexcess.png +0 -0
- data/assets/img/sponsors/packet.png +0 -0
- data/assets/img/sponsors/pidginhost.png +0 -0
- data/assets/img/sponsors/profvds.png +0 -0
- data/assets/img/sponsors/psychz-234x60.jpg +0 -0
- data/assets/img/sponsors/psychz_net.gif +0 -0
- data/assets/img/sponsors/ptisp.png +0 -0
- data/assets/img/sponsors/redstation.png +0 -0
- data/assets/img/sponsors/scaleway_logo.png +0 -0
- data/assets/img/sponsors/seedvps.png +0 -0
- data/assets/img/sponsors/serverel.png +0 -0
- data/assets/img/sponsors/servermania.gif +0 -0
- data/assets/img/sponsors/serverpoint.png +0 -0
- data/assets/img/sponsors/serverpronto_small.gif +0 -0
- data/assets/img/sponsors/shinjirubanner260x60.gif +0 -0
- data/assets/img/sponsors/space-hosting.png +0 -0
- data/assets/img/sponsors/sponsor_placeholder-240-60.png +0 -0
- data/assets/img/sponsors/steadfast.png +0 -0
- data/assets/img/sponsors/steadfast_234x60.gif +0 -0
- data/assets/img/sponsors/tailoredservers.png +0 -0
- data/assets/img/sponsors/trabia.png +0 -0
- data/assets/img/sponsors/vhostvn.gif +0 -0
- data/assets/img/sponsors/vitelity.png +0 -0
- data/assets/img/sponsors/voyant.png +0 -0
- data/assets/img/sponsors/vsys.png +0 -0
- data/assets/img/sponsors/webnx1.png +0 -0
- data/assets/img/sponsors/wehaveservers.png +0 -0
- data/assets/img/sponsors/whitelabelitsolutions.gif +0 -0
- data/assets/img/sponsors/wow.234x60.gif +0 -0
- data/assets/js/jquery.dataTables.min.js +0 -192
- data/assets/webfonts/Overpass-Black.woff2 +0 -0
- data/assets/webfonts/Overpass-BlackItalic.woff2 +0 -0
- data/assets/webfonts/Overpass-Bold.woff2 +0 -0
- data/assets/webfonts/Overpass-BoldItalic.woff2 +0 -0
- data/assets/webfonts/Overpass-ExtraBold.woff2 +0 -0
- data/assets/webfonts/Overpass-ExtraBoldItalic.woff2 +0 -0
- data/assets/webfonts/Overpass-ExtraLight.woff2 +0 -0
- data/assets/webfonts/Overpass-ExtraLightItalic.woff2 +0 -0
- data/assets/webfonts/Overpass-Italic.woff2 +0 -0
- data/assets/webfonts/Overpass-Light.woff2 +0 -0
- data/assets/webfonts/Overpass-LightItalic.woff2 +0 -0
- data/assets/webfonts/Overpass-Medium.woff2 +0 -0
- data/assets/webfonts/Overpass-MediumItalic.woff2 +0 -0
- data/assets/webfonts/Overpass-Regular.woff2 +0 -0
- data/assets/webfonts/Overpass-SemiBold.woff2 +0 -0
- data/assets/webfonts/Overpass-SemiBoldItalic.woff2 +0 -0
- data/assets/webfonts/Overpass-Thin.woff2 +0 -0
- data/assets/webfonts/Overpass-ThinItalic.woff2 +0 -0
- data/assets/webfonts/OverpassMono-Bold.woff2 +0 -0
- data/assets/webfonts/OverpassMono-Light.woff2 +0 -0
- data/assets/webfonts/OverpassMono-Medium.woff2 +0 -0
- data/assets/webfonts/OverpassMono-Regular.woff2 +0 -0
- data/assets/webfonts/OverpassMono-SemiBold.woff2 +0 -0
- data/assets/webfonts/fa-brands-400.woff +0 -0
- data/assets/webfonts/fa-regular-400.woff +0 -0
- data/assets/webfonts/fa-solid-900.woff +0 -0
@@ -0,0 +1,249 @@
|
|
1
|
+
// The dropdown wrapper (`<div>`)
|
2
|
+
.dropup,
|
3
|
+
.dropend,
|
4
|
+
.dropdown,
|
5
|
+
.dropstart,
|
6
|
+
.dropup-center,
|
7
|
+
.dropdown-center {
|
8
|
+
position: relative;
|
9
|
+
}
|
10
|
+
|
11
|
+
.dropdown-toggle {
|
12
|
+
white-space: nowrap;
|
13
|
+
|
14
|
+
// Generate the caret automatically
|
15
|
+
@include caret();
|
16
|
+
}
|
17
|
+
|
18
|
+
// The dropdown menu
|
19
|
+
.dropdown-menu {
|
20
|
+
// scss-docs-start dropdown-css-vars
|
21
|
+
--#{$prefix}dropdown-zindex: #{$zindex-dropdown};
|
22
|
+
--#{$prefix}dropdown-min-width: #{$dropdown-min-width};
|
23
|
+
--#{$prefix}dropdown-padding-x: #{$dropdown-padding-x};
|
24
|
+
--#{$prefix}dropdown-padding-y: #{$dropdown-padding-y};
|
25
|
+
--#{$prefix}dropdown-spacer: #{$dropdown-spacer};
|
26
|
+
@include rfs($dropdown-font-size, --#{$prefix}dropdown-font-size);
|
27
|
+
--#{$prefix}dropdown-color: #{$dropdown-color};
|
28
|
+
--#{$prefix}dropdown-bg: #{$dropdown-bg};
|
29
|
+
--#{$prefix}dropdown-border-color: #{$dropdown-border-color};
|
30
|
+
--#{$prefix}dropdown-border-radius: #{$dropdown-border-radius};
|
31
|
+
--#{$prefix}dropdown-border-width: #{$dropdown-border-width};
|
32
|
+
--#{$prefix}dropdown-inner-border-radius: #{$dropdown-inner-border-radius};
|
33
|
+
--#{$prefix}dropdown-divider-bg: #{$dropdown-divider-bg};
|
34
|
+
--#{$prefix}dropdown-divider-margin-y: #{$dropdown-divider-margin-y};
|
35
|
+
--#{$prefix}dropdown-box-shadow: #{$dropdown-box-shadow};
|
36
|
+
--#{$prefix}dropdown-link-color: #{$dropdown-link-color};
|
37
|
+
--#{$prefix}dropdown-link-hover-color: #{$dropdown-link-hover-color};
|
38
|
+
--#{$prefix}dropdown-link-hover-bg: #{$dropdown-link-hover-bg};
|
39
|
+
--#{$prefix}dropdown-link-active-color: #{$dropdown-link-active-color};
|
40
|
+
--#{$prefix}dropdown-link-active-bg: #{$dropdown-link-active-bg};
|
41
|
+
--#{$prefix}dropdown-link-disabled-color: #{$dropdown-link-disabled-color};
|
42
|
+
--#{$prefix}dropdown-item-padding-x: #{$dropdown-item-padding-x};
|
43
|
+
--#{$prefix}dropdown-item-padding-y: #{$dropdown-item-padding-y};
|
44
|
+
--#{$prefix}dropdown-header-color: #{$dropdown-header-color};
|
45
|
+
--#{$prefix}dropdown-header-padding-x: #{$dropdown-header-padding-x};
|
46
|
+
--#{$prefix}dropdown-header-padding-y: #{$dropdown-header-padding-y};
|
47
|
+
// scss-docs-end dropdown-css-vars
|
48
|
+
|
49
|
+
position: absolute;
|
50
|
+
z-index: var(--#{$prefix}dropdown-zindex);
|
51
|
+
display: none; // none by default, but block on "open" of the menu
|
52
|
+
min-width: var(--#{$prefix}dropdown-min-width);
|
53
|
+
padding: var(--#{$prefix}dropdown-padding-y) var(--#{$prefix}dropdown-padding-x);
|
54
|
+
margin: 0; // Override default margin of ul
|
55
|
+
@include font-size(var(--#{$prefix}dropdown-font-size));
|
56
|
+
color: var(--#{$prefix}dropdown-color);
|
57
|
+
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
58
|
+
list-style: none;
|
59
|
+
background-color: var(--#{$prefix}dropdown-bg);
|
60
|
+
background-clip: padding-box;
|
61
|
+
border: var(--#{$prefix}dropdown-border-width) solid var(--#{$prefix}dropdown-border-color);
|
62
|
+
@include border-radius(var(--#{$prefix}dropdown-border-radius));
|
63
|
+
@include box-shadow(var(--#{$prefix}dropdown-box-shadow));
|
64
|
+
|
65
|
+
&[data-bs-popper] {
|
66
|
+
top: 100%;
|
67
|
+
left: 0;
|
68
|
+
margin-top: var(--#{$prefix}dropdown-spacer);
|
69
|
+
}
|
70
|
+
|
71
|
+
@if $dropdown-padding-y == 0 {
|
72
|
+
> .dropdown-item:first-child,
|
73
|
+
> li:first-child .dropdown-item {
|
74
|
+
@include border-top-radius(var(--#{$prefix}dropdown-inner-border-radius));
|
75
|
+
}
|
76
|
+
> .dropdown-item:last-child,
|
77
|
+
> li:last-child .dropdown-item {
|
78
|
+
@include border-bottom-radius(var(--#{$prefix}dropdown-inner-border-radius));
|
79
|
+
}
|
80
|
+
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
// scss-docs-start responsive-breakpoints
|
85
|
+
// We deliberately hardcode the `bs-` prefix because we check
|
86
|
+
// this custom property in JS to determine Popper's positioning
|
87
|
+
|
88
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
89
|
+
@include media-breakpoint-up($breakpoint) {
|
90
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
91
|
+
|
92
|
+
.dropdown-menu#{$infix}-start {
|
93
|
+
--bs-position: start;
|
94
|
+
|
95
|
+
&[data-bs-popper] {
|
96
|
+
right: auto;
|
97
|
+
left: 0;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.dropdown-menu#{$infix}-end {
|
102
|
+
--bs-position: end;
|
103
|
+
|
104
|
+
&[data-bs-popper] {
|
105
|
+
right: 0;
|
106
|
+
left: auto;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
// scss-docs-end responsive-breakpoints
|
112
|
+
|
113
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
114
|
+
// Just add .dropup after the standard .dropdown class and you're set.
|
115
|
+
.dropup {
|
116
|
+
.dropdown-menu[data-bs-popper] {
|
117
|
+
top: auto;
|
118
|
+
bottom: 100%;
|
119
|
+
margin-top: 0;
|
120
|
+
margin-bottom: var(--#{$prefix}dropdown-spacer);
|
121
|
+
}
|
122
|
+
|
123
|
+
.dropdown-toggle {
|
124
|
+
@include caret(up);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
.dropend {
|
129
|
+
.dropdown-menu[data-bs-popper] {
|
130
|
+
top: 0;
|
131
|
+
right: auto;
|
132
|
+
left: 100%;
|
133
|
+
margin-top: 0;
|
134
|
+
margin-left: var(--#{$prefix}dropdown-spacer);
|
135
|
+
}
|
136
|
+
|
137
|
+
.dropdown-toggle {
|
138
|
+
@include caret(end);
|
139
|
+
&::after {
|
140
|
+
vertical-align: 0;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
.dropstart {
|
146
|
+
.dropdown-menu[data-bs-popper] {
|
147
|
+
top: 0;
|
148
|
+
right: 100%;
|
149
|
+
left: auto;
|
150
|
+
margin-top: 0;
|
151
|
+
margin-right: var(--#{$prefix}dropdown-spacer);
|
152
|
+
}
|
153
|
+
|
154
|
+
.dropdown-toggle {
|
155
|
+
@include caret(start);
|
156
|
+
&::before {
|
157
|
+
vertical-align: 0;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
|
163
|
+
// Dividers (basically an `<hr>`) within the dropdown
|
164
|
+
.dropdown-divider {
|
165
|
+
height: 0;
|
166
|
+
margin: var(--#{$prefix}dropdown-divider-margin-y) 0;
|
167
|
+
overflow: hidden;
|
168
|
+
border-top: 1px solid var(--#{$prefix}dropdown-divider-bg);
|
169
|
+
opacity: 1; // Revisit in v6 to de-dupe styles that conflict with <hr> element
|
170
|
+
}
|
171
|
+
|
172
|
+
// Links, buttons, and more within the dropdown menu
|
173
|
+
//
|
174
|
+
// `<button>`-specific styles are denoted with `// For <button>s`
|
175
|
+
.dropdown-item {
|
176
|
+
display: block;
|
177
|
+
width: 100%; // For `<button>`s
|
178
|
+
padding: var(--#{$prefix}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
|
179
|
+
clear: both;
|
180
|
+
font-weight: $font-weight-normal;
|
181
|
+
color: var(--#{$prefix}dropdown-link-color);
|
182
|
+
text-align: inherit; // For `<button>`s
|
183
|
+
text-decoration: if($link-decoration == none, null, none);
|
184
|
+
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
185
|
+
background-color: transparent; // For `<button>`s
|
186
|
+
border: 0; // For `<button>`s
|
187
|
+
|
188
|
+
&:hover,
|
189
|
+
&:focus {
|
190
|
+
color: var(--#{$prefix}dropdown-link-hover-color);
|
191
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
192
|
+
@include gradient-bg(var(--#{$prefix}dropdown-link-hover-bg));
|
193
|
+
}
|
194
|
+
|
195
|
+
&.active,
|
196
|
+
&:active {
|
197
|
+
color: var(--#{$prefix}dropdown-link-active-color);
|
198
|
+
text-decoration: none;
|
199
|
+
@include gradient-bg(var(--#{$prefix}dropdown-link-active-bg));
|
200
|
+
}
|
201
|
+
|
202
|
+
&.disabled,
|
203
|
+
&:disabled {
|
204
|
+
color: var(--#{$prefix}dropdown-link-disabled-color);
|
205
|
+
pointer-events: none;
|
206
|
+
background-color: transparent;
|
207
|
+
// Remove CSS gradients if they're enabled
|
208
|
+
background-image: if($enable-gradients, none, null);
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
.dropdown-menu.show {
|
213
|
+
display: block;
|
214
|
+
}
|
215
|
+
|
216
|
+
// Dropdown section headers
|
217
|
+
.dropdown-header {
|
218
|
+
display: block;
|
219
|
+
padding: var(--#{$prefix}dropdown-header-padding-y) var(--#{$prefix}dropdown-header-padding-x);
|
220
|
+
margin-bottom: 0; // for use with heading elements
|
221
|
+
@include font-size($font-size-sm);
|
222
|
+
color: var(--#{$prefix}dropdown-header-color);
|
223
|
+
white-space: nowrap; // as with > li > a
|
224
|
+
}
|
225
|
+
|
226
|
+
// Dropdown text
|
227
|
+
.dropdown-item-text {
|
228
|
+
display: block;
|
229
|
+
padding: var(--#{$prefix}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
|
230
|
+
color: var(--#{$prefix}dropdown-link-color);
|
231
|
+
}
|
232
|
+
|
233
|
+
// Dark dropdowns
|
234
|
+
.dropdown-menu-dark {
|
235
|
+
// scss-docs-start dropdown-dark-css-vars
|
236
|
+
--#{$prefix}dropdown-color: #{$dropdown-dark-color};
|
237
|
+
--#{$prefix}dropdown-bg: #{$dropdown-dark-bg};
|
238
|
+
--#{$prefix}dropdown-border-color: #{$dropdown-dark-border-color};
|
239
|
+
--#{$prefix}dropdown-box-shadow: #{$dropdown-dark-box-shadow};
|
240
|
+
--#{$prefix}dropdown-link-color: #{$dropdown-dark-link-color};
|
241
|
+
--#{$prefix}dropdown-link-hover-color: #{$dropdown-dark-link-hover-color};
|
242
|
+
--#{$prefix}dropdown-divider-bg: #{$dropdown-dark-divider-bg};
|
243
|
+
--#{$prefix}dropdown-link-hover-bg: #{$dropdown-dark-link-hover-bg};
|
244
|
+
--#{$prefix}dropdown-link-active-color: #{$dropdown-dark-link-active-color};
|
245
|
+
--#{$prefix}dropdown-link-active-bg: #{$dropdown-dark-link-active-bg};
|
246
|
+
--#{$prefix}dropdown-link-disabled-color: #{$dropdown-dark-link-disabled-color};
|
247
|
+
--#{$prefix}dropdown-header-color: #{$dropdown-dark-header-color};
|
248
|
+
// scss-docs-end dropdown-dark-css-vars
|
249
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
@import "forms/labels";
|
2
|
+
@import "forms/form-text";
|
3
|
+
@import "forms/form-control";
|
4
|
+
@import "forms/form-select";
|
5
|
+
@import "forms/form-check";
|
6
|
+
@import "forms/form-range";
|
7
|
+
@import "forms/floating-labels";
|
8
|
+
@import "forms/input-group";
|
9
|
+
@import "forms/validation";
|
@@ -0,0 +1,302 @@
|
|
1
|
+
// Bootstrap functions
|
2
|
+
//
|
3
|
+
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
|
4
|
+
|
5
|
+
// Ascending
|
6
|
+
// Used to evaluate Sass maps like our grid breakpoints.
|
7
|
+
@mixin _assert-ascending($map, $map-name) {
|
8
|
+
$prev-key: null;
|
9
|
+
$prev-num: null;
|
10
|
+
@each $key, $num in $map {
|
11
|
+
@if $prev-num == null or unit($num) == "%" or unit($prev-num) == "%" {
|
12
|
+
// Do nothing
|
13
|
+
} @else if not comparable($prev-num, $num) {
|
14
|
+
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
15
|
+
} @else if $prev-num >= $num {
|
16
|
+
@warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
17
|
+
}
|
18
|
+
$prev-key: $key;
|
19
|
+
$prev-num: $num;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// Starts at zero
|
24
|
+
// Used to ensure the min-width of the lowest breakpoint starts at 0.
|
25
|
+
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
|
26
|
+
@if length($map) > 0 {
|
27
|
+
$values: map-values($map);
|
28
|
+
$first-value: nth($values, 1);
|
29
|
+
@if $first-value != 0 {
|
30
|
+
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// Colors
|
36
|
+
@function to-rgb($value) {
|
37
|
+
@return red($value), green($value), blue($value);
|
38
|
+
}
|
39
|
+
|
40
|
+
// stylelint-disable scss/dollar-variable-pattern
|
41
|
+
@function rgba-css-var($identifier, $target) {
|
42
|
+
@if $identifier == "body" and $target == "bg" {
|
43
|
+
@return rgba(var(--#{$prefix}#{$identifier}-bg-rgb), var(--#{$prefix}#{$target}-opacity));
|
44
|
+
} @if $identifier == "body" and $target == "text" {
|
45
|
+
@return rgba(var(--#{$prefix}#{$identifier}-color-rgb), var(--#{$prefix}#{$target}-opacity));
|
46
|
+
} @else {
|
47
|
+
@return rgba(var(--#{$prefix}#{$identifier}-rgb), var(--#{$prefix}#{$target}-opacity));
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@function map-loop($map, $func, $args...) {
|
52
|
+
$_map: ();
|
53
|
+
|
54
|
+
@each $key, $value in $map {
|
55
|
+
// allow to pass the $key and $value of the map as an function argument
|
56
|
+
$_args: ();
|
57
|
+
@each $arg in $args {
|
58
|
+
$_args: append($_args, if($arg == "$key", $key, if($arg == "$value", $value, $arg)));
|
59
|
+
}
|
60
|
+
|
61
|
+
$_map: map-merge($_map, ($key: call(get-function($func), $_args...)));
|
62
|
+
}
|
63
|
+
|
64
|
+
@return $_map;
|
65
|
+
}
|
66
|
+
// stylelint-enable scss/dollar-variable-pattern
|
67
|
+
|
68
|
+
@function varify($list) {
|
69
|
+
$result: null;
|
70
|
+
@each $entry in $list {
|
71
|
+
$result: append($result, var(--#{$prefix}#{$entry}), space);
|
72
|
+
}
|
73
|
+
@return $result;
|
74
|
+
}
|
75
|
+
|
76
|
+
// Internal Bootstrap function to turn maps into its negative variant.
|
77
|
+
// It prefixes the keys with `n` and makes the value negative.
|
78
|
+
@function negativify-map($map) {
|
79
|
+
$result: ();
|
80
|
+
@each $key, $value in $map {
|
81
|
+
@if $key != 0 {
|
82
|
+
$result: map-merge($result, ("n" + $key: (-$value)));
|
83
|
+
}
|
84
|
+
}
|
85
|
+
@return $result;
|
86
|
+
}
|
87
|
+
|
88
|
+
// Get multiple keys from a sass map
|
89
|
+
@function map-get-multiple($map, $values) {
|
90
|
+
$result: ();
|
91
|
+
@each $key, $value in $map {
|
92
|
+
@if (index($values, $key) != null) {
|
93
|
+
$result: map-merge($result, ($key: $value));
|
94
|
+
}
|
95
|
+
}
|
96
|
+
@return $result;
|
97
|
+
}
|
98
|
+
|
99
|
+
// Merge multiple maps
|
100
|
+
@function map-merge-multiple($maps...) {
|
101
|
+
$merged-maps: ();
|
102
|
+
|
103
|
+
@each $map in $maps {
|
104
|
+
$merged-maps: map-merge($merged-maps, $map);
|
105
|
+
}
|
106
|
+
@return $merged-maps;
|
107
|
+
}
|
108
|
+
|
109
|
+
// Replace `$search` with `$replace` in `$string`
|
110
|
+
// Used on our SVG icon backgrounds for custom forms.
|
111
|
+
//
|
112
|
+
// @author Kitty Giraudel
|
113
|
+
// @param {String} $string - Initial string
|
114
|
+
// @param {String} $search - Substring to replace
|
115
|
+
// @param {String} $replace ('') - New value
|
116
|
+
// @return {String} - Updated string
|
117
|
+
@function str-replace($string, $search, $replace: "") {
|
118
|
+
$index: str-index($string, $search);
|
119
|
+
|
120
|
+
@if $index {
|
121
|
+
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
122
|
+
}
|
123
|
+
|
124
|
+
@return $string;
|
125
|
+
}
|
126
|
+
|
127
|
+
// See https://codepen.io/kevinweber/pen/dXWoRw
|
128
|
+
//
|
129
|
+
// Requires the use of quotes around data URIs.
|
130
|
+
|
131
|
+
@function escape-svg($string) {
|
132
|
+
@if str-index($string, "data:image/svg+xml") {
|
133
|
+
@each $char, $encoded in $escaped-characters {
|
134
|
+
// Do not escape the url brackets
|
135
|
+
@if str-index($string, "url(") == 1 {
|
136
|
+
$string: url("#{str-replace(str-slice($string, 6, -3), $char, $encoded)}");
|
137
|
+
} @else {
|
138
|
+
$string: str-replace($string, $char, $encoded);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
@return $string;
|
144
|
+
}
|
145
|
+
|
146
|
+
// Color contrast
|
147
|
+
// See https://github.com/twbs/bootstrap/pull/30168
|
148
|
+
|
149
|
+
// A list of pre-calculated numbers of pow(divide((divide($value, 255) + .055), 1.055), 2.4). (from 0 to 255)
|
150
|
+
// stylelint-disable-next-line scss/dollar-variable-default, scss/dollar-variable-pattern
|
151
|
+
$_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 .0033 .0037 .004 .0044 .0048 .0052 .0056 .006 .0065 .007 .0075 .008 .0086 .0091 .0097 .0103 .011 .0116 .0123 .013 .0137 .0144 .0152 .016 .0168 .0176 .0185 .0194 .0203 .0212 .0222 .0232 .0242 .0252 .0262 .0273 .0284 .0296 .0307 .0319 .0331 .0343 .0356 .0369 .0382 .0395 .0409 .0423 .0437 .0452 .0467 .0482 .0497 .0513 .0529 .0545 .0561 .0578 .0595 .0612 .063 .0648 .0666 .0685 .0704 .0723 .0742 .0762 .0782 .0802 .0823 .0844 .0865 .0887 .0908 .0931 .0953 .0976 .0999 .1022 .1046 .107 .1095 .1119 .1144 .117 .1195 .1221 .1248 .1274 .1301 .1329 .1356 .1384 .1413 .1441 .147 .15 .1529 .1559 .159 .162 .1651 .1683 .1714 .1746 .1779 .1812 .1845 .1878 .1912 .1946 .1981 .2016 .2051 .2086 .2122 .2159 .2195 .2232 .227 .2307 .2346 .2384 .2423 .2462 .2502 .2542 .2582 .2623 .2664 .2705 .2747 .2789 .2831 .2874 .2918 .2961 .3005 .305 .3095 .314 .3185 .3231 .3278 .3325 .3372 .3419 .3467 .3515 .3564 .3613 .3663 .3712 .3763 .3813 .3864 .3916 .3968 .402 .4072 .4125 .4179 .4233 .4287 .4342 .4397 .4452 .4508 .4564 .4621 .4678 .4735 .4793 .4851 .491 .4969 .5029 .5089 .5149 .521 .5271 .5333 .5395 .5457 .552 .5583 .5647 .5711 .5776 .5841 .5906 .5972 .6038 .6105 .6172 .624 .6308 .6376 .6445 .6514 .6584 .6654 .6724 .6795 .6867 .6939 .7011 .7084 .7157 .7231 .7305 .7379 .7454 .7529 .7605 .7682 .7758 .7835 .7913 .7991 .807 .8148 .8228 .8308 .8388 .8469 .855 .8632 .8714 .8796 .8879 .8963 .9047 .9131 .9216 .9301 .9387 .9473 .956 .9647 .9734 .9823 .9911 1;
|
152
|
+
|
153
|
+
@function color-contrast($background, $color-contrast-dark: $color-contrast-dark, $color-contrast-light: $color-contrast-light, $min-contrast-ratio: $min-contrast-ratio) {
|
154
|
+
$foregrounds: $color-contrast-light, $color-contrast-dark, $white, $black;
|
155
|
+
$max-ratio: 0;
|
156
|
+
$max-ratio-color: null;
|
157
|
+
|
158
|
+
@each $color in $foregrounds {
|
159
|
+
$contrast-ratio: contrast-ratio($background, $color);
|
160
|
+
@if $contrast-ratio > $min-contrast-ratio {
|
161
|
+
@return $color;
|
162
|
+
} @else if $contrast-ratio > $max-ratio {
|
163
|
+
$max-ratio: $contrast-ratio;
|
164
|
+
$max-ratio-color: $color;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
@warn "Found no color leading to #{$min-contrast-ratio}:1 contrast ratio against #{$background}...";
|
169
|
+
|
170
|
+
@return $max-ratio-color;
|
171
|
+
}
|
172
|
+
|
173
|
+
@function contrast-ratio($background, $foreground: $color-contrast-light) {
|
174
|
+
$l1: luminance($background);
|
175
|
+
$l2: luminance(opaque($background, $foreground));
|
176
|
+
|
177
|
+
@return if($l1 > $l2, divide($l1 + .05, $l2 + .05), divide($l2 + .05, $l1 + .05));
|
178
|
+
}
|
179
|
+
|
180
|
+
// Return WCAG2.1 relative luminance
|
181
|
+
// See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
|
182
|
+
// See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
|
183
|
+
@function luminance($color) {
|
184
|
+
$rgb: (
|
185
|
+
"r": red($color),
|
186
|
+
"g": green($color),
|
187
|
+
"b": blue($color)
|
188
|
+
);
|
189
|
+
|
190
|
+
@each $name, $value in $rgb {
|
191
|
+
$value: if(divide($value, 255) < .03928, divide(divide($value, 255), 12.92), nth($_luminance-list, $value + 1));
|
192
|
+
$rgb: map-merge($rgb, ($name: $value));
|
193
|
+
}
|
194
|
+
|
195
|
+
@return (map-get($rgb, "r") * .2126) + (map-get($rgb, "g") * .7152) + (map-get($rgb, "b") * .0722);
|
196
|
+
}
|
197
|
+
|
198
|
+
// Return opaque color
|
199
|
+
// opaque(#fff, rgba(0, 0, 0, .5)) => #808080
|
200
|
+
@function opaque($background, $foreground) {
|
201
|
+
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
|
202
|
+
}
|
203
|
+
|
204
|
+
// scss-docs-start color-functions
|
205
|
+
// Tint a color: mix a color with white
|
206
|
+
@function tint-color($color, $weight) {
|
207
|
+
@return mix(white, $color, $weight);
|
208
|
+
}
|
209
|
+
|
210
|
+
// Shade a color: mix a color with black
|
211
|
+
@function shade-color($color, $weight) {
|
212
|
+
@return mix(black, $color, $weight);
|
213
|
+
}
|
214
|
+
|
215
|
+
// Shade the color if the weight is positive, else tint it
|
216
|
+
@function shift-color($color, $weight) {
|
217
|
+
@return if($weight > 0, shade-color($color, $weight), tint-color($color, -$weight));
|
218
|
+
}
|
219
|
+
// scss-docs-end color-functions
|
220
|
+
|
221
|
+
// Return valid calc
|
222
|
+
@function add($value1, $value2, $return-calc: true) {
|
223
|
+
@if $value1 == null {
|
224
|
+
@return $value2;
|
225
|
+
}
|
226
|
+
|
227
|
+
@if $value2 == null {
|
228
|
+
@return $value1;
|
229
|
+
}
|
230
|
+
|
231
|
+
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
|
232
|
+
@return $value1 + $value2;
|
233
|
+
}
|
234
|
+
|
235
|
+
@return if($return-calc == true, calc(#{$value1} + #{$value2}), $value1 + unquote(" + ") + $value2);
|
236
|
+
}
|
237
|
+
|
238
|
+
@function subtract($value1, $value2, $return-calc: true) {
|
239
|
+
@if $value1 == null and $value2 == null {
|
240
|
+
@return null;
|
241
|
+
}
|
242
|
+
|
243
|
+
@if $value1 == null {
|
244
|
+
@return -$value2;
|
245
|
+
}
|
246
|
+
|
247
|
+
@if $value2 == null {
|
248
|
+
@return $value1;
|
249
|
+
}
|
250
|
+
|
251
|
+
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
|
252
|
+
@return $value1 - $value2;
|
253
|
+
}
|
254
|
+
|
255
|
+
@if type-of($value2) != number {
|
256
|
+
$value2: unquote("(") + $value2 + unquote(")");
|
257
|
+
}
|
258
|
+
|
259
|
+
@return if($return-calc == true, calc(#{$value1} - #{$value2}), $value1 + unquote(" - ") + $value2);
|
260
|
+
}
|
261
|
+
|
262
|
+
@function divide($dividend, $divisor, $precision: 10) {
|
263
|
+
$sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
|
264
|
+
$dividend: abs($dividend);
|
265
|
+
$divisor: abs($divisor);
|
266
|
+
@if $dividend == 0 {
|
267
|
+
@return 0;
|
268
|
+
}
|
269
|
+
@if $divisor == 0 {
|
270
|
+
@error "Cannot divide by 0";
|
271
|
+
}
|
272
|
+
$remainder: $dividend;
|
273
|
+
$result: 0;
|
274
|
+
$factor: 10;
|
275
|
+
@while ($remainder > 0 and $precision >= 0) {
|
276
|
+
$quotient: 0;
|
277
|
+
@while ($remainder >= $divisor) {
|
278
|
+
$remainder: $remainder - $divisor;
|
279
|
+
$quotient: $quotient + 1;
|
280
|
+
}
|
281
|
+
$result: $result * 10 + $quotient;
|
282
|
+
$factor: $factor * .1;
|
283
|
+
$remainder: $remainder * 10;
|
284
|
+
$precision: $precision - 1;
|
285
|
+
@if ($precision < 0 and $remainder >= $divisor * 5) {
|
286
|
+
$result: $result + 1;
|
287
|
+
}
|
288
|
+
}
|
289
|
+
$result: $result * $factor * $sign;
|
290
|
+
$dividend-unit: unit($dividend);
|
291
|
+
$divisor-unit: unit($divisor);
|
292
|
+
$unit-map: (
|
293
|
+
"px": 1px,
|
294
|
+
"rem": 1rem,
|
295
|
+
"em": 1em,
|
296
|
+
"%": 1%
|
297
|
+
);
|
298
|
+
@if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
|
299
|
+
$result: $result * map-get($unit-map, $dividend-unit);
|
300
|
+
}
|
301
|
+
@return $result;
|
302
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Row
|
2
|
+
//
|
3
|
+
// Rows contain your columns.
|
4
|
+
|
5
|
+
@if $enable-grid-classes {
|
6
|
+
.row {
|
7
|
+
@include make-row();
|
8
|
+
|
9
|
+
> * {
|
10
|
+
@include make-col-ready();
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
@if $enable-cssgrid {
|
16
|
+
.grid {
|
17
|
+
display: grid;
|
18
|
+
grid-template-rows: repeat(var(--#{$prefix}rows, 1), 1fr);
|
19
|
+
grid-template-columns: repeat(var(--#{$prefix}columns, #{$grid-columns}), 1fr);
|
20
|
+
gap: var(--#{$prefix}gap, #{$grid-gutter-width});
|
21
|
+
|
22
|
+
@include make-cssgrid();
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
// Columns
|
28
|
+
//
|
29
|
+
// Common styles for small and large grid columns
|
30
|
+
|
31
|
+
@if $enable-grid-classes {
|
32
|
+
@include make-grid-columns();
|
33
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
@import "helpers/clearfix";
|
2
|
+
@import "helpers/color-bg";
|
3
|
+
@import "helpers/colored-links";
|
4
|
+
@import "helpers/ratio";
|
5
|
+
@import "helpers/position";
|
6
|
+
@import "helpers/stacks";
|
7
|
+
@import "helpers/visually-hidden";
|
8
|
+
@import "helpers/stretched-link";
|
9
|
+
@import "helpers/text-truncation";
|
10
|
+
@import "helpers/vr";
|
@@ -0,0 +1,42 @@
|
|
1
|
+
// Responsive images (ensure images don't scale beyond their parents)
|
2
|
+
//
|
3
|
+
// This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s.
|
4
|
+
// We previously tried the "images are responsive by default" approach in Bootstrap v2,
|
5
|
+
// and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)
|
6
|
+
// which weren't expecting the images within themselves to be involuntarily resized.
|
7
|
+
// See also https://github.com/twbs/bootstrap/issues/18178
|
8
|
+
.img-fluid {
|
9
|
+
@include img-fluid();
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
// Image thumbnails
|
14
|
+
.img-thumbnail {
|
15
|
+
padding: $thumbnail-padding;
|
16
|
+
background-color: $thumbnail-bg;
|
17
|
+
border: $thumbnail-border-width solid $thumbnail-border-color;
|
18
|
+
@include border-radius($thumbnail-border-radius);
|
19
|
+
@include box-shadow($thumbnail-box-shadow);
|
20
|
+
|
21
|
+
// Keep them at most 100% wide
|
22
|
+
@include img-fluid();
|
23
|
+
}
|
24
|
+
|
25
|
+
//
|
26
|
+
// Figures
|
27
|
+
//
|
28
|
+
|
29
|
+
.figure {
|
30
|
+
// Ensures the caption's text aligns with the image.
|
31
|
+
display: inline-block;
|
32
|
+
}
|
33
|
+
|
34
|
+
.figure-img {
|
35
|
+
margin-bottom: $spacer * .5;
|
36
|
+
line-height: 1;
|
37
|
+
}
|
38
|
+
|
39
|
+
.figure-caption {
|
40
|
+
@include font-size($figure-caption-font-size);
|
41
|
+
color: $figure-caption-color;
|
42
|
+
}
|