Skip to content

Commit

Permalink
margin fixed for small and normal flags (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
p3trur0 authored Nov 23, 2021
1 parent eabe718 commit 3a9f5dc
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ _Country flags as a Vue Component_
<p align="center">

<img src="https://img.shields.io/npm/dm/vue-country-flag" alt="Monthly downloads">
<img src="https://packagephobia.now.sh/[email protected].1" alt="Install size">
<img src="https://packagephobia.now.sh/[email protected].2" alt="Install size">
<img src="https://img.shields.io/badge/Vue.js%202-compatible-green.svg" alt="Vue.js 2 compatible">
<img src="https://img.shields.io/badge/Vue.js%203-compatible-green.svg" alt="Vue.js 3 compatible">
<a href="https://www.npmjs.com/package/vue-country-flag"><img src="https://img.shields.io/badge/npm-2.3.1-blue.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vue-country-flag"><img src="https://img.shields.io/badge/npm-2.3.2-blue.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vue-country-flag"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
<img src="https://img.shields.io/badge/TypeScript-supported-blue" alt="TypeScript Supported">

Expand Down
4 changes: 2 additions & 2 deletions packages/vue-country-flag-next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ _Country flags as a Vue 3 Component_
<img src="https://github.com/P3trur0/vue-country-flag/blob/master/assets/logo.png?raw=true" alt="vue-country-flag"/>
</p>
<p align="center">
<img src="https://packagephobia.now.sh/[email protected].1" alt="Install size">
<img src="https://packagephobia.now.sh/[email protected].2" alt="Install size">
<img src="https://img.shields.io/badge/Vue.js%203-compatible-green.svg" alt="Vue.js 3 compatible">
<a href="https://www.npmjs.com/package/vue-country-flag-next"><img src="https://img.shields.io/badge/npm-2.3.1-blue.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vue-country-flag-next"><img src="https://img.shields.io/badge/npm-2.3.2-blue.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vue-country-flag-next"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
<img src="https://img.shields.io/badge/TypeScript-supported-blue" alt="TypeScript Supported">

Expand Down
2 changes: 1 addition & 1 deletion packages/vue-country-flag-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-country-flag-next",
"version": "2.3.1",
"version": "2.3.2",
"description": "Simple Vue component for displaying of country flags",
"main": "dist/country-flag.ssr.js",
"browser": "dist/country-flag.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-country-flag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ _Country flags as a Vue Component_
<img src="https://github.com/P3trur0/vue-country-flag/blob/master/assets/logo.png?raw=true" alt="vue-country-flag"/>
</p>
<p align="center">
<img src="https://packagephobia.now.sh/[email protected].1" alt="Install size">
<img src="https://packagephobia.now.sh/[email protected].2" alt="Install size">
<img src="https://img.shields.io/badge/Vue.js%202-compatible-green.svg" alt="Vue.js 2 compatible">
<a href="https://www.npmjs.com/package/vue-country-flag"><img src="https://img.shields.io/badge/npm-2.3.1-blue.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vue-country-flag"><img src="https://img.shields.io/badge/npm-2.3.2-blue.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vue-country-flag"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
<img src="https://img.shields.io/badge/TypeScript-supported-blue" alt="TypeScript Supported">

Expand Down
2 changes: 1 addition & 1 deletion packages/vue-country-flag/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-country-flag",
"version": "2.3.1",
"version": "2.3.2",
"description": "Simple Vue component for displaying of country flags",
"main": "dist/country-flag.ssr.js",
"module": "dist/country-flag.esm.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/vue-country-flag/src/CountryFlag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ export default {
</script>
<style scoped>
.small-flag {
margin: -0.9em -1.2em -0.9em -1.2em;
transform: scale(0.25);
-ms-transform: scale(0.25);
-webkit-transform: scale(0.25);
-moz-transform: scale(0.25);
}
.normal-flag {
margin: 0em -0.9em -0.6em -0.7em;
transform: scale(0.5);
-ms-transform: scale(0.5);
-webkit-transform: scale(0.5);
Expand Down

0 comments on commit 3a9f5dc

Please sign in to comment.