Coder Social home page Coder Social logo

city-of-helsinki / hel-bootstrap-3 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.28 MB

City of Helsinki themed Boostrap 3 SASS library

Home Page: https://city-of-helsinki.github.io/hel-bootstrap-3/

License: MIT License

JavaScript 0.59% HTML 2.87% CSS 96.54%
bootstrap-sass theme

hel-bootstrap-3's Introduction

City of Helsinki Bootstrap 3 Theme

npm version

City of Helsinki Bootstrap theme. Beta

Contents

  • Documentation - Made with Mkdocs
  • Bootstrap sass theme - Available as npm package

Install

Install or add Bootstrap sass theme to your application

npm install hel-bootstrap-3

NOTE: This probably fails on most enviroments as the sass files can not find each other or their dependencies. So importing individual files recommended for now:

Use customised

Import the sass files in this order. Customise the theme for your application and exclude the Bootstrap components you are not using.

@import helsinki-variables;

@import application-variables; // Copy and edit this file to customise your app theme

@import theme-bootstrap-variables;

@import bootstrap;

@import theme-custom-styles;

Files

_helsinki-variables.scss : Helsinki UI and Brand specific variables. Do not use these directly in your app styles!

_application-variables.scss : App specific setup. Copy and modify to customise your app's look using Helsinki brand variables or your own brand.

_theme-bootstrap-variables.scss : Bootstrap variables with theme modifications

_theme-custom-styles.scss : Bootstrap overrides that can not be achieved only through variables

Bootstrap components

In your application make use of standard Bootstrap 3 components as much as possible.

More information about Bootstrap-sass here and the use of Bootstrap components here

Compatible with React-Bootstrap components.

Develop

  • Clone this repository
  • pip install requirements.txt
  • npm install
  • grunt dev

hel-bootstrap-3's People

Contributors

terotik avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hel-bootstrap-3's Issues

Input error state is almost invisible

When adding this to Huvaja I noticed the labels, borders and help-block of inputs with errors are white on a white background, making them difficult to see. For example in this image from the Bootstrap test page there's an "Input error" field between the "Input warning" and "Input success" fields:

input-error

Remove white space from logo svg

helsinki-logo-xx.svg should not include white space around graphic. White space in image file makes aligning with margins difficult.

H3 too big

<h3> size too close to <h2>. Revise header sizing.
(Check Bootstrap 4 for upcoming type scales)

SVG logos sizing in IE

CSS generated svg logos do not respect background-position on IE(11) properly.
Should test what attributes the svg needs to make the bg svg size properly (maybe width, height, viewbox, preserveAspectRatio)

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.