This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 465
BrandIcon: Update to latest document icons #1090
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
993516e
Use strings instead of numbers for $retina argument to allow for easi…
0cc15e2
Update location and names for new document icons
430ba8d
Update mixins to generate classes for both product and document icons…
1b90534
Add classes to support deprecated document icons and map those to oth…
3bc6184
Merge branch 'master' into miwhea/updated-document-icons
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,19 +1,108 @@ | ||
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. | ||
|
||
@include ms-brand-icon-classes(1); | ||
@include ms-brand-icon-classes('1'); | ||
@include ms-brand-icon-size-classes(); | ||
|
||
// Pixel Ratio 1.5 | ||
@media only screen and (min-resolution: 144dpi) { | ||
@include ms-brand-icon-classes(1_5); | ||
@include ms-brand-icon-classes('1_5'); | ||
} | ||
|
||
// Pixel Ratio 2 | ||
@media only screen and (min-resolution: 192dpi) { | ||
@include ms-brand-icon-classes(2); | ||
@include ms-brand-icon-classes('2'); | ||
} | ||
|
||
// Pixel Ratio 3 | ||
@media only screen and (min-resolution: 288dpi) { | ||
@include ms-brand-icon-classes(3); | ||
} | ||
@include ms-brand-icon-classes('3'); | ||
} | ||
|
||
// The 'onepkg' and 'xls' icons have been deprecated. These classes will be removed in | ||
// a future release. Until then, they are mapped to 'one' and 'xlsx'. | ||
|
||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96/one.png); | ||
} | ||
|
||
.ms-BrandIcon--xls.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96/xlsx.png); | ||
} | ||
|
||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16_1.5x/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48_1.5x/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96_1.5x/one.png); | ||
} | ||
|
||
.ms-BrandIcon--xls.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16_1.5x/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48_1.5x/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96_1.5x/xlsx.png); | ||
} | ||
} | ||
|
||
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) { | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16_2x/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48_2x/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96_2x/one.png); | ||
} | ||
|
||
.ms-BrandIcon--xls.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16_2x/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48_2x/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96_2x/xlsx.png); | ||
} | ||
} | ||
|
||
@media only screen and (-webkit-min-device-pixel-ratio: 3), only screen and (min-resolution: 288dpi) { | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16_3x/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48_3x/one.png); | ||
} | ||
.ms-BrandIcon--onepkg.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96_3x/one.png); | ||
} | ||
|
||
.ms-BrandIcon--xls.ms-BrandIcon--icon16 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16_3x/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon48 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/48_3x/xlsx.png); | ||
} | ||
.ms-BrandIcon--xls.ms-BrandIcon--icon96 { | ||
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/96_3x/xlsx.png); | ||
} | ||
} |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the protocol/domain part of the URL could be pulled into something like a
baseUrl
variable to minimize repetition.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave it as is, since there shouldn't be any changes needed here before we remove it entirely.