Skip to content
This repository was archived by the owner on Jan 4, 2024. It is now read-only.

Commit 22538c9

Browse files
Figure no longer stretches images beyond their intrinsic width (#119)
* Figure no longer stretches images beyond their intrinsic width * Ran npm i to bump version in package-lock.json
1 parent 80e42ce commit 22538c9

File tree

9 files changed

+37
-50
lines changed

9 files changed

+37
-50
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
*The format of this document 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).*
1+
_The format of this document 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)._
2+
3+
## [v1.2.1](https://github.com/RaspberryPiFoundation/Bits/compare/v1.2.0...v1.2.1) - 2019-10-09
4+
5+
### Changed
6+
7+
- Figure no longer stretches images beyond their intrinsic width
28

39
## [v1.2.0](https://github.com/RaspberryPiFoundation/Bits/compare/v1.1.20...v1.2.0) - 2019-07-05
410

lib/Bits.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Author: The Raspberry Pi Foundation
77
Author URI: https://raspberrypi.org
8-
Version: 1.2.0
8+
Version: 1.2.1
99
*/
1010

1111

@@ -943,8 +943,8 @@ strong {
943943

944944
.c-figure__image {
945945
display: block;
946-
max-width: 100%;
947-
width: 100%; }
946+
margin: 0 auto;
947+
max-width: 100%; }
948948

949949

950950

lib/Bits.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Bits.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.es.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+12-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "git",
1111
"url": "https://github.com/RaspberryPiFoundation/Bits.git"
1212
},
13-
"version": "1.2.0",
13+
"version": "1.2.1",
1414
"main": "lib/index.js",
1515
"files": [
1616
"lib",

src/components/Figure/Figure.scss

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
@import '../../styles/component-helper';
1+
@import "../../styles/component-helper";
22

3-
$figure-caption-color: $color-ui-white !default;
3+
$figure-caption-color: $color-ui-white !default;
44
$figure-caption-background-color: $color-ui-grey-dark !default;
5-
$figure-margin-bottom: map-get($type-margins, '-base') !default;
6-
$figure-type-map: $type-caption !default;
5+
$figure-margin-bottom: map-get($type-margins, "-base") !default;
6+
$figure-type-map: $type-caption !default;
77

88
.c-figure {
99
margin-bottom: $figure-margin-bottom;
10-
text-align: center;
10+
text-align: center;
1111
}
1212

1313
.c-figure__caption {
1414
@include iota-type($figure-type-map);
1515

1616
background-color: $figure-caption-background-color;
17-
color: $figure-caption-color;
18-
display: block;
17+
color: $figure-caption-color;
18+
display: block;
1919
}
2020

2121
.c-figure__image {
22-
display: block;
22+
display: block;
23+
margin: 0 auto;
2324
max-width: 100%;
24-
width: 100%;
2525
}

0 commit comments

Comments
 (0)