GithubHelp home page GithubHelp logo

Width issue about grav-theme-future2021 HOT 10 CLOSED

pquerner avatar pquerner commented on July 2, 2024
Width issue

from grav-theme-future2021.

Comments (10)

pquerner avatar pquerner commented on July 2, 2024 1

Oh I forgot. Please add a donation button to the readme so I can buy you a coffee/beer. :)

from grav-theme-future2021.

pquerner avatar pquerner commented on July 2, 2024

I've ported my post into the demo page, post five, and can confirm it also happens there.
So something about my formatting. :(

https://gist.github.com/pquerner/3d9631ccdb7136b928e5f7733b842d17

from grav-theme-future2021.

pmoreno-rodriguez avatar pmoreno-rodriguez commented on July 2, 2024

Hi @pquerner, have you any test website online where I can see your issue?

from grav-theme-future2021.

pquerner avatar pquerner commented on July 2, 2024

Sadly, no. But I added the gist with my blog post files, see here:
https://gist.github.com/pquerner/3d9631ccdb7136b928e5f7733b842d17

I've imported this into a new instance of grav using your theme (latest version 1.0.6) and its still there.

Maybe its the (long width) codeblocks or something.

from grav-theme-future2021.

pquerner avatar pquerner commented on July 2, 2024

I've uploaded a dev instance with the new stuff here: https://blogdev.querner.dev/

auth: blogdev / blognewfuture2021
(nothing worth protecting, its all public anyway, but I dont want duplicate content)

from grav-theme-future2021.

pmoreno-rodriguez avatar pmoreno-rodriguez commented on July 2, 2024

Hi @pquerner.

Try with this css. You have to overwrite the old files in assets/css folder.
css.zip

Please, tell me if this changes work fine.

from grav-theme-future2021.

pmoreno-rodriguez avatar pmoreno-rodriguez commented on July 2, 2024

Which version of theme are you using?. I have seen you don't have the crossmark to close sidebar menu.

from grav-theme-future2021.

pquerner avatar pquerner commented on July 2, 2024

1.0.5 runs on the internet, locally I switched to 1.0.6 now - same thing in regards to the css issue. I am in the process now of upgrading my overwritten templates so I get the latest changes. (Only removed small stuff, like I dont use images, or I want my links to check if the page is active and whatnot)

I can confirm the css fixes it "partially".
I have uploaded those two files onto the dev server aswell.

What I witnessed is, that the padding is slightly bigger on the blog-listing page than on a blog-item page. Probably not a big deal. (But it doesnt happen on pages without code blocks, so worth meantioning)

image image

May I ask what was the issue?

from grav-theme-future2021.

pmoreno-rodriguez avatar pmoreno-rodriguez commented on July 2, 2024

I increased the width of both the sidebar and the main so that they would occupy the 100% width, putting the sidebar in percentage (maximum of 25%) and the rest for the main.

It should work, since before it was as width in pixels.

I have seen that you load your own css from other plugins, maybe you should make some adjustments in the misc.css file, intended for that purpose.

from grav-theme-future2021.

pquerner avatar pquerner commented on July 2, 2024

Nice!

Can confirm that this is all that it took:

#wrapper {
    width: 100%;
}

#main {
    width: inherit;
    min-width: 70%;
}

#sidebar {
    min-width: 20%;
    width: 25%;
}

(from your .css files)

from grav-theme-future2021.

Related Issues (20)

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.