Dmitriy Markovskiy
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
17 additions and
3 deletions
-
src/definitions/elements/flag.less
-
BIN
src/themes/default/assets/images/flags-emoji@2x.png
-
BIN
src/themes/default/assets/images/flags-emoji@3x.png
-
src/themes/default/elements/flag.variables
|
|
@ -44,9 +44,22 @@ i.flag:not(.icon) { |
|
|
|
i.flag:not(.icon):before { |
|
|
|
display: inline-block; |
|
|
|
content: ''; |
|
|
|
background: url(@spritePath) no-repeat -108px -1976px; |
|
|
|
background: url(@spritePath) no-repeat 0 0; |
|
|
|
background-size: 124px; |
|
|
|
width: @width; |
|
|
|
height: @height; |
|
|
|
} |
|
|
|
|
|
|
|
/* @2x Images (Pixel Ratio of 1.25+) */ |
|
|
|
@media |
|
|
|
only screen and (-o-min-device-pixel-ratio: 5/4), |
|
|
|
only screen and (-webkit-min-device-pixel-ratio: 1.25), |
|
|
|
only screen and (min--moz-device-pixel-ratio: 1.25), |
|
|
|
only screen and (min-device-pixel-ratio: 1.25), |
|
|
|
only screen and (min-resolution: 1.25dppx) { |
|
|
|
i.flag:not(.icon):before { |
|
|
|
background-image: url(@spritePath3x); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.loadUIOverrides(); |
Before
|
After
|
|
|
|
Width: 248
|
Height: 3976
|
Size: 84 KiB
|
Before
|
After
|
|
|
|
Width: 372
|
Height: 5964
|
Size: 150 KiB
|
|
|
@ -6,8 +6,9 @@ |
|
|
|
Element |
|
|
|
--------------------*/ |
|
|
|
|
|
|
|
@spritePath: "@{imagePath}/flags.png"; |
|
|
|
@spritePath: "@{imagePath}/flags-emoji@2x.png"; |
|
|
|
@spritePath3x: "@{imagePath}/flags-emoji@3x.png"; |
|
|
|
@width: 16px; |
|
|
|
@height: 11px; |
|
|
|
@verticalAlign: baseline; |
|
|
|
@margin: 0.5em; |
|
|
|
@margin: 0.5em; |