GithubHelp home page GithubHelp logo

angeal185 / bootstrap-4-stylus Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 9.0 119 KB

stylus port of bootstrap.css v4

License: MIT License

Batchfile 3.30% CSS 87.38% JavaScript 9.32%
bootstrap bootstrap-4 bootstrap4 stylus stylus-port

bootstrap-4-stylus's People

Contributors

1vank1n avatar angeal185 avatar evgenosiptsov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bootstrap-4-stylus's Issues

Is this still based on Bootstrap 3?

I couldn't find which version of Bootstrap this is based on.

Having a look on the resulting bootstrap.css and comparing that to the more than 10000 lines of the current Bootstrap 4.3.1, after expanding it via the Sublime CSS Formater plugin, the 7760 lines of the resulting CSS from Boostrap 4 Stylus seem way off from that and also classes like order-first are missing.

So I assume this is still based on Bootstrap 3? ๐Ÿค”

Nib?

Hi, i saw the code, and i think, it's better if we use nib, what do you think about that? i think it's better because we can write only one line and nib automatically add the prefix

flex error

The flex keyword causes a problem, error message is:
argument "arg3" required for flex(arg1, arg2, arg3)

This is the offending code, that works with regular bootstrap

  .proyecto-info-img
    display block !important
    flex none !important

The error occurs even if $flex-include is set to false

I don't see grid inside the includes

I don't see this being an exact port of the bootstrap 4 sass version. Naming convention is a bit off, but not all the stylus files are in.

Missing the navbar.styl and the grid.styl, etc

There are errors when I import using gulp-stylus

Lines

  • background-image url("data:image/svg+xml
    charset=utf8,%3Csvg xmlns='http //www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M4 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E")
  • background-image url("data:image/svg+xml
    charset=utf8,%3Csvg xmlns='http //www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E")
  • background-image url("data:image/svg+xml
    charset=utf8,%3Csvg xmlns='http //www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E")
  • background-image url("data:image/svg+xml
    charset=utf8,%3Csvg xmlns='http //www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")
  • background-image url("data:image/svg+xml
    charset=utf8,%3Csvg xmlns='http //www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")
  • background $white url("data:image/svg+xml
    charset=utf8,%3Csvg xmlns='http //www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center
  • background-image url("data:image/svg+xml
    charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http //www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")
  • background-image url("data:image/svg+xml
    charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http //www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")

How I import

@import 'bootstrap-4-stylus/includes/*.styl'

My temporary solution

@import 'bootstrap-4-stylus/includes/!(carousel|custom|nav)*.styl'

broken string for hamburger menu svg

lines 334 and 362 of /includes/nav.styl have incorrect strings for the hamburger icon svgs

(is) data:image/svg+xml
(should be) data:image/svg+xml;
The difference? semicolon after xml

(is) xmlns='http //www.w3.org/2000/svg
(should be) xmlns='http://www.w3.org/2000/svg
The difference? colon between http and //

There is a problem with col

Equal-width did not work.
I think flex-grow should be 1 instead of 0.

col.styl

col()
  .col{arguments}
      -ms-flex 0 0 auto
      flex 0 0 auto
      width auto
      max-width none

->

col()
  .col{arguments}
      -ms-flex 1 0 auto
      flex 1 0 auto
      width auto
      max-width none

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.