Giter Club home page Giter Club logo

Comments (1)

dandln avatar dandln commented on July 28, 2024

Hey! It already works pretty similar to what you outlined, essentially the CSS just scales the container in which the image is displayed, and the image itself is just a background-image whose size is set to contain, i.e. scale within the bounds of the container.

So if you want to influence the size of the logos, you'll need to adjust the size of either the login mask as a whole, or the individual image containers. The #join-game rule has a width declaration, that sets the width of the entire login mask including the header image. If you then also adjust the #join-game #world-title height, the image should re-size to fill the new space available. You can also resize just the header image by adding this to it's definition:

#join-game #world-title {
  ...
  width: 400%;
  margin-left: -150% !important;
}

The width property sets the width of the image container, and a negative margin-left property will move it horizontically so that you can re-centre it.

You should be able to adjust the size of the footer logo just by modifying the --login-footer-logo-height variable, as the container there is already set to 100% width of the copyright container and just limited by the height setting.

I've upgraded my Foundry to v11 yesterday which unfortunately broke the module, so I won't be able to test it properly before I port the CSS to the new version, but hopefully this will be soon!

from foundry-vtt-prettier-login-screen.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.