Skip to content

Commit

Permalink
feat: make Asset support RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
lazd committed Feb 14, 2020
1 parent 39f318b commit d272290
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/asset/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ governing permissions and limitations under the License.
@import '../commons/index.css';

.spectrum-Asset {
width: 100%;
height: 100%;
inline-size: 100%;
block-size: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.spectrum-Asset-image {
max-width: 100%;
max-height: 100%;
max-inline-size: 100%;
max-block-size: 100%;
object-fit: contain;
transition: opacity var(--spectrum-global-animation-duration-100);
}

.spectrum-Asset-folder,
.spectrum-Asset-file {
width: 100%;
height: 100%;
min-width: var(--spectrum-asset-icon-min-width);
max-width: var(--spectrum-asset-icon-max-width);
inline-size: 100%;
block-size: 100%;
min-inline-size: var(--spectrum-asset-icon-min-width);
max-inline-size: var(--spectrum-asset-icon-max-width);
margin: var(--spectrum-asset-icon-margin);
}

0 comments on commit d272290

Please sign in to comment.