Skip to content
Snippets Groups Projects
Commit df4db835 authored by Simon Knox's avatar Simon Knox
Browse files

Add extra build mixins to reduce EE conflicts

parent 07cb4680
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -241,14 +241,36 @@
max-width: 100%;
}
 
/*
* Mixin that handles the container for the job logs (CI/CD and kubernetes pod logs)
*/
@mixin build-trace {
background: $black;
color: $gray-darkest;
white-space: pre;
overflow-x: auto;
font-size: 12px;
border-radius: 0;
border: 0;
padding: $grid-size;
.bash {
display: block;
}
&.build-trace-rounded {
border-radius: $border-radius-base;
}
}
@mixin build-trace-top-bar($height) {
height: $height;
min-height: $height;
background: $gray-light;
border: 1px solid $border-color;
color: $gl-text-color;
position: sticky;
position: -webkit-sticky;
top: $top-position;
top: $header-height;
padding: $grid-size;
 
Loading
Loading
@@ -257,6 +279,62 @@
}
}
 
/*
* Mixin that handles the position of the controls placed on the top bar
*/
@mixin build-controllers($control-font-size, $flex-direction, $with-grow, $flex-grow-size) {
display: flex;
font-size: $control-font-size;
justify-content: $flex-direction;
align-items: center;
align-self: baseline;
@if $with-grow {
flex-grow: $flex-grow-size;
}
svg {
width: 15px;
height: 15px;
display: block;
fill: $gl-text-color;
}
.controllers-buttons {
color: $gl-text-color;
margin: 0 $grid-size;
&:last-child {
margin-right: 0;
}
}
.btn-scroll.animate {
.first-triangle {
animation: blinking-scroll-button 1s ease infinite;
animation-delay: 0.3s;
}
.second-triangle {
animation: blinking-scroll-button 1s ease infinite;
animation-delay: 0.2s;
}
.third-triangle {
animation: blinking-scroll-button 1s ease infinite;
}
&:disabled {
opacity: 1;
}
}
.btn-scroll:disabled,
.btn-refresh:disabled {
opacity: 0.35;
cursor: not-allowed;
}
}
@mixin build-loader-animation {
position: relative;
white-space: initial;
Loading
Loading
Loading
Loading
@@ -50,23 +50,9 @@
position: relative;
}
 
.build-trace {
background: $black;
color: $gray-darkest;
white-space: pre;
overflow-x: auto;
font-size: 12px;
border-radius: 0;
border: 0;
padding: $grid-size;
 
.bash {
display: block;
}
&.build-trace-rounded {
border-radius: $border-radius-base;
}
.build-trace {
@include build-trace();
}
 
.top-bar {
Loading
Loading
@@ -108,50 +94,7 @@
}
 
.controllers {
display: flex;
font-size: 15px;
justify-content: center;
align-items: center;
svg {
height: 15px;
display: block;
fill: $gl-text-color;
}
.controllers-buttons {
color: $gl-text-color;
margin: 0 $grid-size;
&:last-child {
margin-right: 0;
}
}
.btn-scroll.animate {
.first-triangle {
animation: blinking-scroll-button 1s ease infinite;
animation-delay: 0.3s;
}
.second-triangle {
animation: blinking-scroll-button 1s ease infinite;
animation-delay: 0.2s;
}
.third-triangle {
animation: blinking-scroll-button 1s ease infinite;
}
&:disabled {
opacity: 1;
}
}
.btn-scroll:disabled {
opacity: 0.35;
cursor: not-allowed;
}
@include build-controllers(15px, center, false, 0);
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment