Giter Club home page Giter Club logo

Comments (6)

NoHara42 avatar NoHara42 commented on May 30, 2024 1

I didn't realise there were actually only two possible states and thought it scaled gradually.
Thanks again for the help! Works perfectly now

from react-vertical-timeline.

stephane-monnot avatar stephane-monnot commented on May 30, 2024

Hi,

Can you send the css code for flag-size element ? Or provide a full example ?

Maybe, you can try :

.vertical-timeline--two-columns .vertical-timeline-element-icon img {
  width: 20px;
  height: 20px;
}

@media only screen and (min-width: 1170px) {
  .vertical-timeline--two-columns .vertical-timeline-element-icon img {
    width: 50px;
    height: 50px;
  }
}

For the timeline color :

/* The line */
.vertical-timeline::before {
  background: #003b5c;
}

/* Icon container's border */
.vertical-timeline-element-icon {
    box-shadow: 0 0 0 4px #003b5c, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

from react-vertical-timeline.

NoHara42 avatar NoHara42 commented on May 30, 2024

from react-vertical-timeline.

stephane-monnot avatar stephane-monnot commented on May 30, 2024

Yes,you should rewrite in your own css.

But be careful if you load App.css before this package's css file. If so, you should use !important in your css instructions.

For icons size, Did you try :

.flag-size {
    width: 100%;
    height: 100%;
}

from react-vertical-timeline.

NoHara42 avatar NoHara42 commented on May 30, 2024

from react-vertical-timeline.

stephane-monnot avatar stephane-monnot commented on May 30, 2024

Maybe you should set the flag icon size to 40px on mobile version and 60px on wide screen.

.vertical-timeline--two-columns .vertical-timeline-element-icon .flag-size {
  width: 40px;
  height: 40px;
}

@media only screen and (min-width: 1170px) {
  .vertical-timeline--two-columns .vertical-timeline-element-icon .flag-size {
    width: 60px;
    height: 60px;
  }
}

You also can change style on .vertical-timeline-element-icon in your own css.

from react-vertical-timeline.

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.