Browse Source

adding #17

master
Björn 4 years ago
parent
commit
6f9273fb88
5 changed files with 15 additions and 4 deletions
  1. +1
    -1
      dist/crispy_all.css
  2. +2
    -2
      dist/example/index.html
  3. +1
    -1
      dist/example/styles.css
  4. +6
    -0
      src/_mixins.scss
  5. +5
    -0
      src/components/_media.scss

+ 1
- 1
dist/crispy_all.css
File diff suppressed because it is too large
View File


+ 2
- 2
dist/example/index.html View File

@ -749,11 +749,11 @@ $crispy__spacing__steps: 7;
&lt;/div&gt;</code></pre>
<div class="grid">
<div class="col-6">
<img class="img-responsive" src="https://picsum.photos/400" />
<img class="img-responsive img-wide" src="https://picsum.photos/400" />
</div>
<div class="col-6">
<figure>
<img class="img-responsive" src="https://picsum.photos/400" />
<img class="img-responsive img-wide" src="https://picsum.photos/400" />
<figcaption class="text-center">Lorem Ipsum</figcaption>
</figure>
</div>


+ 1
- 1
dist/example/styles.css
File diff suppressed because it is too large
View File


+ 6
- 0
src/_mixins.scss View File

@ -90,6 +90,12 @@
}
}
@mixin crispy__media-xxs-only() {
@media only screen and (max-width: $crispy__xs - 1) {
@content;
}
}
@mixin crispy__media-xs-only() {
@media only screen and (min-width: $crispy__xs) and (max-width: $crispy__sm - 1) {
@content;


+ 5
- 0
src/components/_media.scss View File

@ -9,6 +9,11 @@
*/
@mixin crispy__media() {
.img-wide {
width: 100%;
}
.img-responsive {
display: block;
max-width: 100%;


Loading…
Cancel
Save