Giter VIP home page Giter VIP logo

Comments (3)

wolfspyre avatar wolfspyre commented on June 23, 2024 1

While I agree with your preference and also would love to see this shift... I don't want you to think that you need to learn tailwind to address it in the meantime. ;)

( I went down this rabbithole because why not... )

fortunately no tailwind's required!

check out layouts/partials/head.html:

{{ $assets.Add "css" (slice $cssScheme) }}
  {{ $cssMain := resources.Get "css/compiled/main.css" }}
  {{ $assets.Add "css" (slice $cssMain) }}
  {{ $cssCustom := resources.Get "css/custom.css" }}
  {{ if $cssCustom }}
    {{ $assets.Add "css" (slice $cssCustom) }}
  {{ end }}
  {{ $bundleCSS := $assets.Get "css" | resources.Concat "css/main.bundle.css" | resources.Minify | resources.Fingerprint $algorithm }}
  <link
    type="text/css"
    rel="stylesheet"
    href="{{ $bundleCSS.RelPermalink }}"
    integrity="{{ $bundleCSS.Data.Integrity }}"
  />

So... you can overwrite this pretty easily:

assets/css/custom.css:

.prose {
  .table { overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1; };
},
/*  change prose width for shiggles */
.max-w-prose { max-width:90ch !important; }

and viola!
thine site width be embiggened.

:)

from congo.

jpanther avatar jpanther commented on June 23, 2024 1

Thanks for the report however as you suspected, this is a style choice and not a bug. The prose layout is designed for accessibility and ease of readability. CSS overrides are the way to adjust this behaviour.

from congo.

thechubbypanda avatar thechubbypanda commented on June 23, 2024

Damn I was over-complicating it, thanks kind stranger.

And as a side note, "shiggles" is now my new favourite word

from congo.

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.