Git Product home page Git Product logo

Comments (5)

moranil avatar moranil commented on June 16, 2024

Hi,
Could it be because theme does not uses the latest version of materialize css.
Can I have the latest lib to be included in the theme?
or How can I compile theme with the latest materialize?
Please help me solve this issue.

from hexo-theme-materialize.

moranil avatar moranil commented on June 16, 2024

Hi,
I can confirm that updating materialize css to latest version fixed the issue

in package.json change
`
"materialize-css": "^0.98.2",

then rebuild the theme
grunt build

`

replaced the source directory of the my hexo projects theme that is
/themes/materialize/source

and it worked.

the only issue is, in mobile view, the nav bar is too much grey.. see image attached

screencapture-localhost-4000-1494248282024

from hexo-theme-materialize.

carlos-algms avatar carlos-algms commented on June 16, 2024

Sorry for the delay, busy week.
I will try to update the deps.

But you can try to run npm upgrade under the theme folder.

from hexo-theme-materialize.

moranil avatar moranil commented on June 16, 2024

fixed the side bar grey issue:

in header.ejs, moved the code out of nav div


<div class="navbar-fixed">
  <nav id="main-navbar" class="grey lighten-5 z-depth-0" role="navigation">
    <div class="nav-wrapper container">

      <a id="logo-container" href="<%- url_for() %>" class="brand-logo center-align">
        <img class="example-icon md-card-image" height="32px" src="/images/logo3.png" /> 
      <!--  <span><%= config.title %></span> -->
        <sub><%= config.subtitle %></sub>
      </a>

      <ul class="right hide-on-med-and-down">
        <% for (var i in theme.menu){ %>
          <li>
            <a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
          </li>
        <% } %>
      </ul>      
      <a href="#" data-activates="nav-mobile" class="button-collapse">
        <i class="material-icons">menu</i>
      </a>
    </div>
  </nav>
</div>
<ul id="nav-mobile" class="side-nav">
        <li><a href="#">Navbar Link</a></li>
</ul>

screencapture-localhost-4000-1494249961784

from hexo-theme-materialize.

carlos-algms avatar carlos-algms commented on June 16, 2024

Thanks for the support, fixed now.
Please see #4 and #5

from hexo-theme-materialize.

Related Issues (4)

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.