Skip to content

Commit

Permalink
#7517 add missing base styles
Browse files Browse the repository at this point in the history
  • Loading branch information
piorek committed Jun 13, 2018
1 parent 6dbe85c commit 90f64c5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions js/lab/src/theme/static/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* 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.
*/

.widget-text input[type="password"] {
box-sizing: border-box;
border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);
background-color: var(--jp-widgets-input-background-color);
color: var(--jp-widgets-input-color);
font-size: var(--jp-widgets-font-size);
padding: var(--jp-widgets-input-padding) calc( var(--jp-widgets-input-padding) * 2 );
flex-grow: 1;
min-width: 0;
flex-shrink: 1;
outline: none !important;
}

.widget-text input[type="password"]:focus {
border-color: var(--jp-widgets-input-focus-border-color)
}


.widget-select-multiple select {
border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);
background-color: var(--jp-widgets-input-background-color);
color: var(--jp-widgets-input-color);
font-size: var(--jp-widgets-font-size);
}
3 changes: 2 additions & 1 deletion js/lab/src/theme/static/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
* limitations under the License.
*/

@import './fonts.css';
@import './fonts.css';
@import './base.css';

0 comments on commit 90f64c5

Please sign in to comment.