1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-17 18:37:00 +02:00

Proper percent

This commit is contained in:
Antonio Laguna
2017-06-01 10:48:23 +02:00
parent 86894f0489
commit ac80c7afec
2 changed files with 8 additions and 8 deletions

View File

@@ -158,7 +158,7 @@ $sizes: 80, 70, 60, 50, 40, 30, 20;
@media (min-width: 1024px) { @media (min-width: 1024px) {
@each $size in $sizes { @each $size in $sizes {
.size-#{$size} { .size-#{$size} {
width: $size + '%'; width: percentage($size / 100);
} }
} }
} }

View File

@@ -599,19 +599,19 @@ figure.alignleft {
@media (min-width: 1024px) { @media (min-width: 1024px) {
.size-80 { .size-80 {
width: "80%"; } width: 80%; }
.size-70 { .size-70 {
width: "70%"; } width: 70%; }
.size-60 { .size-60 {
width: "60%"; } width: 60%; }
.size-50 { .size-50 {
width: "50%"; } width: 50%; }
.size-40 { .size-40 {
width: "40%"; } width: 40%; }
.size-30 { .size-30 {
width: "30%"; } width: 30%; }
.size-20 { .size-20 {
width: "20%"; } } width: 20%; } }
pre, pre,
code { code {