Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 952aeb9

Browse files
committed
Generated css sprite for flags
1 parent 8bfe5db commit 952aeb9

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
3.45 KB
Loading
42 Bytes
Loading

app/assets/stylesheets/active_admin/active_admin_globalize.css.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@import "active_admin/mixins"
22

3+
@import "active_admin_globalize_flags"
4+
35
.active_admin
46
.activeadmin-translations
57
margin-bottom: 20px
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// This file (and the sprite image) is kindly generated by http://flag-sprites.com/
2+
// and converted to SASS using this converter http://css2sass.heroku.com/
3+
4+
// Override flag positions in your stylesheet if you want to change default flags
5+
.flag
6+
width: 16px
7+
height: 11px
8+
background: url(active_admin_image_path('flags.png')) no-repeat
9+
&.flag-ar // originally flag-ae
10+
background-position: -16px 0
11+
&.flag-br
12+
background-position: -32px 0
13+
&.flag-de
14+
background-position: -48px 0
15+
&.flag-es
16+
background-position: 0 -11px
17+
&.flag-fr
18+
background-position: -16px -11px
19+
&.flag-gb
20+
background-position: -32px -11px
21+
&.flag-hu
22+
background-position: -48px -11px
23+
&.flag-it
24+
background-position: 0 -22px
25+
&.flag-pt
26+
background-position: -16px -22px
27+
&.flag-tr
28+
background-position: -32px -22px
29+
&.flag-en // originally flag-us
30+
background-position: -48px -22px

0 commit comments

Comments
 (0)