Skip to content

Commit

Permalink
Merge pull request #6050 from gnestor/issue-6043
Browse files Browse the repository at this point in the history
Clean up ui-components styles
  • Loading branch information
jasongrout committed Apr 2, 2019
2 parents 00d6c0c + 05a6f96 commit c930c97
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
4 changes: 2 additions & 2 deletions packages/apputils/style/commandpalette.css
Expand Up @@ -43,8 +43,8 @@
}

.p-CommandPalette.p-mod-focused .p-CommandPalette-wrapper {
box-shadow: inset 0 0 0 1px rgba(19, 124, 189, 0.3),
inset 0 0 0 3px rgba(19, 124, 189, 0.3);
box-shadow: inset 0 0 0 1px var(--jp-input-active-box-shadow-color),
inset 0 0 0 3px var(--jp-input-active-box-shadow-color);
}

.p-CommandPalette-wrapper::after {
Expand Down
4 changes: 2 additions & 2 deletions packages/extensionmanager/style/index.css
Expand Up @@ -100,8 +100,8 @@
}

.jp-extensionmanager-search-wrapper input:focus {
box-shadow: inset 0 0 0 1px rgba(19, 124, 189, 0.3),
inset 0 0 0 3px rgba(19, 124, 189, 0.3);
box-shadow: inset 0 0 0 1px var(--jp-input-active-box-shadow-color),
inset 0 0 0 3px var(--jp-input-active-box-shadow-color);
}

/*
Expand Down
1 change: 1 addition & 0 deletions packages/theme-dark-extension/style/variables.css
Expand Up @@ -327,6 +327,7 @@ all of MD as it is not optimized for dense, information rich UIs.
--jp-input-background: var(--md-grey-800);
--jp-input-border-color: var(--jp-border-color1);
--jp-input-active-border-color: var(--jp-brand-color1);
--jp-input-active-box-shadow-color: rgba(19, 124, 189, 0.3);

/* General editor styles */

Expand Down
1 change: 1 addition & 0 deletions packages/theme-light-extension/style/variables.css
Expand Up @@ -324,6 +324,7 @@ all of MD as it is not optimized for dense, information rich UIs.
--jp-input-background: var(--md-grey-100);
--jp-input-border-color: var(--jp-border-color1);
--jp-input-active-border-color: var(--jp-brand-color1);
--jp-input-active-box-shadow-color: rgba(19, 124, 189, 0.3);

/* General editor styles */

Expand Down
20 changes: 7 additions & 13 deletions packages/ui-components/style/index.css
Expand Up @@ -15,7 +15,7 @@ html {
}

body {
color: #182026;
color: unset;
font-family: var(--jp-ui-font-family);
}

Expand All @@ -32,6 +32,7 @@ strong {
font-weight: unset;
}

/* Override Blueprint's _typography.scss styles */
a {
text-decoration: unset;
color: unset;
Expand All @@ -42,12 +43,14 @@ a:hover {
color: unset;
}

/* Override Blueprint's _accessibility.scss styles */
:focus {
outline: unset;
outline-offset: unset;
-moz-outline-radius: unset;
}

/* Styles for ui-components */
.jp-Button {
border-radius: var(--jp-border-radius);
padding: 0px 12px;
Expand All @@ -63,10 +66,6 @@ a:hover {
text-transform: none;
}

/* .jp-InputGroup {
} */

.jp-InputGroup input {
box-sizing: border-box;
border-radius: 0;
Expand All @@ -76,10 +75,9 @@ a:hover {
}

.jp-InputGroup input:focus {
/* box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-active-border-color),
inset 0 0 0 3px rgba(19, 124, 189, 0.3); */
box-shadow: inset 0 0 0 var(--jp-border-width) rgba(19, 124, 189, 0.3),
inset 0 0 0 3px rgba(19, 124, 189, 0.3);
box-shadow: inset 0 0 0 var(--jp-border-width)
var(--jp-input-active-box-shadow-color),
inset 0 0 0 3px var(--jp-input-active-box-shadow-color);
}

.jp-InputGroup input::placeholder,
Expand Down Expand Up @@ -108,10 +106,6 @@ input::placeholder {
color: var(--jp-ui-font-color0);
}

/* .jp-Select {
} */

select {
box-sizing: border-box;
}

0 comments on commit c930c97

Please sign in to comment.