Merge pull request #73 from HideyoshiNakazone/devel
Devel - Better Project Card Sizing and Padding
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
|
.card {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
.card .inverse-card-image {
|
.card .inverse-card-image {
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card .card-content {
|
.card .card-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 40px;
|
padding: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
|||||||
@@ -77,8 +77,11 @@ export class ProjectCardComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private generateChart(languages: Language[], windowWidth: number): ChartOptions {
|
private generateChart(languages: Language[], windowWidth: number): ChartOptions {
|
||||||
|
const WIDTH_PROPORTION = .9*.8;
|
||||||
|
const DOUBLE_PADDING_WIDTH = 40;
|
||||||
|
|
||||||
const responsiveWindowWidth = windowWidth >= 530 ?
|
const responsiveWindowWidth = windowWidth >= 530 ?
|
||||||
300 : (windowWidth*.8 - 80);
|
300 : (windowWidth*WIDTH_PROPORTION - DOUBLE_PADDING_WIDTH);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
series: languages.map(value => value.percentage),
|
series: languages.map(value => value.percentage),
|
||||||
|
|||||||
Reference in New Issue
Block a user