Skip to content

Commit

Permalink
feat(css): use shorthand when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentHardouin committed Feb 25, 2022
1 parent ab23403 commit ac396ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions components/LanguageSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ export default {
height: 1.5rem;
}
&__button {
background: none;
font-family: $font-roboto;
font-size: 0.875rem;
font-weight: $font-medium;
Expand All @@ -207,8 +206,7 @@ export default {
background-size: 1.5rem;
padding: 2px 3px 0 30px;
cursor: pointer;
background-image: url('/images/globe.svg');
background-repeat: no-repeat;
background: url('/images/globe.svg') no-repeat;
&:hover,
&:focus {
color: $blue;
Expand Down
4 changes: 1 addition & 3 deletions components/LanguageSwitcherLegacy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export default {
height: 1.5rem;
}
&__button {
background: none;
font-family: $font-roboto;
font-size: 0.875rem;
font-weight: $font-medium;
Expand All @@ -142,8 +141,7 @@ export default {
background-size: 1.5rem;
padding: 2px 3px 0 30px;
cursor: pointer;
background-image: url('/images/globe.svg');
background-repeat: no-repeat;
background: url('/images/globe.svg') no-repeat;
&:hover,
&:focus {
color: $blue;
Expand Down
4 changes: 1 addition & 3 deletions components/NewsItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ export default {

<style lang="scss">
.news-item-card {
margin: 20px;
max-width: 340px;
margin-left: auto;
margin-right: auto;
margin: 20px auto;
overflow: hidden;
border-radius: 10px;
background: #fff;
Expand Down

0 comments on commit ac396ef

Please sign in to comment.