Skip to content

Commit

Permalink
Beta release 3 (#16)
Browse files Browse the repository at this point in the history
* Adjust typography and colors. Fix #14 #15

* Improve readme and docs

* Optimize svg logos. Add language versions

* New style forms

* Add npm badge in readme

* Quick fixes before release

* Bump up version number to beta3
  • Loading branch information
terotik authored Aug 24, 2017
1 parent 82541c2 commit 78f2523
Show file tree
Hide file tree
Showing 15 changed files with 878 additions and 509 deletions.
769 changes: 449 additions & 320 deletions docs-theme/css/base.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/bootstrap_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@
<div class="col-xs-12">
<div class="form-group">
<label class="control-label" for="inputLarge">Large input</label>
<input class="form-control input-lg" type="text" id="inputLarge">
<input class="form-control input-lg" type="text" id="inputLarge" placeholder="This is placeholder">
</div>
<div class="form-group">
<label class="control-label" for="inputDefault">Default input</label>
Expand Down Expand Up @@ -983,6 +983,10 @@
<label for="disabled1">Readonly field</label>
<input type="password" class="form-control" id="disabled1" placeholder="Readonly field" readonly="">
</div>
<div class="form-group">
<label for="text-area">Text area</label>
<textarea class="form-control" id="text-area" rows="3">Textarea field</textarea>
</div>
<div class="form-group">
<label for="exampleInputFile">File input</label>
<input type="file" id="exampleInputFile">
Expand Down
115 changes: 107 additions & 8 deletions docs/brand.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Helsinki Brand Elements
#Helsinki Brand Elements

----

# Brand Colors
##Brand Colors
<div class="bs-component">
<div class="container-fluid">
<div class="row">
Expand Down Expand Up @@ -160,18 +160,117 @@
</div>
</div>

#Helsinki logo
##Font

City of Helsinki uses bespoke typeface Helsinki Grotesk. The font license covers usage on City of Helsinki web interfaces.

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Regular</div>
<div class="panel-body" style="font-size: 21px; font-weight:400; font-style: normal;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 400; font-style: normal;</code>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Regular Italic</div>
<div class="panel-body" style="font-size: 21px; font-weight:400; font-style: italic;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 400; font-style: italic;</code>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Medium</div>
<div class="panel-body" style="font-size: 21px; font-weight:500; font-style: normal;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 500; font-style: normal;</code>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Medium Italic</div>
<div class="panel-body" style="font-size: 21px; font-weight:500; font-style: italic;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 500; font-style: italic;</code>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Bold Italic</div>
<div class="panel-body" style="font-size: 21px; font-weight:700; font-style: normal;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 700; font-style: normal;</code>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Bold Italic</div>
<div class="panel-body" style="font-size: 21px; font-weight:700; font-style: italic;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 700; font-style: italic;</code>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Black</div>
<div class="panel-body" style="font-size: 21px; font-weight:900; font-style: normal;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 900; font-style: normal;</code>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Helsinki Grotesk Black Italic</div>
<div class="panel-body" style="font-size: 21px; font-weight:900; font-style: italic;">
ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ<br/>
abcdefghijklmnopqrstuvwxyzåäö<br/>
1234567890!"#€%&/()=<br/>
</div>
<div class="panel-footer">
<code>font-weight 900; font-style: italic;</code>
</div>
</div>
##Helsinki logo

###CSS SVG background mixin

Theme mixin ``helsinki-logo()`` can create a Helsinki logo svg background image of any color. Background
Theme mixin ``helsinki-logo()`` can create a Helsinki logo svg background image of any color.

### Usage
###Usage
``@mixin helsinki-logo($_color)`` where

``$_color`` can be any color

### Examples
###Examples

<div class="bs-component">
<div class="logo-test logo-test--black">
Expand Down Expand Up @@ -209,7 +308,7 @@ Theme mixin ``helsinki-logo()`` can create a Helsinki logo svg background image
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 495 230"><style type="text/css"> .lc{fill:#000000;}</style><path class="lc" d="M479.8 14.9v131.5c0 25.1-20.7 45.6-46.2 45.6H292.9c-16.9 0-32.9 6.1-45.4 17.4C235 198.2 219 192 202.1 192h-141c-25.3 0-45.8-20.4-45.8-45.6V14.9H479.8zM255 221.9c10.1-10.1 23.6-15.7 38-15.7h140.6c33.3 0 60.4-26.8 60.4-59.8V0.6H1v145.7c0 33 26.9 59.8 60.1 59.8h141c14.3 0 27.8 5.6 38 15.7l7.5 7.5L255 221.9z"/><path class="lc" d="M425.7 74.8c0 4.4-3.5 7.6-7.9 7.6s-7.9-3.2-7.9-7.6 3.5-7.6 7.9-7.6C422.2 67 425.7 70.2 425.7 74.8M410.9 136.9h13.7V88.2h-13.7V136.9zM386.3 107.5l17.9 29.4h-14.9l-12-19.5 -6.5 8.2v11.3h-13.6v-70h13.6v32.3c0 6-0.7 12-0.7 12h0.3c0 0 3.2-5.3 5.9-9.1l10.4-13.9h16L386.3 107.5zM343.4 105.7c0-12.1-5.9-18.7-15.3-18.7 -8 0-12.2 4.7-14.6 9.2h-0.3l0.7-8h-13.6v48.7h13.6V108c0-5.6 3.3-9.5 8.4-9.5s7.3 3.4 7.3 9.9v28.5h13.7L343.4 105.7 343.4 105.7zM287.2 74.8c0 4.4-3.5 7.6-7.9 7.6s-7.9-3.2-7.9-7.6 3.5-7.6 7.9-7.6C283.8 67 287.2 70.2 287.2 74.8M272.4 136.9h13.7V88.2h-13.7V136.9zM248.8 123.3c0-3.9-5.4-4.7-11.7-6.5 -7.3-1.9-16.5-5.6-16.5-14.9 0-9.2 8.8-15 19.2-15 9.7 0 18.6 4.6 22.3 11.1l-11.7 6.6c-1.2-4.3-4.8-7.7-10.2-7.7 -3.5 0-6.4 1.5-6.4 4.4 0 3.7 6.4 4.1 13.6 6.4 7.6 2.4 14.6 5.9 14.6 14.8 0 9.8-9.1 15.6-19.6 15.6 -11.4 0-20.4-4.8-24.4-12.6l11.9-6.7c1.5 5.3 5.8 9.3 12.3 9.3C246.1 128.1 248.8 126.5 248.8 123.3M205.5 67.3h-13.7v56.1c0 5 1.1 8.7 3.2 11 2.2 2.3 5.6 3.4 10.3 3.4 1.6 0 3.3-0.2 4.9-0.5 1.7-0.4 3-0.9 4.1-1.5l1.2-9.2c-1.1 0.4-2 0.7-2.9 0.8 -0.8 0.2-1.8 0.2-2.9 0.2 -1.8 0-2.6-0.5-3.2-1.4 -0.7-0.9-1-2.5-1-4.8V67.3zM159.9 96.8c-5 0-9.1 3.6-10.2 10.2h19.2C169 101.2 165.2 96.8 159.9 96.8M181 116.2h-31.5c0.6 7.9 5 11.8 10.7 11.8 5.1 0 8.6-3.4 9.4-8l11.5 6.5c-3.4 6.2-10.7 11.6-20.9 11.6 -13.6 0-23.6-9.5-23.6-25.5 0-15.9 10.2-25.5 23.3-25.5s21.8 9.3 21.8 22.5C181.6 113.5 181 116.2 181 116.2M111.3 136.9h14.2V69.9h-14.2v26.5H84.6V70H70.4v66.9h14.2v-27.7h26.7V136.9z"/></svg>
```

#Koros
##Koros

The brand koro-shapes can be used to divide page sections. Theme mixin ``koro()`` can create a svg background image of any color or koro variation.

Expand Down Expand Up @@ -285,7 +384,7 @@ There are five different shapes. Basic, Pulse, Beat, Storm and Wave.
</div>
-----

# Color Contrasts
##Color Contrasts
<div class="bs-component">
<div class="row">
<div class="col-xs-6">
Expand Down
20 changes: 7 additions & 13 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# City of Helsinki Bootstrap 3 Theme

:bangbang: :bangbang: :bangbang: Under development. For setup testing purposes only :bangbang: :bangbang: :bangbang:

This is the documentation for City of Helsinki [Bootstrap](https://getboostrap.com) theme. We are currently testing the best ways to deliver theming documentation and files.
City of Helsinki [Bootstrap](https://getboostrap.com) theme. **Beta**

## Contents

Expand All @@ -15,18 +13,12 @@ Install or add Bootstrap sass theme to your application
```
npm install hel-bootstrap-3
```
(Not yet published install from Github repo instead)

## Use as it is
NOTE: This probably [fails](https://github.com/City-of-Helsinki/hel-bootstrap-3/issues/10) on most enviroments as the sass files can not find each other or their dependencies. So importing individual files recommended for now:

You can now either import the default theme with all components
```
@import hel-bootstrap-theme;
```
## Use customised

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

Or customise the theme for your application and exclude the Bootstrap components you are not using
```
@import helsinki-variables;
Expand All @@ -39,6 +31,8 @@ Or customise the theme for your application and exclude the Bootstrap components
@import theme-custom-styles;
```



## Files

``
Expand Down Expand Up @@ -74,4 +68,4 @@ Compatible with [React-Bootstrap](https://react-bootstrap.github.io) components.
* Clone this repository
* ``pip install requirements.txt``
* ``npm install``
* ``grunt dev``
* ``grunt dev``
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hel-bootstrap-3",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "City of Helsinki themed Boostrap 3 SASS library",
"style": "src/sass/_hel-bootstrap-theme.scss",
"sass": "src/sass/_hel-bootstrap-theme.scss",
Expand Down
20 changes: 8 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# City of Helsinki Bootstrap 3 Theme

:bangbang: :bangbang: :bangbang: Under development. For setup testing purposes only :bangbang: :bangbang: :bangbang:
[![npm version](https://img.shields.io/npm/v/hel-bootstrap-3.svg?style=flat-square)](https://www.npmjs.com/package/hel-bootstrap-3)

This is the documentation for City of Helsinki [Bootstrap](https://getboostrap.com) theme. We are currently testing the best ways to deliver theming documentation and files.
City of Helsinki [Bootstrap](https://getboostrap.com) theme. **Beta**

## Contents

Expand All @@ -15,18 +15,12 @@ Install or add Bootstrap sass theme to your application
```
npm install hel-bootstrap-3
```
(Not yet published install from Github repo instead)
NOTE: This probably [fails](https://github.com/City-of-Helsinki/hel-bootstrap-3/issues/10) on most enviroments as the sass files can not find each other or their dependencies. So importing individual files recommended for now:

## Use as it is
## Use customised

You can now either import the default theme with all components
```
@import hel-bootstrap-theme;
```

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

Or customise the theme for your application and exclude the Bootstrap components you are not using
```
@import helsinki-variables;
Expand All @@ -39,6 +33,8 @@ Or customise the theme for your application and exclude the Bootstrap components
@import theme-custom-styles;
```



## Files

``
Expand Down Expand Up @@ -74,4 +70,4 @@ Compatible with [React-Bootstrap](https://react-bootstrap.github.io) components.
* Clone this repository
* ``pip install requirements.txt``
* ``npm install``
* ``grunt dev``
* ``grunt dev``
1 change: 1 addition & 0 deletions src/assets/helsinki-logo-black-fi-sv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/helsinki-logo-black-sv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 78f2523

Please sign in to comment.