Sha256: 684580c8ec4053b89a9f3ed9f10006dde8fbfeb9bbb9740567d53e2afad904d9

Contents?: true

Size: 1.17 KB

Versions: 19

Compression:

Stored size: 1.17 KB

Contents

// Media
// Image responsive
.img-responsive {
  display: block;
  height: auto;
  max-width: 100%;
}

// object-fit support is coming to Microsoft Edge
// https://developer.microsoft.com/en-us/microsoft-edge/platform/status/objectfitandobjectposition/
.img-fit-cover {
  object-fit: cover;
}

.img-fit-contain {
  object-fit: contain;
}

// Video responsive
.video-responsive {
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
  &::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; // Default ratio 16:9, you can calculate this value by dividing 9 by 16
  }

  iframe,
  object,
  embed {
    border: 0;
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
  }
}

video.video-responsive {
  height: auto;
  max-width: 100%;

  &::before {
    content: none;
  }
}

.video-responsive-4-3 {
  &::before {
    padding-bottom: 75%; // Ratio 4:3
  }
}

.video-responsive-1-1 {
  &::before {
    padding-bottom: 100%; // Ratio 1:1
  }
}

// Figure
.figure {
  margin: 0 0 $layout-spacing 0;

  .figure-caption {
    color: $gray-color-dark;
    margin-top: $layout-spacing;
  }
}

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
spectre_scss-0.5.9.1 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.9.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.8.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.7.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.6.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.5.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.4.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.3.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.2.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.1.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.5.0.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.4.7.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.4.6.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.4.5.0 vendor/assets/stylesheets/spectre/_media.scss
respectre-jekyll-theme-0.1.0 _sass/spectre/_media.scss
spectre_scss-0.4.4.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.4.3.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.4.2.0 vendor/assets/stylesheets/spectre/_media.scss
spectre_scss-0.4.1.0 vendor/assets/stylesheets/spectre/_media.scss