Browse Source

Merge 4688a8b437 into 597843ab84

pull/6424/merge
Dmitriy Markovskiy 4 months ago
committed by GitHub
parent
commit
3712b3156e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 3 deletions
  1. 15
      src/definitions/elements/flag.less
  2. BIN
      src/themes/default/assets/images/flags-emoji@2x.png
  3. BIN
      src/themes/default/assets/images/flags-emoji@3x.png
  4. 5
      src/themes/default/elements/flag.variables

15
src/definitions/elements/flag.less

@ -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();

BIN
src/themes/default/assets/images/flags-emoji@2x.png

Before After
Width: 248  |  Height: 3976  |  Size: 84 KiB

BIN
src/themes/default/assets/images/flags-emoji@3x.png

Before After
Width: 372  |  Height: 5964  |  Size: 150 KiB

5
src/themes/default/elements/flag.variables

@ -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;
Loading…
Cancel
Save