Skip to content
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
1 change: 1 addition & 0 deletions FrontEnd/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $mobile-breakpoint: 740px;
@import 'styles/breadcrumbs';
@import 'styles/build_logs';
@import 'styles/build_monitor';
@import 'styles/build_results';
@import 'styles/copyable_input';
@import 'styles/error';
@import 'styles/github_highlighting';
Expand Down
156 changes: 156 additions & 0 deletions FrontEnd/styles/build_results.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
// Copyright Dave Verwer, Sven A. Schmidt, and other contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// -------------------------------------------------------------------------
// Build results page, showing all builds for a package.
// -------------------------------------------------------------------------

.build-results {
margin: 0;
padding: 0;

li {
margin: 5px 0;

@media screen and (max-width: $mobile-breakpoint) {
margin: 20px 0;
}
}

.row {
display: grid;
grid-template-columns: 3fr 7fr;

.row-labels {
display: flex;
grid-row: 2;
flex-direction: column;
justify-content: center;

p {
margin: 0;
}
}

.column-labels {
display: flex;
grid-column: 2;
flex-direction: row;
}

.results {
display: flex;
grid-column: 2;
flex-direction: row;
}

&:not(:first-child) {
.row-labels {
grid-row: unset;
}

.column-labels {
display: none;
}

@media (max-width: $mobile-breakpoint) {
.column-labels {
display: flex;
}
}
}

@media (max-width: $mobile-breakpoint) {
grid-template-columns: 1fr;

.row-labels,
.column-labels,
.results {
grid-column: unset;
grid-row: unset;
}
}
}

.column-labels > div {
display: flex;
flex-direction: column;
flex-basis: 0;
flex-grow: 1;
align-items: center;
justify-content: flex-start;
padding: 5px 0;
font-size: 14px;
font-weight: 600;

small {
font-weight: normal;
}
}

.results > div {
position: relative;
display: flex;
flex-basis: 0;
flex-grow: 1;
align-items: center;
justify-content: center;
height: 35px;
margin: 0 3px;
background-color: var(--grid-default-background);

&.succeeded > a,
&.failed > a {
padding-left: 25px;
background-position: left center;
background-repeat: no-repeat;
background-size: 18px;
}

&.succeeded {
background-color: var(--grid-succeeded-background);

a {
background-image: var(--image-build-succeeded);
}
}

&.failed {
background-color: var(--grid-failed-background);

a {
background-image: var(--image-build-failed);
}
}

> .generated-docs {
position: absolute;
right: 5px;
display: inline-block;
width: 25px;
height: 25px;
background-position: center;
background-repeat: no-repeat;
background-size: 15px;
background-color: var(--grid-callout-background);
background-image: var(--image-documentation);
border-radius: 50%;
}
}

.column-labels > div > span {
font-size: 16px;
background-position: top 4px right;
}
}
8 changes: 8 additions & 0 deletions FrontEnd/styles/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
--breadcrumb: var(--light-grey);
--breadcrumb-header: var(--grey);

--separator-text: var(--light-grey);

--announcement-background: var(--very-light-grey);

--bordered-button-background: var(--very-very-light-grey);
Expand Down Expand Up @@ -126,9 +128,12 @@
--branch-text: var(--dark-green);

--grid-default-background: var(--very-very-light-grey);
--grid-default-text: var(--light-grey);
--grid-default-border: var(--very-light-grey);
--grid-compatible-background: var(--light-green);
--grid-compatible-text: var(--white);
--grid-incompatible-background: var(--light-grey);
--grid-incompatible-text: var(--grey);
--grid-succeeded-background: var(--very-light-grey);
--grid-failed-background: var(--very-light-grey);
--grid-callout-background: var(--white);
Expand Down Expand Up @@ -250,6 +255,8 @@

--breadcrumb: var(--dark-grey);

--separator-text: var(--dark-grey);

--announcement-background: var(--very-dark-grey);

--bordered-button-background: var(--very-very-dark-grey);
Expand All @@ -272,6 +279,7 @@
--rule-thin-background: var(--dark-grey);

--grid-default-background: var(--very-very-dark-grey);
--grid-default-text: var(--dark-grey);
--grid-default-border: var(--very-dark-grey);
--grid-compatible-background: var(--mid-green);
--grid-incompatible-background: var(--very-dark-grey);
Expand Down
2 changes: 1 addition & 1 deletion FrontEnd/styles/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ main > .inner {

.two-column {
display: grid;
grid-template-columns: 3fr 1fr;
grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
gap: 60px;

> :last-child {
Expand Down
Loading
Loading