Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branding fixes for dashboard, loader and space selector #60073

Merged
merged 9 commits into from
Mar 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 29 additions & 24 deletions src/core/public/chrome/ui/_loading_indicator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,34 @@ $kbnLoadingIndicatorColor2: tint($euiColorAccent, 60%);
}
}

.kbnLoadingIndicator__bar {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
z-index: $euiZLevel1 + 1;
visibility: visible;
display: block;
animation: kbn-animate-loading-indicator 2s linear infinite;
background-color: $kbnLoadingIndicatorColor2;
background-image: linear-gradient(to right,
$kbnLoadingIndicatorColor1 0%,
$kbnLoadingIndicatorColor1 50%,
$kbnLoadingIndicatorColor2 50%,
$kbnLoadingIndicatorColor2 100%
);
background-repeat: repeat-x;
background-size: $kbnLoadingIndicatorBackgroundSize $kbnLoadingIndicatorBackgroundSize;
width: 200%;
}
.kbnLoadingIndicator__bar {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
z-index: $euiZLevel1 + 1;
visibility: visible;
display: block;
animation: kbn-animate-loading-indicator 2s linear infinite;
background-color: $kbnLoadingIndicatorColor2;
background-image: linear-gradient(
to right,
$kbnLoadingIndicatorColor1 0%,
$kbnLoadingIndicatorColor1 50%,
$kbnLoadingIndicatorColor2 50%,
$kbnLoadingIndicatorColor2 100%
);
background-repeat: repeat-x;
background-size: $kbnLoadingIndicatorBackgroundSize $kbnLoadingIndicatorBackgroundSize;
width: 200%;
}

@keyframes kbn-animate-loading-indicator {
from { transform: translateX(0); }
to { transform: translateX(-$kbnLoadingIndicatorBackgroundSize); }
@keyframes kbn-animate-loading-indicator {
from {
transform: translateX(0);
}
to {
transform: translateX(-$kbnLoadingIndicatorBackgroundSize);
}
}
7 changes: 4 additions & 3 deletions src/core/server/rendering/views/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const Styles: FunctionComponent<Props> = ({ darkMode }) => {

.kbnWelcomeView {
line-height: 1.5;
background-color: #FFF;
background-color: ${darkMode ? '#1D1E24' : '#FFF'};
snide marked this conversation as resolved.
Show resolved Hide resolved
height: 100%;
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -97,6 +97,7 @@ export const Styles: FunctionComponent<Props> = ({ darkMode }) => {
line-height: 40px !important;
height: 40px !important;
color: #98a2b3;
color: ${darkMode ? '#98A2B3' : '#69707D'};
}

.kbnLoaderWrap {
Expand Down Expand Up @@ -128,7 +129,7 @@ export const Styles: FunctionComponent<Props> = ({ darkMode }) => {
width: 32px;
height: 4px;
overflow: hidden;
background-color: #D3DAE6;
background-color: ${darkMode ? '#25262E' : '#F5F7FA'};
line-height: 1;
}

Expand All @@ -142,7 +143,7 @@ export const Styles: FunctionComponent<Props> = ({ darkMode }) => {
left: 0;
transform: scaleX(0) translateX(0%);
animation: kbnProgress 1s cubic-bezier(.694, .0482, .335, 1) infinite;
background-color: #006DE4;
background-color: ${darkMode ? '#1BA9F5' : '#006DE4'};
}

@keyframes kbnProgress {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,66 +4,40 @@
*/

.dshExitFullScreenButton {
height: $euiSizeXXL;
left: 0;
bottom: 0;
@include euiBottomShadow;

left: $euiSizeS;
bottom: $euiSizeS;
position: fixed;
display: block;
padding: 0;
border: none;
background: none;
z-index: 5;
background: $euiColorFullShade;
padding: $euiSizeXS;
border-radius: $euiBorderRadius;
text-align: left;

&:hover,
&:focus {
transition: all $euiAnimSpeedExtraSlow $euiAnimSlightResistance;
z-index: 10 !important; /* 1 */
&:hover {
background: $euiColorFullShade;

.dshExitFullScreenButton__text {
transition: all $euiAnimSpeedNormal $euiAnimSlightResistance;
transform: translateX(-$euiSize);
.dshExitFullScreenButton__icon {
color: $euiColorEmptyShade;
}
}
}

.dshExitFullScreenButton__logo {
display: block;
// Just darken the background for all themes because the logo is always white
background-color: shade($euiColorPrimary, 25%);
height: $euiSizeXXL;

// These numbers are very specific to the Kibana logo size
width: 92px;
background-image: url('ui/assets/images/kibana.svg');
background-position: 8px 5px;
background-size: 72px 30px;
background-repeat: no-repeat;

z-index: $euiZLevel1;
.dshExitFullScreenButton__title {
line-height: 1.2;
color: $euiColorEmptyShade;
}

/**
* 1. Calc made to allow caret in text to peek out / animate.
*/

.dshExitFullScreenButton__text {
background: $euiColorPrimary;
color: $euiColorEmptyShade;
line-height: $euiSizeXXL;
display: inline-block;
font-size: $euiFontSizeS;
height: $euiSizeXXL;
position: absolute;
left: calc(100% + #{$euiSize}); /* 1 */
top: 0px;
bottom: 0px;
white-space: nowrap;
padding: 0px $euiSizeXS 0px $euiSizeM;
transition: all .2s ease;
transform: translateX(-100%);
z-index: -1;

.euiIcon {
margin-left: $euiSizeXS;
}
line-height: 1.2;
color: makeHighContrastColor($euiColorMediumShade, $euiColorFullShade);
}

.dshExitFullScreenButton__icon {
color: makeHighContrastColor($euiColorMediumShade, $euiColorFullShade);
}
Loading