MediaWiki:PoemButtons.js: Difference between revisions

No edit summary
No edit summary
Line 31: Line 31:
     } );
     } );
      
      
    // Apply styling after the buttons are created
     setTimeout(function () {
     setTimeout(function () {


        $('a[rel="Poem1"], a[rel="Poem2"]').each(function () {
    $('a[rel="Poem1"], a[rel="Poem2"]').each(function () {
 
            this.style.setProperty('margin-top', '7px', 'important');
        this.style.backgroundColor = "red";
            this.style.setProperty('width', '40px', 'important');
        this.style.border = "3px solid blue";
            this.style.setProperty('height', '40px', 'important');
        this.style.marginTop = "20px";
            this.style.setProperty('min-width', '40px', 'important');
        this.style.transform = "translateY(20px)";
            this.style.setProperty('min-height', '40px', 'important');
        this.style.width = "60px";
            this.style.setProperty('background-size', '28px 28px', 'important');
        this.style.height = "60px";
            this.style.setProperty('background-position', 'center', 'important');
        this.style.backgroundSize = "40px 40px";
            this.style.setProperty('background-repeat', 'no-repeat', 'important');
 
    });
        });
 
}, 500);
    }, 500);
      
      
};
};