diff --git a/src/addons/block/badges/components/badges/badges.scss b/src/addons/block/badges/components/badges/badges.scss index 5ca9725d5..539340b70 100644 --- a/src/addons/block/badges/components/badges/badges.scss +++ b/src/addons/block/badges/components/badges/badges.scss @@ -1,21 +1,42 @@ -:host .core-block-content ::ng-deep { - ul.badges { - list-style: none; - margin-left: 0; - margin-right: 0; - -webkit-padding-start: 0; +:host { + --badge-size: 100px; + --badge-container-size: 150px; - li { - position: relative; - display: inline-block; - padding-top: 1em; - text-align: center; - vertical-align: top; - width: 150px; + .core-block-content ::ng-deep { - .badge-name { - display: block; - padding: 5px; + ul.badges { + list-style: none; + margin: 0; + + li { + position: relative; + display: inline-block; + text-align: center; + margin-top: 1em; + vertical-align: top; + width: var(--badge-container-size); + + .badge-name { + display: block; + padding: 5px; + } + .badge-image { + width: var(--badge-size); + } + + .expireimage { + content: 'expired'; + background-image: url('/assets/img/expired.svg'); + background-repeat: no-repeat; + background-size: var(--badge-size) var(--badge-size); + width: var(--badge-size); + height: var(--badge-size); + left: calc((var(--badge-container-size) - var(--badge-size)) /2); + top: 0; + position: absolute; + z-index: 2; + opacity: .85; + } } } } diff --git a/src/assets/img/expired.svg b/src/assets/img/expired.svg new file mode 100644 index 000000000..adaaf862d --- /dev/null +++ b/src/assets/img/expired.svg @@ -0,0 +1 @@ +Layer 1E X P I R E D \ No newline at end of file diff --git a/src/core/features/h5p/components/h5p-player/h5p-player.scss b/src/core/features/h5p/components/h5p-player/h5p-player.scss index 1761f096a..4644e74b4 100644 --- a/src/core/features/h5p/components/h5p-player/h5p-player.scss +++ b/src/core/features/h5p/components/h5p-player/h5p-player.scss @@ -6,7 +6,7 @@ position: relative; width: 100%; height: 230px; - background: url('../../../../../assets/img/icons/h5p.svg') center top 25px / 100px auto no-repeat var(--core-h5p-placeholder-bg-color); + background: url('/assets/img/icons/h5p.svg') center top 25px / 100px auto no-repeat var(--core-h5p-placeholder-bg-color); color: var(--core-h5p-placeholder-text-color); .icon:not([color="success"]) {