Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
v1.71.0 -- Updating mediaElement component (#249)
Browse files Browse the repository at this point in the history
* v1.71.0--updated styles for menuweb

* v1.71.0 -- Added new class for spacing

* added css back in

* added css back in

* Update _media-element.scss

* Update CHANGELOG.md
  • Loading branch information
smilburn1990 authored and DamianMullins committed Nov 1, 2019
1 parent d9ecb9b commit d95fe8a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)


v1.71.0
------------------------------
*October 30, 2019*

### Changed
- Styles for `.c-mediaElement-infoLink` and `$mediaElement-img-borderRadius` for menuweb designs

## Added
- `c-mediaElement--fullstack--negativeTop`


v1.70.0
------------------------------
*October 21, 2019*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@justeat/fozzie",
"title": "Fozzie – Just Eat UI Web Framework",
"description": "UI Web Framework for the Just Eat Global Platform",
"version": "1.70.0",
"version": "1.71.0",
"main": "dist/js/index.js",
"files": [
"dist/js",
Expand Down
12 changes: 11 additions & 1 deletion src/scss/components/_media-element.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$mediaElement-img-width : 50px;
$mediaElement-img-width--mid : 78px;
$mediaElement-img-width--wide : 67px;
$mediaElement-img-borderRadius : 8px;
$mediaElement-img-borderRadius : 2px;
$mediaElement-infoLinkColor : $blue;
$mediaElement-fontSize : base--scaleUp;
$mediaElement-spacing : spacing(x2);
Expand Down Expand Up @@ -126,6 +126,11 @@ $mediaElement-spacing : spacing(x2);
margin-top: spacing(x0.5);
}

.c-mediaElement--fullstack--negativeTop & {
flex: auto;
margin-top: -#{spacing(x2)};
}

// some content uses br for content shaping – get rid of it on mobile devices
& br {
@include media('<mid') {
Expand Down Expand Up @@ -154,6 +159,11 @@ $mediaElement-spacing : spacing(x2);
text-decoration: none;
top: $mediaElement-spacing;

@include media('>=narrow') {
right: $mediaElement-spacing / 2;
top: $mediaElement-spacing / 2;
}

&:hover {
text-decoration: underline;
}
Expand Down

0 comments on commit d95fe8a

Please sign in to comment.