Giter VIP home page Giter VIP logo

bootstrap.stylus's Introduction

bootstrap.stylus (v2.0.1)

Twitter's Bootstrap for Stylus.

Installation

Bootstrap uses nib for transparent CSS3 support and helpful mixins, but you simply need to .use() bootstrap, which in turn exposes @import "bootstrap".

var stylus = require('stylus')
  , bootstrap = require('bootstrap')
  , fs = require('fs');

var styl = fs.readFileSync(__dirname + '/example.styl', 'utf8');

var css = stylus(styl)
  .use(bootstrap())
  .set('filename', 'example.styl')
  .set('compress', true)
  .render(function(err, css){
    if (err) throw err;
    console.log(css);
  });

Then you can @import all or portions of the library:

// everything
@import 'bootstrap'

// only config and forms
@import 'bootstrap/config'
@import 'bootstrap/forms'

Configuration

You can variables before the configuration is __@import__ed:

radius = 5px
@import 'bootstrap'

Copyright and License

Copyright 2011 Twitter, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

bootstrap.stylus's People

Contributors

tj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

bootstrap.stylus's Issues

unable to import select libs

i can do this from a .styl file:

@import "bootstrap"

but when i try this:

@import "bootstrap/type"

i get this error:

500 Error: site/stylus/assets/css/typography.styl:2 1| @import "bootstrap" > 2| @import "bootstrap/patterns" 3| 4| @import file bootstrap/patterns.styl
1| @import "bootstrap"
> 2| @import "bootstrap/patterns"
3|
4| failed to locate @import file bootstrap/patterns.styl
at Evaluator.visitImport (site/node_modules/stylus/lib/visitor/evaluator.js:627:21)
at Evaluator. (site/node_modules/stylus/lib/visitor/index.js:28:39)
at Evaluator.visit (site/node_modules/stylus/lib/visitor/evaluator.js:72:18)
at Evaluator.visitRoot (site/node_modules/stylus/lib/visitor/evaluator.js:499:27)
at Evaluator. (site/node_modules/stylus/lib/visitor/index.js:28:39)
at Evaluator.visit (site/node_modules/stylus/lib/visitor/evaluator.js:72:18)
at Evaluator.evaluate (site/node_modules/stylus/lib/visitor/evaluator.js:141:15)
at Renderer.render (site/node_modules/stylus/lib/renderer.js:52:26)
at site/node_modules/stylus/lib/middleware.js:140:17
at [object Object]. (fs.js:115:5)

any clues as to why i can import the entire bootstrap lib but not just a portion of it?

Problem on Connect and Express CSS error issue

I use :

└─┬ [email protected]
├─┬ [email protected]
├─┬ [email protected]
├── [email protected]

Try to do node connect.js in examples, it give me results :

http://i.imgur.com/dpeVs.png

Also, i try with express + stylus,

http://twitter.github.com/bootstrap/examples/container-app.html

Here is the jade template for it :

!!!
html
  head
    title= title
    link(rel='stylesheet', href='/stylesheets/style.css')
  body!= body
    .topbar
      .fill
        .container
          a.brand(href='#') Project name
          ul.nav
            li.active
              a(href='#') Home
            li
              a(href='#about') About
            li
              a(href='#contact') Contact
          form.pull-right(action='')
            input.input-small(type='text', placeholder='Username')
            input.input-small(type='password', placeholder='Password')
            button.btn(type='submit') Sign in
    .container
      .content
        .page-header
          h1
            | Page name
            small Supporting text or tagline
        .row
          .span10
            h2 Main content
          .span4
            h3 Secondary content
      footer
        p © Company 2011

And still css error issue.

npm

can't find this on npm, wondering if you were gonna push this there?

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.