elixir-toolkit-theme 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +64 -0
- data/_includes/affiliation-tiles-selection.html +15 -0
- data/_includes/callout.html +9 -0
- data/_includes/contributor-carousel-selection.html +82 -0
- data/_includes/contributor-minitiles-page.html +56 -0
- data/_includes/contributor-tiles-all.html +63 -0
- data/_includes/cookie-popup.html +19 -0
- data/_includes/events.html +30 -0
- data/_includes/footer.html +39 -0
- data/_includes/head.html +90 -0
- data/_includes/image.html +21 -0
- data/_includes/more-information-tiles.html +97 -0
- data/_includes/news.html +23 -0
- data/_includes/pageids-overview.html +32 -0
- data/_includes/related-pages.html +38 -0
- data/_includes/resource-table-all.html +140 -0
- data/_includes/resource-table-page.html +61 -0
- data/_includes/schemasorg.html +42 -0
- data/_includes/section-navigation-tiles-simple.html +10 -0
- data/_includes/section-navigation-tiles.html +210 -0
- data/_includes/sidebar.html +239 -0
- data/_includes/toc.html +8 -0
- data/_includes/topnav.html +66 -0
- data/_includes/training-table-all.html +30 -0
- data/_layouts/default.html +25 -0
- data/_layouts/none.html +3 -0
- data/_layouts/page.html +37 -0
- data/_sass/_bootstrap_variables.scss +10 -0
- data/_sass/_custom_classes.scss +0 -0
- data/_sass/_custom_variables.scss +71 -0
- data/_sass/bootstrap/_accordion.scss +118 -0
- data/_sass/bootstrap/_alert.scss +57 -0
- data/_sass/bootstrap/_badge.scss +29 -0
- data/_sass/bootstrap/_breadcrumb.scss +28 -0
- data/_sass/bootstrap/_button-group.scss +139 -0
- data/_sass/bootstrap/_buttons.scss +112 -0
- data/_sass/bootstrap/_card.scss +216 -0
- data/_sass/bootstrap/_carousel.scss +229 -0
- data/_sass/bootstrap/_close.scss +40 -0
- data/_sass/bootstrap/_containers.scss +41 -0
- data/_sass/bootstrap/_dropdown.scss +240 -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 +9 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_list-group.scss +174 -0
- data/_sass/bootstrap/_mixins.scss +43 -0
- data/_sass/bootstrap/_modal.scss +209 -0
- data/_sass/bootstrap/_nav.scss +139 -0
- data/_sass/bootstrap/_navbar.scss +335 -0
- data/_sass/bootstrap/_offcanvas.scss +83 -0
- data/_sass/bootstrap/_pagination.scss +64 -0
- data/_sass/bootstrap/_placeholders.scss +51 -0
- data/_sass/bootstrap/_popover.scss +158 -0
- data/_sass/bootstrap/_progress.scss +48 -0
- data/_sass/bootstrap/_reboot.scss +625 -0
- data/_sass/bootstrap/_root.scss +54 -0
- data/_sass/bootstrap/_spinners.scss +69 -0
- data/_sass/bootstrap/_tables.scss +155 -0
- data/_sass/bootstrap/_toasts.scss +51 -0
- data/_sass/bootstrap/_tooltip.scss +115 -0
- data/_sass/bootstrap/_transitions.scss +27 -0
- data/_sass/bootstrap/_type.scss +104 -0
- data/_sass/bootstrap/_utilities.scss +630 -0
- data/_sass/bootstrap/_variables.scss +1641 -0
- data/_sass/bootstrap/bootstrap-grid.scss +67 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +13 -0
- data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
- data/_sass/bootstrap/bootstrap.scss +53 -0
- data/_sass/bootstrap/forms/_floating-labels.scss +63 -0
- data/_sass/bootstrap/forms/_form-check.scss +152 -0
- data/_sass/bootstrap/forms/_form-control.scss +219 -0
- data/_sass/bootstrap/forms/_form-range.scss +91 -0
- data/_sass/bootstrap/forms/_form-select.scss +72 -0
- data/_sass/bootstrap/forms/_form-text.scss +11 -0
- data/_sass/bootstrap/forms/_input-group.scss +121 -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/_colored-links.scss +12 -0
- data/_sass/bootstrap/helpers/_position.scss +30 -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 +11 -0
- data/_sass/bootstrap/mixins/_backdrop.scss +14 -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 +133 -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 +9 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_forms.scss +144 -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 +31 -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 +21 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +26 -0
- data/_sass/bootstrap/mixins/_utilities.scss +89 -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/assets/css/all.min.css +5 -0
- data/assets/css/dataTables.bootstrap5.min.css +5 -0
- data/assets/css/flag-icon.min.css +1 -0
- data/assets/css/main.scss +678 -0
- data/assets/css/syntax.css +60 -0
- data/assets/flags/ad.svg +150 -0
- data/assets/flags/ae.svg +6 -0
- data/assets/flags/af.svg +81 -0
- data/assets/flags/ag.svg +14 -0
- data/assets/flags/ai.svg +763 -0
- data/assets/flags/al.svg +5 -0
- data/assets/flags/am.svg +5 -0
- data/assets/flags/ao.svg +13 -0
- data/assets/flags/aq.svg +5 -0
- data/assets/flags/ar.svg +31 -0
- data/assets/flags/as.svg +33 -0
- data/assets/flags/at.svg +6 -0
- data/assets/flags/au.svg +9 -0
- data/assets/flags/aw.svg +186 -0
- data/assets/flags/ax.svg +18 -0
- data/assets/flags/az.svg +8 -0
- data/assets/flags/ba.svg +12 -0
- data/assets/flags/bb.svg +6 -0
- data/assets/flags/bd.svg +4 -0
- data/assets/flags/be.svg +7 -0
- data/assets/flags/bf.svg +7 -0
- data/assets/flags/bg.svg +7 -0
- data/assets/flags/bh.svg +9 -0
- data/assets/flags/bi.svg +15 -0
- data/assets/flags/bj.svg +14 -0
- data/assets/flags/bl.svg +7 -0
- data/assets/flags/bm.svg +98 -0
- data/assets/flags/bn.svg +36 -0
- data/assets/flags/bo.svg +676 -0
- data/assets/flags/bq.svg +5 -0
- data/assets/flags/br.svg +45 -0
- data/assets/flags/bs.svg +13 -0
- data/assets/flags/bt.svg +89 -0
- data/assets/flags/bv.svg +13 -0
- data/assets/flags/bw.svg +7 -0
- data/assets/flags/by.svg +20 -0
- data/assets/flags/bz.svg +145 -0
- data/assets/flags/ca.svg +4 -0
- data/assets/flags/cc.svg +19 -0
- data/assets/flags/cd.svg +5 -0
- data/assets/flags/cf.svg +15 -0
- data/assets/flags/cg.svg +12 -0
- data/assets/flags/ch.svg +9 -0
- data/assets/flags/ci.svg +7 -0
- data/assets/flags/ck.svg +9 -0
- data/assets/flags/cl.svg +13 -0
- data/assets/flags/cm.svg +15 -0
- data/assets/flags/cn.svg +11 -0
- data/assets/flags/co.svg +7 -0
- data/assets/flags/cr.svg +7 -0
- data/assets/flags/cu.svg +13 -0
- data/assets/flags/cv.svg +13 -0
- data/assets/flags/cw.svg +14 -0
- data/assets/flags/cx.svg +15 -0
- data/assets/flags/cy.svg +6 -0
- data/assets/flags/cz.svg +5 -0
- data/assets/flags/de.svg +5 -0
- data/assets/flags/dj.svg +13 -0
- data/assets/flags/dk.svg +5 -0
- data/assets/flags/dm.svg +152 -0
- data/assets/flags/do.svg +6745 -0
- data/assets/flags/dz.svg +5 -0
- data/assets/flags/ec.svg +138 -0
- data/assets/flags/ee.svg +7 -0
- data/assets/flags/eg.svg +38 -0
- data/assets/flags/eh.svg +15 -0
- data/assets/flags/er.svg +8 -0
- data/assets/flags/es-ct.svg +4 -0
- data/assets/flags/es-ga.svg +189 -0
- data/assets/flags/es.svg +544 -0
- data/assets/flags/et.svg +14 -0
- data/assets/flags/eu.svg +28 -0
- data/assets/flags/fi.svg +5 -0
- data/assets/flags/fj.svg +122 -0
- data/assets/flags/fk.svg +90 -0
- data/assets/flags/fm.svg +11 -0
- data/assets/flags/fo.svg +12 -0
- data/assets/flags/fr.svg +7 -0
- data/assets/flags/ga.svg +7 -0
- data/assets/flags/gb-eng.svg +5 -0
- data/assets/flags/gb-nir.svg +132 -0
- data/assets/flags/gb-sct.svg +4 -0
- data/assets/flags/gb-wls.svg +9 -0
- data/assets/flags/gb.svg +7 -0
- data/assets/flags/gd.svg +27 -0
- data/assets/flags/ge.svg +6 -0
- data/assets/flags/gf.svg +7 -0
- data/assets/flags/gg.svg +9 -0
- data/assets/flags/gh.svg +6 -0
- data/assets/flags/gi.svg +32 -0
- data/assets/flags/gl.svg +4 -0
- data/assets/flags/gm.svg +14 -0
- data/assets/flags/gn.svg +7 -0
- data/assets/flags/gp.svg +7 -0
- data/assets/flags/gq.svg +23 -0
- data/assets/flags/gr.svg +16 -0
- data/assets/flags/gs.svg +201 -0
- data/assets/flags/gt.svg +204 -0
- data/assets/flags/gu.svg +39 -0
- data/assets/flags/gw.svg +13 -0
- data/assets/flags/gy.svg +9 -0
- data/assets/flags/hk.svg +30 -0
- data/assets/flags/hm.svg +9 -0
- data/assets/flags/hn.svg +18 -0
- data/assets/flags/hr.svg +58 -0
- data/assets/flags/ht.svg +116 -0
- data/assets/flags/hu.svg +7 -0
- data/assets/flags/id.svg +6 -0
- data/assets/flags/ie.svg +7 -0
- data/assets/flags/il.svg +14 -0
- data/assets/flags/im.svg +36 -0
- data/assets/flags/in.svg +25 -0
- data/assets/flags/io.svg +138 -0
- data/assets/flags/iq.svg +10 -0
- data/assets/flags/ir.svg +219 -0
- data/assets/flags/is.svg +12 -0
- data/assets/flags/it.svg +7 -0
- data/assets/flags/je.svg +29 -0
- data/assets/flags/jm.svg +8 -0
- data/assets/flags/jo.svg +16 -0
- data/assets/flags/jp.svg +11 -0
- data/assets/flags/ke.svg +23 -0
- data/assets/flags/kg.svg +15 -0
- data/assets/flags/kh.svg +61 -0
- data/assets/flags/ki.svg +36 -0
- data/assets/flags/km.svg +16 -0
- data/assets/flags/kn.svg +14 -0
- data/assets/flags/kp.svg +15 -0
- data/assets/flags/kr.svg +24 -0
- data/assets/flags/kw.svg +13 -0
- data/assets/flags/ky.svg +63 -0
- data/assets/flags/kz.svg +23 -0
- data/assets/flags/la.svg +12 -0
- data/assets/flags/lb.svg +15 -0
- data/assets/flags/lc.svg +8 -0
- data/assets/flags/li.svg +43 -0
- data/assets/flags/lk.svg +22 -0
- data/assets/flags/lr.svg +14 -0
- data/assets/flags/ls.svg +8 -0
- data/assets/flags/lt.svg +7 -0
- data/assets/flags/lu.svg +5 -0
- data/assets/flags/lv.svg +6 -0
- data/assets/flags/ly.svg +13 -0
- data/assets/flags/ma.svg +4 -0
- data/assets/flags/mc.svg +6 -0
- data/assets/flags/md.svg +70 -0
- data/assets/flags/me.svg +116 -0
- data/assets/flags/mf.svg +7 -0
- data/assets/flags/mg.svg +7 -0
- data/assets/flags/mh.svg +7 -0
- data/assets/flags/mk.svg +5 -0
- data/assets/flags/ml.svg +7 -0
- data/assets/flags/mm.svg +16 -0
- data/assets/flags/mn.svg +13 -0
- data/assets/flags/mo.svg +9 -0
- data/assets/flags/mp.svg +86 -0
- data/assets/flags/mq.svg +7 -0
- data/assets/flags/mr.svg +6 -0
- data/assets/flags/ms.svg +78 -0
- data/assets/flags/mt.svg +49 -0
- data/assets/flags/mu.svg +8 -0
- data/assets/flags/mv.svg +6 -0
- data/assets/flags/mw.svg +10 -0
- data/assets/flags/mx.svg +382 -0
- data/assets/flags/my.svg +15 -0
- data/assets/flags/mz.svg +21 -0
- data/assets/flags/na.svg +16 -0
- data/assets/flags/nc.svg +14 -0
- data/assets/flags/ne.svg +6 -0
- data/assets/flags/nf.svg +9 -0
- data/assets/flags/ng.svg +6 -0
- data/assets/flags/ni.svg +129 -0
- data/assets/flags/nl.svg +5 -0
- data/assets/flags/no.svg +7 -0
- data/assets/flags/np.svg +14 -0
- data/assets/flags/nr.svg +12 -0
- data/assets/flags/nu.svg +26 -0
- data/assets/flags/nz.svg +41 -0
- data/assets/flags/om.svg +115 -0
- data/assets/flags/pa.svg +14 -0
- data/assets/flags/pe.svg +244 -0
- data/assets/flags/pf.svg +19 -0
- data/assets/flags/pg.svg +9 -0
- data/assets/flags/ph.svg +9 -0
- data/assets/flags/pk.svg +15 -0
- data/assets/flags/pl.svg +6 -0
- data/assets/flags/pm.svg +7 -0
- data/assets/flags/pn.svg +62 -0
- data/assets/flags/pr.svg +13 -0
- data/assets/flags/ps.svg +15 -0
- data/assets/flags/pt.svg +57 -0
- data/assets/flags/pw.svg +11 -0
- data/assets/flags/py.svg +157 -0
- data/assets/flags/qa.svg +4 -0
- data/assets/flags/re.svg +7 -0
- data/assets/flags/ro.svg +7 -0
- data/assets/flags/rs.svg +292 -0
- data/assets/flags/ru.svg +7 -0
- data/assets/flags/rw.svg +13 -0
- data/assets/flags/sa.svg +26 -0
- data/assets/flags/sb.svg +13 -0
- data/assets/flags/sc.svg +14 -0
- data/assets/flags/sd.svg +13 -0
- data/assets/flags/se.svg +5 -0
- data/assets/flags/sg.svg +13 -0
- data/assets/flags/sh.svg +74 -0
- data/assets/flags/si.svg +18 -0
- data/assets/flags/sj.svg +7 -0
- data/assets/flags/sk.svg +9 -0
- data/assets/flags/sl.svg +7 -0
- data/assets/flags/sm.svg +91 -0
- data/assets/flags/sn.svg +8 -0
- data/assets/flags/so.svg +11 -0
- data/assets/flags/sr.svg +6 -0
- data/assets/flags/ss.svg +8 -0
- data/assets/flags/st.svg +16 -0
- data/assets/flags/sv.svg +594 -0
- data/assets/flags/sx.svg +56 -0
- data/assets/flags/sy.svg +6 -0
- data/assets/flags/sz.svg +45 -0
- data/assets/flags/tc.svg +67 -0
- data/assets/flags/td.svg +7 -0
- data/assets/flags/tf.svg +15 -0
- data/assets/flags/tg.svg +14 -0
- data/assets/flags/th.svg +7 -0
- data/assets/flags/tj.svg +22 -0
- data/assets/flags/tk.svg +5 -0
- data/assets/flags/tl.svg +13 -0
- data/assets/flags/tm.svg +206 -0
- data/assets/flags/tn.svg +13 -0
- data/assets/flags/to.svg +10 -0
- data/assets/flags/tr.svg +8 -0
- data/assets/flags/tt.svg +5 -0
- data/assets/flags/tv.svg +16 -0
- data/assets/flags/tw.svg +35 -0
- data/assets/flags/tz.svg +13 -0
- data/assets/flags/ua.svg +6 -0
- data/assets/flags/ug.svg +30 -0
- data/assets/flags/um.svg +15 -0
- data/assets/flags/un.svg +16 -0
- data/assets/flags/us.svg +10 -0
- data/assets/flags/uy.svg +28 -0
- data/assets/flags/uz.svg +30 -0
- data/assets/flags/va.svg +479 -0
- data/assets/flags/vc.svg +8 -0
- data/assets/flags/ve.svg +26 -0
- data/assets/flags/vg.svg +127 -0
- data/assets/flags/vi.svg +28 -0
- data/assets/flags/vn.svg +11 -0
- data/assets/flags/vu.svg +18 -0
- data/assets/flags/wf.svg +7 -0
- data/assets/flags/ws.svg +7 -0
- data/assets/flags/xk.svg +16 -0
- data/assets/flags/ye.svg +7 -0
- data/assets/flags/yt.svg +7 -0
- data/assets/flags/za.svg +17 -0
- data/assets/flags/zm.svg +27 -0
- data/assets/flags/zw.svg +21 -0
- data/assets/img/FAIRsharing-small.svg +28 -0
- data/assets/img/Flag_of_Europe.svg +4 -0
- data/assets/img/android-chrome-192x192.png +0 -0
- data/assets/img/android-chrome-512x512.png +0 -0
- data/assets/img/apple-touch-icon.png +0 -0
- data/assets/img/bio.tools.svg +76 -0
- data/assets/img/dsw-compact.svg +10 -0
- data/assets/img/elixir_logo.svg +39 -0
- data/assets/img/fairplus.svg +17 -0
- data/assets/img/favicon-16x16.png +0 -0
- data/assets/img/favicon-32x32.png +0 -0
- data/assets/img/favicon.ico +0 -0
- data/assets/img/jekyll_theme.svg +1 -0
- data/assets/img/jekyll_theme_question.svg +1 -0
- data/assets/img/jekyll_theme_question_inverted.svg +1 -0
- data/assets/img/main_logo.svg +1 -0
- data/assets/img/main_logo_condesed.svg +1 -0
- data/assets/img/safari-pinned-tab.svg +23 -0
- data/assets/img/site.webmanifest +22 -0
- data/assets/img/tess_logo.svg +60 -0
- data/assets/js/anchor.min.js +9 -0
- data/assets/js/bootstrap.bundle.min.js +7 -0
- data/assets/js/bootstrap.bundle.min.js.map +1 -0
- data/assets/js/dataTables.bootstrap5.min.js +14 -0
- data/assets/js/jquery-3.5.1.min.js +2 -0
- data/assets/js/jquery.cookie.min.js +8 -0
- data/assets/js/jquery.dataTables.min.js +187 -0
- data/assets/js/jquery.navgoco.js +314 -0
- data/assets/js/lunr.min.js +6 -0
- data/assets/js/main.js +118 -0
- data/assets/js/search-data.json +64 -0
- data/assets/js/search.js +404 -0
- data/assets/js/toc.js +99 -0
- data/assets/webfonts/fa-brands-400.eot +0 -0
- data/assets/webfonts/fa-brands-400.svg +3717 -0
- data/assets/webfonts/fa-brands-400.ttf +0 -0
- data/assets/webfonts/fa-brands-400.woff +0 -0
- data/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/webfonts/fa-regular-400.eot +0 -0
- data/assets/webfonts/fa-regular-400.svg +801 -0
- data/assets/webfonts/fa-regular-400.ttf +0 -0
- data/assets/webfonts/fa-regular-400.woff +0 -0
- data/assets/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/webfonts/fa-solid-900.eot +0 -0
- data/assets/webfonts/fa-solid-900.svg +5034 -0
- data/assets/webfonts/fa-solid-900.ttf +0 -0
- data/assets/webfonts/fa-solid-900.woff +0 -0
- data/assets/webfonts/fa-solid-900.woff2 +0 -0
- metadata +514 -0
@@ -0,0 +1,133 @@
|
|
1
|
+
// Button variants
|
2
|
+
//
|
3
|
+
// Easily pump out default styles, as well as :hover, :focus, :active,
|
4
|
+
// and disabled options for all buttons
|
5
|
+
|
6
|
+
// scss-docs-start btn-variant-mixin
|
7
|
+
@mixin button-variant(
|
8
|
+
$background,
|
9
|
+
$border,
|
10
|
+
$color: color-contrast($background),
|
11
|
+
$hover-background: if($color == $color-contrast-light, shade-color($background, $btn-hover-bg-shade-amount), tint-color($background, $btn-hover-bg-tint-amount)),
|
12
|
+
$hover-border: if($color == $color-contrast-light, shade-color($border, $btn-hover-border-shade-amount), tint-color($border, $btn-hover-border-tint-amount)),
|
13
|
+
$hover-color: color-contrast($hover-background),
|
14
|
+
$active-background: if($color == $color-contrast-light, shade-color($background, $btn-active-bg-shade-amount), tint-color($background, $btn-active-bg-tint-amount)),
|
15
|
+
$active-border: if($color == $color-contrast-light, shade-color($border, $btn-active-border-shade-amount), tint-color($border, $btn-active-border-tint-amount)),
|
16
|
+
$active-color: color-contrast($active-background),
|
17
|
+
$disabled-background: $background,
|
18
|
+
$disabled-border: $border,
|
19
|
+
$disabled-color: color-contrast($disabled-background)
|
20
|
+
) {
|
21
|
+
color: $color;
|
22
|
+
@include gradient-bg($background);
|
23
|
+
border-color: $border;
|
24
|
+
@include box-shadow($btn-box-shadow);
|
25
|
+
|
26
|
+
&:hover {
|
27
|
+
color: $hover-color;
|
28
|
+
@include gradient-bg($hover-background);
|
29
|
+
border-color: $hover-border;
|
30
|
+
}
|
31
|
+
|
32
|
+
.btn-check:focus + &,
|
33
|
+
&:focus {
|
34
|
+
color: $hover-color;
|
35
|
+
@include gradient-bg($hover-background);
|
36
|
+
border-color: $hover-border;
|
37
|
+
@if $enable-shadows {
|
38
|
+
@include box-shadow($btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5));
|
39
|
+
} @else {
|
40
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
41
|
+
box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.btn-check:checked + &,
|
46
|
+
.btn-check:active + &,
|
47
|
+
&:active,
|
48
|
+
&.active,
|
49
|
+
.show > &.dropdown-toggle {
|
50
|
+
color: $active-color;
|
51
|
+
background-color: $active-background;
|
52
|
+
// Remove CSS gradients if they're enabled
|
53
|
+
background-image: if($enable-gradients, none, null);
|
54
|
+
border-color: $active-border;
|
55
|
+
|
56
|
+
&:focus {
|
57
|
+
@if $enable-shadows {
|
58
|
+
@include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5));
|
59
|
+
} @else {
|
60
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
61
|
+
box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
&:disabled,
|
67
|
+
&.disabled {
|
68
|
+
color: $disabled-color;
|
69
|
+
background-color: $disabled-background;
|
70
|
+
// Remove CSS gradients if they're enabled
|
71
|
+
background-image: if($enable-gradients, none, null);
|
72
|
+
border-color: $disabled-border;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
// scss-docs-end btn-variant-mixin
|
76
|
+
|
77
|
+
// scss-docs-start btn-outline-variant-mixin
|
78
|
+
@mixin button-outline-variant(
|
79
|
+
$color,
|
80
|
+
$color-hover: color-contrast($color),
|
81
|
+
$active-background: $color,
|
82
|
+
$active-border: $color,
|
83
|
+
$active-color: color-contrast($active-background)
|
84
|
+
) {
|
85
|
+
color: $color;
|
86
|
+
border-color: $color;
|
87
|
+
|
88
|
+
&:hover {
|
89
|
+
color: $color-hover;
|
90
|
+
background-color: $active-background;
|
91
|
+
border-color: $active-border;
|
92
|
+
}
|
93
|
+
|
94
|
+
.btn-check:focus + &,
|
95
|
+
&:focus {
|
96
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
97
|
+
}
|
98
|
+
|
99
|
+
.btn-check:checked + &,
|
100
|
+
.btn-check:active + &,
|
101
|
+
&:active,
|
102
|
+
&.active,
|
103
|
+
&.dropdown-toggle.show {
|
104
|
+
color: $active-color;
|
105
|
+
background-color: $active-background;
|
106
|
+
border-color: $active-border;
|
107
|
+
|
108
|
+
&:focus {
|
109
|
+
@if $enable-shadows {
|
110
|
+
@include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5));
|
111
|
+
} @else {
|
112
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
113
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
&:disabled,
|
119
|
+
&.disabled {
|
120
|
+
color: $color;
|
121
|
+
background-color: transparent;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
// scss-docs-end btn-outline-variant-mixin
|
125
|
+
|
126
|
+
// scss-docs-start btn-size-mixin
|
127
|
+
@mixin button-size($padding-y, $padding-x, $font-size, $border-radius) {
|
128
|
+
padding: $padding-y $padding-x;
|
129
|
+
@include font-size($font-size);
|
130
|
+
// Manually declare to provide an override to the browser default
|
131
|
+
@include border-radius($border-radius, 0);
|
132
|
+
}
|
133
|
+
// scss-docs-end btn-size-mixin
|
@@ -0,0 +1,64 @@
|
|
1
|
+
// scss-docs-start caret-mixins
|
2
|
+
@mixin caret-down {
|
3
|
+
border-top: $caret-width solid;
|
4
|
+
border-right: $caret-width solid transparent;
|
5
|
+
border-bottom: 0;
|
6
|
+
border-left: $caret-width solid transparent;
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin caret-up {
|
10
|
+
border-top: 0;
|
11
|
+
border-right: $caret-width solid transparent;
|
12
|
+
border-bottom: $caret-width solid;
|
13
|
+
border-left: $caret-width solid transparent;
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin caret-end {
|
17
|
+
border-top: $caret-width solid transparent;
|
18
|
+
border-right: 0;
|
19
|
+
border-bottom: $caret-width solid transparent;
|
20
|
+
border-left: $caret-width solid;
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin caret-start {
|
24
|
+
border-top: $caret-width solid transparent;
|
25
|
+
border-right: $caret-width solid;
|
26
|
+
border-bottom: $caret-width solid transparent;
|
27
|
+
}
|
28
|
+
|
29
|
+
@mixin caret($direction: down) {
|
30
|
+
@if $enable-caret {
|
31
|
+
&::after {
|
32
|
+
display: inline-block;
|
33
|
+
margin-left: $caret-spacing;
|
34
|
+
vertical-align: $caret-vertical-align;
|
35
|
+
content: "";
|
36
|
+
@if $direction == down {
|
37
|
+
@include caret-down();
|
38
|
+
} @else if $direction == up {
|
39
|
+
@include caret-up();
|
40
|
+
} @else if $direction == end {
|
41
|
+
@include caret-end();
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
@if $direction == start {
|
46
|
+
&::after {
|
47
|
+
display: none;
|
48
|
+
}
|
49
|
+
|
50
|
+
&::before {
|
51
|
+
display: inline-block;
|
52
|
+
margin-right: $caret-spacing;
|
53
|
+
vertical-align: $caret-vertical-align;
|
54
|
+
content: "";
|
55
|
+
@include caret-start();
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&:empty::after {
|
60
|
+
margin-left: 0;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
// scss-docs-end caret-mixins
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// Container mixins
|
2
|
+
|
3
|
+
@mixin make-container($gutter: $container-padding-x) {
|
4
|
+
width: 100%;
|
5
|
+
padding-right: var(--#{$variable-prefix}gutter-x, #{$gutter});
|
6
|
+
padding-left: var(--#{$variable-prefix}gutter-x, #{$gutter});
|
7
|
+
margin-right: auto;
|
8
|
+
margin-left: auto;
|
9
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// Deprecate mixin
|
2
|
+
//
|
3
|
+
// This mixin can be used to deprecate mixins or functions.
|
4
|
+
// `$enable-deprecation-messages` is a global variable, `$ignore-warning` is a variable that can be passed to
|
5
|
+
// some deprecated mixins to suppress the warning (for example if the mixin is still be used in the current version of Bootstrap)
|
6
|
+
@mixin deprecate($name, $deprecate-version, $remove-version, $ignore-warning: false) {
|
7
|
+
@if ($enable-deprecation-messages != false and $ignore-warning != true) {
|
8
|
+
@warn "#{$name} has been deprecated as of #{$deprecate-version}. It will be removed entirely in #{$remove-version}.";
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
// This mixin uses an `if()` technique to be compatible with Dart Sass
|
2
|
+
// See https://github.com/sass/sass/issues/1873#issuecomment-152293725 for more details
|
3
|
+
|
4
|
+
// scss-docs-start form-validation-mixins
|
5
|
+
@mixin form-validation-state-selector($state) {
|
6
|
+
@if ($state == "valid" or $state == "invalid") {
|
7
|
+
.was-validated #{if(&, "&", "")}:#{$state},
|
8
|
+
#{if(&, "&", "")}.is-#{$state} {
|
9
|
+
@content;
|
10
|
+
}
|
11
|
+
} @else {
|
12
|
+
#{if(&, "&", "")}.is-#{$state} {
|
13
|
+
@content;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
@mixin form-validation-state(
|
19
|
+
$state,
|
20
|
+
$color,
|
21
|
+
$icon,
|
22
|
+
$tooltip-color: color-contrast($color),
|
23
|
+
$tooltip-bg-color: rgba($color, $form-feedback-tooltip-opacity),
|
24
|
+
$focus-box-shadow: 0 0 $input-btn-focus-blur $input-focus-width rgba($color, $input-btn-focus-color-opacity)
|
25
|
+
) {
|
26
|
+
.#{$state}-feedback {
|
27
|
+
display: none;
|
28
|
+
width: 100%;
|
29
|
+
margin-top: $form-feedback-margin-top;
|
30
|
+
@include font-size($form-feedback-font-size);
|
31
|
+
font-style: $form-feedback-font-style;
|
32
|
+
color: $color;
|
33
|
+
}
|
34
|
+
|
35
|
+
.#{$state}-tooltip {
|
36
|
+
position: absolute;
|
37
|
+
top: 100%;
|
38
|
+
z-index: 5;
|
39
|
+
display: none;
|
40
|
+
max-width: 100%; // Contain to parent when possible
|
41
|
+
padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
|
42
|
+
margin-top: .1rem;
|
43
|
+
@include font-size($form-feedback-tooltip-font-size);
|
44
|
+
line-height: $form-feedback-tooltip-line-height;
|
45
|
+
color: $tooltip-color;
|
46
|
+
background-color: $tooltip-bg-color;
|
47
|
+
@include border-radius($form-feedback-tooltip-border-radius);
|
48
|
+
}
|
49
|
+
|
50
|
+
@include form-validation-state-selector($state) {
|
51
|
+
~ .#{$state}-feedback,
|
52
|
+
~ .#{$state}-tooltip {
|
53
|
+
display: block;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
.form-control {
|
58
|
+
@include form-validation-state-selector($state) {
|
59
|
+
border-color: $color;
|
60
|
+
|
61
|
+
@if $enable-validation-icons {
|
62
|
+
padding-right: $input-height-inner;
|
63
|
+
background-image: escape-svg($icon);
|
64
|
+
background-repeat: no-repeat;
|
65
|
+
background-position: right $input-height-inner-quarter center;
|
66
|
+
background-size: $input-height-inner-half $input-height-inner-half;
|
67
|
+
}
|
68
|
+
|
69
|
+
&:focus {
|
70
|
+
border-color: $color;
|
71
|
+
box-shadow: $focus-box-shadow;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
// stylelint-disable-next-line selector-no-qualifying-type
|
77
|
+
textarea.form-control {
|
78
|
+
@include form-validation-state-selector($state) {
|
79
|
+
@if $enable-validation-icons {
|
80
|
+
padding-right: $input-height-inner;
|
81
|
+
background-position: top $input-height-inner-quarter right $input-height-inner-quarter;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.form-select {
|
87
|
+
@include form-validation-state-selector($state) {
|
88
|
+
border-color: $color;
|
89
|
+
|
90
|
+
@if $enable-validation-icons {
|
91
|
+
&:not([multiple]):not([size]),
|
92
|
+
&:not([multiple])[size="1"] {
|
93
|
+
padding-right: $form-select-feedback-icon-padding-end;
|
94
|
+
background-image: escape-svg($form-select-indicator), escape-svg($icon);
|
95
|
+
background-position: $form-select-bg-position, $form-select-feedback-icon-position;
|
96
|
+
background-size: $form-select-bg-size, $form-select-feedback-icon-size;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
&:focus {
|
101
|
+
border-color: $color;
|
102
|
+
box-shadow: $focus-box-shadow;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
.form-check-input {
|
108
|
+
@include form-validation-state-selector($state) {
|
109
|
+
border-color: $color;
|
110
|
+
|
111
|
+
&:checked {
|
112
|
+
background-color: $color;
|
113
|
+
}
|
114
|
+
|
115
|
+
&:focus {
|
116
|
+
box-shadow: $focus-box-shadow;
|
117
|
+
}
|
118
|
+
|
119
|
+
~ .form-check-label {
|
120
|
+
color: $color;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
.form-check-inline .form-check-input {
|
125
|
+
~ .#{$state}-feedback {
|
126
|
+
margin-left: .5em;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
.input-group .form-control,
|
131
|
+
.input-group .form-select {
|
132
|
+
@include form-validation-state-selector($state) {
|
133
|
+
@if $state == "valid" {
|
134
|
+
z-index: 1;
|
135
|
+
} @else if $state == "invalid" {
|
136
|
+
z-index: 2;
|
137
|
+
}
|
138
|
+
&:focus {
|
139
|
+
z-index: 3;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
// scss-docs-end form-validation-mixins
|
@@ -0,0 +1,47 @@
|
|
1
|
+
// Gradients
|
2
|
+
|
3
|
+
// scss-docs-start gradient-bg-mixin
|
4
|
+
@mixin gradient-bg($color: null) {
|
5
|
+
background-color: $color;
|
6
|
+
|
7
|
+
@if $enable-gradients {
|
8
|
+
background-image: var(--#{$variable-prefix}gradient);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
// scss-docs-end gradient-bg-mixin
|
12
|
+
|
13
|
+
// scss-docs-start gradient-mixins
|
14
|
+
// Horizontal gradient, from left to right
|
15
|
+
//
|
16
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
17
|
+
@mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
|
18
|
+
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
19
|
+
}
|
20
|
+
|
21
|
+
// Vertical gradient, from top to bottom
|
22
|
+
//
|
23
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
24
|
+
@mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: null, $end-percent: null) {
|
25
|
+
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) {
|
29
|
+
background-image: linear-gradient($deg, $start-color, $end-color);
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
33
|
+
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
37
|
+
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
38
|
+
}
|
39
|
+
|
40
|
+
@mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) {
|
41
|
+
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) {
|
45
|
+
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
46
|
+
}
|
47
|
+
// scss-docs-end gradient-mixins
|
@@ -0,0 +1,151 @@
|
|
1
|
+
// Grid system
|
2
|
+
//
|
3
|
+
// Generate semantic grid columns with these mixins.
|
4
|
+
|
5
|
+
@mixin make-row($gutter: $grid-gutter-width) {
|
6
|
+
--#{$variable-prefix}gutter-x: #{$gutter};
|
7
|
+
--#{$variable-prefix}gutter-y: 0;
|
8
|
+
display: flex;
|
9
|
+
flex-wrap: wrap;
|
10
|
+
// TODO: Revisit calc order after https://github.com/react-bootstrap/react-bootstrap/issues/6039 is fixed
|
11
|
+
margin-top: calc(-1 * var(--#{$variable-prefix}gutter-y)); // stylelint-disable-line function-disallowed-list
|
12
|
+
margin-right: calc(-.5 * var(--#{$variable-prefix}gutter-x)); // stylelint-disable-line function-disallowed-list
|
13
|
+
margin-left: calc(-.5 * var(--#{$variable-prefix}gutter-x)); // stylelint-disable-line function-disallowed-list
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin make-col-ready($gutter: $grid-gutter-width) {
|
17
|
+
// Add box sizing if only the grid is loaded
|
18
|
+
box-sizing: if(variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
|
19
|
+
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
20
|
+
// always setting `width: 100%;`. This works because we set the width
|
21
|
+
// later on to override this initial width.
|
22
|
+
flex-shrink: 0;
|
23
|
+
width: 100%;
|
24
|
+
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
25
|
+
padding-right: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
26
|
+
padding-left: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
27
|
+
margin-top: var(--#{$variable-prefix}gutter-y);
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin make-col($size: false, $columns: $grid-columns) {
|
31
|
+
@if $size {
|
32
|
+
flex: 0 0 auto;
|
33
|
+
width: percentage(divide($size, $columns));
|
34
|
+
|
35
|
+
} @else {
|
36
|
+
flex: 1 1 0;
|
37
|
+
max-width: 100%;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@mixin make-col-auto() {
|
42
|
+
flex: 0 0 auto;
|
43
|
+
width: auto;
|
44
|
+
}
|
45
|
+
|
46
|
+
@mixin make-col-offset($size, $columns: $grid-columns) {
|
47
|
+
$num: divide($size, $columns);
|
48
|
+
margin-left: if($num == 0, 0, percentage($num));
|
49
|
+
}
|
50
|
+
|
51
|
+
// Row columns
|
52
|
+
//
|
53
|
+
// Specify on a parent element(e.g., .row) to force immediate children into NN
|
54
|
+
// numberof columns. Supports wrapping to new lines, but does not do a Masonry
|
55
|
+
// style grid.
|
56
|
+
@mixin row-cols($count) {
|
57
|
+
> * {
|
58
|
+
flex: 0 0 auto;
|
59
|
+
width: divide(100%, $count);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Framework grid generation
|
64
|
+
//
|
65
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
66
|
+
// any value of `$grid-columns`.
|
67
|
+
|
68
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
69
|
+
@each $breakpoint in map-keys($breakpoints) {
|
70
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
71
|
+
|
72
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
73
|
+
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
74
|
+
.col#{$infix} {
|
75
|
+
flex: 1 0 0%; // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
76
|
+
}
|
77
|
+
|
78
|
+
.row-cols#{$infix}-auto > * {
|
79
|
+
@include make-col-auto();
|
80
|
+
}
|
81
|
+
|
82
|
+
@if $grid-row-columns > 0 {
|
83
|
+
@for $i from 1 through $grid-row-columns {
|
84
|
+
.row-cols#{$infix}-#{$i} {
|
85
|
+
@include row-cols($i);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
.col#{$infix}-auto {
|
91
|
+
@include make-col-auto();
|
92
|
+
}
|
93
|
+
|
94
|
+
@if $columns > 0 {
|
95
|
+
@for $i from 1 through $columns {
|
96
|
+
.col#{$infix}-#{$i} {
|
97
|
+
@include make-col($i, $columns);
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
102
|
+
@for $i from 0 through ($columns - 1) {
|
103
|
+
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
104
|
+
.offset#{$infix}-#{$i} {
|
105
|
+
@include make-col-offset($i, $columns);
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
// Gutters
|
112
|
+
//
|
113
|
+
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
114
|
+
@each $key, $value in $gutters {
|
115
|
+
.g#{$infix}-#{$key},
|
116
|
+
.gx#{$infix}-#{$key} {
|
117
|
+
--#{$variable-prefix}gutter-x: #{$value};
|
118
|
+
}
|
119
|
+
|
120
|
+
.g#{$infix}-#{$key},
|
121
|
+
.gy#{$infix}-#{$key} {
|
122
|
+
--#{$variable-prefix}gutter-y: #{$value};
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
@mixin make-cssgrid($columns: $grid-columns, $breakpoints: $grid-breakpoints) {
|
130
|
+
@each $breakpoint in map-keys($breakpoints) {
|
131
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
132
|
+
|
133
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
134
|
+
@if $columns > 0 {
|
135
|
+
@for $i from 1 through $columns {
|
136
|
+
.g-col#{$infix}-#{$i} {
|
137
|
+
grid-column: auto / span $i;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
// Start with `1` because `0` is and invalid value.
|
142
|
+
// Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible.
|
143
|
+
@for $i from 1 through ($columns - 1) {
|
144
|
+
.g-start#{$infix}-#{$i} {
|
145
|
+
grid-column-start: $i;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Image Mixins
|
2
|
+
// - Responsive image
|
3
|
+
// - Retina image
|
4
|
+
|
5
|
+
|
6
|
+
// Responsive image
|
7
|
+
//
|
8
|
+
// Keep images from scaling beyond the width of their parents.
|
9
|
+
|
10
|
+
@mixin img-fluid {
|
11
|
+
// Part 1: Set a maximum relative to the parent
|
12
|
+
max-width: 100%;
|
13
|
+
// Part 2: Override the height to auto, otherwise images will be stretched
|
14
|
+
// when setting a width and height attribute on the img element.
|
15
|
+
height: auto;
|
16
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// List Groups
|
2
|
+
|
3
|
+
// scss-docs-start list-group-mixin
|
4
|
+
@mixin list-group-item-variant($state, $background, $color) {
|
5
|
+
.list-group-item-#{$state} {
|
6
|
+
color: $color;
|
7
|
+
background-color: $background;
|
8
|
+
|
9
|
+
&.list-group-item-action {
|
10
|
+
&:hover,
|
11
|
+
&:focus {
|
12
|
+
color: $color;
|
13
|
+
background-color: shade-color($background, 10%);
|
14
|
+
}
|
15
|
+
|
16
|
+
&.active {
|
17
|
+
color: $white;
|
18
|
+
background-color: $color;
|
19
|
+
border-color: $color;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// scss-docs-end list-group-mixin
|
@@ -0,0 +1,31 @@
|
|
1
|
+
// Pagination
|
2
|
+
|
3
|
+
// scss-docs-start pagination-mixin
|
4
|
+
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
5
|
+
.page-link {
|
6
|
+
padding: $padding-y $padding-x;
|
7
|
+
@include font-size($font-size);
|
8
|
+
}
|
9
|
+
|
10
|
+
.page-item {
|
11
|
+
@if $pagination-margin-start == (-$pagination-border-width) {
|
12
|
+
&:first-child {
|
13
|
+
.page-link {
|
14
|
+
@include border-start-radius($border-radius);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
&:last-child {
|
19
|
+
.page-link {
|
20
|
+
@include border-end-radius($border-radius);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
} @else {
|
24
|
+
//Add border-radius to all pageLinks in case they have left margin
|
25
|
+
.page-link {
|
26
|
+
@include border-radius($border-radius);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
// scss-docs-end pagination-mixin
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@mixin reset-text {
|
2
|
+
font-family: $font-family-base;
|
3
|
+
// We deliberately do NOT reset font-size or overflow-wrap / word-wrap.
|
4
|
+
font-style: normal;
|
5
|
+
font-weight: $font-weight-normal;
|
6
|
+
line-height: $line-height-base;
|
7
|
+
text-align: left; // Fallback for where `start` is not supported
|
8
|
+
text-align: start;
|
9
|
+
text-decoration: none;
|
10
|
+
text-shadow: none;
|
11
|
+
text-transform: none;
|
12
|
+
letter-spacing: normal;
|
13
|
+
word-break: normal;
|
14
|
+
word-spacing: normal;
|
15
|
+
white-space: normal;
|
16
|
+
line-break: auto;
|
17
|
+
}
|