-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
481 additions
and
881 deletions.
There are no files selected for viewing
21 changes: 3 additions & 18 deletions
21
packages/block-directory/src/components/block-ratings/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,12 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { _n, sprintf } from '@wordpress/i18n'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import Stars from './stars'; | ||
|
||
export const BlockRatings = ( { rating, ratingCount } ) => ( | ||
<div className="block-directory-block-ratings"> | ||
export const BlockRatings = ( { rating } ) => ( | ||
<span className="block-directory-block-ratings"> | ||
<Stars rating={ rating } /> | ||
<span | ||
className="block-directory-block-ratings__rating-count" | ||
aria-label={ sprintf( | ||
// translators: %d: number of ratings (number). | ||
_n( '%d total rating', '%d total ratings', ratingCount ), | ||
ratingCount | ||
) } | ||
> | ||
({ ratingCount }) | ||
</span> | ||
</div> | ||
</span> | ||
); | ||
|
||
export default BlockRatings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
packages/block-directory/src/components/block-ratings/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.block-directory-block-ratings { | ||
display: flex; | ||
> div { | ||
line-height: 1; | ||
|
||
> span { | ||
display: flex; | ||
} | ||
|
||
.block-directory-block-ratings__rating-count { | ||
font-size: ms(-2); | ||
svg { | ||
fill: $gray-900; | ||
margin-left: -4px; | ||
} | ||
|
||
svg { | ||
fill: #ffb900; | ||
.block-directory-block-ratings__star-empty { | ||
fill: $gray-400; | ||
} | ||
} |
47 changes: 0 additions & 47 deletions
47
packages/block-directory/src/components/downloadable-block-author-info/index.js
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
packages/block-directory/src/components/downloadable-block-author-info/style.scss
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
packages/block-directory/src/components/downloadable-block-header/index.js
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
packages/block-directory/src/components/downloadable-block-header/style.scss
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
packages/block-directory/src/components/downloadable-block-header/test/fixtures/index.js
This file was deleted.
Oops, something went wrong.
76 changes: 0 additions & 76 deletions
76
packages/block-directory/src/components/downloadable-block-header/test/index.js
This file was deleted.
Oops, something went wrong.
23 changes: 6 additions & 17 deletions
23
packages/block-directory/src/components/downloadable-block-icon/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 5 additions & 13 deletions
18
packages/block-directory/src/components/downloadable-block-icon/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
.block-directory-downloadable-block-icon { | ||
width: $button-size; | ||
height: $button-size; | ||
|
||
.block-editor-block-icon { | ||
width: $button-size; | ||
height: $button-size; | ||
font-size: $button-size; | ||
background-color: $gray-300; | ||
} | ||
|
||
> img { | ||
width: 100%; | ||
} | ||
min-width: $button-size * 1.5; | ||
width: $button-size * 1.5; | ||
height: $button-size * 1.5; | ||
vertical-align: middle; | ||
border: 1px solid $gray-300; | ||
} |
Oops, something went wrong.