kopia lustrzana https://github.com/c9/core
Resize C9 logo and scrunch margins when loading screen is smaller than 600px
rodzic
d1586b9c16
commit
c275db6e65
|
@ -14,9 +14,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#loadingide {
|
#loadingide {
|
||||||
background-image: url(images/c9-logo-blue.png);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 50% 30%;
|
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -28,16 +25,33 @@
|
||||||
-webkit-font-smoothing: antialiased !important;
|
-webkit-font-smoothing: antialiased !important;
|
||||||
-moz-osx-font-smoothing: grayscale !important;
|
-moz-osx-font-smoothing: grayscale !important;
|
||||||
}
|
}
|
||||||
.dark #loadingide{
|
|
||||||
|
#c9logo{
|
||||||
|
background-image: url(images/c9-logo-blue.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 50% 30%;
|
||||||
|
position: relative;
|
||||||
|
top: 15%;
|
||||||
|
margin: 0 auto;
|
||||||
|
background-size: contain;
|
||||||
|
width: 300px;
|
||||||
|
height: 279px;
|
||||||
|
}
|
||||||
|
.dark #c9logo{
|
||||||
background-image: url(images/c9-logo-white.png);
|
background-image: url(images/c9-logo-white.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx) {
|
@media screen and (max-height: 600px) {
|
||||||
#loadingide {
|
#c9logo{
|
||||||
background-image: url(images/c9-logo-blue@2x.png);
|
height: 46.5%;
|
||||||
background-size: 300px 279px;
|
|
||||||
}
|
}
|
||||||
#loadingide.dark {
|
}
|
||||||
|
|
||||||
|
@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx) {
|
||||||
|
#c9logo {
|
||||||
|
background-image: url(images/c9-logo-blue@2x.png);
|
||||||
|
}
|
||||||
|
#c9logo.dark {
|
||||||
background-image: url(images/c9-logo-white@2x.png);
|
background-image: url(images/c9-logo-white@2x.png);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,6 +139,13 @@
|
||||||
margin-top: 255px;
|
margin-top: 255px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-height: 600px) {
|
||||||
|
#loadingide .status{
|
||||||
|
top: 70%;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#loadingide .cool-message {
|
#loadingide .cool-message {
|
||||||
display: block;
|
display: block;
|
||||||
font-family: Arial;
|
font-family: Arial;
|
||||||
|
@ -139,6 +160,14 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-height: 600px) {
|
||||||
|
#loadingide .cool-message{
|
||||||
|
top: 85%;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#loadingide.dark .cool-message {
|
#loadingide.dark .cool-message {
|
||||||
color: #757575;
|
color: #757575;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<link rel="stylesheet" type="text/css" href="<%=staticPrefix%>/plugins/c9.ide.layout.classic/loading-flat.css" />
|
<link rel="stylesheet" type="text/css" href="<%=staticPrefix%>/plugins/c9.ide.layout.classic/loading-flat.css" />
|
||||||
<div id="loadingcontainer" class="<%-: theme + (isDark ? " dark" : "") %>">
|
<div id="loadingcontainer" class="<%-: theme + (isDark ? " dark" : "") %>">
|
||||||
<div id="loadingide">
|
<div id="loadingide">
|
||||||
|
<div id="c9logo"></div>
|
||||||
<div class="cool-message"></div>
|
<div class="cool-message"></div>
|
||||||
<div class="status" style="display:none"><div class="spinner"></div></div>
|
<div class="status" style="display:none"><div class="spinner"></div></div>
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue