Skip to content

Commit

Permalink
Branding: Add Microsoft logo to first loading screen (#9605)
Browse files Browse the repository at this point in the history
* add msft logo to first loading screen

* PR suggestion

Co-authored-by: Joey Wunderlich <[email protected]>

* add comment for background size

---------

Co-authored-by: Joey Wunderlich <[email protected]>
  • Loading branch information
kimprice and jwunderl authored Jul 19, 2023
1 parent 84b6668 commit cc42e9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions theme/themes/pxt/elements/loader.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*******************************/


.ui.loader.main:before,
.ui.loader.main:before,
.ui.loader.avatar:before {
border: none;
border-radius: 0px;
Expand All @@ -15,11 +15,16 @@
box-shadow: none;
border-radius: 0px;
background: transparent @loaderImage no-repeat center center;
background-size: 100%;
background-size: @loaderImageSize;
-webkit-animation: @loaderAnimation @loaderSpeed infinite linear;
animation: @loaderAnimation @loaderSpeed infinite linear;
}

.ui.loader.main.msft:after {
background-image: @loaderMsftImage;
background-size: 99%; // Must be less than 100% to avoid being cut off
}

.ui.loader.avatar:after {
border: none;
box-shadow: none;
Expand Down
4 changes: 4 additions & 0 deletions theme/themes/pxt/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@

@loaderImageUrl: "../docs/static/loader.svg";
@loaderImage: data-uri(@loaderImageUrl);
@loaderImageSize: 100%;

@loaderMsftImageUrl: "../docs/static/orglogowide.png";
@loaderMsftImage: data-uri(@loaderMsftImageUrl);

@includePoweredByLogos: false;
@poweredBySmallUrl: "../docs/static/logo/Powered-By-Microsoft-logo-small.png";
Expand Down
2 changes: 1 addition & 1 deletion webapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<body class="main">
<div id='loading' class="ui active dimmer">
<div class="ui large main loader"></div>
<div class="ui large main loader msft"></div>
</div>

<div id='custom-content'>
Expand Down

0 comments on commit cc42e9f

Please sign in to comment.