@openeuropa/bcl-theme-default 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bcl-builder.config.js +6 -2
- package/css/oe-bcl-default.css +239 -1744
- package/css/oe-bcl-default.css.map +1 -1
- package/css/oe-bcl-default.min.css +1 -1
- package/css/oe-bcl-default.min.css.map +1 -1
- package/icons/world-flags/ad.svg +154 -0
- package/icons/world-flags/ae.svg +6 -0
- package/icons/world-flags/af.svg +1 -0
- package/icons/world-flags/ag.svg +1 -0
- package/icons/world-flags/ai.svg +1 -0
- package/icons/world-flags/al.svg +1 -0
- package/icons/world-flags/am.svg +5 -0
- package/icons/world-flags/an.svg +24 -0
- package/icons/world-flags/ao.svg +1 -0
- package/icons/world-flags/aq.svg +1 -0
- package/icons/world-flags/ar.svg +33 -0
- package/icons/world-flags/as.svg +1 -0
- package/icons/world-flags/at.svg +4 -0
- package/icons/world-flags/au.svg +1 -0
- package/icons/world-flags/aw.svg +1 -0
- package/icons/world-flags/ax.svg +11 -0
- package/icons/world-flags/az.svg +8 -0
- package/icons/world-flags/ba.svg +11 -0
- package/icons/world-flags/bb.svg +7 -0
- package/icons/world-flags/bd.svg +4 -0
- package/icons/world-flags/be.svg +5 -0
- package/icons/world-flags/bf.svg +14 -0
- package/icons/world-flags/bg.svg +5 -0
- package/icons/world-flags/bh.svg +1 -0
- package/icons/world-flags/bi.svg +26 -0
- package/icons/world-flags/bj.svg +5 -0
- package/icons/world-flags/bl.svg +160 -0
- package/icons/world-flags/bm.svg +1 -0
- package/icons/world-flags/bn.svg +58 -0
- package/icons/world-flags/bo.svg +1 -0
- package/icons/world-flags/bq.svg +5 -0
- package/icons/world-flags/br.svg +89 -0
- package/icons/world-flags/bs.svg +5 -0
- package/icons/world-flags/bt.svg +466 -0
- package/icons/world-flags/bv.svg +7 -0
- package/icons/world-flags/bw.svg +5 -0
- package/icons/world-flags/by.svg +14 -0
- package/icons/world-flags/bz.svg +1 -0
- package/icons/world-flags/ca.svg +1 -0
- package/icons/world-flags/cc.svg +19 -0
- package/icons/world-flags/cd.svg +5 -0
- package/icons/world-flags/cf.svg +8 -0
- package/icons/world-flags/cg.svg +5 -0
- package/icons/world-flags/ch.svg +5 -0
- package/icons/world-flags/ci.svg +5 -0
- package/icons/world-flags/ck.svg +1 -0
- package/icons/world-flags/cl.svg +14 -0
- package/icons/world-flags/cm.svg +15 -0
- package/icons/world-flags/cn.svg +11 -0
- package/icons/world-flags/co.svg +5 -0
- package/icons/world-flags/cr.svg +1 -0
- package/icons/world-flags/cu.svg +6 -0
- package/icons/world-flags/cv.svg +24 -0
- package/icons/world-flags/cw.svg +16 -0
- package/icons/world-flags/cx.svg +15 -0
- package/icons/world-flags/cy.svg +1 -0
- package/icons/world-flags/cz.svg +5 -0
- package/icons/world-flags/de.svg +6 -0
- package/icons/world-flags/dj.svg +6 -0
- package/icons/world-flags/dk.svg +5 -0
- package/icons/world-flags/dm.svg +1 -0
- package/icons/world-flags/do.svg +1 -0
- package/icons/world-flags/dz.svg +5 -0
- package/icons/world-flags/ec.svg +519 -0
- package/icons/world-flags/ee.svg +5 -0
- package/icons/world-flags/eg.svg +78 -0
- package/icons/world-flags/eh.svg +9 -0
- package/icons/world-flags/er.svg +6 -0
- package/icons/world-flags/es.svg +1 -0
- package/icons/world-flags/et.svg +16 -0
- package/icons/world-flags/eu.svg +29 -0
- package/icons/world-flags/fi.svg +5 -0
- package/icons/world-flags/fj.svg +1 -0
- package/icons/world-flags/fk.svg +1 -0
- package/icons/world-flags/fm.svg +16 -0
- package/icons/world-flags/fo.svg +11 -0
- package/icons/world-flags/fr.svg +1 -0
- package/icons/world-flags/ga.svg +5 -0
- package/icons/world-flags/gb-eng.svg +7 -0
- package/icons/world-flags/gb-nir.svg +1 -0
- package/icons/world-flags/gb-sct.svg +1 -0
- package/icons/world-flags/gb-wls.svg +9 -0
- package/icons/world-flags/gb.svg +1 -0
- package/icons/world-flags/gd.svg +27 -0
- package/icons/world-flags/ge.svg +17 -0
- package/icons/world-flags/gf.svg +5 -0
- package/icons/world-flags/gg.svg +8 -0
- package/icons/world-flags/gh.svg +6 -0
- package/icons/world-flags/gi.svg +54 -0
- package/icons/world-flags/gl.svg +4 -0
- package/icons/world-flags/gm.svg +7 -0
- package/icons/world-flags/gn.svg +5 -0
- package/icons/world-flags/gp.svg +5 -0
- package/icons/world-flags/gq.svg +75 -0
- package/icons/world-flags/gr.svg +4 -0
- package/icons/world-flags/gs.svg +1 -0
- package/icons/world-flags/gt.svg +214 -0
- package/icons/world-flags/gu.svg +1 -0
- package/icons/world-flags/gw.svg +13 -0
- package/icons/world-flags/gy.svg +7 -0
- package/icons/world-flags/hk.svg +12 -0
- package/icons/world-flags/hm.svg +1 -0
- package/icons/world-flags/hn.svg +18 -0
- package/icons/world-flags/hr.svg +240 -0
- package/icons/world-flags/ht.svg +196 -0
- package/icons/world-flags/hu.svg +5 -0
- package/icons/world-flags/id.svg +4 -0
- package/icons/world-flags/ie.svg +9 -0
- package/icons/world-flags/il.svg +1 -0
- package/icons/world-flags/im.svg +59 -0
- package/icons/world-flags/in.svg +25 -0
- package/icons/world-flags/io.svg +178 -0
- package/icons/world-flags/iq.svg +1 -0
- package/icons/world-flags/ir.svg +31 -0
- package/icons/world-flags/is.svg +5 -0
- package/icons/world-flags/it.svg +5 -0
- package/icons/world-flags/je.svg +49 -0
- package/icons/world-flags/jm.svg +4 -0
- package/icons/world-flags/jo.svg +7 -0
- package/icons/world-flags/jp.svg +4 -0
- package/icons/world-flags/ke.svg +23 -0
- package/icons/world-flags/kg.svg +1 -0
- package/icons/world-flags/kh.svg +116 -0
- package/icons/world-flags/ki.svg +1 -0
- package/icons/world-flags/km.svg +13 -0
- package/icons/world-flags/kn.svg +1 -0
- package/icons/world-flags/kp.svg +16 -0
- package/icons/world-flags/kr.svg +1 -0
- package/icons/world-flags/kw.svg +6 -0
- package/icons/world-flags/ky.svg +1 -0
- package/icons/world-flags/kz.svg +37 -0
- package/icons/world-flags/la.svg +5 -0
- package/icons/world-flags/lb.svg +5 -0
- package/icons/world-flags/lc.svg +6 -0
- package/icons/world-flags/li.svg +56 -0
- package/icons/world-flags/lk.svg +31 -0
- package/icons/world-flags/lr.svg +15 -0
- package/icons/world-flags/ls.svg +23 -0
- package/icons/world-flags/lt.svg +5 -0
- package/icons/world-flags/lu.svg +5 -0
- package/icons/world-flags/lv.svg +4 -0
- package/icons/world-flags/ly.svg +8 -0
- package/icons/world-flags/ma.svg +6 -0
- package/icons/world-flags/mc.svg +4 -0
- package/icons/world-flags/md.svg +140 -0
- package/icons/world-flags/me.svg +93 -0
- package/icons/world-flags/mf.svg +5 -0
- package/icons/world-flags/mg.svg +5 -0
- package/icons/world-flags/mh.svg +19 -0
- package/icons/world-flags/mk.svg +7 -0
- package/icons/world-flags/ml.svg +5 -0
- package/icons/world-flags/mm.svg +12 -0
- package/icons/world-flags/mn.svg +21 -0
- package/icons/world-flags/mo.svg +10 -0
- package/icons/world-flags/mp.svg +240 -0
- package/icons/world-flags/mq.svg +1 -0
- package/icons/world-flags/mr.svg +6 -0
- package/icons/world-flags/ms.svg +1 -0
- package/icons/world-flags/mt.svg +49 -0
- package/icons/world-flags/mu.svg +6 -0
- package/icons/world-flags/mv.svg +8 -0
- package/icons/world-flags/mw.svg +24 -0
- package/icons/world-flags/mx.svg +1 -0
- package/icons/world-flags/my.svg +13 -0
- package/icons/world-flags/mz.svg +13 -0
- package/icons/world-flags/na.svg +1 -0
- package/icons/world-flags/nc.svg +18 -0
- package/icons/world-flags/ne.svg +6 -0
- package/icons/world-flags/nf.svg +5 -0
- package/icons/world-flags/ng.svg +4 -0
- package/icons/world-flags/ni.svg +161 -0
- package/icons/world-flags/nl.svg +5 -0
- package/icons/world-flags/no.svg +7 -0
- package/icons/world-flags/np.svg +33 -0
- package/icons/world-flags/nr.svg +5 -0
- package/icons/world-flags/nu.svg +1 -0
- package/icons/world-flags/nz.svg +1 -0
- package/icons/world-flags/om.svg +226 -0
- package/icons/world-flags/pa.svg +20 -0
- package/icons/world-flags/pe.svg +320 -0
- package/icons/world-flags/pf.svg +55 -0
- package/icons/world-flags/pg.svg +13 -0
- package/icons/world-flags/ph.svg +30 -0
- package/icons/world-flags/pk.svg +8 -0
- package/icons/world-flags/pl.svg +4 -0
- package/icons/world-flags/pm.svg +5 -0
- package/icons/world-flags/pn.svg +1 -0
- package/icons/world-flags/pr.svg +1 -0
- package/icons/world-flags/ps.svg +6 -0
- package/icons/world-flags/pt.svg +66 -0
- package/icons/world-flags/pw.svg +4 -0
- package/icons/world-flags/py.svg +193 -0
- package/icons/world-flags/qa.svg +1 -0
- package/icons/world-flags/re.svg +5 -0
- package/icons/world-flags/ro.svg +5 -0
- package/icons/world-flags/rs.svg +294 -0
- package/icons/world-flags/ru.svg +5 -0
- package/icons/world-flags/rw.svg +13 -0
- package/icons/world-flags/sa.svg +4 -0
- package/icons/world-flags/sb.svg +23 -0
- package/icons/world-flags/sc.svg +7 -0
- package/icons/world-flags/sd.svg +6 -0
- package/icons/world-flags/se.svg +5 -0
- package/icons/world-flags/sg.svg +11 -0
- package/icons/world-flags/sh.svg +1 -0
- package/icons/world-flags/si.svg +22 -0
- package/icons/world-flags/sj.svg +7 -0
- package/icons/world-flags/sk.svg +12 -0
- package/icons/world-flags/sl.svg +5 -0
- package/icons/world-flags/sm.svg +321 -0
- package/icons/world-flags/sn.svg +15 -0
- package/icons/world-flags/so.svg +13 -0
- package/icons/world-flags/sr.svg +6 -0
- package/icons/world-flags/ss.svg +8 -0
- package/icons/world-flags/st.svg +16 -0
- package/icons/world-flags/sv.svg +1 -0
- package/icons/world-flags/sx.svg +94 -0
- package/icons/world-flags/sy.svg +17 -0
- package/icons/world-flags/sz.svg +1 -0
- package/icons/world-flags/tc.svg +1 -0
- package/icons/world-flags/td.svg +5 -0
- package/icons/world-flags/tf.svg +15 -0
- package/icons/world-flags/tg.svg +16 -0
- package/icons/world-flags/th.svg +5 -0
- package/icons/world-flags/tj.svg +26 -0
- package/icons/world-flags/tk.svg +25 -0
- package/icons/world-flags/tl.svg +1 -0
- package/icons/world-flags/tm.svg +179 -0
- package/icons/world-flags/tn.svg +9 -0
- package/icons/world-flags/to.svg +8 -0
- package/icons/world-flags/tr.svg +6 -0
- package/icons/world-flags/tt.svg +5 -0
- package/icons/world-flags/tv.svg +1 -0
- package/icons/world-flags/tw.svg +9 -0
- package/icons/world-flags/tz.svg +6 -0
- package/icons/world-flags/ua.svg +4 -0
- package/icons/world-flags/ug.svg +24 -0
- package/icons/world-flags/um.svg +25 -0
- package/icons/world-flags/us.svg +25 -0
- package/icons/world-flags/uy.svg +36 -0
- package/icons/world-flags/uz.svg +30 -0
- package/icons/world-flags/va.svg +205 -0
- package/icons/world-flags/vc.svg +10 -0
- package/icons/world-flags/ve.svg +28 -0
- package/icons/world-flags/vg.svg +1 -0
- package/icons/world-flags/vi.svg +1 -0
- package/icons/world-flags/vn.svg +12 -0
- package/icons/world-flags/vu.svg +15 -0
- package/icons/world-flags/wf.svg +7 -0
- package/icons/world-flags/ws.svg +14 -0
- package/icons/world-flags/xk.svg +1 -0
- package/icons/world-flags/ye.svg +5 -0
- package/icons/world-flags/yt.svg +5 -0
- package/icons/world-flags/za.svg +1 -0
- package/icons/world-flags/zm.svg +23 -0
- package/icons/world-flags/zw.svg +28 -0
- package/js/oe-bcl-default.bundle.js +25 -26
- package/js/oe-bcl-default.bundle.js.map +1 -1
- package/js/oe-bcl-default.bundle.min.js +1 -1
- package/js/oe-bcl-default.bundle.min.js.map +1 -1
- package/js/oe-bcl-default.esm.js +25 -26
- package/js/oe-bcl-default.esm.js.map +1 -1
- package/js/oe-bcl-default.esm.min.js +1 -1
- package/js/oe-bcl-default.esm.min.js.map +1 -1
- package/js/oe-bcl-default.umd.js +25 -26
- package/js/oe-bcl-default.umd.js.map +1 -1
- package/js/oe-bcl-default.umd.min.js +1 -1
- package/js/oe-bcl-default.umd.min.js.map +1 -1
- package/package.json +10 -9
- package/src/icons/icons.js +23 -23
- package/src/js/gallery/gallery.js +24 -21
- package/src/scss/_card.scss +14 -0
- package/src/scss/_description_list.scss +6 -0
- package/src/scss/_inpage-navigation.scss +7 -0
- package/src/scss/_multiselect.scss +23 -2
- package/src/scss/_pagination.scss +33 -0
- package/src/scss/_tabs.scss +3 -12
- package/src/scss/base/_colors.scss +0 -2
- package/src/scss/base/_layout.scss +5 -0
- package/src/scss/base/_mixins.scss +13 -0
- package/src/scss/base/_utilities.scss +36 -12
- package/src/scss/oe-bcl-default.scss +6 -0
- package/templates/bcl-accordion/accordion.html.twig +4 -5
- package/templates/bcl-alert/alert.html.twig +5 -3
- package/templates/bcl-badge/badge.html.twig +7 -5
- package/templates/bcl-banner/banner.html.twig +5 -5
- package/templates/bcl-base-templates/content-type.html.twig +5 -0
- package/templates/bcl-base-templates/listing-page.html.twig +2 -0
- package/templates/bcl-blockquote/blockquote.html.twig +3 -1
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +3 -1
- package/templates/bcl-button/button.html.twig +6 -4
- package/templates/bcl-button-group/button-group.html.twig +4 -3
- package/templates/bcl-card/card.html.twig +5 -9
- package/templates/bcl-card-layout/card-layout.html.twig +3 -1
- package/templates/bcl-carousel/carousel.html.twig +10 -8
- package/templates/bcl-content-banner/content-banner.html.twig +14 -11
- package/templates/bcl-dropdown/dropdown.html.twig +3 -1
- package/templates/bcl-fact-figures/fact-figures.html.twig +4 -2
- package/templates/bcl-file/file.html.twig +43 -39
- package/templates/bcl-footer/footer.html.twig +2 -2
- package/templates/bcl-form/form.html.twig +2 -4
- package/templates/bcl-form-input/form-input.html.twig +25 -21
- package/templates/bcl-gallery/gallery.html.twig +5 -5
- package/templates/bcl-glossary/glossary-detail.html.twig +43 -0
- package/templates/bcl-glossary/glossary-listing.html.twig +22 -0
- package/templates/bcl-header/header.html.twig +11 -9
- package/templates/bcl-heading/heading.html.twig +1 -1
- package/templates/bcl-icon/icon.html.twig +3 -2
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +19 -30
- package/templates/bcl-language-list/language-list-grid.html.twig +1 -1
- package/templates/bcl-link/link.html.twig +6 -4
- package/templates/bcl-links-block/links-block.html.twig +17 -16
- package/templates/bcl-list-group/list-group.html.twig +3 -1
- package/templates/bcl-listing/listing.html.twig +8 -6
- package/templates/bcl-modal/modal.html.twig +12 -3
- package/templates/bcl-navbar/navbar.html.twig +4 -1
- package/templates/bcl-navigation/navigation.html.twig +3 -1
- package/templates/bcl-offcanvas/offcanvas.html.twig +8 -7
- package/templates/bcl-pagination/pagination.html.twig +10 -4
- package/templates/bcl-person/person.html.twig +0 -13
- package/templates/bcl-placeholder/placeholder.html.twig +4 -3
- package/templates/bcl-progress/progress.html.twig +2 -0
- package/templates/bcl-project-status/project-status.html.twig +2 -0
- package/templates/bcl-search-form/search-form.html.twig +5 -4
- package/templates/bcl-select/select.html.twig +18 -17
- package/templates/bcl-spinner/spinner.html.twig +2 -0
- package/templates/bcl-subscription-block/subscription-block.html.twig +1 -1
- package/templates/bcl-table/table.html.twig +3 -1
- package/templates/bcl-textarea/textarea.html.twig +22 -19
- package/templates/bcl-timeline/timeline.html.twig +17 -14
- package/templates/bcl-toast/toasts.html.twig +15 -15
- package/templates/bcl-user/user.html.twig +10 -2
- package/yarn-error.log +17973 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-theme-default",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.24.0",
|
|
6
6
|
"description": "OE - BCL theme default",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
|
|
@@ -18,17 +18,18 @@
|
|
|
18
18
|
"update:templates": "run-s align-templates build:copy"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@ecl/resources-ec-logo": "3.3.
|
|
22
|
-
"@ecl/resources-eu-logo": "3.3.
|
|
23
|
-
"@ecl/resources-flag-icons": "3.3.
|
|
24
|
-
"@openeuropa/bcl-bootstrap": "^0.
|
|
25
|
-
"@openeuropa/bcl-builder": "^0.
|
|
26
|
-
"@openeuropa/bcl-twig-templates": "^0.
|
|
21
|
+
"@ecl/resources-ec-logo": "3.3.2",
|
|
22
|
+
"@ecl/resources-eu-logo": "3.3.2",
|
|
23
|
+
"@ecl/resources-flag-icons": "3.3.2",
|
|
24
|
+
"@openeuropa/bcl-bootstrap": "^0.24.0",
|
|
25
|
+
"@openeuropa/bcl-builder": "^0.24.0",
|
|
26
|
+
"@openeuropa/bcl-twig-templates": "^0.24.0",
|
|
27
27
|
"copyfiles": "2.4.1",
|
|
28
28
|
"cross-env": "7.0.3",
|
|
29
29
|
"glob": "8.0.3",
|
|
30
30
|
"npm-run-all": "4.1.5",
|
|
31
|
-
"slim-select": "1.27.1"
|
|
31
|
+
"slim-select": "1.27.1",
|
|
32
|
+
"svg-country-flags": "1.2.10"
|
|
32
33
|
},
|
|
33
34
|
"publishConfig": {
|
|
34
35
|
"access": "public"
|
|
@@ -47,5 +48,5 @@
|
|
|
47
48
|
"design-system",
|
|
48
49
|
"twig"
|
|
49
50
|
],
|
|
50
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "a46bb6bc12771da4667516dc7b0665b00504ade2"
|
|
51
52
|
}
|
package/src/icons/icons.js
CHANGED
|
@@ -18,7 +18,7 @@ module.exports = [
|
|
|
18
18
|
"arrows-angle-contract.svg",
|
|
19
19
|
"arrows-fullscreen.svg",
|
|
20
20
|
|
|
21
|
-
//Shape arrows
|
|
21
|
+
// Shape arrows
|
|
22
22
|
"arrow-up-circle-fill.svg",
|
|
23
23
|
"arrow-up-circle.svg",
|
|
24
24
|
"arrow-down-circle-fill.svg",
|
|
@@ -28,19 +28,19 @@ module.exports = [
|
|
|
28
28
|
"arrow-right-circle-fill.svg",
|
|
29
29
|
"arrow-right-circle.svg",
|
|
30
30
|
|
|
31
|
-
//Box arrows
|
|
31
|
+
// Box arrows
|
|
32
32
|
"box-arrow-in-right.svg",
|
|
33
33
|
"box-arrow-right.svg",
|
|
34
34
|
"box-arrow-in-up-right.svg",
|
|
35
35
|
"box-arrow-up-right.svg",
|
|
36
36
|
|
|
37
|
-
//Carrets
|
|
37
|
+
// Carrets
|
|
38
38
|
"caret-up-fill.svg",
|
|
39
39
|
"caret-down-fill.svg",
|
|
40
40
|
"caret-left-fill.svg",
|
|
41
41
|
"caret-right-fill.svg",
|
|
42
42
|
|
|
43
|
-
//Chevrons
|
|
43
|
+
// Chevrons
|
|
44
44
|
"chevron-up.svg",
|
|
45
45
|
"chevron-down.svg",
|
|
46
46
|
"chevron-left.svg",
|
|
@@ -50,7 +50,7 @@ module.exports = [
|
|
|
50
50
|
"chevron-double-left.svg",
|
|
51
51
|
"chevron-double-right.svg",
|
|
52
52
|
|
|
53
|
-
//Alerts, warnings and signs
|
|
53
|
+
// Alerts, warnings and signs
|
|
54
54
|
"check-lg.svg",
|
|
55
55
|
"check2.svg",
|
|
56
56
|
"exclamation-lg.svg",
|
|
@@ -76,7 +76,7 @@ module.exports = [
|
|
|
76
76
|
"dash-circle-fill.svg",
|
|
77
77
|
"filter.svg",
|
|
78
78
|
|
|
79
|
-
//Files and folders
|
|
79
|
+
// Files and folders
|
|
80
80
|
"file-earmark-pdf.svg",
|
|
81
81
|
"file-arrow-down-fill.svg",
|
|
82
82
|
"file-pdf-fill.svg",
|
|
@@ -111,12 +111,12 @@ module.exports = [
|
|
|
111
111
|
"folder.svg",
|
|
112
112
|
"folder-fill.svg",
|
|
113
113
|
|
|
114
|
-
//UI and keyboard
|
|
114
|
+
// UI and keyboard
|
|
115
115
|
"trash.svg",
|
|
116
116
|
"trash-fill.svg",
|
|
117
117
|
"link.svg",
|
|
118
118
|
|
|
119
|
-
//Social.svg
|
|
119
|
+
// Social.svg
|
|
120
120
|
"skype.svg",
|
|
121
121
|
"reddit.svg",
|
|
122
122
|
"mastodon.svg",
|
|
@@ -134,7 +134,7 @@ module.exports = [
|
|
|
134
134
|
"google.svg",
|
|
135
135
|
"github.svg",
|
|
136
136
|
|
|
137
|
-
//Shapes
|
|
137
|
+
// Shapes
|
|
138
138
|
"heart.svg",
|
|
139
139
|
"heart-fill.svg",
|
|
140
140
|
"star.svg",
|
|
@@ -149,7 +149,7 @@ module.exports = [
|
|
|
149
149
|
"circle.svg",
|
|
150
150
|
"circle-fill.svg",
|
|
151
151
|
|
|
152
|
-
//Media
|
|
152
|
+
// Media
|
|
153
153
|
"volume-off.svg",
|
|
154
154
|
"volume-off-fill.svg",
|
|
155
155
|
"volume-mute.svg",
|
|
@@ -175,7 +175,7 @@ module.exports = [
|
|
|
175
175
|
"record.svg",
|
|
176
176
|
"record-fill.svg",
|
|
177
177
|
|
|
178
|
-
//Devices
|
|
178
|
+
// Devices
|
|
179
179
|
"camera.svg",
|
|
180
180
|
"camera-fill.svg",
|
|
181
181
|
"printer.svg",
|
|
@@ -191,7 +191,7 @@ module.exports = [
|
|
|
191
191
|
"phone.svg",
|
|
192
192
|
"phone-fill.svg",
|
|
193
193
|
|
|
194
|
-
//Date and time
|
|
194
|
+
// Date and time
|
|
195
195
|
"calendar-x.svg",
|
|
196
196
|
"calendar-x-fill.svg",
|
|
197
197
|
"calendar-check.svg",
|
|
@@ -205,7 +205,7 @@ module.exports = [
|
|
|
205
205
|
"calendar.svg",
|
|
206
206
|
"calendar-fill.svg",
|
|
207
207
|
|
|
208
|
-
//Communications
|
|
208
|
+
// Communications
|
|
209
209
|
"chat-left-quote.svg",
|
|
210
210
|
"chat-left-quote-fill.svg",
|
|
211
211
|
"chat-left-text.svg",
|
|
@@ -246,14 +246,14 @@ module.exports = [
|
|
|
246
246
|
"telephone-fill.svg",
|
|
247
247
|
"translate.svg",
|
|
248
248
|
|
|
249
|
-
//Tools
|
|
249
|
+
// Tools
|
|
250
250
|
"gear.svg",
|
|
251
251
|
"gear-fill.svg",
|
|
252
252
|
"pencil-square.svg",
|
|
253
253
|
"pencil.svg",
|
|
254
254
|
"pencil-fill.svg",
|
|
255
255
|
|
|
256
|
-
//Real world
|
|
256
|
+
// Real world
|
|
257
257
|
"key.svg",
|
|
258
258
|
"key-fill.svg",
|
|
259
259
|
"paperclip.svg",
|
|
@@ -278,15 +278,15 @@ module.exports = [
|
|
|
278
278
|
"house-fill.svg",
|
|
279
279
|
"pin-fill.svg",
|
|
280
280
|
|
|
281
|
-
//Geo
|
|
281
|
+
// Geo
|
|
282
282
|
"geo-alt.svg",
|
|
283
283
|
"geo-alt-fill.svg",
|
|
284
284
|
|
|
285
|
-
//Graphics
|
|
285
|
+
// Graphics
|
|
286
286
|
"zoom-in.svg",
|
|
287
287
|
"zoom-out.svg",
|
|
288
288
|
|
|
289
|
-
//Emoji
|
|
289
|
+
// Emoji
|
|
290
290
|
"emoji-neutral.svg",
|
|
291
291
|
"emoji-neutral-fill.svg",
|
|
292
292
|
"emoji-frown.svg",
|
|
@@ -294,13 +294,13 @@ module.exports = [
|
|
|
294
294
|
"emoji-smile.svg",
|
|
295
295
|
"emoji-smile-fill.svg",
|
|
296
296
|
|
|
297
|
-
//Hands
|
|
297
|
+
// Hands
|
|
298
298
|
"hand-thumbs-down.svg",
|
|
299
299
|
"hand-thumbs-down-fill.svg",
|
|
300
300
|
"hand-thumbs-up.svg",
|
|
301
301
|
"hand-thumbs-up-fill.svg",
|
|
302
302
|
|
|
303
|
-
//People
|
|
303
|
+
// People
|
|
304
304
|
"person-square.svg",
|
|
305
305
|
"person-lines-fill.svg",
|
|
306
306
|
"building.svg",
|
|
@@ -317,7 +317,7 @@ module.exports = [
|
|
|
317
317
|
"person.svg",
|
|
318
318
|
"person-fill.svg",
|
|
319
319
|
|
|
320
|
-
//Security
|
|
320
|
+
// Security
|
|
321
321
|
"unlock.svg",
|
|
322
322
|
"unlock-fill.svg",
|
|
323
323
|
"lock.svg",
|
|
@@ -329,13 +329,13 @@ module.exports = [
|
|
|
329
329
|
"shield-check.svg",
|
|
330
330
|
"shield-fill-check.svg",
|
|
331
331
|
|
|
332
|
-
//Cloud
|
|
332
|
+
// Cloud
|
|
333
333
|
"cloud-arrow-up-fill.svg",
|
|
334
334
|
"cloud-arrow-up.svg",
|
|
335
335
|
"cloud-arrow-down-fill.svg",
|
|
336
336
|
"cloud-arrow-down.svg",
|
|
337
337
|
|
|
338
|
-
//Misc
|
|
338
|
+
// Misc
|
|
339
339
|
"upload.svg",
|
|
340
340
|
"download.svg",
|
|
341
341
|
"bookmarks.svg",
|
|
@@ -44,15 +44,15 @@ const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
|
|
|
44
44
|
class Gallery extends BaseComponent {
|
|
45
45
|
constructor(element, config) {
|
|
46
46
|
super(element)
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
47
|
+
this.carousel = SelectorEngine.findOne(CAROUSEL_SELECTOR, this.element)
|
|
48
|
+
this.carouselPager = SelectorEngine.findOne(CAROUSEL_PAGER_SELECTOR, this.element)
|
|
49
|
+
this.carouselStartIndex = element.getAttribute('data-gallery-start')
|
|
50
|
+
this.carouselActiveItem = SelectorEngine.find(CAROUSEL_ITEM_SELECTOR, this.carousel)[this.carouselStartIndex]
|
|
51
|
+
this.carouselPager.textContent = Number(this.carouselStartIndex) + 1
|
|
52
|
+
this.modal = SelectorEngine.findOne(MODAL_SELECTOR, this.element)
|
|
53
|
+
this.config = this.getConfig(config)
|
|
54
|
+
this.addEventListeners()
|
|
55
|
+
this.carouselLazyLoad(this.carouselActiveItem)
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// Getters
|
|
@@ -62,18 +62,19 @@ class Gallery extends BaseComponent {
|
|
|
62
62
|
|
|
63
63
|
// Public
|
|
64
64
|
setSlide(event) {
|
|
65
|
-
const slideFrom = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this.
|
|
65
|
+
const slideFrom = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this.carousel)
|
|
66
66
|
const slideTo = event.relatedTarget
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
67
|
+
this.carouselLazyLoad(slideTo)
|
|
68
|
+
this.carouselPager.textContent = event.to + 1
|
|
69
69
|
this.stopVideo(slideFrom)
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
stopSlide() {
|
|
73
|
-
const currentSlide = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this.
|
|
73
|
+
const currentSlide = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this.carousel)
|
|
74
74
|
this.stopVideo(currentSlide)
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
// eslint-disable-next-line class-methods-use-this
|
|
77
78
|
stopVideo(slide) {
|
|
78
79
|
const iframe = SelectorEngine.findOne('iframe', slide);
|
|
79
80
|
const video = SelectorEngine.findOne('video', slide);
|
|
@@ -85,7 +86,8 @@ class Gallery extends BaseComponent {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
// Private
|
|
88
|
-
|
|
89
|
+
// eslint-disable-next-line class-methods-use-this
|
|
90
|
+
carouselLazyLoad(slide) {
|
|
89
91
|
const media = SelectorEngine.findOne('[data-src]', slide);
|
|
90
92
|
|
|
91
93
|
if (media && !media.src) {
|
|
@@ -93,19 +95,19 @@ class Gallery extends BaseComponent {
|
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
getConfig(config) {
|
|
97
99
|
config = {
|
|
98
100
|
...Default,
|
|
99
|
-
...Manipulator.getDataAttributes(this.
|
|
101
|
+
...Manipulator.getDataAttributes(this.element),
|
|
100
102
|
...(typeof config === 'object' ? config : {})
|
|
101
103
|
}
|
|
102
104
|
typeCheckConfig(NAME, config, DefaultType)
|
|
103
105
|
return config
|
|
104
106
|
}
|
|
105
107
|
|
|
106
|
-
|
|
107
|
-
EventHandler.on(this.
|
|
108
|
-
EventHandler.on(this.
|
|
108
|
+
addEventListeners() {
|
|
109
|
+
EventHandler.on(this.carousel, CAROUSEL_EVENT, event => this.setSlide(event))
|
|
110
|
+
EventHandler.on(this.modal, EVENT_MODAL_HIDE, event => this.stopSlide(event))
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
// Static
|
|
@@ -118,6 +120,7 @@ class Gallery extends BaseComponent {
|
|
|
118
120
|
|
|
119
121
|
let { _config } = data
|
|
120
122
|
if (typeof config === 'object') {
|
|
123
|
+
// eslint-disable-next-line no-unused-vars
|
|
121
124
|
_config = {
|
|
122
125
|
..._config,
|
|
123
126
|
...config
|
|
@@ -126,7 +129,7 @@ class Gallery extends BaseComponent {
|
|
|
126
129
|
}
|
|
127
130
|
|
|
128
131
|
static jQueryInterface(config) {
|
|
129
|
-
return this.each(function () {
|
|
132
|
+
return this.each(function jInterface() {
|
|
130
133
|
const data = Gallery.getOrCreateInstance(this)
|
|
131
134
|
|
|
132
135
|
if (typeof config !== 'string') {
|
|
@@ -148,7 +151,7 @@ class Gallery extends BaseComponent {
|
|
|
148
151
|
* ------------------------------------------------------------------------
|
|
149
152
|
*/
|
|
150
153
|
|
|
151
|
-
EventHandler.on(document, EVENT_CLICK_DATA_API, THUMBNAIL_SELECTOR,
|
|
154
|
+
EventHandler.on(document, EVENT_CLICK_DATA_API, THUMBNAIL_SELECTOR, (event) => {
|
|
152
155
|
const gallery = event.target.closest('div.bcl-gallery')
|
|
153
156
|
const firstSlide = event.target.parentNode.getAttribute('data-bs-slide-to');
|
|
154
157
|
gallery.dataset.galleryStart = firstSlide;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.bcl-inpage-navigation {
|
|
2
|
+
display: none;
|
|
2
3
|
top: map-get($spacers, 3); // needed for position-sticky
|
|
3
4
|
background-color: $gray-100;
|
|
4
5
|
|
|
@@ -26,3 +27,9 @@
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
}
|
|
30
|
+
|
|
31
|
+
@include media-breakpoint-up(lg) {
|
|
32
|
+
.bcl-inpage-navigation {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// Multiselect Spacers
|
|
11
11
|
$multiselect-spacers: (
|
|
12
12
|
"disabled-spacer": calc(map-get($spacers, 2) - 1px),
|
|
13
|
-
"disabled-spacer-md": calc(map-get($spacers,
|
|
13
|
+
"disabled-spacer-md": calc(map-get($spacers, 2) - 2px),
|
|
14
14
|
"select-spacer": calc(map-get($spacers, 2) - 2px),
|
|
15
15
|
"select-spacer-md": 0.075rem,
|
|
16
16
|
"select-spacer-start": 0.3rem,
|
|
@@ -46,8 +46,27 @@ select.multi-select {
|
|
|
46
46
|
text-align: center;
|
|
47
47
|
white-space: nowrap;
|
|
48
48
|
vertical-align: baseline;
|
|
49
|
+
padding-right: map-get($spacers, "3-5");
|
|
49
50
|
@include border-radius($badge-border-radius);
|
|
50
51
|
@include gradient-bg();
|
|
52
|
+
.ss-value-delete {
|
|
53
|
+
font-size: 0;
|
|
54
|
+
&:after {
|
|
55
|
+
background-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 8.5C16 12.9183 12.4183 16.5 8 16.5C3.58172 16.5 0 12.9183 0 8.5C0 4.08172 3.58172 0.5 8 0.5C12.4183 0.5 16 4.08172 16 8.5ZM5.35355 5.14645C5.15829 4.95118 4.84171 4.95118 4.64645 5.14645C4.45118 5.34171 4.45118 5.65829 4.64645 5.85355L7.29289 8.5L4.64645 11.1464C4.45118 11.3417 4.45118 11.6583 4.64645 11.8536C4.84171 12.0488 5.15829 12.0488 5.35355 11.8536L8 9.20711L10.6464 11.8536C10.8417 12.0488 11.1583 12.0488 11.3536 11.8536C11.5488 11.6583 11.5488 11.3417 11.3536 11.1464L8.70711 8.5L11.3536 5.85355C11.5488 5.65829 11.5488 5.34171 11.3536 5.14645C11.1583 4.95118 10.8417 4.95118 10.6464 5.14645L8 7.79289L5.35355 5.14645Z' fill='%23F8F9FA'/%3E%3C/svg%3E%0A");
|
|
56
|
+
background-repeat: no-repeat;
|
|
57
|
+
content: "";
|
|
58
|
+
display: inline-block;
|
|
59
|
+
height: 1rem;
|
|
60
|
+
transform: scale(0.8);
|
|
61
|
+
width: 1rem;
|
|
62
|
+
padding: 15px;
|
|
63
|
+
background-position: 50%;
|
|
64
|
+
border-radius: 50%;
|
|
65
|
+
position: absolute;
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: -2px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
51
70
|
}
|
|
52
71
|
.ss-disabled {
|
|
53
72
|
padding-top: map-get($multiselect-spacers, "disabled-spacer");
|
|
@@ -123,7 +142,9 @@ select.multi-select {
|
|
|
123
142
|
@include font-size($badge-font-size-desktop);
|
|
124
143
|
}
|
|
125
144
|
.ss-disabled {
|
|
126
|
-
padding-top:
|
|
145
|
+
padding-top: calc(
|
|
146
|
+
map-get($multiselect-spacers, "disabled-spacer-md") + 1px
|
|
147
|
+
);
|
|
127
148
|
padding-bottom: map-get($multiselect-spacers, "disabled-spacer-md");
|
|
128
149
|
}
|
|
129
150
|
}
|
|
@@ -6,3 +6,36 @@
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
.pagination--glossary {
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
|
|
13
|
+
.page-item {
|
|
14
|
+
margin-right: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.page-link {
|
|
18
|
+
border: none;
|
|
19
|
+
border-bottom: 2px solid transparent;
|
|
20
|
+
color: $dark;
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.active .page-link {
|
|
27
|
+
background: transparent;
|
|
28
|
+
border-color: $primary;
|
|
29
|
+
color: $dark;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.page-item:first-child .page-link {
|
|
33
|
+
border-radius: 0px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include media-breakpoint-down(lg) {
|
|
38
|
+
.pagination--glossary {
|
|
39
|
+
@include horizontal-slider;
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/scss/_tabs.scss
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* stylelint-disable declaration-no-important */
|
|
2
1
|
.nav {
|
|
3
2
|
&.bcl__nav {
|
|
4
3
|
border: none;
|
|
@@ -30,18 +29,9 @@
|
|
|
30
29
|
|
|
31
30
|
@include media-breakpoint-down(md) {
|
|
32
31
|
.nav-tabs {
|
|
33
|
-
|
|
34
|
-
flex-wrap: nowrap;
|
|
35
|
-
overflow-x: scroll;
|
|
36
|
-
overflow-y: hidden;
|
|
37
|
-
white-space: nowrap;
|
|
32
|
+
@include horizontal-slider;
|
|
38
33
|
border: none;
|
|
39
|
-
|
|
40
|
-
-ms-overflow-style: none;
|
|
41
|
-
&::-webkit-scrollbar {
|
|
42
|
-
width: 0;
|
|
43
|
-
height: 0;
|
|
44
|
-
}
|
|
34
|
+
|
|
45
35
|
.nav-item {
|
|
46
36
|
z-index: 1;
|
|
47
37
|
}
|
|
@@ -53,6 +43,7 @@
|
|
|
53
43
|
}
|
|
54
44
|
}
|
|
55
45
|
.dropdown-menu {
|
|
46
|
+
/* stylelint-disable-next-line declaration-no-important */
|
|
56
47
|
position: fixed !important;
|
|
57
48
|
}
|
|
58
49
|
}
|
|
@@ -23,8 +23,8 @@ $utilities: map-merge(
|
|
|
23
23
|
map-merge(
|
|
24
24
|
map-get(map-get($utilities, "max-width"), "values"),
|
|
25
25
|
(
|
|
26
|
-
date:
|
|
27
|
-
col-date: calc(
|
|
26
|
+
date: 10rem,
|
|
27
|
+
col-date: calc(10rem + var(--#{$variable-prefix}gutter-x)),
|
|
28
28
|
"listing-img": 10rem,
|
|
29
29
|
)
|
|
30
30
|
),
|
|
@@ -46,6 +46,20 @@ $utilities: map-merge(
|
|
|
46
46
|
responsive: true,
|
|
47
47
|
)
|
|
48
48
|
),
|
|
49
|
+
"border-top":
|
|
50
|
+
map-merge(
|
|
51
|
+
map-get($utilities, "border-top"),
|
|
52
|
+
(
|
|
53
|
+
responsive: true,
|
|
54
|
+
)
|
|
55
|
+
),
|
|
56
|
+
"border-bottom":
|
|
57
|
+
map-merge(
|
|
58
|
+
map-get($utilities, "border-bottom"),
|
|
59
|
+
(
|
|
60
|
+
responsive: true,
|
|
61
|
+
)
|
|
62
|
+
),
|
|
49
63
|
// Create medium font weight class
|
|
50
64
|
"font-weight":
|
|
51
65
|
map-merge(
|
|
@@ -67,26 +81,32 @@ $utilities: map-merge(
|
|
|
67
81
|
a {
|
|
68
82
|
text-underline-offset: 2px;
|
|
69
83
|
|
|
70
|
-
&:not(.text-underline-hover)
|
|
71
|
-
&:not(.standalone) {
|
|
84
|
+
&:not(.text-underline-hover):not(.standalone) {
|
|
72
85
|
text-decoration-color: rgba($primary, 0.3);
|
|
86
|
+
|
|
87
|
+
&:visited {
|
|
88
|
+
text-decoration-color: rgba($purple, 0.3);
|
|
89
|
+
}
|
|
90
|
+
|
|
73
91
|
&:hover {
|
|
74
92
|
text-decoration-color: currentColor;
|
|
93
|
+
|
|
94
|
+
&:visited {
|
|
95
|
+
text-decoration-color: $purple;
|
|
96
|
+
}
|
|
75
97
|
}
|
|
76
98
|
}
|
|
77
99
|
|
|
78
100
|
&.standalone,
|
|
79
101
|
&.text-underline-hover {
|
|
80
|
-
text-decoration:
|
|
81
|
-
&:hover {
|
|
82
|
-
text-decoration: underline;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
102
|
+
text-decoration-color: transparent;
|
|
85
103
|
|
|
86
|
-
&:visited {
|
|
87
|
-
color: $link-visited;
|
|
88
104
|
&:hover {
|
|
89
|
-
color:
|
|
105
|
+
text-decoration-color: currentColor;
|
|
106
|
+
|
|
107
|
+
&:visited {
|
|
108
|
+
text-decoration-color: $purple;
|
|
109
|
+
}
|
|
90
110
|
}
|
|
91
111
|
}
|
|
92
112
|
}
|
|
@@ -117,6 +137,10 @@ svg {
|
|
|
117
137
|
background-color: $gray-400;
|
|
118
138
|
}
|
|
119
139
|
|
|
140
|
+
.border-gray-300 {
|
|
141
|
+
border-color: $gray-300;
|
|
142
|
+
}
|
|
143
|
+
|
|
120
144
|
.grid-3-9 {
|
|
121
145
|
grid-template-columns: 25% 75%;
|
|
122
146
|
grid-gap: map-get($gutters, "2-5");
|
|
@@ -46,16 +46,22 @@
|
|
|
46
46
|
|
|
47
47
|
// Helpers
|
|
48
48
|
@import "@openeuropa/bcl-bootstrap/scss/helpers";
|
|
49
|
+
@import "@openeuropa/bcl-theme-default/src/scss/base/layout";
|
|
49
50
|
@import "@openeuropa/bcl-theme-default/src/scss/base/utilities";
|
|
50
51
|
|
|
51
52
|
// Utilities
|
|
52
53
|
@import "@openeuropa/bcl-bootstrap/scss/utilities/api";
|
|
53
54
|
|
|
55
|
+
// BCL mixins
|
|
56
|
+
@import "@openeuropa/bcl-theme-default/src/scss/base/mixins";
|
|
57
|
+
|
|
54
58
|
// Custom styles
|
|
55
59
|
@import "@openeuropa/bcl-theme-default/src/scss/alert";
|
|
56
60
|
@import "@openeuropa/bcl-theme-default/src/scss/button";
|
|
61
|
+
@import "@openeuropa/bcl-theme-default/src/scss/card";
|
|
57
62
|
@import "@openeuropa/bcl-theme-default/src/scss/collapse";
|
|
58
63
|
@import "@openeuropa/bcl-theme-default/src/scss/circular-progress-bar";
|
|
64
|
+
@import "@openeuropa/bcl-theme-default/src/scss/description_list";
|
|
59
65
|
@import "@openeuropa/bcl-theme-default/src/scss/reset";
|
|
60
66
|
@import "@openeuropa/bcl-theme-default/src/scss/header";
|
|
61
67
|
@import "@openeuropa/bcl-theme-default/src/scss/footer";
|
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
5
|
- id (int) (default: random(1000))
|
|
6
|
-
- flush (boolean) (default: false)
|
|
6
|
+
- flush (boolean) (default: false)
|
|
7
7
|
- items (array) (default: []): format: [
|
|
8
8
|
{
|
|
9
9
|
title: (string),
|
|
10
10
|
title_tag: (string),
|
|
11
11
|
content: (block),
|
|
12
|
-
stay_open (boolean) (default: false)
|
|
12
|
+
stay_open (boolean) (default: false)
|
|
13
13
|
},
|
|
14
|
-
...
|
|
15
14
|
]
|
|
16
|
-
- open_item_id (int) (default: 0)
|
|
17
|
-
|
|
15
|
+
- open_item_id (int) (default: 0)
|
|
16
|
+
- attributes (drupal attrs)
|
|
18
17
|
#}
|
|
19
18
|
|
|
20
19
|
{% set _id = id|default(random(1000)) %}
|
|
@@ -8,15 +8,17 @@
|
|
|
8
8
|
- animated_dismiss (boolean) (default: true)
|
|
9
9
|
- icon_path (string) (default: '')
|
|
10
10
|
- icon_name (string) (default: '')
|
|
11
|
+
- attributes (drupal attrs)
|
|
11
12
|
#}
|
|
12
13
|
|
|
13
14
|
{% set _message = message|default('') %}
|
|
14
|
-
{% set _variant = variant|default('primary') %}
|
|
15
15
|
{% set _heading = heading|default('') %}
|
|
16
|
-
{% set
|
|
16
|
+
{% set _variant = variant|default('primary') %}
|
|
17
17
|
{% set _dismissible = dismissible ?? true %}
|
|
18
18
|
{% set _animated_dismiss = animated_dismiss ?? true %}
|
|
19
|
+
{% set _icon_path = icon_path|default('') %}
|
|
19
20
|
{% set _icon_name = icon_name|default('') %}
|
|
21
|
+
|
|
20
22
|
{% set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
|
|
21
23
|
{% set _icon_names = {
|
|
22
24
|
primary: "info-circle-fill",
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
{% endif %}
|
|
63
65
|
<div class="alert-content flex-grow-1">
|
|
64
66
|
{%- if _heading is not empty -%}
|
|
65
|
-
<
|
|
67
|
+
<div class="alert-heading h4">{{ _heading }}</div>
|
|
66
68
|
{%- endif -%}
|
|
67
69
|
{%- if _message is not empty -%}
|
|
68
70
|
{{- _message -}}
|