Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 2751c6e

Browse files
committed
Merge branch 'release/2.5.0'
2 parents 61c050c + f7260b4 commit 2751c6e

File tree

115 files changed

+33355
-13113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+33355
-13113
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@ CHANGELOG
33

44
This changelog references the relevant changes and bug fixes.
55

6+
* 2.5.1 (2015-01-21)
7+
* #325 [CONTRAST] fix contrast in carets
8+
* #279 [CONTRAST] fix input placeholders color
9+
* #324 [CONTRAST] fix tabs background contrast
10+
* #280 [CONTRAST] fix badge color bin nav-page-list
11+
* #321 [CONTRAST] fix color and weight in active link from main navbar
12+
* #241 Update Bootstrap to 3.3.1
13+
* #235 Fix `bower.json`
14+
* #266 Fix headings `font-size` on small devices
15+
* #268 Display version number on homepage of styleguide
16+
* #287 Implement better collapsibles examples
17+
* #322 Fix the font-face mess (faux-bold when setting `font-weight`, etc..)
18+
* #288 Remove link on active link in nav-page-list
19+
* #297 Treecrumb uses nested lists now
20+
* #299 Fix collapsible row in table
21+
* #323 Update README file
22+
* #340 #301 #275 #274 #276 Update loads of aria-tags
23+
* #302 Fix Nav page list with nested lists
24+
* #337 Fix global navigation error in some examples
25+
* Switch all template examples to `.twig` files
26+
* #350 Add rows in footer to avoid wrong behavior
27+
* Update README with info for Windows contribution config
28+
629
* 2.4.1 (2015-01-16)
730
* #327 responsive adjustment
831
* #264 add comment about carousel accessibility

README.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ The Confederation Web Guidelines are aimed at both internal Federal project mana
1414
The design specifications described for use on the Internet or in intranets can also be used for other digital channels, such as for the creation of apps.
1515

1616

17-
The latest release of the styleguide is available here: http://adminch.antistatique.net
17+
The latest release of the styleguide is available here: http://swiss.github.io/styleguide/
1818

19-
If you want to collaborate or review the next release, go to the gh-pages here: http://antistatique.github.io/Swiss-Admin-web-guidelines
19+
If you want to collaborate on the repo, go to this URL: https://github.com/swiss/styleguide
2020

2121

2222
## The Swiss Federal Administration on the Internet
@@ -25,21 +25,20 @@ If you want to collaborate or review the next release, go to the gh-pages here:
2525

2626
The styleguide is located in the `/styleguide` directory. You can open `/styleguide/index.html` directly in your browser. (If you can't find it, you have to build all the assets).
2727

28-
#### How to use it in your project
28+
#### Installation
2929

3030
There are several ways to get started:
3131

32+
- **Install with bower `bower install swiss-styleguide`**
3233
- Use the provided build. Download the [latest release](https://github.com/antistatique/Swiss-Admin-web-guidelines/releases/latest) and include all the built assets in your project.
33-
- Use the Github Pages generated styleguide only. Just download the [gh-pages branch](https://github.com/antistatique/Swiss-Admin-web-guidelines/archive/gh-pages.zip).
3434
- Clone the repo `git clone https://github.com/antistatique/Swiss-Admin-web-guidelines.git`
35-
- Install with bower `bower install Swiss-Admin-web-guidelines`
3635

3736

38-
#### Installation (development tools)
37+
## Contribution (development tools)
3938
This is not needed to use the styleguide, only if you want to modify it to fix some bugs and contribute.
4039

4140

42-
#### Installation on OSX/Unix
41+
### Installation on OSX/Unix
4342

4443
> We use [Gulp.js](http://gulpjs.com) to run tasks and build our styleguide with [Hologram](https://github.com/trulia/hologram).
4544
@@ -62,9 +61,9 @@ $ bundle
6261

6362
[Browser-sync](http://www.browsersync.io) is automatically set up and will allow you to make changes and see them in real time.
6463

65-
#### Installation on Windows
64+
### Installation on Windows
6665

67-
This is the not the recommended OS. If you have a choice, use OSX.
66+
This is the not the recommended OS. If you have a choice, use OS X. We are therefore not perfectly sure of the process below, please report or make a PR to make this better.
6867

6968
*Warning: This was tested on the [Windows PowerShell](http://en.wikipedia.org/wiki/Windows_PowerShell) but should work on any shell that support UTF8.*
7069

@@ -78,7 +77,7 @@ This is the not the recommended OS. If you have a choice, use OSX.
7877

7978
- Download and install [Node.js](http://nodejs.org)
8079

81-
- Install [Git for Windows](http://msysgit.github.io/) (recommended) or alternatively [Github for Windows](https://windows.github.com)`
80+
- Install [Git for Windows](http://msysgit.github.io/) (recommended) or alternatively [Github for Windows](https://windows.github.com)
8281

8382
Then install SASS, Hologram & Bundle
8483

@@ -145,7 +144,7 @@ documentation_assets: ./path/to/theme
145144
146145
## Build the Styleguide Theme
147146
148-
The theme has his own gulpfile (for the moment). So you have to do the following command to build the assets to then generate the styleguide with `$ hologram`:
147+
The theme has his own gulpfile (for the moment). So you have to do the following command to build the assets then generate the styleguide with `$ hologram`:
149148

150149
```shell
151150
$ cd styleguide-theme
@@ -158,9 +157,9 @@ $ gulp
158157

159158
The theme is used only to present all the styles. It's not part of the styleguide. All the `!important`s were added to avoid conflict with other styles, for a better presentation.
160159

161-
### When I try to build with gulp I have the following error: `Syntax error: Invalid US-ASCII character "\xC3"`
160+
### When I try to build with `$ gulp` I have the following error: `Syntax error: Invalid US-ASCII character "\xC3"`
162161

163-
This bug is caused by Hologram and should be fixed in the next release. The workaround is to force UTF8 by running:
162+
The workaround is to force UTF8 by running:
164163

165164
```shell
166165
$ LC_ALL="en_US.UTF-8" gulp
@@ -174,3 +173,19 @@ export LANG=en_US.UTF-8
174173
export LANGUAGE=en_US.UTF-8
175174
````
176175

176+
### Error encoding ruby 2.1.0 with Windows 7 x64
177+
178+
Edit file : C:\Ruby21-64\lib\ruby\2.1.0\registry.rb
179+
180+
````
181+
Add line 70 == LOCALE = Encoding::UTF_8
182+
````
183+
184+
### Error SSL certificates rubygems 2.2.2 with Windows 7 x64
185+
186+
Download [rubygems 2.2.3](https://github.com/rubygems/rubygems/releases/tag/v2.2.3)
187+
188+
```shell
189+
C:\>gem install --local C:\rubygems-update-2.2.3.gem
190+
C:\>update_rubygems --no-ri --no-rdoc
191+
```

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.5.0

assets/img/chosen-sprite.png

1.38 KB
Loading

assets/img/chosen-sprite@2x.png

1.22 KB
Loading

assets/js/autocomplete.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@
4141
$(this).siblings('.search-field').focus().val('');
4242
});
4343

44+
$('body').on('click', function () {
45+
$('#search-field').val('');
46+
});
47+
4448
}) (jQuery, (typeof searchData === 'undefined' ? false : searchData));

assets/js/collapse.js

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(function($) {
1313

1414
// Normal Collapse
15-
$('.collapse').on('show.bs.collapse', function () {
15+
$('.collapse:not(tbody)').on('show.bs.collapse', function () {
1616
$(this)
1717
.prev()
1818
.addClass('active icon--root')
@@ -22,7 +22,7 @@
2222
'aria-expanded': 'true'
2323
});
2424
});
25-
$('.collapse').on('hide.bs.collapse', function () {
25+
$('.collapse:not(tbody)').on('hide.bs.collapse', function () {
2626
$(this)
2727
.prev()
2828
.removeClass('active icon--root')
@@ -35,24 +35,23 @@
3535

3636
// Table Collapse
3737

38-
var $tableToggle = $('th[data-toggle="collapse"], td[data-toggle="collapse"]');
39-
40-
checkCollapseTableStatus();
41-
42-
$tableToggle.click(function () {
43-
setTimeout(function(){
44-
checkCollapseTableStatus();
45-
}, 360);
38+
$('tbody.collapse').on('show.bs.collapse', function () {
39+
$(this)
40+
.prev().find('[data-toggle=collapse]')
41+
.addClass('active')
42+
.attr({
43+
'aria-selected': 'true',
44+
'aria-expanded': 'true'
45+
});
46+
});
47+
$('tbody.collapse').on('hide.bs.collapse', function () {
48+
$(this)
49+
.prev().find('[data-toggle=collapse]')
50+
.removeClass('active')
51+
.attr({
52+
'aria-selected': 'false',
53+
'aria-expanded': 'false'
54+
});
4655
});
47-
48-
function checkCollapseTableStatus() {
49-
$tableToggle.each(function () {
50-
var $collapseTarget = $(this).data('target');
51-
$(this).removeClass('icon--bottom').addClass('icon--right');
52-
if($($collapseTarget).hasClass('in')){
53-
$(this).addClass('icon--bottom').removeClass('icon--right');
54-
}
55-
});
56-
}
5756

5857
}) (jQuery);

0 commit comments

Comments
 (0)