Skip to content

Commit

Permalink
#7204 bxvariables
Browse files Browse the repository at this point in the history
  • Loading branch information
piorek committed May 21, 2018
1 parent 101733b commit 7bde2a7
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 3 deletions.
24 changes: 24 additions & 0 deletions js/notebook/src/shared/style/bxvariables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright 2017 TWO SIGMA OPEN SOURCE, LLC
*
* 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.
*/

$bxBorderColor1: #cccccc;
$bxBgColor1: #ffffff;
$bxBgColor2: #eeeeee;

$bxColorSuccess: #5cb85c;
$bxColorInfo: #5bc0de;
$bxColorWarning: #f0ad4e;
$bxColorDefault: #777777;
46 changes: 46 additions & 0 deletions js/notebook/src/shared/style/spark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@import "bxvariables";

.foldout-preview {
& > .bx-spark-stagePanel {
padding: 0;
Expand All @@ -27,3 +29,47 @@
.bx-spark-stageProgressBar {
margin: 0 10px;
}

.bx-panel {
border: 1px solid $bxBorderColor1;
border-radius: 2px;
margin-bottom: 18px;

.bx-panel-heading {
background-color: $bxBgColor2;
padding: 10px;
border-bottom: 1px solid $bxBorderColor1;

display: flex;
}

.bx-panel-body {
padding: 10px;
}
}

.bx-label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: bold;
line-height: 1;
text-align: center;
vertical-align: baseline;
border-radius: .25em;
color: #ffffff;

&.done { background-color: $bxColorSuccess; }
&.active { background-color: $bxColorInfo; }
&.waiting { background-color: $bxColorWarning; }
&.all { background-color: $bxColorDefault; }
}

.bx-progress-bar {
display: inline-block;
height: 28px;

&.done { background-color: $bxColorSuccess; }
&.active { background-color: $bxColorInfo; }
&.waiting { background-color: $bxColorWarning; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
* limitations under the License.
*/

@import "bxvariables";

#beakerx-tree-widget.isLab {
width: 100%;
height: 100%;
Expand Down Expand Up @@ -131,9 +133,6 @@
}

// ========== NEW
$bxBorderColor1: #cccccc;
$bxBgColor1: #ffffff;
$bxBgColor2: #eeeeee;

#beakerx-tree {

Expand Down Expand Up @@ -201,6 +200,39 @@ $bxBgColor2: #eeeeee;

.bx-panel-body {
padding:10px;

.bx-form-row {

&:not(:last-child) {
margin-bottom: 6px;
}

.bx-input-text {
display: inline-block;
border: 1px solid $bxBorderColor1;
border-radius: 2px;
margin: 0 6px 0 0;
padding: 6px 12px;
font-size: 13px;
line-height: 1.4;
}

.bx-btn {
border: 1px solid $bxBorderColor1;
border-radius: 2px;
margin: 0;
background-color: $bxBgColor1;
padding: 6px 12px;
font-size: 13px;
line-height: 1.4;

&:hover {
background-color: $bxBgColor2;
}

}

}
}
}

Expand Down

0 comments on commit 7bde2a7

Please sign in to comment.