Giter Site home page Giter Site logo

collapsible menu at the left side about core HOT 6 OPEN

wilzbach avatar wilzbach commented on August 17, 2024
collapsible menu at the left side

from core.

Comments (6)

wilzbach avatar wilzbach commented on August 17, 2024

Rust uses Git Book which also has this nice grouping:

image

http://rustbyexample.com/hello.html

from core.

stonemaster avatar stonemaster commented on August 17, 2024

@wilzbach Do have any experience with vertical side bars already in other frameworks? I feel like this getting a more and more important priority with new content coming up and user input. I just would like to prevent to write the CSS etc. stuff from scratch :-)

from core.

wilzbach avatar wilzbach commented on August 17, 2024

Unfortunately not really. Well I guess we have to throw away most parts of the dlang menu css, but apart from the mobile view, it shouldn't be that difficult.

Most css frameworks I know support such menu bar, but they come with rather heavy dependencies. However I am happy if you find something.

from core.

PetarKirov avatar PetarKirov commented on August 17, 2024

The previous version of dlang.org had vetical sidebar, btw.

from core.

wilzbach avatar wilzbach commented on August 17, 2024

The previous version of dlang.org had vetical sidebar, btw.

There are a couple of pages still online with it, e.g. http://erdani.com/d/

(but of course we should go for a bit more modern menu)

from core.

wilzbach avatar wilzbach commented on August 17, 2024

I just gave this a quick try and I think it will get a bit messy, because we have to hack the CSS ourselves, but it seems doable :)

Open questions:

  • mobile view (imho one of the bigger isuees))
  • show we use this change to apply #54 too (fixed height for text and code)
  • I think we need to make the menu categories collapsible (except the current one), because otherwise there's to much content
  • should the menu bar itself be toggle-able? (like for the Rust Tour)

image

quick & dirty css overwrite styles (in case someone wants to continue this attempt):

#top {
    left: 0;
    width: 250px;
    display: inline-block;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#top #cssmenu > ul > li {
     float: none;
}

body .row {
    display: inline-block;
    position: absolute;
}

#top #cssmenu .expand-container > * {
    display: block;
}

#top #cssmenu > ul > li > ul {
    position: inherit;
    border: none;
    background: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}


#top > .helper {
     padding-left: 5px;
     padding-right: 5px;
}

#top a:hover, #top #cssmenu li.open > a, #top #cssmenu li.active > a {
     background: inherit;
}

.expand-content li {
    padding-left: 5px;
}

from core.

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.