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

Commit d3ab83f

Browse files
committed
Merge branch 'release/2.5.2'
2 parents 089df40 + e6a3f75 commit d3ab83f

35 files changed

+158
-66
lines changed

CHANGELOG.md

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

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

6+
* 2.5.2 (2015-02-26)
7+
* #356 fix error with active state of `.list-emphasis` as list parent
8+
* #358 fix `.table-striped` error due to new Bootstrap version
9+
610
* 2.5.1 (2015-02-10)
711
* #353 Improve print styles
812
* #348 #347 Fix errors with image flow in Publications

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ Swiss Admin web guidelines
33

44
- [About Accessibility](Accessibility.md)
55
- [How to use the styleguide in your project?](HOWTO.md)
6-
- [How to install the styleguide in order to contribute?](#installation-development-tools)
6+
7+
8+
## Summary
9+
10+
- [The Swiss Federal Administration on the Internet](#the-swiss-federal-administration-on-the-internet)
11+
- [Contribution](#contribution)
12+
- [Grid System](#grid-system)
13+
- [Print Classes](#print-classes)
14+
- [Styleguide Theme](#styleguide-theme)
15+
- [FAQ](#faq)
16+
- [Known Issues](#known-issues)
717

818
The Confederation Web Guidelines define the design specifications for the presentation of the [Swiss Federal Administration](http://www.admin.ch) on the Internet and are binding for all websites within the domain admin.ch. These guidelines specify how the websites of the Federal authorities have to look and how they should behave. At the same time they give the government departments and public offices the necessary flexibility to be able to optimize their online communications to the requirements of their specific business purposes.
919

@@ -132,7 +142,7 @@ Please refer to their documentation for more details.
132142
The stylguide theme is in `styleguide-theme`. It's a theme for Trulia's [Hologram](https://github.com/trulia/hologram).
133143
It was based on [Cortana](https://github.com/Yago31/Cortana).
134144

135-
## How is it included?
145+
### How is it included?
136146

137147
The `hologram_config.yml` has a reference to the styleguide theme:
138148

@@ -142,7 +152,7 @@ destination: ./path/to/output
142152
documentation_assets: ./path/to/theme
143153
```
144154
145-
## Build the Styleguide Theme
155+
### Build the Styleguide Theme
146156
147157
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`:
148158

@@ -189,3 +199,15 @@ Download [rubygems 2.2.3](https://github.com/rubygems/rubygems/releases/tag/v2.2
189199
C:\>gem install --local C:\rubygems-update-2.2.3.gem
190200
C:\>update_rubygems --no-ri --no-rdoc
191201
```
202+
203+
## Known issues
204+
205+
### `@font-face` + Cache-Control/Pragma:
206+
There is a known issue with Internet Explorer when loading the page over HTTPS with Cache-Control or Pragma headers set. Disable cache control on fonts to fix it (refer to [issue #359](https://github.com/swiss/styleguide/issues/359) for more information):
207+
208+
```bash
209+
<FilesMatch "\.(eot|otf|woff|ttf)$">
210+
Header unset Cache-Control
211+
Header unset Pragma
212+
</FilesMatch>
213+
```

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.1
1+
2.5.2

assets/sass/components/navigation.scss

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -898,16 +898,23 @@ Navigation below the content level on a smartphone with links to the home page,
898898
- added the optional `.list-emphasis` class to the first `<li>` element. Put it if you need a bolder and darker element in the list.
899899
- if you want the drilldown behaviour, embed the `.nav-page-list` element in `<div class="drilldown"><div class="drilldown-container"></div></div>` and add some `<nav class="drilldown-sub"></nav>` elements in any `<li>` you want. Add the `.list-sub` class to the `<li>` element too.
900900
901+
<br>
901902
**2.3.0:**
902903
903904
- added `aria-selected="true"` for current link
904905
- removed first button in the list (looked like a back link)
905906
- changed label of back button in drilldown sub from "Back" to title
906907
of section
907908
909+
<br>
908910
**2.5.0:**
909911
910912
- allow nested `<ul/>` lists in `.nav-page-list` elements
913+
914+
<br>
915+
**2.5.2:**
916+
917+
- fix error with active state of `.list-emphasis`, **please always wrap the text of this list element with a `span` or a `a`**.
911918
</div>
912919
913920
```html_example
@@ -922,9 +929,8 @@ Navigation below the content level on a smartphone with links to the home page,
922929
<a href="#" class="icon icon--before icon--less visible-xs">Back to parent</a>
923930
<a href="#" class="icon icon--before icon--less"><span class="sr-only">Back to </span>Comestible Goods</a>
924931
<ul>
925-
<!-- the .list-emphasis class is optionnal -->
926-
<li class="list-emphasis">
927-
<a href="#">Drinks</a>
932+
<li class="list-emphasis active">
933+
<span>Drinks</span><span class="sr-only">active</span>
928934
<ul>
929935
<!-- add the .list-sub class if the list has some animated sub-lists -->
930936
<li class="list-sub"><a href="#">Mineral water</a>
@@ -938,7 +944,7 @@ Navigation below the content level on a smartphone with links to the home page,
938944
</ul>
939945
</nav>
940946
</li>
941-
<li class="active">Wine <span class="sr-only"></span></li>
947+
<li><a href="#">Wine</a></li>
942948
<li><a href="#">Beer</a></li>
943949
<li><a href="#">Spirits</a></li>
944950
</ul>
@@ -960,10 +966,38 @@ Navigation below the content level on a smartphone with links to the home page,
960966
padding-left: 15px;
961967
padding-right: 15px;
962968
li.list-emphasis {
963-
> a {
969+
padding: 0;
970+
border: 0;
971+
> a,
972+
> span:first-child {
973+
border-bottom: 1px solid $coal;
974+
display: block;
964975
color: $black;
965976
font-weight: 700;
966-
border-color: $coal;
977+
padding: 10px 0;
978+
position: relative;
979+
&:before {
980+
content: '';
981+
display: block;
982+
position: absolute;
983+
top: 0;
984+
left: -15px;
985+
width: 5px;
986+
height: 100%;
987+
}
988+
}
989+
&.active {
990+
padding: 0;
991+
border: 0;
992+
&:before {
993+
background: none;
994+
}
995+
> a,
996+
>span {
997+
&:before {
998+
background: $venetian-red;
999+
}
1000+
}
9671001
}
9681002
}
9691003
}
@@ -989,6 +1023,7 @@ Navigation below the content level on a smartphone with links to the home page,
9891023
&:hover:before {background: none;}
9901024
}
9911025
li {
1026+
border-bottom: 1px solid $silver;
9921027
display: block;
9931028
margin: 0;
9941029
&:before {
@@ -1008,12 +1043,16 @@ Navigation below the content level on a smartphone with links to the home page,
10081043
&:before {
10091044
background: $venetian-red;
10101045
}
1011-
a:before,
1012-
a:hover:before {background: $venetian-red;}
1046+
> a {
1047+
padding: 0;
1048+
&:before,
1049+
&:hover:before {
1050+
background: $venetian-red;
1051+
}
1052+
}
10131053
.nav-mobile & { padding-bottom: 40px; }
10141054
}
10151055
a {
1016-
border-bottom: 1px solid $silver;
10171056
color: $empress;
10181057
padding: 10px 0;
10191058
@media only screen and (max-width: $screen-xs-max) { padding: 10px; }

assets/sass/layout/tables.scss

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,11 @@ A simple example :
210210
*/
211211

212212
.table-striped {
213-
> tbody > tr:nth-child(odd) {
214-
> td,
215-
> th {
216-
background-color: transparent;
217-
}
213+
> tbody > tr:nth-of-type(odd) {
214+
background-color: transparent;
218215
}
219-
> tbody > tr:nth-child(even) {
220-
> td,
221-
> th {
222-
background-color: $table-bg-accent;
223-
}
216+
> tbody > tr:nth-of-type(even) {
217+
background-color: $table-bg-accent;
224218
}
225219
> thead td, > thead th, > tfoot td, > tfoot th {
226220
background: $smoke;

build/css/admin.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)