Added responsive images utility CSS class for custom image elements.

This enables custom elements that render an image to be responsive within the layout editor by applying the "img-responsive" class to either the image itself or any of its parent HTML elements.
This commit is contained in:
Sipke Schoorstra
2015-03-15 14:28:16 +01:00
parent 53c942637e
commit b12e64bef9
5 changed files with 23 additions and 2 deletions

View File

@@ -676,6 +676,13 @@ table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th {
max-width: 100%;
height: auto;
}
.layout-editor .img-responsive,
.layout-editor .img-responsive img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}
.layout-editor > .layout-toolbox {
margin-left: 12px;

File diff suppressed because one or more lines are too long

View File

@@ -469,3 +469,10 @@ table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th {
max-width: 100%;
height: auto;
}
.layout-editor .img-responsive,
.layout-editor .img-responsive img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}

View File

@@ -33,4 +33,11 @@
}
}
}
.img-responsive, .img-responsive img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}
}

File diff suppressed because one or more lines are too long