Giter Site home page Giter Site logo

less-timeline's Introduction

#LESS timeline

Минималистичная адаптивная шкала времени с лёгкой настройкой внешнего вида через LESS-переменные. Демонстрация работы на codepen.io

Внешний вид LESS timeline и адаптивность

##Использование

  1. Скопируйте HTML-разметку из index.html
  2. Настройте внешний вид через LESS-переменные в less\components\variables.less
  3. Скомпилируйте less\style.less (требуется Autoprefixer).

###Переменные

@event_color:                #428bca;    // цвет линий и фонов блоков с «вывороткой»
@event_padding:              1.5rem;     // внутренний отступ блока описания события
@event_margin_bottom:        2rem;       // нижний внешний отступ блока описания события

@event_line_width:           .2rem;      // толщина линии времени (лучше делать чётным числом)
@event_bullit_size:          round((@event_date_height * 0.4)); // размер буллита на линии времени
@event_bullit_margin:        .4rem;      // отступ от буллита до линии времени

@event_date_width:           13rem;      // ширина обычной даты
@event_date_width--long:     17rem;      // ширина длинной даты
@event_date_width--short:    10rem;      // ширина короткой даты
@event_date_height:          6.5rem;     // высота блока с датой

@event_headers_family:       'PT Sans Narrow', sans-serif; // шрифт заголовка
@event_headers_weight:       700;        // жирность заголовков
@event_h1_size:              2em;        // размер названия события
@event_h2_size:              1.5em;      // размер заголовка

##Кроссбраузерность

Поддерживаются Chrome, Firefox, Opera последних и предпоследних версий, Internet Explorer 10+.

less-timeline's People

Contributors

nicothin avatar

Stargazers

Liza avatar Sergiy Ilchyshyn avatar Vladimir Voytenko avatar  avatar  avatar Kateryna Rybalko avatar

Watchers

James Cloos avatar  avatar Sergiy Ilchyshyn avatar  avatar

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.