Plugin Directory

Changeset 2347426


Ignore:
Timestamp:
07/27/2020 08:49:48 PM (6 years ago)
Author:
Knighthawk
Message:

update:

  • add jQuery for aspect ratio
  • add default image
  • all internal functions will stay out of the loop
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vi-include-post-by/trunk/style.css

    r2325894 r2347426  
    33Plugin URI: http://neathawk.com
    44Description: Ability to include posts inside other posts/pages, etc, with a shortcode.
    5 Version: 0.4.200617
     5Version: 0.4.200706
    66Author: Joseph Neathawk
    77Author URI: http://Neathawk.com
     
    4242--------------------------------------------------------------*/
    4343
    44 /* forced aspect ratios */
     44/* forced aspect ratios 2.0 */
    4545.aspect-ratio {
    4646    display: inline-block;
     47    height:0px;
     48    margin:0;
     49    padding:0 0 100% 0;
    4750    position: relative;
    4851    width: 100%;
    49 }
    50 .aspect-ratio .dummy,
    51 .aspect-ratio.ar-1-1 .dummy {
    52     /*default aspect ratio */
    53     margin-bottom: 100%; /* 1:1; aspect ratio */
    54 }
    55 .aspect-ratio.ar-4-3 .dummy {
    56     margin-bottom: 75%; /* 4:3 aspect ratio */
    57 }
    58 .aspect-ratio.ar-16-9 .dummy {
    59     margin-bottom: 56.25%; /* 16:9; aspect ratio */
    60 }
    61 .aspect-ratio.ar-3-4 .dummy {
    62     margin-bottom: 125%; /* 3:4; aspect ratio */
    63 }
    64 .aspect-ratio.ar-9-16 .dummy {
    65     margin-bottom: 177.7%; /* 9:16; aspect ratio */
    66 }
    67 .aspect-ratio .element {
    68     position: absolute;
    69     top: 0;
    70     bottom: 0;
    71     left: 0;
    72     right: 0;
    7352
     53    background-color:#cccccc;
    7454    background-size:cover;
    7555    background-position:center center;
    7656}
     57.aspect-ratio.ar-1-1 {
     58    /*default aspect ratio */
     59    padding-bottom: 100%; /* 1:1; aspect ratio */
     60}
     61.aspect-ratio.ar-4-3 {
     62    padding-bottom: 75%; /* 4:3 aspect ratio */
     63}
     64.aspect-ratio.ar-16-9 {
     65    padding-bottom: 56.25%; /* 16:9; aspect ratio */
     66}
     67.aspect-ratio.ar-3-4 {
     68    padding-bottom: 125%; /* 3:4; aspect ratio */
     69}
     70.aspect-ratio.ar-9-16 {
     71    padding-bottom: 177.7%; /* 9:16; aspect ratio */
     72}
     73.aspect-ratio * {
     74    /*edit all children */
     75    bottom:0px;
     76    height:100%;
     77    left:0px;
     78    position:absolute;
     79    right:0px;
     80    top:0px;
     81    width:100%;
     82}
    7783
Note: See TracChangeset for help on using the changeset viewer.